php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20500 I can't compile php-4.2.3. with oracle9i and apache_1.3.26
Submitted: 2002-11-19 13:37 UTC Modified: 2002-11-23 15:49 UTC
From: bruiz at acelerate dot com Assigned:
Status: Not a bug Package: OCI8 related
PHP Version: 4.2.3 OS: SunOS servicios2 5.9 Generic_112
Private report: No CVE-ID: None
 [2002-11-19 13:37 UTC] bruiz at acelerate dot 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-23 15:49 UTC] iliaa@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 07 21:01:30 2024 UTC