Bug #1405: Can't get Apache 1.3.6, PHP 3.0.7, and Oracle 8 to co-exist.
| From: | philip at eilio dot com | Date: | Wed, 12 May 1999 18:04:38 +0000 |
| Subject: | Bug #1405: Can't get Apache 1.3.6, PHP 3.0.7, and Oracle 8 to co-exist. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-5581@lists.php.net to get a copy of this message | ||
From: philip@eilio.com
Operating system: FreeBSD 3.1-STABLE
PHP version: 3.0.7
PHP Bug Type: Oracle related
Bug description: Can't get Apache 1.3.6, PHP 3.0.7, and Oracle 8 to co-exist.
Hi -
This is partially in response to bug id 799. That person was having problems compiling PHP 3.0.4
and Oracle 8 on linux. ssb suggested a new set of LIBS.
I am trying to compile Apache, PHP, and Oracle 8 (for linux) on FreeBSD 3.1. I have gotten Oracle
running. The PHP "make" and "make install" work correctly. Running configure
in Apache fails with a lot of "undefined reference to" errrors. I am using the LIBS
mentioned in the above bug report. If I used the "stock" ones, it failed because -lsqlnet
couldn't be found. Any ideas?
Also, I had to modify the PHP configure script to get the right Oracle stuff. Some of the files it
was looking for aren't in the directories that are being checked.
In particular the ocidfn.h file for Oracle 8.0.5 (linux) is in rdbms/demo, but not in rdbms/public.
However, the staging area did have an entire rdbms/public directory. Copying that over solved
that, but still it's strange. Also, sysliblist is in lib not in rdbms/lib. At least this is
true for Oracle 8.0.5 (linux) installing on FreeBSD :)
I've included a diff of configure.
5828c5828
< if test -f "$ORACLEINST_TOP/rdbms/lib/sysliblist"
---
> if test -f "$ORACLEINST_TOP/lib/sysliblist"
5830c5830
< ORA_SYSLIB="
cat $ORACLEINST_TOP/rdbms/lib/sysliblist"
---
> ORA_SYSLIB="cat $ORACLEINST_TOP/lib/sysliblist"
5857,5860c5857,5865
< ORACLE_STLIBS="-lclient -lsqlnet -lncr -lsqlnet -lclient -lcommon \
< -lgeneric -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric \
< -lepc -lnlsrtl3 -lc3v6 -lcore4 -lnlsrtl3 -lcore4 -lnlsrtl3 \
< $ORA_SYSLIB -lcore3 $ORA_SYSLIB"
---
> ORACLE_STLIBS="-L$ORACLEINST_TOP/lib/ \
> -L$ORACLEINST_TOP/rdbms/lib \
> $ORACLEINST_TOP/lib/scorept.o \
> -I$ORACLEINST_TOP/rdbms/public \
> -lnetv2 -lnttcp -lnetwork -lncr \
> -lvsn -lcommon -lgeneric \
> -lcore4 -lnlsrtl3 -lepc -lsql \
> -lclient -lclntsh \
> $ORA_SYSLIB -lcore3 $ORA_SYSLIB"
Admittedly, I'm insane for even trying this, but it is kind of fun :)
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net