Bug #2842: Can't build PHP withe Oracle
| From: | mlemos at acm dot org | Date: | Sat, 27 Nov 1999 05:26:15 +0000 |
| Subject: | Bug #2842: Can't build PHP withe Oracle | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-13164@lists.php.net to get a copy of this message | ||
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