php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2842 Can't build PHP withe Oracle
Submitted: 1999-11-27 06:26 UTC Modified: 2002-06-16 09:01 UTC
From: mlemos at acm dot org Assigned:
Status: Not a bug Package: Oracle related
PHP Version: 3.0 Latest CVS (27/11/1999) OS: Linux 2.2.5-23cl
Private report: No CVE-ID: None
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
5 + 5 = ?
Subscribe to this entry?

 
 [1999-11-27 06:26 UTC] mlemos at acm dot org
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-16 09:01 UTC] sander@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately, PHP 3 is no longer supported. Please download
the latest version of PHP 4 from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Nov 13 06:01:32 2024 UTC