php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17757 Php compile generate error:/usr/bin/ld:cannot find -lclntsh
Submitted: 2002-06-14 02:02 UTC Modified: 2002-06-19 21:13 UTC
From: Palvin at 163 dot com Assigned:
Status: Not a bug Package: OCI8 related
PHP Version: 4.2.1 OS: RedHat 7.3+Oracle 8i/9i
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: Palvin at 163 dot com
New email:
PHP Version: OS:

 

 [2002-06-14 02:02 UTC] Palvin at 163 dot com
I've install RedHat 7.3+Oracle 8i/9i and want install php4.2.1, I set --with-oci8=$ORACLE_HOME and do ./config without any error, but when I run make command, it generate a error and stop compile.
Error info is below:
/usr/bin/ld:cannot find -lclntsh
collect2:ld returned 1 exit status
make[1]:*** [libphp4.la] Error 1
make[1]:leaving directory '/opt/php-4.2.1'
make:*** [all-recursive] Error1.

But when I strip the parameter --with-oci8, all step is normal and install is OK.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-15 20:28 UTC] sniper@php.net
Could you please try the latest CVS snapshot:

http://snaps.php.net/php4-latest.tar.gz

I think this is already fixed. Configure is just detecting
wrong version.

 [2002-06-18 01:58 UTC] Palvin at 163 dot com
I'm sorry to tell you that the problem is exist still. When I download the file which your refer to, the report became:
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
make: *** [libphp4.la] Error1.

When I get rid of parameter --with-mysql=shared,/usr 
then the report was below:
/usr/bin/ld: cannot find -lclntsh
collect2: ld returned 1 exit status
make: *** [libphp4.la] Error 1

I think the error should be cause of glibc library, because I use RedHat 7.1 have none of any error.
 [2002-06-18 02:24 UTC] sniper@php.net
Do you happen to have the paths to both to the oracle libraries and mysql libraries specified in /etc/ld.so.conf ?? e.g. I have /home/ora_user/OraHome1/lib in there..

If not, add them and run /sbin/ldconfig

If this helps, close this report, otherwise, you need
to tell us your whole configure line used to configure PHP
and also add the couple of lines BEFORE that error you get.

btw. if ORACLE_HOME is set correctly, you don't have to
put any path for --with-oci8

--Jani


 [2002-06-18 20:18 UTC] Palvin at 163 dot com
./configure i386-redhat-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --prefix=/usr --with-config-file-path=/etc --enable-force-cgi-redirect --disable-debug --enable-dbg=shared --with-dbg-profiler --enable-pic --disable-rpath --enable-inline-optimization --with-bz2 --with-db3 --with-curl --with-dom=/usr --with-exec-dir=/usr/bin --with-freetype-dir=/usr --with-png-dir=/usr --with-gd --enable-gd-native-ttf --with-ttf --with-gdbm --with-gettext --with-ncurses --with-gmp --with-iconv --with-jpeg-dir=/usr --with-mm --with-openssl --with-png --with-pspell --with-regex=system --with-xml --with-expat-dir=/usr --with-zlib --with-layout=GNU --enable-bcmath --enable-debugger --enable-exif --enable-ftp --enable-magic-quotes --enable-safe-mode --enable-sockets --enable-sysvsem --enable-sysvshm --enable-discard-path --enable-track-vars --enable-trans-sid --enable-yp --enable-wddx --with-imap=shared --with-imap-ssl --with-kerberos=/usr/kerberos --with-ldap=shared --with-mysql=shared,/usr --with-pgsql=shared --with-snmp=shared,/usr --with-snmp=shared --enable-ucd-snmp-hack --with-unixODBC=shared --enable-memory-limit --enable-bcmath --enable-shmop --enable-versioning --enable-calendar --enable-dbx --enable-dio --enable-mcal --enable-mbstring --enable-mbstr-enc-trans --with-apxs=/usr/sbin/apxs --with-oci8=/u01/app/oracle/product/9.0.1  --with-oracle=/u01/app/oracle/product/9.0.1

Hi, this is my configure, except the last two parameters, all others parameter was copy from result of phpinfo(), my database home is /u01/app/oracle/product/9.0.1 and my os is RedHat 7.3. When I make it, the error is show:
/usr/bin/ld: cannot find -lclntsh
collect2: ld returned 1 exit status
make: *** [libphp4.la] Error 1
 [2002-06-18 21:23 UTC] sniper@php.net
Try dropping that last option out (--with-oracle) as the oci8 is the one you should be using anyway..

 [2002-06-19 19:56 UTC] Palvin at 163 dot com
Sorry, I've tried many times and can't successfulness! I hope next version will resolve the problem.
 [2002-06-19 20:20 UTC] sniper@php.net
You never answered whether or not you have the path
to the oracle libraries in your /etc/ld.so.conf

Check that and add the path if it's missing. 
It should be $ORACLE_HOME/lib

Then untar fresh sources from the snapshot tar.gz,
and try with this configure line:

./configure --with-oci8

(if your $ORACLE_HOME environment variable is set correctly,
you don't need to pass it in the configure)

I build PHP with oracle support all the time (on RH 6.2) without any problems, so I don't think this is any bug.

--Jani

 [2002-06-19 20:38 UTC] Palvin at 163 dot com
Thank you for your help, I build PHP with oracle support all the time (on RH 7.1) without any problems too, but on RH 7.3 it can't successfullness, let's wait next version.
 [2002-06-19 21:13 UTC] sniper@php.net
Obviously some problem with RH 7.3 then. Try contacting the RH support? This really isn't bug in PHP so I'm closing this now.

 [2004-08-10 11:56 UTC] tomanojchawla at yahoo dot com
i m using redhat pclinux 2.4.21-4.EL

Error info is below:
/usr/bin/ld:cannot find -lclntsh

How can we install this file
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 07 12:01:32 2024 UTC