PHP 4.0 Bug #8265: Compile fails for oci8 with Oracle 8.0.4 - missing libs
| From: | php-bug at batky-howell dot com | Date: | Fri, 15 Dec 2000 01:29:58 +0000 |
| Subject: | PHP 4.0 Bug #8265: Compile fails for oci8 with Oracle 8.0.4 - missing libs | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-41423@lists.php.net to get a copy of this message | ||
From: php-bug@batky-howell.com
Operating system: UnixWare 7.1.1
PHP version: 4.0.3pl1
PHP Bug Type: Compile Failure
Bug description: Compile fails for oci8 with Oracle 8.0.4 - missing libs
Compiling php-4.0.3pl1 on UnixWare 7.1.1:
CFLAGS=-Kthread \
CC=cc \
./configure --with-apache=../apache_1.3.14 \
--with-mysql=/usr/local/mysql \
--with-oci8=/home2/app/oracle/product/8.0.4 \
--with-gdbm \
--with-db3 \
--enable-track-vars
All paths are correct, LD_LIBRARY_PATH is correct, etc. (-Kthread is necessary for linking, because
my db3 lib was
comiled with thread support.)
configure fails with "Something is likely to be messed up here..."
debug.log shows:
cc -o conftest -Kthread -L/usr/ucblib -L/usr/ucblib -L/usr/local/lib -L/usr/local/lib
-L/usr/local/mysql/lib/mysql -L/usr/local/mysql/lib/mysql
-L/home2/app/oracle/product/8.0.4/lib -L/home2/app/oracle/product/8.0.4/lib conftest.c -lclntsh
-lpsa -lcore4 -lnlsrtl3 -lm -lthread -lgen -lmw -lelf -lmw -ldl -lgen -lnsl -lsocket -lmysqlclient
-lttf -lpng -lz -lgd -ldb -lgdbm -lresolv -lresolv -lm -ldl -lcrypt -lsocket -lsocket 1>&5
UX:cc: WARNING: Use -Kthread instead of -lthread when linking with threads
library; using -lthread directly may cause incorrect execution behavior.
Undefined first referenced
symbol in file
skgfrwat /home2/app/oracle/product/8.0.4/lib/libclntsh.so
[...plus 30-odd other "skg..." symbols not found...]
(Don't worry about the -lthread warning, it's harmless here.)
A quick check with nm finds the desirable symbols in Oracle's libgeneric, which itself requires
symbols from Oracle's libmm. configure only links 4 Oracle libs (instead of the lumbering list
of Oracle libs I'm accustomed to seeing).
I modified the pertinent part of configure to add the two libs (requiring 188 new lines of code in
configure!), and configure succeeds. (I modified configure, rather than edit the .m4 files and run
buildconfig, because when I tried that the results differed in much more than the two Oracle libs).
Has this configuration for Oracle 8.0 compiled clean elsewhere?
Thanks for your input,
Rob Roselius
--
Edit Bug report at: http://bugs.php.net/?id=8265&edit=1