I have a problem building php with oci8. My environment:
AIX 4.3 / PHP 4.1.2 / Oracle 8.1.6
Using standard AIX cc compiler
Building cgi version of php
Configure:
./configure \
--enable-force-cgi-redirect \
--enable-discard-path \
--with-config-file-path=/usr/local/rlib \
--with-gd=/home/ccaamrg/build/gd-1.8.4 \
--with-png-dir=/home/ccaamrg/build/libpng \
--with-jpeg-dir=/home/ccaamrg/build/jpeg-6b \
--with-zlib-dir=/home/ccaamrg/build/zlib-1.1.4 \
--with-mysql=/home/ccaamrg/build/mysql \
--with-oci8=/nfs/ars-a/oracle/product/8.1.6
This works OK, and detects the correct oracle version:
...
checking for Oracle-OCI8 support... yes
checking Oracle Install-Dir... /nfs/ars-a/oracle/product/8.1.6
checking Oracle version... 8.1
...
but when I do the make, it bombs with:
/bin/sh /nfs/s2.c1/mysql0/ccaamrg/php-4.1.2/libtool --silent --mode=link cc -I.
-I/nfs/s2.c1/mysql0/ccaamrg/php-4.1.2/ -I/nfs/s2.c1/mysql0/ccaamrg/php-4.1.2/main
-I/nfs/s2.c1/mysql0/ccaamrg/php-4.1.2 -I/nfs/s2.c1/mysql0/ccaamrg/php-4.1.2/Zend
-I/home/ccaamrg/build/gd-1.8.4/ -I/home/ccaamrg/build/mysql/include
-I/nfs/ars-a/oracle/product/8.1.6/rdbms/public
-I/nfs/ars-a/oracle/product/8.1.6/rdbms/demo
-I/nfs/ars-a/oracle/product/8.1.6/network/public
-I/nfs/s2.c1/mysql0/ccaamrg/php-4.1.2/ext/xml/expat
-I/nfs/s2.c1/mysql0/ccaamrg/php-4.1.2/TSRM -g -o php -export-dynamic stub.lo
libphp4.la
ld: 0711-317 ERROR: Undefined symbol: .alloca
ld: 0711-317 ERROR: Undefined symbol: .OCIDescriptorAlloc
ld: 0711-317 ERROR: Undefined symbol: .OCIEnvInit
ld: 0711-317 ERROR: Undefined symbol: .OCIHandleAlloc
ld: 0711-317 ERROR: Undefined symbol: .OCICollTrim
ld: 0711-317 ERROR: Undefined symbol: .OCICollMax
ld: 0711-317 ERROR: Undefined symbol: .OCICollSize
ld: 0711-317 ERROR: Undefined symbol: .OCICollAssign
ld: 0711-317 ERROR: Undefined symbol: .OCIDateFromText
ld: 0711-317 ERROR: Undefined symbol: .OCICollAssignElem
ld: 0711-317 ERROR: Undefined symbol: .OCIStringAssignText
...
All these symbols are exported by libclntsh.a , the oracle supplied
shared library which is present in the configured oracle tree.
Now, I'm OK with make, but libtool is a bit of a mystery to me. I would
be very grateful if anyone out there can give me some hints to make this
work. Please copy your replies to my email.
--
Mike Gahan
Education and Information Support Division
University College London
http://www.ucl.ac.uk/~ccaamrg/
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php