From:             [EMAIL PROTECTED]
Operating system: Linux 2.4.7-10smp (RedHat 7.2)
PHP version:      4.2.3
PHP Bug Type:     OCI8 related
Bug description:  Apache ./configure fails after a static installation of php with 
oci8 support.

After installing php via `./configure --enable-sockets --with-mysql
--with-oci8=/home/oracle/OraHome1 --with-apache=../apache_1.3.27` then
`make` and `make install`, apache's ./configure script dies with the
following error:

$ ./configure --enable-module=so --enable-module=access
--enable-module=autoindex --enable-module=auth --prefix=/www
--activate-module=src/modules/php4/libphp4.a

 + doing sanity check on compiler and options
** A test compilation with your Makefile configuration
** failed.  The below error output from the compilation
** test will give you an idea what is failing. Note that
** Apache requires an ANSI C Compiler, such as gcc.

======== Error Output for sanity check ========
cd ..; gcc  -DLINUX=22 -I/root/php-4.2.3 -I/root/php-4.2.3/main
-I/root/php-4.2.3/main -I/root/php-4.2.3/Zend -I/root/php-4.2.3/Zend
-I/root/php-4.2.3/TSRM -I/root/php-4.2.3/TSRM -I/root/php-4.2.3 `./apaci` 
   -o helpers/dummy helpers/dummy.c   -Wl,-rpath,/home/oracle/OraHome1/lib
 -rdynamic -L/home/oracle/OraHome1/lib -Lmodules/php4 -L../modules/php4
-L../../modules/php4 -lmodphp4  -lpam  -lclient -lsqlnet -lncr -lsqlnet
-lclient -lcommon -lgeneric -lsqlnet -lncr -lsqlnet -lclient -lcommon
-lgeneric -lepc -lnls8 -lc3v6 -lcore8 -lcrypt -lresolv -lm -ldl -lnsl 
-lresolv -lcrypt -ldl -lm -ldl -lm   -lm -lcrypt -lexpat -ldl
/usr/bin/ld: cannot find -lclient
collect2: ld returned 1 exit status
make: *** [dummy] Error 1


I tried editing src/modules/php4/libphp4.module to remove all of the -l
options that were causing the errors (-lclient, -lcommon, -lsqlnet, -lncr,
-lgeneric, -lepc, -lnlsrtl3, -lc3v6, and -lcore3), and it configured fine,
but then failed during `make`:

gcc -c  -I./os/unix -I./include   -DLINUX=22 -I/root/php-4.2.3
-I/root/php-4.2.3/main -I/root/php-4.2.3/main -I/root/php-4.2.3/Zend
-I/root/php-4.2.3/Zend -I/root/php-4.2.3/TSRM -I/root/php-4.2.3/TSRM
-I/root/php-4.2.3 `./apaci` buildmark.cgcc  -DLINUX=22 -I/root/php-4.2.3
-I/root/php-4.2.3/main -I/root/php-4.2.3/main
-I/root/php-4.2.3/Zend -I/root/php-4.2.3/Zend -I/root/php-4.2.3/TSRM
-I/root/php-4.2.3/TSRM -I/root/php-4.2.3 `./apaci`   -rdynamic \
      -o httpd buildmark.o modules.o modules/standard/libstandard.a
modules/php4/libphp4.a main/libmain.a ./os/unix/libos.a ap/libap.a   
-Wl,-rpath,/home/oracle/OraHome1/lib  -rdynamic
-L/home/oracle/OraHome1/lib -Lmodules/php4 -L../modules/php4
-L../../modules/php4 -lmodphp4  -lpam -lcrypt -lresolv -lm -ldl -lnsl 
-lresolv -lcrypt -ldl -lm   -lm -lcrypt -lexpat -ldl
modules/php4/libphp4.a(oracle.o): In function `_close_oraconn':
/root/php-4.2.3/ext/oracle/oracle.c:214: undefined reference to `ologof'
modules/php4/libphp4.a(oracle.o): In function `_close_oracur':
/root/php-4.2.3/ext/oracle/oracle.c:267: undefined reference to `oclose'
modules/php4/libphp4.a(oracle.o): In function `_ora_ping':
/root/php-4.2.3/ext/oracle/oracle.c:385: undefined reference to `oopen'
/root/php-4.2.3/ext/oracle/oracle.c:389: undefined reference to `oparse'
/root/php-4.2.3/ext/oracle/oracle.c:1044: undefined reference to `oexfet'
/root/php-4.2.3/ext/oracle/oracle.c:1052: undefined reference to `oexec'
modules/php4/libphp4.a(oracle.o): In function `zif_ora_fetch':
/root/php-4.2.3/ext/oracle/oracle.c:1085: undefined reference to `ofetch'
modules/php4/libphp4.a(oracle.o): In function `zif_ora_fetch_into':
/root/php-4.2.3/ext/oracle/oracle.c:1132: undefined reference to `ofetch'
/root/php-4.2.3/ext/oracle/oracle.c:1189: undefined reference to `oflng'
modules/php4/libphp4.a(oracle.o): In function `zif_ora_getcolumn':
/root/php-4.2.3/ext/oracle/oracle.c:1414: undefined reference to `ofetch'
/root/php-4.2.3/ext/oracle/oracle.c:1471: undefined reference to `oflng'
modules/php4/libphp4.a(oracle.o): In function `ora_error':
/root/php-4.2.3/ext/oracle/oracle.c:1616: undefined reference to `oerhms'
modules/php4/libphp4.a(oracle.o): In function `ora_describe_define':
/root/php-4.2.3/ext/oracle/oracle.c:1657: undefined reference to `odescr'
/root/php-4.2.3/ext/oracle/oracle.c:1682: undefined reference to `odescr'
/root/php-4.2.3/ext/oracle/oracle.c:1714: undefined reference to `odefin'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/root/apache_1.3.27/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/root/apache_1.3.27'
make: *** [build] Error 2

-- 
Edit bug report at http://bugs.php.net/?id=20179&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=20179&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=20179&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=20179&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=20179&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=20179&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=20179&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=20179&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=20179&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=20179&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=20179&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20179&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=20179&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=20179&r=isapi

Reply via email to