Bug #2170: PHP with mysql causes Apache compile failure using DSO support

From: Date: Thu, 26 Aug 1999 18:18:26 +0000
Subject: Bug #2170: PHP with mysql causes Apache compile failure using DSO support
Groups: php.dev 
Request: Send a blank email to php-dev+get-10240@lists.php.net to get a copy of this message
From: viking@iowa.net Operating system: Linux 3.0.12 (w/ gcc 2.7.2.2) PHP version: 3.0.12 PHP Bug Type: Compile Failure Bug description: PHP with mysql causes Apache compile failure using DSO support 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

« previous php.dev (#10240) next »