From: achied at gmail dot com
Operating system: RHEL4U2
PHP version: 4CVS-2006-03-10 (snap)
PHP Bug Type: Informix related
Bug description: /opt/informix/lib/esql/libifos.so: undefined symbol:
ifx_checkAPI
Description:
------------
I compile with rpmbuild -bb php.spec
Version csdk: 2.90 UC3
Apache Version: Apache/2.0.52 (Red Hat)
Compilation from sources is ok, but when apache2 restart, the log shows:
PHP Warning: Unknown(): Unable to load dynamic library
'/usr/lib/php4/informix.so' - /opt/informix/lib/esql/libifos.so: undefined
symbol: ifx_checkAPI in Unknown on line 0
I try to compile only the informix module with:
phpize (in ext/informix)
./configure
make
compile ok
and copy informix.so to /usr/lib/php4
Restart apache and same problem
Reproduce code:
---------------
Part of spec file...
INFORMIXDIR=/opt/informix; export INFORMIXDIR
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 \
-lgen -lgls -lm -ldl $INFORMIXDIR/lib/esql/checkapi.o \
$INFORMIXDIR/lib/esql/libifglx.a"
export IFX_LIBDIR IFX_INCDIR IFX_LIBS
%configure \
--cache-file=../config.cache \
--with-config-file-path=%{_sysconfdir} \
--with-config-file-scan-dir=%{_sysconfdir}/php.d \
--enable-force-cgi-redirect \
--disable-debug \
--enable-pic \
--disable-rpath \
--enable-inline-optimization \
--with-bz2 \
--with-db4=%{_prefix} \
--with-curl \
--with-exec-dir=%{_bindir} \
--with-freetype-dir=%{_prefix} \
--with-png-dir=%{_prefix} \
--with-gd=shared \
--enable-gd-native-ttf \
--without-gdbm \
--with-gettext \
--with-ncurses=shared \
--with-gmp \
--with-iconv \
--with-jpeg-dir=%{_prefix} \
--with-openssl \
--with-png \
--with-pspell \
--with-xml \
--with-expat-dir=%{_prefix} \
--with-dom=shared,%{_prefix} \
--with-dom-xslt=%{_prefix}
--with-dom-exslt=%{_prefix} \
--with-xmlrpc=shared \
--with-zlib \
--with-zlib \
--with-layout=GNU \
--enable-bcmath \
--enable-exif \
--enable-ftp \
--enable-magic-quotes \
--enable-sockets \
--enable-sysvsem \
--enable-sysvshm \
--enable-track-vars \
--enable-trans-sid \
--enable-yp \
--enable-wddx \
--with-pear=/usr/share/pear \
--with-imap=shared --with-imap-ssl \
--with-kerberos } \
--with-ldap=shared \
--with-mysql=shared,%{_prefix} \
--with-oracle=shared,/home/orabd/aplicbd/orabin/product/9.2.0/ \
--with-informix=shared,/opt/informix \
--with-pgsql=shared \
--with-snmp=shared,%{_prefix} \
--with-snmp=shared \
--enable-ucd-snmp-hack \
--with-unixODBC=shared,%{_prefix} \
--enable-memory-limit \
--enable-shmop \
--enable-calendar \
--enable-dbx \
--enable-dio \
--enable-mbstring=shared --enable-mbstr-enc-trans \
--enable-mbregex \
--with-mime-magic=%{_datadir}/magic.mime } \
--with-pic \
$* || tail -300 config.log
make %{?_smp_mflags}
}
# Build standalone /usr/bin/php
pushd build-cgi
build --enable-force-cgi-redirect
popd
# Build Apache module
pushd build-apache
build --with-apxs2=%{_sbindir}/apxs }
popd
Actual result:
--------------
PHP Warning: Unknown(): Unable to load dynamic library
'/usr/lib/php4/informix.so' - /opt/informix/lib/esql/libifos.so: undefined
symbol: ifx_checkAPI in Unknown on line 0
--
Edit bug report at http://bugs.php.net/?id=36679&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=36679&r=trysnapshot44
Try a CVS snapshot (PHP 5.1):
http://bugs.php.net/fix.php?id=36679&r=trysnapshot51
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=36679&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=36679&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=36679&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=36679&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=36679&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=36679&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=36679&r=support
Expected behavior: http://bugs.php.net/fix.php?id=36679&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=36679&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=36679&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=36679&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36679&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=36679&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=36679&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=36679&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=36679&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=36679&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=36679&r=mysqlcfg