[PHP-DEV] Bug #2842: Can't build PHP withe Oracle From: mlemos <email protected>
Date: 11/27/99

From: mlemos <email protected>
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 <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>