php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2170 PHP with mysql causes Apache compile failure using DSO support
Submitted: 1999-08-26 14:18 UTC Modified: 1999-08-28 06:05 UTC
From: viking at iowa dot net Assigned:
Status: Closed Package: Compile Failure
PHP Version: 3.0.12 OS: Linux 3.0.12 (w/ gcc 2.7.2.2)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: viking at iowa dot net
New email:
PHP Version: OS:

 

 [1999-08-26 14:18 UTC] viking at iowa dot net
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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-08-28 06:05 UTC] sas at cvs dot php dot net
fixed in CVS
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Apr 12 00:01:28 2025 UTC