[DB-SIG] Error in compiling InformixDB

Vivek Srivastav vsrivastav at gmail.com
Fri Oct 8 18:30:34 CEST 2010


Hi Carsten,

I know it's been a while since any development was done on InformixDB,
however I wanted to see if you would have any idea on how to resolve. I
would appreciate any pointers or help.

Sincere Regards,
Vivek

I am trying to compile the InformixDB on mac platform and am getting the
following warnings:

vivsrivas-MacBook-Pro:InformixDB-2.5 vivsriva$ python setup.py build_ext
running build_ext
/Applications/IBM/informix/bin/esql -EDHAVE_ESQL9
-EDHAVE_DESCRIBE_INPUT -e _informixdb.ec
building '_informixdb' extension
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv
-Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc
-arch x86_64 -pipe
-DPYTHON_INCLUDE=/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6
-DHAVE_C_DATETIME=1 -DHAVE_PY_BOOL=1 -Iext
-I/Applications/IBM/informix/incl/esql
-I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6
-c ext/_informixdb.c -o
build/temp.macosx-10.6-universal-2.6/ext/_informixdb.o
_informixdb.ec: In function ‘dberror_value’:
_informixdb.ec:3385: warning: the address of ‘message’ will always
evaluate as ‘true’
_informixdb.ec: In function ‘Sblob_init’:
_informixdb.ec:3808: warning: value computed is not used
_informixdb.ec:3813: warning: value computed is not used
_informixdb.ec:3819: warning: value computed is not used
_informixdb.ec:3825: warning: value computed is not used
_informixdb.ec:3835: warning: value computed is not used
_informixdb.ec:3845: warning: value computed is not used
_informixdb.ec:3851: warning: value computed is not used
_informixdb.ec:3857: warning: value computed is not used
_informixdb.ec: In function ‘dberror_value’:
_informixdb.ec:3385: warning: the address of ‘message’ will always
evaluate as ‘true’
_informixdb.ec: In function ‘Sblob_init’:
_informixdb.ec:3808: warning: value computed is not used
_informixdb.ec:3813: warning: value computed is not used
_informixdb.ec:3819: warning: value computed is not used
_informixdb.ec:3825: warning: value computed is not used
_informixdb.ec:3835: warning: value computed is not used
_informixdb.ec:3845: warning: value computed is not used
_informixdb.ec:3851: warning: value computed is not used
_informixdb.ec:3857: warning: value computed is not used
_informixdb.ec: In function ‘get_bool_from_int’:
_informixdb.ec:125: warning: cast from pointer to integer of different size
_informixdb.ec: In function ‘set_bool_to_int’:
_informixdb.ec:139: warning: cast from pointer to integer of different size
_informixdb.ec: In function ‘dberror_value’:
_informixdb.ec:3385: warning: the address of ‘message’ will always
evaluate as ‘true’
_informixdb.ec: In function ‘Sblob_init’:
_informixdb.ec:3808: warning: value computed is not used
_informixdb.ec:3813: warning: value computed is not used
_informixdb.ec:3819: warning: value computed is not used
_informixdb.ec:3825: warning: value computed is not used
_informixdb.ec:3835: warning: value computed is not used
_informixdb.ec:3845: warning: value computed is not used
_informixdb.ec:3851: warning: value computed is not used
_informixdb.ec:3857: warning: value computed is not used
_informixdb.ec: In function ‘Sblob_specget’:
_informixdb.ec:4129: warning: cast from pointer to integer of different size
_informixdb.ec:4160: warning: cast from pointer to integer of different size
gcc-4.2 -Wl,-F. -bundle -undefined dynamic_lookup -arch i386 -arch ppc
-arch x86_64 build/temp.macosx-10.6-universal-2.6/ext/_informixdb.o
-framework DirectoryService
/Applications/IBM/informix/lib/esql/checkapi.o
-L/Applications/IBM/informix/lib/esql -L/Applications/IBM/informix/lib
-lifsql -lifasf -lifgen -lifos -lifgls -lifglx -o
build/lib.macosx-10.6-universal-2.6/_informixdb.so
ld: warning: in /Applications/IBM/informix/lib/esql/checkapi.o, file
was built for unsupported file format which is not the architecture
being linked (i386)
ld: warning: in /Applications/IBM/informix/lib/esql/libifsql.dylib,
file was built for unsupported file format which is not the
architecture being linked (i386)
ld: warning: in /Applications/IBM/informix/lib/libifasf.dylib, file
was built for unsupported file format which is not the architecture
being linked (i386)
ld: warning: in /Applications/IBM/informix/lib/esql/libifgen.dylib,
file was built for unsupported file format which is not the
architecture being linked (i386)
ld: warning: in /Applications/IBM/informix/lib/esql/libifos.dylib,
file was built for unsupported file format which is not the
architecture being linked (i386)
ld: warning: in /Applications/IBM/informix/lib/esql/libifgls.dylib,
file was built for unsupported file format which is not the
architecture being linked (i386)
ld: warning: in /Applications/IBM/informix/lib/esql/libifglx.dylib,
file was built for unsupported file format which is not the
architecture being linked (i386)
ld: warning: in /Applications/IBM/informix/lib/esql/checkapi.o, file
was built for unsupported file format which is not the architecture
being linked (ppc)
ld: warning: in /Applications/IBM/informix/lib/esql/libifsql.dylib,
file was built for unsupported file format which is not the
architecture being linked (ppc)
ld: warning: in /Applications/IBM/informix/lib/libifasf.dylib, file
was built for unsupported file format which is not the architecture
being linked (ppc)
ld: warning: in /Applications/IBM/informix/lib/esql/libifgen.dylib,
file was built for unsupported file format which is not the
architecture being linked (ppc)
ld: warning: in /Applications/IBM/informix/lib/esql/libifos.dylib,
file was built for unsupported file format which is not the
architecture being linked (ppc)
ld: warning: in /Applications/IBM/informix/lib/esql/libifgls.dylib,
file was built for unsupported file format which is not the
architecture being linked (ppc)
ld: warning: in /Applications/IBM/informix/lib/esql/libifglx.dylib,
file was built for unsupported file format which is not the
architecture being linked (ppc)



Also when I run python -c "import informixdb" I get following error message:
vivsrivas-MacBook-Pro:InformixDB-2.5 vivsriva$ python -c "import informixdb"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "informixdb.py", line 146, in <module>
    from _informixdb import *
ImportError: dlopen(/Library/Python/2.6/site-packages/_informixdb.so, 2):
Symbol not found: _SQLCODE
  Referenced from: /Library/Python/2.6/site-packages/_informixdb.so
  Expected in: flat namespace
 in /Library/Python/2.6/site-packages/_informixdb.so
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/db-sig/attachments/20101008/19516501/attachment.html>


More information about the DB-SIG mailing list