#20500 [Opn->Bgs]: I can't compile php-4.2.3. with oracle9i and apache_1.3.26
| From: | iliaa@php.net | Date: | Sat, 23 Nov 2002 21:49:32 +0000 |
| Subject: | #20500 [Opn->Bgs]: I can't compile php-4.2.3. with oracle9i and apache_1.3.26 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-25674@lists.php.net to get a copy of this message | ||
ID: 20500
Updated by: iliaa@php.net
Reported By: bruiz@acelerate.com
-Status: Open
+Status: Bogus
Bug Type: OCI8 related
Operating System: SunOS servicios2 5.9 Generic_112
PHP Version: 4.2.3
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
You are trying to link a 64bit library with 32bit code, no wonder it
does not work. Either make PHP use the 32bit library or pass the
compiler a flag telling it to compile PHP in 64bit mode.
Previous Comments:
------------------------------------------------------------------------
[2002-11-19 13:37:55] bruiz@acelerate.com
i have configure my php with the following line:
./configure --with-config-file-path=/etc --enable-magic-quotes
--enable-debug --with-oci8=/u01/app/oracle/product/9.2.0.1.0 --enabl
e-socket --with-apache=/export/home0/src/apache_1.3.27
but when i try to compile it i get the following error:
ld: fatal: file /u01/app/oracle/product/9.2.0.1.0/lib/libclntsh.so:
wrong ELF class: ELFCLASS64
ld: fatal: File processing errors. No output written to conftest
i have try to change the libraries link to the lib32 in the oracle
directory but it didn't workout.
This is what my debug.log show:
CONFIGURE: './configure' '--with-config-file-path=/etc'
'--enable-magic-quotes' '--enable-debug'
'--with-oci8=/u01/app/oracle/prod
uct/9.2.0.1.0' '--enable-socket'
CC: gcc
CFLAGS: -g -O2
CPPFLAGS: -D_POSIX_PTHREAD_SEMANTICS
CXX:
CXXFLAGS:
INCLUDES: -I$(top_builddir)/Zend
-I/export/home0/src/php-4.2.3/ext/mysql/libmysql
-I/u01/app/oracle/product/9.2.0.1.0/rdbms/pub
lic -I/u01/app/oracle/product/9.2.0.1.0/rdbms/demo
-I/u01/app/oracle/product/9.2.0.1.0/plsql/public
LDFLAGS: -R/usr/ucblib -L/usr/ucblib
-R/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.2
-L/usr/local/lib/gcc-lib/sparc-sun-solari
s2.9/3.2 -R/u01/app/oracle/product/9.2.0.1.0/lib
-L/u01/app/oracle/product/9.2.0.1.0/lib
LIBS: -lcrypt -lresolv -lresolv -lresolv -lm -ldl -lnsl -lsocket
-lsocket -lgcc -lcrypt -lnsl -lsocket -lgen -ldl -lclntsh
DLIBS:
SAPI: cgi
PHP_RPATHS: /usr/ucblib
/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.2
/u01/app/oracle/product/9.2.0.1.0/lib
uname -a: SunOS servicios2 5.9 Generic_112233-01 sun4u sparc
SUNW,Ultra-4
gcc -o conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS -R/usr/ucblib
-L/usr/ucblib -R/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.2 -L
/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.2
-R/u01/app/oracle/product/9.2.0.1.0/lib
-L/u01/app/oracle/product/9.2.0.1.0/lib conf
test.c -lcrypt -lresolv -lresolv -lresolv -lm -ldl -lnsl -lsocket
-lsocket -lgcc -lcrypt -lnsl -lsocket -lgen -ldl -lclntsh 1>&5
ld: fatal: file /u01/app/oracle/product/9.2.0.1.0/lib/libclntsh.so:
wrong ELF class: ELFCLASS64
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20500&edit=1