php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31794 Unable to build Oracle oci8.so module
Submitted: 2005-02-01 16:55 UTC Modified: 2005-03-29 15:50 UTC
From: mp at ecetra dot com Assigned:
Status: Not a bug Package: *Compile Issues
PHP Version: 4CVS-2005-02-01 (stable) OS: Linux RH EL ES 3
Private report: No CVE-ID: None
 [2005-02-01 16:55 UTC] mp at ecetra dot com
Description:
------------
I downloaded the snap (php4-STABLE-200502011530.tar.bz2) and tried to build a RPM as i did it before with 4.3.10. The SPEC file was not changed (only source tarball filename). The problem is that oci8.so file is not created by 'make install'. Here is my configure string:

./configure \
	--prefix=%{_installprefix} \
	--sysconfdir=/etc/httpd/conf \
	--with-apxs2filter \
	--with-config-file-path=%{_sysconfdir}/httpd/conf \
	--with-config-file-scan-dir=%{_sysconfdir}/httpd/conf/php.d \
	--disable-debug \
	--with-curl=shared \
	--with-mysql=shared \
	--without-pgsql \
	--without-oracle \
	--with-oci8=shared,/opt/oracle/product/9.2.0 \
	--with-openssl=/usr \
	--with-mcrypt=shared,/usr \
	--with-mhash=shared,/usr \
	--with-snmp=shared,/usr \
	--with-mm=shared \
	--with-ldap=shared \
	--with-bz2 \
	--enable-inline-optimization \
	--with-gettext \
	--with-png \
	--with-gd \
	--with-freetype-dir \
	--with-png-dir \
	--enable-track-vars \
	--enable-wddx \
	--with-ttf \
	--enable-gd-native-ttf \
	--enable-magic-quotes \
	--enable-safe-mode \
	--enable-sockets \
	--enable-sysvsem \
	--enable-sysvshm \
	--with-xml \
	--with-sablot=/usr/lib \
	--with-expat=/usr/lib \
	--with-pear=%{_datadir}/pear \
	--with-ncurses \
	--with-regex=system \
	--with-jpeg-dir=/usr \
	--enable-memory-limit \
	--disable-rpath	\
	--without-dba \
	--without-imap \
	--with-kerberos=/usr/kerberos \
	--with-db4 \
	--enable-pic \
	--with-gmp \
	--with-iconv \
	--enable-bcmath \
	--enable-exif \
	--enable-discard-path \
	--enable-trans-sid \
	--enable-versioning \
	--enable-dbx \
	--enable-dio \
	--enable-mcal \
	--enable-calendar \
	--enable-shmop \
	--with-zlib \
	--with-dom \
	--with-pcre-regex



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-01 18:27 UTC] tony2001@php.net
Not enough information.
Try to build from plain sources without using any external tools like rpmbuild etc.
 [2005-02-02 09:53 UTC] mp at ecetra dot com
Tried to do it manually - same result, no oci8.so is created by make install. There are not errors during compilation process, but one thing has changed since 4.3.10 (final): LD_LIBRARY_PATH (=/opt/oracle/product/9.2.0/lib) must be set now, otherwise i get this during make install:

root@losinj:/home/mp/BUILD/php4# make install
Installing PHP SAPI module:       apache2filter
/usr/lib/httpd/build/instdso.sh SH_LIBTOOL='/usr/lib/httpd/build/libtool' libphp4.la /usr/lib/httpd/modules
/usr/lib/httpd/build/libtool --mode=install cp libphp4.la /usr/lib/httpd/modules/
cp .libs/libphp4.so /usr/lib/httpd/modules/libphp4.so
cp .libs/libphp4.lai /usr/lib/httpd/modules/libphp4.la
libtool: install: warning: remember to run `libtool --finish /home/mp/rpmbuild/BUILD/php-4.3.10snap/libs'
chmod 755 /usr/lib/httpd/modules/libphp4.so
[activating module `php4' in /etc/httpd/conf/httpd.conf]
Installing PHP CLI binary:        /opt/phptest/bin/
Installing PHP CLI man page:      /opt/phptest/man/man1/
Installing shared extensions:     /opt/phptest/lib/php/extensions/no-debug-non-zts-20020429/
Installing PEAR environment:      /opt/phptest/pear/
/home/mp/BUILD/php4/sapi/cli/php: error while loading shared libraries: libclntsh.so.9.0: cannot open shared object file: No such file or directory
make[1]: *** [install-pear-installer] Error 127
make: *** [install-pear] Error 2

Apache version is 2.0.50
System: Red Hat Enterprise Linux ES release 3 (Taroon Update 1)

Kr,
-michael
 [2005-02-02 10:25 UTC] tony2001@php.net
>Tried to do it manually - same result, no oci8.so is 
>created by make install. 
created where? and why make install should create it?
it should appear in modules/ after `make`.

>error while loading shared libraries:
>libclntsh.so.9.0: cannot open shared object file: No such >file or directory
as far as I can see you're having some problems with OCI libraries.
fix them and try again.
 [2005-02-02 10:41 UTC] mp at ecetra dot com
Ok, it is not there:

root@losinj:/home/mp/BUILD/php4/modules# ls
curl.so  ldap.so  mcrypt.so  mhash.so  mysql.so  snmp.so

> as far as I can see you're having some problems with OCI libraries.
> fix them and try again.

why do think so? i can compile 4.3.10 without ANY problems on the same system, at the same time, without setting any environment variables as is told i my previous comment. 

Kr,
-michael
 [2005-02-02 17:12 UTC] sniper@php.net
Nothing has changed in PHP regarding this. You actually should have the path to the oracle libraries in /etc/ld.so.conf (add it there and then run ldconfig).

Not PHP bug -> Bogus.

 [2005-02-03 10:57 UTC] mp at ecetra dot com
so i have no choice than wait till someone else has the same problem.

just for your information:
- adding oracle libs path to ld.so.conf is completely senseless and do not change anything cause LD_LIBRARY_PATH and ORACLE_HOME are set by me first during compilation process and then in the apache startup environment
- i compiled oci8 support into 4CVS version without problem using Oracle Instant Client (using according parameter)

so if someone (not from PHP) is able to compile oci8 support into 4CVS version with --with-oci8 option, please tell. 

Thank you all for your help!

Kr,
-michael
 [2005-03-29 15:50 UTC] mp at ecetra dot com
hello,

i am not sure if you are interested in this information, but i was able to compile newest snpashot on the same system without changing anything. 

whatever you did or not, thanks you!
-michael
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 00:01:41 2024 UTC