|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-08-28 06:05 UTC] sas at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 17:00:01 2025 UTC |
I compile and install PHP with mysql support (this also happens using --with-apache or --with-shared-apache): ./configure --with-shared-apache=../apache_1.3.9 \ --with-mysql \ --enable-track-vars I then compile Apache 1.3.9 including "-enable-shared=max": ./configure --prefix=/usr/local/apache \ --enable-module=most \ --enable-shared=max \ --add-module=mod_frontpage.c \ --activate-module=src/modules/perl/libperl.a \ --activate-module=src/modules/php3/libphp3.a \ --enable-shared=php3 When the Apache compile reaches the standard modules, the following compile failure happens in mod_vhost_alias.c: ===> src/modules ===> src/modules/standard gcc -c -I../.. -I/usr/lib/perl5/5.00503/i486-linux/CORE -I../../os/unix -I../../include -DLINUX=2 -DMOD_PERL -DUSE_PERL_SSI -Dbool=char -DHAS_BOOL -I/usr/local/include -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite `../../apaci` mod_so.c rm -f libstandard.a ar cr libstandard.a mod_so.o ranlib libstandard.a gcc -c -I../.. -I/usr/lib/perl5/5.00503/i486-linux/CORE -I../../os/unix -I../../include -DLINUX=2 -DMOD_PERL -DUSE_PERL_SSI -Dbool=char -DHAS_BOOL -I/usr/local/include -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite `../../apaci` -fpic -DSHARED_MODULE mod_vhost_alias.c && mv mod_vhost_alias.o mod_vhost_alias.lo gcc -rpath /usr/local/lib/mysql -shared -o mod_vhost_alias.so mod_vhost_alias.lo gcc: unrecognized option `-rpath' /usr/local/lib/mysql: file not recognized: Is a directory make[4]: *** [mod_vhost_alias.so] Error 1 make[3]: *** [all] Error 1 make[2]: *** [subdirs] Error 1 make[2]: Leaving directory `/usr/local/src/apache_1.3.9/src' make[1]: *** [build-std] Error 2 make[1]: Leaving directory `/usr/local/src/apache_1.3.9' make: *** [build] Error 2 Even though this is an Apache compile, I think the calls being made for mysql and -rpath are created by the PHP "make install" routines. When I revert to a static build (no --enable-shared=max), everything works fine. ./configure --prefix=/usr/local/apache \ --enable-module=most \ --add-module=mod_frontpage.c \ --activate-module=src/modules/perl/libperl.a \ --activate-module=src/modules/php3/libphp3.a