php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8265 Compile fails for oci8 with Oracle 8.0.4 - missing libs
Submitted: 2000-12-14 20:29 UTC Modified: 2001-04-10 09:37 UTC
From: php-bug at batky-howell dot com Assigned:
Status: Closed Package: OCI8 related
PHP Version: 4.0.3pl1 OS: UnixWare 7.1.1
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: php-bug at batky-howell dot com
New email:
PHP Version: OS:

 

 [2000-12-14 20:29 UTC] php-bug at batky-howell dot 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-18 06:30 UTC] thies@php.net
could you give me a login onto that box?


 [2001-04-10 09:37 UTC] sniper@php.net
No feedback. If this happens with soon to be released PHP 4.0.5 too, reopen this bug report.

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC