php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36679 /opt/informix/lib/esql/libifos.so: undefined symbol: ifx_checkAPI
Submitted: 2006-03-10 13:19 UTC Modified: 2006-03-13 13:06 UTC
From: achied at gmail dot com Assigned:
Status: Closed Package: Informix related
PHP Version: 4CVS-2006-03-10 (snap) OS: RHEL4U2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: achied at gmail dot com
New email:
PHP Version: OS:

 

 [2006-03-10 13:19 UTC] achied at gmail dot com
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-13 13:06 UTC] achied at gmail dot com
I solved by comment following line in my spec file:

#libtoolize --force --copy
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 01:01:28 2024 UTC