Date: 01/26/99
- Next message: bobk <email protected>: "[PHP-DEV] Bug #1095: mail() default (sendmail -t) not honored"
- Previous message: bobk <email protected>: "[PHP-DEV] Bug #1093: mail() function ignored"
- Next in thread: Rasmus Lerdorf: "Re: [PHP-DEV] Bug #1094: DSO won't compile"
- Reply: Rasmus Lerdorf: "Re: [PHP-DEV] Bug #1094: DSO won't compile"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: rolf <email protected>
Operating system: SuSE Linux 6.0
PHP version: 3.0.6
PHP Bug Type: Compile Failure
Bug description: DSO won't compile
Due to a misconfiguration 3.0.6 won't compile as DSO when using APACI for
configuration and mySQL. The following sed script makes it work when run after calling ./configure for apache_1.3.4 and before compiling:
cat src/modules/php3/Makefile | \
sed -e 's+libmodphp3-so.a+libmodphp3.a+' \
-e 's+mod_php3.so-o+mod_php3.o+' \
-e 's+-Wl,-rpath,/usr/local/lib/mysql+ +'> tmp_file;
mv tmp_file src/modules/php3/Makefile;
The -Wl problem is a result of correctly recognizing that gcc is installed, but calling ld instead for linking. ld doesn't recognize -Wl,rpath as an option.
Here are my configure lines:
pushd php-%{version_php};
CFLAGS='-O2 -I/usr/ssl/include' \
./configure --with-adabas=/usr/lib/adabas \
--with-mysql=yes --with-apache=`pwd`/.. ;
make ;
make install ;
popd ;
OPTIM="-O2" \
./configure --prefix=/usr/local/httpd --bindir=/usr/bin \
--sbindir=/usr/sbin --datadir=/usr/local/httpd --sysconfdir=/etc/httpd \
--mandir=/usr/man --logfiledir=/var/log --localstatedir=/var \
--libexecdir=/usr/lib/apache --enable-module=most --enable-module=auth_anon \
--enable-module=status --enable-module=info --enable-module=auth_db \
--enable-module=auth_dbm --enable-module=digest --enable-module=cern_meta \
--enable-module=expires --enable-module=headers --enable-module=include \
$MOD_SSL --activate-module=src/modules/perl/libperl.a \
--activate-module=src/modules/php3/libphp3.a \
--enable-shared=max \
--enable-suexec --suexec-caller=wwwrun --suexec-userdir=.www \
--suexec-uidmin=100 --suexec-gidmin=100 --suexec-safepath="/bin:/usr/bin"
-- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe <email protected> For help: php-dev-help <email protected>
- Next message: bobk <email protected>: "[PHP-DEV] Bug #1095: mail() default (sendmail -t) not honored"
- Previous message: bobk <email protected>: "[PHP-DEV] Bug #1093: mail() function ignored"
- Next in thread: Rasmus Lerdorf: "Re: [PHP-DEV] Bug #1094: DSO won't compile"
- Reply: Rasmus Lerdorf: "Re: [PHP-DEV] Bug #1094: DSO won't compile"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

