Re: Bug #2842: Can't build PHP withe Oracle

From: Date: Sat, 27 Nov 1999 08:35:28 +0000
Subject: Re: Bug #2842: Can't build PHP withe Oracle
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-13165@lists.php.net to get a copy of this message
found this on technet: -------------------------------- Re: OCI 7 calls don't work with 8i From: Michael Hasenstein (guest) Email: mha@suse.de Date: Fri Oct 29 13:12 CDT 1999 Helmut Swaczinna (guest) wrote: : When I compile and run the OCI demo progs which uses the Oracle 7 : OCI calls under Oracle 8.1.5, the progs crash with segmentation : fault. With Oracle 8.0.5 they work fine. When I compile the : demo progs under 8.0.5 und run them under 8.1.5 they crash too. : Any hints? I have to port an application which uses OCI 7 calls : to Oracle 8.1.5, because Oracle 8.0.5 don't work under glibc2.1. See my patch for 8i at http://www.suse.de/~mha/oracle/ We patched the assembler code in libclient.a, which is wrong. After recreating libclntsh.so everything works fine. I think I posted the patch script here some time ago... MH, currently at Oracle, in Redwood City, CA -------------------------------- i hav not installed 8i yet - please check i this works. tc On 27 Nov 1999 mlemos@acm.org wrote: > From: mlemos@acm.org > Operating system: Linux 2.2.5-23cl > PHP version: 3.0 Latest CVS (27/11/1999) > PHP Bug Type: Oracle related > Bug description: Can't build PHP withe Oracle > > I am trying to build either PHP 3 and PHP 4 as standalone executable with > Oracle 8.1.5 Enterprise but I always get link errors. Despite it outputs > warnings, it links successfully. But then it crashes with a segmentation > fault when I run the PHP program. > > I even have added $ORACLE_HOME/lib to /etc/ld.so.conf and run ldconfig and > even set LD_LIBRARY_PATH to the same path. > > Configure command link: > > CFLAGS="-I/usr/local/include" LDFLAGS= CUSTOM_ODBC_LIBS="-L/usr/local/lib > -lodbc" ./configure --enable-sysvsem --enable-sysvshm --with-xml=/usr/local --with-gd > --with-mysql=/usr --with-zlib=/usr --enable-debug=yes --enable-bcmath=yes > --with-msql=/usr/local/Hughes --with-oracle=/home/oracle/u01 --with-pgsql=/usr --with-zlib-dir=/usr > --with-imap --with-custom-odbc=/usr/local > > Link errors from PHP 4 (similar to what I get from PHP 3): > > /bin/sh ./libtool --mode=link gcc -I/usr/local/include -g -Wall -o php -export-dynamic stub.o > libphp4.la > gcc -I/usr/local/include -g -Wall -o php stub.o .libs/libphp4.a -ldl -ldl -lm -lresolv -lnsl > -lcrypt -lgdbm -lgd -L/usr/local/lib -lc-client -L/usr/local/Hughes/lib -lmsql -L/usr/lib/mysql > -lmysqlclient -lodbc -L/home/oracle/u01/lib -lclntsh -lm -L/usr/lib/pgsql -lpq -lpam -lexpat -lz > -Wl,--export-dynamic -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/Hughes/lib > -Wl,--rpath -Wl,/usr/lib/mysql -Wl,--rpath -Wl,/usr/lib/pgsql -Wl,--rpath -Wl,/usr/local/lib > -Wl,--rpath -Wl,/usr/local/Hughes/lib -Wl,--rpath -Wl,/usr/lib/mysql -Wl,--rpath -Wl,/usr/lib/pgsql > /usr/bin/ld: warning: type and size of dynamic symbol `ofetch' are not defined > /usr/bin/ld: warning: type and size of dynamic symbol `orol' are not defined > /usr/bin/ld: warning: type and size of dynamic symbol `oerhms' are not defined > /usr/bin/ld: warning: type and size of dynamic symbol `oclose' are not defined > /usr/bin/ld: warning: type and size of dynamic symbol `oexfet' are not defined > /usr/bin/ld: warning: type and size of dynamic symbol `olog' are not defined > /usr/bin/ld: warning: type and size of dynamic symbol `ocom' are not defined > /usr/bin/ld: warning: type and size of dynamic symbol `obndra' are not defined > /usr/bin/ld: warning: type and size of dynamic symbol `ocof' are not defined > /usr/bin/ld: warning: type and size of dynamic symbol `ologof' are not defined > /usr/bin/ld: warning: type and size of dynamic symbol `oopen' are not defined > /usr/bin/ld: warning: type and size of dynamic symbol `odefin' are not defined > /usr/bin/ld: warning: type and size of dynamic symbol `oflng' are not defined > /usr/bin/ld: warning: type and size of dynamic symbol `ocon' are not defined > /usr/bin/ld: warning: type and size of dynamic symbol `oexec' are not defined > /usr/bin/ld: warning: type and size of dynamic symbol `oparse' are not defined > /usr/bin/ld: warning: type and size of dynamic symbol `odescr' are not defined > > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!" Digital Collections Phone +49 40 235350 Fax +49 40 23535180 Hammerbrookstr. 93 20097 Hamburg / Germany

« previous php.dev (#13165) next »