Bug #14323 Updated: compiling of apache and php fails with cannot open -lphpifx
| From: | uli at transcom dot de | Date: | Tue, 04 Dec 2001 14:41:44 +0000 |
| Subject: | Bug #14323 Updated: compiling of apache and php fails with cannot open -lphpifx | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-72451@lists.php.net to get a copy of this message | ||
ID: 14323
User updated by: uli@transcom.de
Reported By: uli@transcom.de
Status: Closed
Bug Type: Compile Failure
Operating System: linux
PHP Version: 4.0.6
New Comment:
with 4.1RC5 i get the error message
/opt/informix/lib/esql/libifsql.so: undefined reference to `ifx_checkAPI
After searching in the bug database i have found
something similar under bug id 3386. Seems that
esql is not called correctly for linking Apache.
With the following script (of course you may have
to adjust your pathes and configure options) i
have then compiled apache 1.3.22 and php 4.1RC5
successfully. Important is, that you set the
enviroment variable CC to esql.
#!/bin/sh
IFX_LIBDIR="-L$INFORMIXDIR/lib -L$INFORMIXDIR/lib/esql"
IFX_INCDIR="$INFORMIXDIR/incl/esql"
IFX_LIBS="$INFORMIXDIR/lib/esql/libifsql.a \
$INFORMIXDIR/lib/libifasf.a \
$INFORMIXDIR/lib/esql/libifgen.a \
$INFORMIXDIR/lib/esql/libifos.a \
$INFORMIXDIR/lib/esql/libifgls.a \
$INFORMIXDIR/lib/esql/libifsql.a \
-lgen -lgls -lm -ldl $INFORMIXDIR/lib/esql/checkapi.o \
$INFORMIXDIR/lib/esql/libifglx.a"
export IFX_LIBDIR IFX_INCDIR IFX_LIBS
CC="esql" \
CFLAGS="-O2 -mpentium " \
./configure \
"--with-layout=Apache" \
"--activate-module=src/modules/php4/libphp4.a" \
"--enable-module=rewrite" \
"--enable-module=info" \
"--disable-module=imap" \
"--enable-module=expires" \
"--enable-module=log_agent" \
"--enable-module=so" \
"--prefix=/var/apache" \
"$@"
Uli
Previous Comments:
------------------------------------------------------------------------
[2001-12-03 10:24:07] mfischer@php.net
This is supposed to be fixed in the upcoming release.
In the meantime you can try latest RC:
http://www.php.net/~zeev/php-4.1.0RC5.tar.gz
Closed.
------------------------------------------------------------------------
[2001-12-03 10:17:04] uli@transcom.de
Compiling apache 1.3.22 and php with informix support
fails with
/usr/i486-linux/bin/ld: cannot open -lphpifx: No such file or directory
First i have configured and compiled php with
--with-apache=/usr/src/apache_1.3.22" --enable-track-vars \
--with-informix=/opt/informix --enable-magic-quotes \
--without-mysql
This and the final "make install" runs fine.
Then i have tried to configure apache with
"--with-layout=Apache" \ "--activate-module=src/modules/php4/libphp4.a" \
"--enable-module=rewrite" \
"--enable-module=info" \
"--disable-module=imap" \
"--enable-module=expires" \
"--enable-module=log_agent" \
"--enable-module=so" \
"--prefix=/var/apache" \
The configure script gives me then the error
Configuring for Apache, Version 1.3.22
+ using installation path layout: Apache (config.layout)
+ activated php4 module (modules/php4/libphp4.a)
Creating Makefile
Creating Configuration.apaci in src
cd ..; gcc -DLINUX=22 -I/usr/src/php-4.0.6 -I/usr/src/php-4.0.6/main -I/usr/src/php-4.0.6/main
-I/usr/src/php-4.0.6/Zend -I/usr/src/php-4.0.6/Zend -I/usr/src/php-4.0.6/TSRM
-I/usr/src/php-4.0.6/TSRM -I/usr/src/php-4.0.6 -DUSE_EXPAT -I./lib/expat-lite -O2 -mpentium
./apaci -o helpers/dummy helpers/dummy.c -Wl,-rpath,/opt/informix/lib
-Wl,-rpath,/opt/informix/lib/esql -Wl,-rpath,/usr/src/php-4.0.6/ext/informix -rdynamic
-L/opt/informix/lib -L/opt/informix/lib/esql -L/usr/src/php-4.0.6/ext/informix -Lmodules/php4
-L../modules/php4 -L../../modules/php4 -lmodphp4 -lpam -lifsql -lifasf -lifgen -lifos -lifgls -lc
-ldl -lcrypt -lphpifx -lifglx -ldl -lcrypt -lresolv -lm -ldl -lnsl -lresolv -lm -lcrypt -ldbm
-ldl
/usr/i486-linux/bin/ld: cannot open -lphpifx: No such file or directory
collect2: ld returned 1 exit status
make: *** [dummy] Error 1
I have then searched the whole system about a libphpifx
but nothing found. If i remove the entrie -lphpifx from
libphp4.module i get an other error message saying
/opt/informix/lib/esql/libifsql.so: undefined reference to `ifx_checkAPI
I had no problems compiling apache 1.3.20 with informix
support.
I am using the Informix csdk 2.40UC1.
Uli
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=14323&edit=1