Bug #1159: Compile failure on link

From: Date: Thu, 18 Feb 1999 11:38:41 +0000
Subject: Bug #1159: Compile failure on link
Groups: php.dev 
Request: Send a blank email to php-dev+get-4141@lists.php.net to get a copy of this message
From: orj@ihug.co.nz Operating system: Linux 2.0.35 (Redhat 5.2), Apache 1.3.4 PHP version: 3.0.6 PHP Bug Type: Compile Failure Bug description: Compile failure on link LDFLAGS=-s \ ./configure --with-system-regex --with-apxs=/usr/sbin/apxs --prefix=/usr --with-gd \ --with-mysql=/usr --with-zlib --with-dbase --with-filepro --with-config-file-path=/etc/httpd/conf \ --disable-debug --enable-url-includes --enable-magic-quotes --enable-debugger --enable-bcmath \ --enable-track-vars --enable-sysvsem --enable-sysvshm make Fixed with this diff: ----8<--------8<--------8<--------8<---- --- configure.orig Fri Feb 19 00:31:51 1999 +++ configure Fri Feb 19 00:22:22 1999 @@ -3766,7 +3766,7 @@ withval=apxs fi APXS="$withval" - APXS_LDFLAGS="@DBASE_LIB@ @ORACLE_LFLAGS@ @ORACLE_LIBS@ @IODBC_LFLAGS@ @IODBC_LIBS@ @SYBASE_LFLAGS@ @SYBASE_LIBS@ @SYBASE_CT_LFLAGS@ @SYBASE_CT_LIBS@ @MYSQL_LFLAGS@ @MYSQL_LIBS@ @MSQL_LFLAGS@ @MSQL_LIBS@ @ADA_LFLAGS@ @ADA_LIBS@ @SOLID_LIBS@ @EMPRESS_LIBS@ @OPENLINK_LIBS@ @PGSQL_LFLAGS@ @PGSQL_LIBS@ @LDAP_LFLAGS@ @LDAP_LIBS@ @VELOCIS_LIBS@ @CODBC_LFLAGS@ @CODBC_LIBS@ @ZLIB_LIBS@ @PDFLIB_LIBS@ @FDFTK_LIBS@ @IFX_LFLAGS@ @IFX_LIBS@ @IBASE_LFLAGS@ @IBASE_LIBS@" + APXS_LDFLAGS="@MYSQL_LFLAGS@ @MYSQL_LIBS@ @DBASE_LIB@ @ORACLE_LFLAGS@ @ORACLE_LIBS@ @IODBC_LFLAGS@ @IODBC_LIBS@ @SYBASE_LFLAGS@ @SYBASE_LIBS@ @SYBASE_CT_LFLAGS@ @SYBASE_CT_LIBS@ @MSQL_LFLAGS@ @MSQL_LIBS@ @ADA_LFLAGS@ @ADA_LIBS@ @SOLID_LIBS@ @EMPRESS_LIBS@ @OPENLINK_LIBS@ @PGSQL_LFLAGS@ @PGSQL_LIBS@ @LDAP_LFLAGS@ @LDAP_LIBS@ @VELOCIS_LIBS@ @CODBC_LFLAGS@ @CODBC_LIBS@ @ZLIB_LIBS@ @PDFLIB_LIBS@ @FDFLIB_LIBS@ @IFX_LFLAGS@ @IFX_LIBS@ @IBASE_LFLAGS@ @IBASE_LIBS@" APACHE_INCLUDE="-I$APXS -q INCLUDEDIR" BINNAME=libphp3.so INSTALL_IT="\$(APXS) -i -a -n php3 $BINNAME" ----8<--------8<--------8<--------8<---- The offending line in the make file is this: APXS_LDFLAGS = dbase/libdbf.a '-Wl,-rpath /usr/lib/mysql' -L/usr/lib/mysql -lmysqlclient -lz @FDFTK_LIBS@ I'm compiling this against Apache 1.3.4 and apxs expects all -Wl options BEFORE the file to link against. And of course there is also a sed problem in the configure script because @FDFTK_LIBS@ hasn't been removed. That is because everywhere else in the configure script it is called @FDFLIB_LIBS@. Kinda stupid bug eh. Me thinks that you should move all of @*_LFAGS@ macros to the beginning of APXS_LDFLAGS. The patch above doesn't do this. It just solves the problem for MySQL. Later -- 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 (#4141) next »