note 24090 deleted from ref.oci8 by tony2001

From: Date: Mon, 01 Aug 2005 21:46:56 +0000
Subject: note 24090 deleted from ref.oci8 by tony2001
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-92899@lists.php.net to get a copy of this message
Note Submitter: jirnbergATfh-sbgDOTacDOTat ---- I installed Oracle 8.1.7 client, mod_php (4.2.2, as DSO) on a RedHat 7.1 (Seawolf) and among others encountered the "cannot find -lclntsh" problem during making. But the already suggested "shared,{$ORACLE_HOME}" solution didnt work for me. I finally found a solution: Usually, the linker (ld) complains, that it can't find the clntsh .so / .a files, but they were present (check in the lib dir of $ORACLE_HOME if present, if not execute ../bin/relink as user Oracle and check what the error message says). As I backtraced the incident, I found in the configure.log file the following lines: configure: 2842 gcc -o conftest -g -O2 conftest.c -R /usr/lib 1>&5 gcc: unrecognized option '-R' /usr/lib: file not recognized: Is a directory collect2: ld returned 1 exit status It turned out, that in the ./configure script it is checked, wether the compiler supports the -R option. However, after I commented the lines responsible for this check and told the script, that my compiler wont support "-R" and as well doesnt need to check, after a make clean and ./configure it actually could be compiled. You can find the lines I commented by searching for the regexp check.*-R. Comment from there till the next "else" and a "fi" a few lines below. Good Luck! Josef Irnberger

« previous php.notes (#92899) next »