php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1094 DSO won't compile
Submitted: 1999-01-26 04:55 UTC Modified: 1999-02-07 13:00 UTC
From: rolf at suse dot de Assigned:
Status: Closed Package: Compile Failure
PHP Version: 3.0.6 OS: SuSE Linux 6.0
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: rolf at suse dot de
New email:
PHP Version: OS:

 

 [1999-01-26 04:55 UTC] rolf at suse dot de
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"


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-02-07 13:00 UTC] rasmus
Fixed in CVS and will be in version 3.0.7
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 12:01:33 2025 UTC