php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20179 Apache ./configure fails after a static installation of php with oci8 support.
Submitted: 2002-10-30 17:48 UTC Modified: 2002-11-21 17:06 UTC
Votes:5
Avg. Score:4.6 ± 0.8
Reproduced:4 of 4 (100.0%)
Same Version:2 (50.0%)
Same OS:1 (25.0%)
From: bcrackel at chartercom dot com Assigned:
Status: No Feedback Package: OCI8 related
PHP Version: 4.2.3 OS: Linux 2.4.7-10smp (RedHat 7.2)
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2002-10-30 17:48 UTC] bcrackel at chartercom dot com
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-30 19:17 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip
 [2002-11-01 13:20 UTC] bcrackel at chartercom dot com
I got the latest cvs snapshot, and got the following errors during `make` after doing `./configure --enable-socktes --with-mysql --with-oracle=/home/oracle/OraHome1 --with-apache=../apache_1.3.27`:

ext/mysql/libmysql/my_tempnam.o: In function `my_tempnam':
/root/php4-200211010900/ext/mysql/libmysql/my_tempnam.c:103: the use of `tempnam' is dangerous, better use `mkstemp'
ext/oci8/oci8.o: In function `php_oci_init_globals':
/root/php4-200211010900/ext/oci8/oci8.c:445: undefined reference to `OCIEnvInit'
/root/php4-200211010900/ext/oci8/oci8.c:451: undefined reference to `OCIHandleAlloc'
ext/oci8/oci8.o: In function `zm_startup_oci':
/root/php4-200211010900/ext/oci8/oci8.c:475: undefined reference to `OCIInitialize'
ext/oci8/oci8.o: In function `zm_shutdown_oci':
/root/php4-200211010900/ext/oci8/oci8.c:599: undefined reference to `OCIHandleFree'
ext/oci8/oci8.o: In function `_oci_stmt_list_dtor':
/root/php4-200211010900/ext/oci8/oci8.c:750: undefined reference to `OCIHandleFree'
/root/php4-200211010900/ext/oci8/oci8.c:758: undefined reference to `OCIHandleFree'
ext/oci8/oci8.o: In function `_oci_conn_list_dtor':
/root/php4-200211010900/ext/oci8/oci8.c:807: undefined reference to `OCITransRollback'
/root/php4-200211010900/ext/oci8/oci8.c:820: undefined reference to `OCIHandleFree'
/root/php4-200211010900/ext/oci8/oci8.c:832: undefined reference to `OCIHandleFree'
ext/oci8/oci8.o: In function `_oci_descriptor_list_dtor':
/root/php4-200211010900/ext/oci8/oci8.c:887: undefined reference to `OCIDescriptorFree'
ext/oci8/oci8.o: In function `oci_error':
/root/php4-200211010900/ext/oci8/oci8.c:973: undefined reference to `OCIErrorGet'
ext/oci8/oci8.o: In function `oci_ping':
/root/php4-200211010900/ext/oci8/oci8.c:1008: undefined reference to `OCIServerVersion'
ext/oci8/oci8.o: In function `oci_new_desc':
/root/php4-200211010900/ext/oci8/oci8.c:1158: undefined reference to `OCIDescriptorAlloc'
ext/oci8/oci8.o: In function `oci_setprefetch':
/root/php4-200211010900/ext/oci8/oci8.c:1307: undefined reference to `OCIAttrSet'
/root/php4-200211010900/ext/oci8/oci8.c:1322: undefined reference to `OCIAttrSet'
ext/oci8/oci8.o: In function `oci_parse':
/root/php4-200211010900/ext/oci8/oci8.c:1349: undefined reference to `OCIHandleAlloc'
/root/php4-200211010900/ext/oci8/oci8.c:1356: undefined reference to `OCIHandleAlloc'
/root/php4-200211010900/ext/oci8/oci8.c:1364: undefined reference to `OCIStmtPrepare'
/root/php4-200211010900/ext/oci8/oci8.c:1374: undefined reference to `OCIHandleFree'
/root/php4-200211010900/ext/oci8/oci8.c:1378: undefined reference to `OCIHandleFree'
ext/oci8/oci8.o: In function `oci_execute':
/root/php4-200211010900/ext/oci8/oci8.c:1429: undefined reference to `OCIAttrGet'
/root/php4-200211010900/ext/oci8/oci8.c:1459: undefined reference to `OCIStmtExecute'
/root/php4-200211010900/ext/oci8/oci8.c:1497: undefined reference to `OCIAttrGet'
/root/php4-200211010900/ext/oci8/oci8.c:1525: undefined reference to `OCIParamGet'
/root/php4-200211010900/ext/oci8/oci8.c:1538: undefined reference to `OCIAttrGet'
/root/php4-200211010900/ext/oci8/oci8.c:1552: undefined reference to `OCIAttrGet'
/root/php4-200211010900/ext/oci8/oci8.c:1569: undefined reference to `OCIAttrGet'
/root/php4-200211010900/ext/oci8/oci8.c:1583: undefined reference to `OCIAttrGet'
/root/php4-200211010900/ext/oci8/oci8.c:1597: undefined reference to `OCIAttrGet'
/root/php4-200211010900/ext/oci8/oci8.c:1705: undefined reference to `OCIDefineByPos'
ext/oci8/oci8.o: In function `oci_fetch':
/root/php4-200211010900/ext/oci8/oci8.c:1757: undefined reference to `OCIStmtFetch'
/root/php4-200211010900/ext/oci8/oci8.c:1794: undefined reference to `OCIStmtSetPieceInfo'
/root/php4-200211010900/ext/oci8/oci8.c:1806: undefined reference to `OCIStmtFetch'
ext/oci8/oci8.o: In function `oci_loadlob':
/root/php4-200211010900/ext/oci8/oci8.c:1866: undefined reference to `OCILobFileOpen'
/root/php4-200211010900/ext/oci8/oci8.c:1879: undefined reference to `OCILobGetLength'
/root/php4-200211010900/ext/oci8/oci8.c:1894: undefined reference to `OCILobRead'
/root/php4-200211010900/ext/oci8/oci8.c:1926: undefined reference to `OCILobFileClose'
ext/oci8/oci8.o: In function `_oci_open_session':
/root/php4-200211010900/ext/oci8/oci8.c:2179: undefined reference to `OCIHandleAlloc'
/root/php4-200211010900/ext/oci8/oci8.c:2192: undefined reference to `OCIHandleAlloc'
/root/php4-200211010900/ext/oci8/oci8.c:2205: undefined reference to `OCIAttrSet'
/root/php4-200211010900/ext/oci8/oci8.c:2219: undefined reference to `OCIAttrSet'
/root/php4-200211010900/ext/oci8/oci8.c:2233: undefined reference to `OCIAttrSet'
/root/php4-200211010900/ext/oci8/oci8.c:2246: undefined reference to `OCISessionBegin'
/root/php4-200211010900/ext/oci8/oci8.c:2259: undefined reference to `OCIHandleFree'
ext/oci8/oci8.o: In function `_oci_close_session':
/root/php4-200211010900/ext/oci8/oci8.c:2310: undefined reference to `OCIHandleAlloc'
/root/php4-200211010900/ext/oci8/oci8.c:2322: undefined reference to `OCIAttrSet'
/root/php4-200211010900/ext/oci8/oci8.c:2335: undefined reference to `OCIAttrSet'
/root/php4-200211010900/ext/oci8/oci8.c:2347: undefined reference to `OCISessionEnd'
/root/php4-200211010900/ext/oci8/oci8.c:2357: undefined reference to `OCIHandleFree'
/root/php4-200211010900/ext/oci8/oci8.c:2366: undefined reference to `OCIHandleFree'
ext/oci8/oci8.o: In function `_oci_open_server':
/root/php4-200211010900/ext/oci8/oci8.c:2425: undefined reference to `OCIHandleAlloc'
/root/php4-200211010900/ext/oci8/oci8.c:2432: undefined reference to `OCIServerAttach'
ext/oci8/oci8.o: In function `_oci_close_server':
/root/php4-200211010900/ext/oci8/oci8.c:2522: undefined reference to `OCIServerDetach'
/root/php4-200211010900/ext/oci8/oci8.c:2537: undefined reference to `OCIHandleFree'
ext/oci8/oci8.o: In function `oci_do_connect':
/root/php4-200211010900/ext/oci8/oci8.c:2612: undefined reference to `OCIHandleAlloc'
/root/php4-200211010900/ext/oci8/oci8.c:2625: undefined reference to `OCIHandleAlloc'
/root/php4-200211010900/ext/oci8/oci8.c:2638: undefined reference to `OCIAttrSet'
/root/php4-200211010900/ext/oci8/oci8.c:2652: undefined reference to `OCIAttrSet'
ext/oci8/oci8.o: In function `zif_ocibindbyname':
/root/php4-200211010900/ext/oci8/oci8.c:2879: undefined reference to `OCIBindByName'
/root/php4-200211010900/ext/oci8/oci8.c:2903: undefined reference to `OCIBindDynamic'
/root/php4-200211010900/ext/oci8/oci8.c:2921: undefined reference to `OCIBindObject'
ext/oci8/oci8.o: In function `zif_ocisavelob':
/root/php4-200211010900/ext/oci8/oci8.c:2998: undefined reference to `OCILobGetLength'
/root/php4-200211010900/ext/oci8/oci8.c:3027: undefined reference to `OCILobWrite'
ext/oci8/oci8.o: In function `zif_ocisavelobfile':
/root/php4-200211010900/ext/oci8/oci8.c:3103: undefined reference to `OCILobWrite'
ext/oci8/oci8.o: In function `zif_ociwritelobtofile':
/root/php4-200211010900/ext/oci8/oci8.c:3221: undefined reference to `OCILobGetLength'
/root/php4-200211010900/ext/oci8/oci8.c:3234: undefined reference to `OCILobFileOpen'
/root/php4-200211010900/ext/oci8/oci8.c:3278: undefined reference to `OCILobRead'
/root/php4-200211010900/ext/oci8/oci8.c:3321: undefined reference to `OCILobFileClose'
ext/oci8/oci8.o: In function `zif_ocirollback':
/root/php4-200211010900/ext/oci8/oci8.c:3559: undefined reference to `OCITransRollback'
ext/oci8/oci8.o: In function `zif_ocicommit':
/root/php4-200211010900/ext/oci8/oci8.c:3595: undefined reference to `OCITransCommit'
ext/oci8/oci8.o: In function `zif_ocierror':
/root/php4-200211010900/ext/oci8/oci8.c:4304: undefined reference to `OCIErrorGet'
ext/oci8/oci8.o: In function `zif_ociserverversion':
/root/php4-200211010900/ext/oci8/oci8.c:4461: undefined reference to `OCIServerVersion'
ext/oci8/oci8.o: In function `zif_ocistatementtype':
/root/php4-200211010900/ext/oci8/oci8.c:4496: undefined reference to `OCIAttrGet'
ext/oci8/oci8.o: In function `zif_ocirowcount':
/root/php4-200211010900/ext/oci8/oci8.c:4559: undefined reference to `OCIAttrGet'
ext/oci8/oci8.o: In function `zif_ocifreecollection':
/root/php4-200211010900/ext/oci8/oci8.c:4616: undefined reference to `OCIObjectFree'
ext/oci8/oci8.o: In function `zif_ocicollappend':
/root/php4-200211010900/ext/oci8/oci8.c:4668: undefined reference to `OCICollAppend'
/root/php4-200211010900/ext/oci8/oci8.c:4686: undefined reference to `OCIDateFromText'
/root/php4-200211010900/ext/oci8/oci8.c:4701: undefined reference to `OCICollAppend'
/root/php4-200211010900/ext/oci8/oci8.c:4717: undefined reference to `OCIStringAssignText'
/root/php4-200211010900/ext/oci8/oci8.c:4729: undefined reference to `OCICollAppend'
/root/php4-200211010900/ext/oci8/oci8.c:4756: undefined reference to `OCINumberFromReal'
/root/php4-200211010900/ext/oci8/oci8.c:4766: undefined reference to `OCICollAppend'
ext/oci8/oci8.o: In function `zif_ocicollgetelem':
/root/php4-200211010900/ext/oci8/oci8.c:4814: undefined reference to `OCICollGetElem'
/root/php4-200211010900/ext/oci8/oci8.c:4842: undefined reference to `OCIDateToText'
/root/php4-200211010900/ext/oci8/oci8.c:4855: undefined reference to `OCIStringPtr'
/root/php4-200211010900/ext/oci8/oci8.c:4869: undefined reference to `OCINumberToReal'
ext/oci8/oci8.o: In function `zif_ocicollassign':
/root/php4-200211010900/ext/oci8/oci8.c:4913: undefined reference to `OCICollAssign'
ext/oci8/oci8.o: In function `zif_ocicollassignelem':
/root/php4-200211010900/ext/oci8/oci8.c:4973: undefined reference to `OCICollAssignElem'
/root/php4-200211010900/ext/oci8/oci8.c:4991: undefined reference to `OCIDateFromText'
/root/php4-200211010900/ext/oci8/oci8.c:5006: undefined reference to `OCICollAssignElem'
/root/php4-200211010900/ext/oci8/oci8.c:5022: undefined reference to `OCIStringAssignText'
/root/php4-200211010900/ext/oci8/oci8.c:5034: undefined reference to `OCICollAssignElem'
/root/php4-200211010900/ext/oci8/oci8.c:5062: undefined reference to `OCINumberFromReal'
/root/php4-200211010900/ext/oci8/oci8.c:5073: undefined reference to `OCICollAssignElem'
ext/oci8/oci8.o: In function `zif_ocicollsize':
/root/php4-200211010900/ext/oci8/oci8.c:5110: undefined reference to `OCICollSize'
ext/oci8/oci8.o: In function `zif_ocicollmax':
/root/php4-200211010900/ext/oci8/oci8.c:5140: undefined reference to `OCICollMax'
ext/oci8/oci8.o: In function `zif_ocicolltrim':
/root/php4-200211010900/ext/oci8/oci8.c:5166: undefined reference to `OCICollTrim'
ext/oci8/oci8.o: In function `zif_ocinewcollection':
/root/php4-200211010900/ext/oci8/oci8.c:5213: undefined reference to `OCITypeByName'
/root/php4-200211010900/ext/oci8/oci8.c:5232: undefined reference to `OCIHandleAlloc'
/root/php4-200211010900/ext/oci8/oci8.c:5244: undefined reference to `OCIDescribeAny'
/root/php4-200211010900/ext/oci8/oci8.c:5259: undefined reference to `OCIAttrGet'
/root/php4-200211010900/ext/oci8/oci8.c:5274: undefined reference to `OCIAttrGet'
/root/php4-200211010900/ext/oci8/oci8.c:5290: undefined reference to `OCIAttrGet'
/root/php4-200211010900/ext/oci8/oci8.c:5303: undefined reference to `OCIAttrGet'
/root/php4-200211010900/ext/oci8/oci8.c:5316: undefined reference to `OCITypeByRef'
/root/php4-200211010900/ext/oci8/oci8.c:5329: undefined reference to `OCIAttrGet'
/root/php4-200211010900/ext/oci8/oci8.c:5348: undefined reference to `OCIObjectNew'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
 [2002-11-01 21:45 UTC] sniper@php.net
WHAT was the configure line used again? This is impossible 
to happen if you didn't have '--with-oci8' in your configure
line. 

 [2002-11-04 09:23 UTC] bcrackel at chartercom dot com
Sorry, any reference to --with-oracle was supposed to be --with-oci8. Either way, I still get errors. Thanks!
 [2002-11-07 20:24 UTC] sniper@php.net
Do you have /home/oracle/OraHome1/lib in your /etc/ld.so.conf file? If not, add it and run /sbin/ldconfig
and try make again..

 [2002-11-21 17:06 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Fri Jul 01 22:05:45 2022 UTC