ID:               20179
 Comment by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Feedback
 Bug Type:         OCI8 related
 Operating System: Linux 2.4.7-10smp (RedHat 7.2)
 PHP Version:      4.2.3
 New Comment:

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


Previous Comments:
------------------------------------------------------------------------

[2002-10-30 19:17:11] [EMAIL PROTECTED]

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-10-30 17:48:54] [EMAIL PROTECTED]

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 this bug report at http://bugs.php.net/?id=20179&edit=1

Reply via email to