Re: Problems linking against 10g libraries on HPUX

From: Bernard Delmée <bdelmee_at_advalvas.REMOVEME.be>
Date: Thu, 09 Jun 2005 21:17:34 +0200
Message-ID: <42a895d8$0$1818$6c56d894_at_reader0.news.be.easynet.net>


> - post sufficient detail especially with respect to whether you are
> using 32-bit or 64-bit O/S, whether you have your environment
> variables set up correctly, and whether you can succesfully make any
> Oracle provided demo program using the Oracle provided make file.

I've built using gcc or the HP compiler, either in 32 or 64 bits mode. I get identical or similar (non)results in all cases. I have also successfully built the cdemo1 OCI example. Here are all the gory details:

Script started on Thu Jun 9 09:32:41 2005 [bdelmee_at_prisme20] py241.hp64 $ uname -a HP-UX prisme20 B.11.23 U ia64 1530408444 unlimited-user license [bdelmee_at_prisme20] py241.hp64 $ file /usr/local/bin/python /usr/local/bin/python: ELF-64 executable object file - IA64 [bdelmee_at_prisme20] py241.hp64 $ ldd
/usr/local/lib/python2.4/site-packages/cx_Oracle.sl /usr/local/lib/python2.4/site-packages/cx_Oracle.sl: ELF-64 shared object file - IA64
[bdelmee_at_prisme20] py241.hp64 $ ldd /usr/local/bin/python

         libnsl.so.1 =>  /usr/lib/hpux64/libnsl.so.1
         librt.so.1 =>   /usr/lib/hpux64/librt.so.1
         libdl.so.1 =>   /usr/lib/hpux64/libdl.so.1
         libpthread.so.1 =>      /usr/lib/hpux64/libpthread.so.1
         libm.so.1 =>    /usr/lib/hpux64/libm.so.1
         libc.so.1 =>    /usr/lib/hpux64/libc.so.1
         libxti.so.1 =>  /usr/lib/hpux64/libxti.so.1
         libdl.so.1 =>   /usr/lib/hpux64/libdl.so.1
         libdl.so.1 =>   /usr/lib/hpux64/libdl.so.1
[bdelmee_at_prisme20] py241.hp64 $ ldd
/usr/local/lib/python2.4/site-packages/cx_Oracle.sl

         libclntsh.so.10.1 =>
/app/oracle/product/10.1.0.2/lib/libclntsh.so.10.1

         libnnz10.so =>  /app/oracle/product/10.1.0.2/lib/libnnz10.so
         librt.so.1 =>   /usr/lib/hpux64/librt.so.1
         libnss_dns.so.1 =>      /usr/lib/hpux64/libnss_dns.so.1
         libdl.so.1 =>   /usr/lib/hpux64/libdl.so.1
         libm.so.1 =>    /usr/lib/hpux64/libm.so.1
         libpthread.so.1 =>      /usr/lib/hpux64/libpthread.so.1
         libunwind.so.1 =>       /usr/lib/hpux64/libunwind.so.1
         libdl.so.1 =>   /usr/lib/hpux64/libdl.so.1
         libdl.so.1 =>   /usr/lib/hpux64/libdl.so.1
         libuca.so.1 =>  /usr/lib/hpux64/libuca.so.1
[bdelmee_at_prisme20] py241.hp64 $ set | -i ora CLASSPATH=/app/oracle/product/10.1.0.2/JRE:/app/oracle/product/10.1.0.2/jlib :/app/oracle/product/10.1.0.2/product/jlib
LD_LIBRARY_PATH=/app/oracle/product/10.1.0.2/lib:/lib:/usr/lib:/app/oracle/p
roduct/10.1.0.2/rdbms/lib:/app/oracle/product/10.1.0.2/instantclient:/app/or
acle/product/10.1.0.2/lib:/app/oracle/product/10.1.0.2/network/lib:/usr/lib/
nls/iconv/hpux64:/usr/lib/nls/loc/hpux64:/usr/lib/hpux64:/usr/lib/security/h pux64
ORACLE_BASE=/app/oracle
ORACLE_HOME=/app/oracle/product/10.1.0.2
ORACLE_SID=pe5
ORA_NLS33=/app/oracle/product/10.1.0.2/nls/data
PATH=/usr/bin:/opt/ansic/bin:/usr/ccs/bin:/usr/contrib/bin:/usr/contrib/Q4/b
in:/opt/perl/bin:/opt/ipf/bin:/opt/hparray/bin:/opt/nettladm/bin:/opt/fcms/b
in:/opt/sec_mgmt/bastille/bin:/opt/resmon/bin:/opt/gnome/bin:/opt/perf/bin:/
usr/bin/X11:/opt/ignite/bin:/usr/contrib/kwdb/bin:/opt/mozilla:/opt/wbem/bin
:/opt/wbem/sbin:/opt/graphics/common/bin:/opt/mx/bin:/opt/prm/bin:/opt/sec_m
gmt/spc/bin:/opt/upgrade/bin:/usr/contrib/bin/X11:/opt/netscape:/usr/local/b
in:/opt/langtools/bin:/opt/caliper/bin:/home/bdelmee/bin:.:/app/oracle/bin:/
app/oracle/product/10.1.0.2/bin:/home/bdelmee/bernard/bin:/opt/java1.4/jre/b
in:/home/bdelmee/bernard/bin:/opt/java1.4/jre/bin
SHLIB=/app/oracle/product/10.1.0.2/instantclient:/app/oracle/product/10.1.0.
2/lib:/app/oracle/product/10.1.0.2/network/lib:/usr/lib/nls/iconv/hpux64:/us r/lib/nls/loc/hpux64:/usr/lib/hpux64:/usr/lib/security/hpux64 [bdelmee_at_prisme20] py241.hp64 $ fgrep CC Makefile CC= cc +DD64 -Ae -lpthread
[bdelmee_at_prisme20] py241.hp64 $ fgrep CC ../py241.gcc64/Makefile CC= gcc -mlp64 -pthread -lc -lpthread script done on Thu Jun 9 09:38:34 2005

> And of course whether you read the manual and/or searched Google prior
> to posting.

I did, and have posted to the comp.lang.python NG as well as the cx_Oracle mailing list before. Unfortunately, HPUX/Itaniun does not seem quite as common as say Linux or Solaris...

Looking back at all the error messages posted yesterday, all seem to be caused by the Oracle libnnz10 library not being able to resolve a bunch of symbols. Whether those are supposedly provided by another oracle or system library I do not know. Received on Thu Jun 09 2005 - 21:17:34 CEST

Original text of this message