Bug #1094: DSO won't compile

From: Date: Tue, 26 Jan 1999 09:55:27 +0000
Subject: Bug #1094: DSO won't compile
Groups: php.dev 
Request: Send a blank email to php-dev+get-3722@lists.php.net to get a copy of this message
From: rolf@suse.de 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@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#3722) next »