PHP 4.0 Bug #4165: Need "-R$ORACLE_HOME/lib" when linking libphp4.so ?
| From: | cgibbons at nyx dot net | Date: | Mon, 17 Apr 2000 22:26:44 +0000 |
| Subject: | PHP 4.0 Bug #4165: Need "-R$ORACLE_HOME/lib" when linking libphp4.so ? | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-17980@lists.php.net to get a copy of this message | ||
From: cgibbons@nyx.net
Operating system: Solaris 7
PHP version: 4.0 Release Candidate 1
PHP Bug Type: Oracle related
Bug description: Need "-R$ORACLE_HOME/lib" when linking libphp4.so ?
Here's the error:
$ sudo /etc/init.d/apachectl start
Syntax error on line 208 of /usr/local/etc/httpd/conf/httpd.conf:
Cannot load /usr/local/etc/httpd/libexec/libphp4.so into server: ld.so.1:
/usr/local/etc/httpd/bin/httpd: fatal: libclntsh.so.1.0: open failed: No such file or directory
/etc/init.d/apachectl start: httpd could not be started
Line 208 of httpd.conf is:
LoadModule php4_module libexec/libphp4.so
The libclntsh.so.1.0 file is in $ORACLE_HOME/lib. This leads me to believe that $ORACLE_HOME/lib
need's to be added to libphp4.so's library search path at link time, using the
linker's "-R" flag -- perhaps a makefile or a configure script needs tweaking?
For a temporary fix, I've added code to /etc/init.d/apachectl to set up an LD_LIBRARY_PATH with
$ORACLE_HOME/lib before the server is started, but of course messing with LD_LIBRARY_PATH is never
the ideal solution...