[cx-oracle-users] cx_Oracle 4.1, Oracle 10.2 in Solaris
Brought to you by:
atuining
From: Mikel L. <mla...@co...> - 2005-12-16 10:48:04
|
Hi: I'm trying to build cx_Oracle 4.1 from source in a sun solaris computer using GCC 3.4.2 and Python 2.3.5 but I receive an error regarding "-lclntsh". I reproduce the error below. My environment variables look like these: bash-2.03$ uname -a SunOS arqfotos 5.8 Generic_117350-27 sun4u sparc SUNW,Sun-Fire-280R bash-2.03$ echo $ORACLE_HOME /home1/programas/oracle/oracle/product/10.2.0/db_1 bash-2.03$ echo $LD_LIBRARY_PATH /usr/lib:/usr/local/lib:/usr/local/lib/sparcv9:/home1/programas/oracle/oracle/product/10.2.0/db_1/lib But when building I get this error. bash-2.03$ /home1/zope/python/235/bin/python setup.py install running install running build running build_ext building 'cx_Oracle' extension creating build creating build/temp.solaris-2.8-sun4u-2.3 gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/home1/programas/oracle/oracle/product/10.2.0/db_1/rdbms/demo -I/home1/programas/oracle/oracle/product/10.2.0/db_1/rdbms/public -I/home1/programas/oracle/oracle/product/10.2.0/db_1/network/public -I/home1/zope/python/235/include/python2.3 -c cx_Oracle.c -o build/temp.solaris-2.8-sun4u-2.3/cx_Oracle.o -DBUILD_TIME="December 16, 2005 10:56:13" In file included from /home1/programas/oracle/oracle/product/10.2.0/db_1/rdbms/public/oci.h:2651, from cx_Oracle.c:9: /home1/programas/oracle/oracle/product/10.2.0/db_1/rdbms/public/oci1.h:148: warning: function declaration isn't a prototype In file included from /home1/programas/oracle/oracle/product/10.2.0/db_1/rdbms/public/ociap.h:225, from /home1/programas/oracle/oracle/product/10.2.0/db_1/rdbms/public/oci.h:2675, from cx_Oracle.c:9: /home1/programas/oracle/oracle/product/10.2.0/db_1/rdbms/public/nzt.h:676: warning: function declaration isn't a prototype /home1/programas/oracle/oracle/product/10.2.0/db_1/rdbms/public/nzt.h:2667: warning: function declaration isn't a prototype /home1/programas/oracle/oracle/product/10.2.0/db_1/rdbms/public/nzt.h:2676: warning: function declaration isn't a prototype /home1/programas/oracle/oracle/product/10.2.0/db_1/rdbms/public/nzt.h:2686: warning: function declaration isn't a prototype /home1/programas/oracle/oracle/product/10.2.0/db_1/rdbms/public/nzt.h:2695: warning: function declaration isn't a prototype /home1/programas/oracle/oracle/product/10.2.0/db_1/rdbms/public/nzt.h:2704: warning: function declaration isn't a prototype /home1/programas/oracle/oracle/product/10.2.0/db_1/rdbms/public/nzt.h:2713: warning: function declaration isn't a prototype /home1/programas/oracle/oracle/product/10.2.0/db_1/rdbms/public/nzt.h:2721: warning: function declaration isn't a prototype /home1/programas/oracle/oracle/product/10.2.0/db_1/rdbms/public/nzt.h:2731: warning: function declaration isn't a prototype /home1/programas/oracle/oracle/product/10.2.0/db_1/rdbms/public/nzt.h:2738: warning: function declaration isn't a prototype /home1/programas/oracle/oracle/product/10.2.0/db_1/rdbms/public/nzt.h:2746: warning: function declaration isn't a prototype In file included from /home1/programas/oracle/oracle/product/10.2.0/db_1/rdbms/public/oci.h:2675, from cx_Oracle.c:9: /home1/programas/oracle/oracle/product/10.2.0/db_1/rdbms/public/ociap.h:10068: warning: function declaration isn't a prototype /home1/programas/oracle/oracle/product/10.2.0/db_1/rdbms/public/ociap.h:10074: warning: function declaration isn't a prototype creating build/lib.solaris-2.8-sun4u-2.3 gcc -shared build/temp.solaris-2.8-sun4u-2.3/cx_Oracle.o -L/home1/programas/oracle/oracle/product/10.2.0/db_1/lib -lclntsh -o build/lib.solaris-2.8-sun4u-2.3/cx_Oracle.so -s /usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.2/../../../../sparc-sun-solaris2.8/bin/ld: skipping incompatible /home1/programas/oracle/oracle/product/10.2.0/db_1/lib/libclntsh.so when searching for -lclntsh /usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.2/../../../../sparc-sun-solaris2.8/bin/ld: cannot find -lclntsh collect2: ld returned 1 exit status error: command 'gcc' failed with exit status 1 bash-2.03$ Any idea of what can happen? Thank you in advance, Mikel -- Mikel Larreategi mla...@co... CodeSyntax Azitaingo Industrialdea 3 K E-20600 Eibar Tel: (+34) 943 82 17 80 |