[php-maint] Bug#329548: php4: ext/informix fails to link $INFORMIXDIR/lib/esql/checkapi.o

Klaus Muth muth at hagos.de
Thu Sep 22 06:20:54 UTC 2005


Package: php4
Version: 4:4.3.10-16
Severity: normal



-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.12-ibm1
Locale: LANG=de_DE at euro, LC_CTYPE=de_DE at euro (charmap=ISO-8859-15)

Versions of packages php4 depends on:
ii  libapache-mod-php4           4:4.3.10-16 server-side, HTML-embedded scripti
ii  php4-common                  4:4.3.10-16 Common files for packages built fr

-- no debconf information

I did:
> apt-get source php4
> cd php4-4.3.10/etc/informix/
> export INFORMIXDIR=/opt/informix
> phpize
[...]
> ./configure
[...]
> make
/bin/sh /root/dev/php4-4.3.10/ext/informix/libtool --mode=link 
gcc /opt/informix/lib/esql/checkapi.o -o libphpifx.a
mkdir .libs
ar cru libphpifx.a 
ranlib libphpifx.a
[...]
> cp module/informix.so /usr/lib/php4/2*/

The resulting module/informix.so segfaults the apache with 
/usr/sbin/apache: relocation error: /opt/informix/lib/esql/libifsql.so:\ 
undefined symbol: ifx_checkAPI

The problem seems to be, that libtool discards the checkapi.o parameter
for the ar call, so that an empty libphpifx.a is created. After calling

  ar cru libphpifx.a /opt/informix/lib/esql/checkapi.o

by hand and re-making, the informix.so module works fine for me. (Don't
ask me, how long it took for me to find out...)




More information about the pkg-php-maint mailing list