PHP 4.0 Bug #8265 Updated: Compile fails for oci8 with Oracle 8.0.4 - missing libs
| From: | sniper@php.net | Date: | Fri, 15 Dec 2000 15:53:32 +0000 |
| Subject: | PHP 4.0 Bug #8265 Updated: Compile fails for oci8 with Oracle 8.0.4 - missing libs | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-41491@lists.php.net to get a copy of this message | ||
ID: 8265
Updated by: sniper
Reported By: php-bug@batky-howell.com
Status: Open
Old-Bug Type: Compile Failure
Bug Type: OCI8 related
Assigned To:
Comments:
Previous Comments:
---------------------------------------------------------------------------
[2000-12-14 20:29:57] php-bug@batky-howell.com
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
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=8265