php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14323 compiling of apache and php fails with cannot open -lphpifx
Submitted: 2001-12-03 10:17 UTC Modified: 2001-12-04 09:41 UTC
From: uli at transcom dot de Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.6 OS: linux
Private report: No CVE-ID: None
 [2001-12-03 10:17 UTC] uli at transcom dot 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-03 10:24 UTC] 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-04 09:41 UTC] uli at transcom dot de
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
 [2003-11-24 20:45 UTC] caercara at yahoo dot com
compiling 
linux:/usr/src/packages/SOURCES/apache_1.3.26 # ./configure 
--prefix=/www --activate-module=src/modules/php4/libphp4.a 
 
one error  
 
Configuring for Apache, Version 1.3.26 
 + using installation path layout: Apache (config.layout) 
 + activated php4 module (modules/php4/libphp4.a) 
Creating Makefile 
Creating Configuration.apaci in src 
Creating Makefile in src 
 + configured for Linux platform 
 + setting C compiler to gcc 
 + setting C pre-processor to gcc -E 
 + checking for system header files 
 + adding selected modules 
    o php4_module uses ConfigStart/End 
 + using system Expat 
 + checking sizeof various data types 
 + doing sanity check on compiler and options 
** A test compilation with your Makefile configuration 
** failed.  The below error output from the compilation 
** test will give you an idea what is failing. Note that 
** Apache requires an ANSI C Compiler, such as gcc. 
 
======== Error Output for sanity check ======== 
cd ..; gcc  -DLINUX=22 -DNO_DL_NEEDED `./apaci`     -o 
helpers/dummy helpers/dummy.c   -Wl,-rpath,/home/informix/lib 
-Wl,-rpath,/home/informix/lib/esql 
-Wl,-rpath,/usr/src/packages/SOURCES/php-4.3.1/ext/informix  
-rdynamic -L/home/informix/lib -L/home/informix/lib/esql 
-L/usr/src/packages/SOURCES/php-4.3.1/ext/informix -Lmodules/php4 
-L../modules/php4 -L../../modules/php4 -lmodphp4    -rdynamic 
-L/home/informix/lib -L/home/informix/lib/esql 
-L/usr/src/packages/SOURCES/php-4.3.1/ext/informix   -lifsql -lifasf 
-lifgen -lifos -lifgls -ldl -lcrypt -lphpifx -lifglx -lcrypt -lresolv -lm -ldl -lnsl  
-lcrypt   -lm -lcrypt -lexpat 
/home/informix/lib/esql/libifos.so: the use of `mktemp' is dangerous, 
better use `mkstemp' 
/home/informix/lib/esql/libifsql.so: undefined reference to 
`ifx_checkAPI' 
collect2: ld returned 1 exit status 
make: *** [dummy] Error 1 
============= End of Error Report ============= 
 
 Aborting! 
 
help me plis
 [2003-11-24 20:46 UTC] caercara at yahoo dot com
compiling  
linux:/usr/src/packages/SOURCES/apache_1.3.26 # ./configure  
--prefix=/www --activate-module=src/modules/php4/libphp4.a  
  
one error   
  
Configuring for Apache, Version 1.3.26  
 + using installation path layout: Apache (config.layout)  
 + activated php4 module (modules/php4/libphp4.a)  
Creating Makefile  
Creating Configuration.apaci in src  
Creating Makefile in src  
 + configured for Linux platform  
 + setting C compiler to gcc  
 + setting C pre-processor to gcc -E  
 + checking for system header files  
 + adding selected modules  
    o php4_module uses ConfigStart/End  
 + using system Expat  
 + checking sizeof various data types  
 + doing sanity check on compiler and options  
** A test compilation with your Makefile configuration  
** failed.  The below error output from the compilation  
** test will give you an idea what is failing. Note that  
** Apache requires an ANSI C Compiler, such as gcc.  
  
======== Error Output for sanity check ========  
cd ..; gcc  -DLINUX=22 -DNO_DL_NEEDED `./apaci`     -o  
helpers/dummy helpers/dummy.c   -Wl,-rpath,/home/informix/lib  
-Wl,-rpath,/home/informix/lib/esql  
-Wl,-rpath,/usr/src/packages/SOURCES/php-4.3.1/ext/informix   
-rdynamic -L/home/informix/lib -L/home/informix/lib/esql  
-L/usr/src/packages/SOURCES/php-4.3.1/ext/informix -Lmodules/php4  
-L../modules/php4 -L../../modules/php4 -lmodphp4    -rdynamic  
-L/home/informix/lib -L/home/informix/lib/esql  
-L/usr/src/packages/SOURCES/php-4.3.1/ext/informix   -lifsql -lifasf  
-lifgen -lifos -lifgls -ldl -lcrypt -lphpifx -lifglx -lcrypt -lresolv -lm -ldl -lnsl   
-lcrypt   -lm -lcrypt -lexpat  
/home/informix/lib/esql/libifos.so: the use of `mktemp' is dangerous,  
better use `mkstemp'  
/home/informix/lib/esql/libifsql.so: undefined reference to  
`ifx_checkAPI'  
collect2: ld returned 1 exit status  
make: *** [dummy] Error 1  
============= End of Error Report =============  
  
 Aborting!  
  
help me please
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jul 29 03:01:27 2024 UTC