PHP 4.0 Bug #4165 Updated: Need "-R$ORACLE_HOME/lib" when linking libphp4.so ?
| From: | Bug Database | Date: | Mon, 17 Apr 2000 22:58:56 +0000 |
| Subject: | PHP 4.0 Bug #4165 Updated: Need "-R$ORACLE_HOME/lib" when linking libphp4.so ? | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-17981@lists.php.net to get a copy of this message | ||
ID: 4165
User Update by: cgibbons@nyx.net
Status: Open
Bug Type: Oracle related
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 needs 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...
Oh yeah, I forgot, here was the configure line, as reported by phpinfo():
Configure command:
'./configure'
'--prefix=/usr/local/php'
'--with-config-file-path=/usr/local/etc/httpd/conf'
'--with-apxs=/usr/local/etc/httpd/bin/apxs'
'--with-oracle=/u01/app/oracle/product/8.0.4'
(Since the user that executed ./configure doesn't have the
ORACLE_HOME environment variable set, it had to be explicity
specified in the --with-oracle option. Perhaps this linker problem
goes away if the "--with-oracle" pathname is taken from the
environment instead of from the ./configure command line?
I don't know...)
Full Bug description available at: http://bugs.php.net/version4/?id=4165