I'm trying to get PHP 4.2.2 built with Informix support, using
a source RPM (SRPM) under Red Hat Linux 8.0.

I have installed the database (SE; 7.25) along with the Client SDK (2.81).

I have unpacked the source RPM and have added the option to the
php.spec file to specify --with-informix.

When I do the "rpmbuild -bb php.spec" command, I get the following
command and error at the end of the output:
/bin/sh /usr/src/redhat/BUILD/php-4.2.2/build-cgi/libtool --silent
--mode=link
gcc -I. -I/usr/src/redhat/BUILD/php-4.2.2/
-I/usr/src/redhat/BUILD/php-4.2.2/build-cgi/main
-I/usr/src/redhat/BUILD/php-4.2.2
-I/usr/src/redhat/BUILD/php-4.2.2/build-cgi/Zend -I/usr/include/libxml2
-I/usr/include/freetype2/freetype
-I/usr/include/imap -I/opt/informix/incl/esql -I/usr/include/mysql
-I/usr/local/include -I/usr/include/pspell -I/usr/include/ucd-snmp
-I/usr/src/redhat/BUILD/php-4.2.2/main -I/usr/src/redhat/BUILD/php-4.2.2/Zend
-I/usr/src/redhat/BUILD/php-4.2.2/TSRM  -DUCD_COMPATIBLE
-I/usr/src/redhat/BUILD/php-4.2.2/build-cgi/TSRM -O2
-march=i386 -mcpu=i686 -fPIC  -L/usr/kerberos/lib -o php -export-dynamic
stub.lo libphp4.la
/usr/bin/ld: cannot find -lifsql
collect2: ld returned 1 exit status
make[1]: *** [php] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/php-4.2.2/build-cgi'
make: *** [all-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.43938 (%build)


I have defined both INFORMIXDIR and LD_LIBRARY_PATH:
[SPECS]# env | grep INFORMIXDIR
INFORMIXDIR=/opt/informix
[SPECS]# env | grep LD_LIBR
LD_LIBRARY_PATH=/opt/informix/lib:/opt/informix/lib/esql

I have added the /opt/informix/lib and /opt/informix/lib/esql directories
to /etc/ld.so.conf and run ldconfig:
[SPECS]# cat /etc/ld.so.conf
/usr/kerberos/lib
/usr/X11R6/lib
/usr/lib/qt-3.0.5/lib
/usr/lib/mysql
/usr/lib/sane
/opt/informix/lib
/opt/informix/lib/esql

[SPECS]# ldconfig -p | grep informix
        libtxa.so (libc6) => /opt/informix/lib/esql/libtxa.so
        libtsql.so (libc6) => /opt/informix/lib/esql/libtsql.so
        libtos.so (libc6) => /opt/informix/lib/esql/libtos.so
        libthxa.so (libc6) => /opt/informix/lib/esql/libthxa.so
        libthsql.so (libc6) => /opt/informix/lib/esql/libthsql.so
        libthos.so (libc6) => /opt/informix/lib/esql/libthos.so
        libthgen.so (libc6) => /opt/informix/lib/esql/libthgen.so
        libthasf.so (libc6) => /opt/informix/lib/libthasf.so
        libtgen.so (libc6) => /opt/informix/lib/esql/libtgen.so
        libtasf.so (libc6) => /opt/informix/lib/libtasf.so
        libnetstub.so (libc6) => /opt/informix/lib/libnetstub.so
        libixxa.so (libc6) => /opt/informix/lib/esql/libixxa.so
        libixsql.so (libc6) => /opt/informix/lib/esql/libixsql.so
        libixos.so (libc6) => /opt/informix/lib/esql/libixos.so
        libixglx.so (ELF) => /opt/informix/lib/esql/libixglx.so
        libixgls.so (ELF) => /opt/informix/lib/esql/libixgls.so
        libixgen.so (libc6) => /opt/informix/lib/esql/libixgen.so
        libixfgisql.so (libc6) => /opt/informix/lib/esql/libixfgisql.so
        libixasf.so (libc6) => /opt/informix/lib/libixasf.so
        libifxa.so (libc6) => /opt/informix/lib/esql/libifxa.so
        libifsql.so (libc6) => /opt/informix/lib/esql/libifsql.so
        libifos.so (libc6) => /opt/informix/lib/esql/libifos.so
        libifglx.so (ELF) => /opt/informix/lib/esql/libifglx.so
        libifgls.so (ELF) => /opt/informix/lib/esql/libifgls.so
        libifgen.so (libc6) => /opt/informix/lib/esql/libifgen.so
        libiffgisql.so (libc6) => /opt/informix/lib/esql/libiffgisql.so
        libifcss.so (libc6) => /opt/informix/lib/libifcss.so
        libifasf.so (libc6) => /opt/informix/lib/libifasf.so


I'm stumped. Can anyone offer any solutions? Many thanks in advance.

Daryl Biberdorf
[EMAIL PROTECTED]

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to