|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-02-18 09:12 UTC] germano60 at yahoo dot it
Hello I already looked in the support resources and in the bug lists but could not find a suitable clue. I compiled apache and php then when I tried to start the web server, but this is the error message I got: Syntax error on line 233 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/libphp4.so into server: Unresolved external The error line did not return any further indications about which "external" did not resolve. Configuration: hp-ux 11.00 php 4.3.0 apache 2.0.44 gcc 3.2 Apache was generated with: ./configure \ --prefix=/usr/local/apache2 \ --enable-so Php4.3.0 was configured with: ./configure \ --with-mysql \ --with-apxs2=/usr/local/apache2/bin/apxs I modified the configure script for PHP by replacing invokes of "-lcrypt" with "-lc" and of "-ltermcap" with "-lcurses" to get libphp4.so generated by php's "make install" under the hp-ux 11 platform. php's "make" and "make install" succeeded. DSO modules were installed in the Apache2's default location /usr/local/apache2/modules and this is also where PHP's make install stored the library libphp4.so. In httpd.conf I added the following line: LoadModule php4_module modules/libphp4.so I'm not sure whether this is really a bug or due to my minimal configuration - I tried some of the hints I found in the support/bugs but without success. Thanks in advance. Germano Gasparini - germano60 at yahoo dot it PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 28 10:00:01 2025 UTC |
I'm afraid that compiling with gcc 2.9.x is a little bit problematic for me. My HP-UX workstation came with gcc 3.x already installed and I'm a little bit concerned in installing an older version - just to avoid possible regression problems. Howeverm these are the result of the test with Apache 1.3.27 Apache built with: configure --prefix=/usr/local/apachetest \ --enable-module=so PHP configured with: configure --disable-all \ --with-mysql \ --with-pcre-regex \ --with-apxs=/usr/local/apachetest/bin/apxs \ --enable-debug I had to manually perform the following replacements inside configure: -lcrypt replaced with -lc -ltermcap replaced with -lcurses otherwise the build fails (looks like the lcrypt problem is fixed with Apache2 but not with Apache - very strange). PHP make and make install succeeded. Result of /usr/local/apachetest/bin/httpd -X: /usr/lib/dld.sl: Unresolved symbol: __umoddi3 (code) from /usr/local/apachetest/libexec/libphp4.so Syntax error on line 236 of /usr/local/apachetest/conf/httpd.conf: Cannot load /usr/local/apachetest/libexec/libphp4.so into server: Unresolved external I tried again rebulding PHP adding also --enable-libgcc to the configure command line (make clean and rm config.cache executed before re-running configure). This time make install failed and I noticed that libs/libphp4.sl was not generated. Here is the output of make install: Installing PHP CLI binary: /usr/local/bin/ Installing PHP CLI man page: /usr/local/man/man1/ Installing PHP SAPI module apxs:Error: file libs/libphp4.sl is not a DSO *** Error exit code 1 Stop.