#34718 [NEW]: cannot compile PHP as an Apache2 module

From: Date: Mon, 03 Oct 2005 13:53:36 +0000
Subject: #34718 [NEW]: cannot compile PHP as an Apache2 module
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-85943@lists.php.net to get a copy of this message
From: ionut dot aivanesei at amdocs dot com Operating system: HP-UX B.11.11 PHP version: 5.0.5 PHP Bug Type: Apache2 related Bug description: cannot compile PHP as an Apache2 module Description: ------------ Hi, I am trying to compile PHP 5.0.5 on HP-UX B.11.11 and I am not succeeding. I have already compiled httpd-2.0.54 with --enable-so --enable-rewrite. I have MySQL binaries mysql-standard-4.1.14-hp-hpux11.11-hppa2.0w. I am using the following: ./configure --prefix=${BUILD_DIR}/php --with-apxs2=${BUILD_DIR}/httpd/bin/apxs --with-mysql=${BUILD_DIR}/mysql ./configure is finished OK. make is finished OK, but with the following warnings: -------------------------------------------------------------------------------------------------------------- *** Warning: linker path does not have real file for library -lmysqlclient. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have *** because I did check the linker path looking for a file starting *** with libmysqlclient and none of the candidates passed a file format test *** using a file magic. Last file checked: /elsuser11.p802a/els/crm/ionuta/web/mysql/lib/libmysqlclient.a *** Warning: libtool could not satisfy all declared inter-library *** dependencies of module libphp5. Therefore, libtool will create *** a static module, that should work as long as the dlopening *** application is linked with the -dlopen flag. -------------------------------------------------------------------------------------------------------------- Then, when I run make install I have the following error: -------------------------------------------------------------------------------------------------------------- Installing PHP SAPI module: apache2handler /elsuser11.p802a/els/crm/ionuta/web/httpd/build/instdso.sh SH_LIBTOOL='/elsuser11.p802a/els/crm/ionuta/web/httpd/build/libtool' libphp5.la /elsuser11.p802a/els/crm/ionuta/web/httpd/modules /elsuser11.p802a/els/crm/ionuta/web/httpd/build/libtool --mode=install cp libphp5.la /elsuser11.p802a/els/crm/ionuta/web/httpd/modules/ cp .libs/libphp5.lai /elsuser11.p802a/els/crm/ionuta/web/httpd/modules/libphp5.la cp .libs/libphp5.a /elsuser11.p802a/els/crm/ionuta/web/httpd/modules/libphp5.a ranlib /elsuser11.p802a/els/crm/ionuta/web/httpd/modules/libphp5.a chmod 644 /elsuser11.p802a/els/crm/ionuta/web/httpd/modules/libphp5.a libtool: install: warning: remember to run `libtool --finish /elsuser11.p802a/els/crm/ionuta/web/_sources/php/php-5.0.5/libs' Warning! dlname not found in /elsuser11.p802a/els/crm/ionuta/web/httpd/modules/libphp5.la. Assuming installing a .so rather than a libtool archive. chmod 755 /elsuser11.p802a/els/crm/ionuta/web/httpd/modules/libphp5.so chmod: can't access /elsuser11.p802a/els/crm/ionuta/web/httpd/modules/libphp5.so apxs:Error: Command failed with rc=65536 . *** Error exit code 1 Stop. -------------------------------------------------------------------------------------------------------------- I get this only when compiling with mysql support. Otherwise everything is ok. Thank you, Ionut Reproduce code: --------------- n/a Expected result: ---------------- n/a Actual result: -------------- n/a -- Edit bug report at http://bugs.php.net/?id=34718&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34718&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34718&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34718&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34718&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34718&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34718&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34718&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34718&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34718&r=support Expected behavior: http://bugs.php.net/fix.php?id=34718&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34718&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34718&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34718&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34718&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34718&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34718&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34718&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34718&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34718&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34718&r=mysqlcfg

« previous php.bugs (#85943) next »