Operating System - HP-UX
1748201 Members
3056 Online
108759 Solutions
New Discussion юеВ

Re: HP-UX11.11 / apache1.3.xx/PHP4.1.2/OCI8

 
Frank Seifert
Occasional Contributor

HP-UX11.11 / apache1.3.xx/PHP4.1.2/OCI8

Is there anybody who runs this combination.
My PHP-configure-script fails with..
I have tryed a lot of combination of configure-options...no success.

(debug.log)
CONFIGURE: './configure' '--with-apache=/opt/apache' '--with-oci8' '--disable-libgcc' '--disable-mysql'
CC: gcc
CFLAGS: -g -O2
CPPFLAGS:
CXX:
CXXFLAGS:
INCLUDES: -I/opt/apache/src/include -I/opt/apache/src/os/unix -I$(top_builddir)/Zend -I/var/spool/sw/php412_src/php-4.1.2/ext/mysql/libmysql -I/opt/oracle/product/9.0.1/rdbms/public -I/opt/oracle/product/9.0.1/rdbms/demo -I/opt/oracle/product/9.0.1/plsql/public
LDFLAGS: -L/opt/oracle/product/9.0.1/lib -L/opt/oracle/product/9.0.1/lib
LIBS: -l:libdld.sl -l:libnss_dns.1 -l:librt.sl -l:libcl.sl -lcrypt -lm -lnsl -lcrypt -lclntsh
DLIBS:
SAPI: apache
PHP_RPATHS: /opt/oracle/product/9.0.1/lib
uname -a: HP-UX Q9L1V B.11.11 U 9000/800 197931501 unlimited-user license

gcc -o conftest -g -O2 -L/opt/oracle/product/9.0.1/lib -L/opt/oracle/product/9.0.1/lib conftest.c -l:libdld.sl -l:libnss_dns.1 -l:librt.sl -l:libcl.sl -lcrypt -lm -lnsl -lcrypt -lclntsh 1>&5
/usr/ccs/bin/ld: /opt/oracle/product/9.0.1/lib/libclntsh.sl: Mismatched ABI. 64-bit PA shared library found in 32-bit link.
collect2: ld returned 1 exit status
Thanks Frank
6 REPLIES 6
David Burgess
Esteemed Contributor

Re: HP-UX11.11 / apache1.3.xx/PHP4.1.2/OCI8

Have you got binutils installed?

www.gnu.org

Take a look at http://hpux.connect.org.uk/
and download apache in depot fromat to save all the grief ;-)

HTH

Dave.
Frank Seifert
Occasional Contributor

Re: HP-UX11.11 / apache1.3.xx/PHP4.1.2/OCI8

thanks, but this is not the solution. I Have installed binutils 2.11, gcc 3.0.2, gmake 3.79.1 and I must build an PHP4-Module (PHP4.1.2) with OCI8 (oracle common interface) with Oracle 9i (64bit).

Who can help?
Harald
David Burgess
Esteemed Contributor

Re: HP-UX11.11 / apache1.3.xx/PHP4.1.2/OCI8

Is your HPUX 32 or 64 bit?

Regards,

Dave.
Shirish Joshi
Advisor

Re: HP-UX11.11 / apache1.3.xx/PHP4.1.2/OCI8

"Mismatched ABI. 64-bit PA shared library found in 32-bit link. " means you are linking a 32-bit app using a 64-bit library.

Try changing your LDFLAGS to
/opt/oracle/product/9.0.1/lib32

Your SHLIB_PATH should look something like
/opt/oracle/product/9.0.1/lib32:/usr/lib

Your HPUX must be 64-bit as Oracle 9i will not install on a 32-bit system...

Regards,
Shirish
David Burgess
Esteemed Contributor

Re: HP-UX11.11 / apache1.3.xx/PHP4.1.2/OCI8

Thanks Shirish. That's exactly where I was going!

Regards,

Dave.
Frank Seifert
Occasional Contributor

Re: HP-UX11.11 / apache1.3.xx/PHP4.1.2/OCI8

thanks, it was very dificult but it works!
Frank