[cx-oracle-users] cx_Oracle and libclntsh(FreeBSD)
Brought to you by:
atuining
From: <ix...@po...> - 2012-09-10 11:04:43
|
Hello!I want to use cx_Oracle for connect to Oracle DB. I using FreeBSD 9.0(i386) as client.After I installed all the necessary ports for linux-emulations(32bit fedora emul. port) and oracle client 10.2.0.3, I can't make setup.py build: antares[cx_Oracle-5.1.2]# python setup.py build running buildrunning build_extbuilding 'cx_Oracle' extensioncreating buildcreating build/temp.freebsd-9.0-RELEASE-i386-2.7-10gcc -fno-strict-aliasing -O2 -pipe -fno-strict-aliasing -DNDEBUG -O2 -pipe -fno-strict-aliasing -fPIC -I/compat/linux/usr/include/oracle/10.2.0.3/client -I/usr/local/include/python2.7 -c cx_Oracle.c -o build/temp.freebsd-9.0-RELEASE-i386-2.7-10g/cx_Oracle.o -DBUILD_VERSION=5.1.2creating build/lib.freebsd-9.0-RELEASE-i386-2.7-10gcc -shared -pthread build/temp.freebsd-9.0-RELEASE-i386-2.7-10g/cx_Oracle.o -L/compat/linux/usr/lib/oracle/10.2.0.3/client/lib -lclntsh -o build/lib.freebsd-9.0-RELEASE-i386-2.7-10g/cx_Oracle.so/compat/linux/usr/lib/oracle/10.2.0.3/client/lib/libclntsh.so: could not read symbols: File in wrong formaterror: command 'cc' failed with exit status 1 My env:ORACLE_HOME=/compat/linux/usr/lib/oracle/10.2.0.3/client/binLD_LIBRARY_PATH=/compat/linux/usr/lib/oracle/10.2.0.3/client/lib antares[cx_Oracle-5.1.2]# uname -aFreeBSD antares 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Mon May 14 21:15:32 MSK 2012 root@antares:/usr/obj/usr/src/sys/KERNEL i386 antares[lib]# gcc -vUsing built-in specs.Target: i386-undermydesk-freebsdConfigured with: FreeBSD/i386 system compilerThread model: posixgcc version 4.2.1 20070831 patched [FreeBSD] antares[lib]# python -v...Python 2.7.3 (default, Jul 9 2012, 12:11:34)[GCC 4.2.1 20070831 patched [FreeBSD]] on freebsd9 I checked all libs with 'objdump' - all libs are 32bit. Library libclntsh.so linked to libclntsh.so.10.1. As I understand, cx_Oracle does not like that libclntsh.so is dynamic? Necessary static library? Or not? But oracle client have only *.so. My Oracle DB server running from AIX 64bit and I could not take libclntsh.a.As I solve this problem?Thanks. |