Thread: [cx-oracle-users] Problems installing cx_oracle on linux 2.4.26 oracle 8.1.7
Brought to you by:
atuining
From: Gustavo R. <gu...@gr...> - 2005-12-23 13:50:46
|
Hi All I'm having problems installing the cx_Oracle. The output is below. before running python setup.py install I executed export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib Thanks Gustavo Output: **************************************************************** running install running build running build_ext building 'cx_Oracle' extension creating build creating build/temp.linux-i686-2.4 gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/oracle/rdbms/demo -I/usr/local/oracle/rdbms/public -I/usr/local/oracle/network/public -I/usr/local/include/python2.4 -c cx_Oracle.c -o build/temp.linux-i686-2.4/cx_Oracle.o -DBUILD_TIME="December 23, 2005 07:28:07" In file included from /usr/local/oracle/rdbms/demo/oci.h:1648, from cx_Oracle.c:9: /usr/local/oracle/rdbms/demo/oci1.h:148: warning: function declaration isn't a prototype In file included from /usr/local/oracle/rdbms/demo/oci.h:1673, from cx_Oracle.c:9: /usr/local/oracle/rdbms/demo/ociap.h:6271: warning: function declaration isn't a prototype /usr/local/oracle/rdbms/demo/ociap.h:8753: warning: function declaration isn't a prototype /usr/local/oracle/rdbms/demo/ociap.h:8759: warning: function declaration isn't a prototype cx_Oracle.c:10:16: xa.h: No such file or directory In file included from Variable.c:89, from Cursor.c:211, from Connection.c:303, from cx_Oracle.c:75: NumberVar.c: In function `NumberVar_SetValue': NumberVar.c:178: warning: passing arg 4 of `OCINumberFromText' discards qualifiers from pointer target type In file included from Variable.c:93, from Cursor.c:211, from Connection.c:303, from cx_Oracle.c:75: DateTimeVar.c: In function `DateTimeVar_SetValue': DateTimeVar.c:81: warning: unused variable `status' In file included from cx_Oracle.c:75: Connection.c: In function `Connection_Begin': Connection.c:650: error: `XID' undeclared (first use in this function) Connection.c:650: error: (Each undeclared identifier is reported only once Connection.c:650: error: for each function it appears in.) Connection.c:650: error: parse error before "xid" Connection.c:658: error: `MAXGTRIDSIZE' undeclared (first use in this function) Connection.c:662: error: `MAXBQUALSIZE' undeclared (first use in this function) Connection.c:680: error: `xid' undeclared (first use in this function) error: command 'gcc' failed with exit status 1 |
From: Anthony T. <ant...@gm...> - 2005-12-23 17:33:57
|
Ah yes, you are missing xa.h. You'll need to have that installed (or rip out the parts of cx_Oracle that refer to it if you'd prefer to do that). Unfortunately this is not installed by default in 8.1.7 and I can't remember which section it is installed with. You'll have to look into the Oracle install -- or beg somebody to send you that particular file. :-) On 12/23/05, Gustavo Rahal <gu...@gr...> wrote: > Hi All > > I'm having problems installing the cx_Oracle. The output is below. > before running python setup.py install > > I executed > > export LD_LIBRARY_PATH=3D$LD_LIBRARY_PATH:$ORACLE_HOME/lib > > > Thanks > Gustavo > > Output: > **************************************************************** > running install > running build > running build_ext > building 'cx_Oracle' extension > creating build > creating build/temp.linux-i686-2.4 > gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall > -Wstrict-prototypes -fPIC -I/usr/local/oracle/rdbms/demo > -I/usr/local/oracle/rdbms/public -I/usr/local/oracle/network/public > -I/usr/local/include/python2.4 -c cx_Oracle.c -o > build/temp.linux-i686-2.4/cx_Oracle.o -DBUILD_TIME=3D"December 23, 2005 > 07:28:07" > In file included from /usr/local/oracle/rdbms/demo/oci.h:1648, > from cx_Oracle.c:9: > /usr/local/oracle/rdbms/demo/oci1.h:148: warning: function declaration > isn't a prototype > In file included from /usr/local/oracle/rdbms/demo/oci.h:1673, > from cx_Oracle.c:9: > /usr/local/oracle/rdbms/demo/ociap.h:6271: warning: function declaration > isn't a prototype > /usr/local/oracle/rdbms/demo/ociap.h:8753: warning: function declaration > isn't a prototype > /usr/local/oracle/rdbms/demo/ociap.h:8759: warning: function declaration > isn't a prototype > cx_Oracle.c:10:16: xa.h: No such file or directory > In file included from Variable.c:89, > from Cursor.c:211, > from Connection.c:303, > from cx_Oracle.c:75: > NumberVar.c: In function `NumberVar_SetValue': > NumberVar.c:178: warning: passing arg 4 of `OCINumberFromText' discards > qualifiers from pointer target type > In file included from Variable.c:93, > from Cursor.c:211, > from Connection.c:303, > from cx_Oracle.c:75: > DateTimeVar.c: In function `DateTimeVar_SetValue': > DateTimeVar.c:81: warning: unused variable `status' > In file included from cx_Oracle.c:75: > Connection.c: In function `Connection_Begin': > Connection.c:650: error: `XID' undeclared (first use in this function) > Connection.c:650: error: (Each undeclared identifier is reported only onc= e > Connection.c:650: error: for each function it appears in.) > Connection.c:650: error: parse error before "xid" > Connection.c:658: error: `MAXGTRIDSIZE' undeclared (first use in this > function) > Connection.c:662: error: `MAXBQUALSIZE' undeclared (first use in this > function) > Connection.c:680: error: `xid' undeclared (first use in this function) > error: command 'gcc' failed with exit status 1 > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi= les > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick > _______________________________________________ > cx-oracle-users mailing list > cx-...@li... > https://lists.sourceforge.net/lists/listinfo/cx-oracle-users > |