[egenix-users] Cygwin compile problem in commercial 2.0.6

Steve Holden sholden at holdenweb.com
Sun Nov 16 11:54:12 CET 2003


The subject line pretty much explains the problem. The gory details
follow, truncated to remain useful for the clueful (among which I don't
count myself in this particular arena):

$ python setup.py install
running install
running build
running mx_autoconf
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -D_GNU_SOURCE=1 -I/usr/inc
lude/python2.3 -I/usr/include -c _configtest.c -o _configtes
t.o
success!
removing: _configtest.c _configtest.o
running build_ext
building 'mx.ODBC.iODBC.mxODBC' extension
creating build
creating build/temp.cygwin-1.5.5-i686-2.3
creating build/temp.cygwin-1.5.5-i686-2.3/mx
creating build/temp.cygwin-1.5.5-i686-2.3/mx/ODBC
creating build/temp.cygwin-1.5.5-i686-2.3/mx/ODBC/iODBC
creating build/temp.cygwin-1.5.5-i686-2.3/mx/ODBC/iODBC/mxODBC
creating build/temp.cygwin-1.5.5-i686-2.3/mx/ODBC/iODBC/mxODBC/mx
creating build/temp.cygwin-1.5.5-i686-2.3/mx/ODBC/iODBC/mxODBC/mx/ODBC
creating
build/temp.cygwin-1.5.5-i686-2.3/mx/ODBC/iODBC/mxODBC/mx/ODBC/iODBC
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -DiODBC -Imx/ODBC/iODBC -I
/usr/local/iODBC/include -I/usr/include/python2.3 -I/usr/inc
lude -c mx/ODBC/iODBC/mxSQLCodes.c -o
build/temp.cygwin-1.5.5-i686-2.3/mx/ODBC/iODBC/mxODBC/mx/ODBC/iODBC/mxSQ
LCodes.o
In file included from /usr/include/w32api/sql.h:13,
                 from mx/ODBC/iODBC/mxODBC.h:239,
                 from mx/ODBC/iODBC/mxSQLCodes.c:17:
/usr/include/w32api/sqltypes.h:17: error: parse error before "UDWORD"
/usr/include/w32api/sqltypes.h:18: error: parse error before "UWORD"
/usr/include/w32api/sqltypes.h:24: error: parse error before "PTR"
/usr/include/w32api/sqltypes.h:25: error: parse error before "HENV"
/usr/include/w32api/sqltypes.h:26: error: parse error before "HDBC"

... lots more similar problems, then eventually ...

In file included from mx/ODBC/iODBC/mxSQLCodes.c:17:
mx/ODBC/iODBC/mxODBC.h:718: error: parse error before "SQLCHAR"
mx/ODBC/iODBC/mxODBC.h:718: warning: no semicolon at end of struct or
union
mx/ODBC/iODBC/mxODBC.h:721: error: parse error before "sqllen"
mx/ODBC/iODBC/mxODBC.h:721: warning: type defaults to `int' in
declaration of `sqllen'
mx/ODBC/iODBC/mxODBC.h:721: warning: data definition has no type or
storage class
mx/ODBC/iODBC/mxODBC.h:727: error: parse error before "data"
mx/ODBC/iODBC/mxODBC.h:727: warning: type defaults to `int' in
declaration of `data'
mx/ODBC/iODBC/mxODBC.h:727: warning: data definition has no type or
storage class
mx/ODBC/iODBC/mxODBC.h:733: error: parse error before ':' token
mx/ODBC/iODBC/mxODBC.h:736: error: parse error before ':' token
mx/ODBC/iODBC/mxODBC.h:738: warning: type defaults to `int' in
declaration of `mxODBCursor_Variable'
mx/ODBC/iODBC/mxODBC.h:738: warning: data definition has no type or
storage class
mx/ODBC/iODBC/mxODBC.h:754: error: parse error before
"mxODBCursor_Variable"
mx/ODBC/iODBC/mxODBC.h:754: warning: no semicolon at end of struct or
union
mx/ODBC/iODBC/mxODBC.h:767: error: parse error before ':' token
mx/ODBC/iODBC/mxODBC.h:768: error: parse error before ':' token
mx/ODBC/iODBC/mxODBC.h:770: error: parse error before ':' token
mx/ODBC/iODBC/mxODBC.h:772: warning: type defaults to `int' in
declaration of `mxODBCursorObject'
mx/ODBC/iODBC/mxODBC.h:772: warning: data definition has no type or
storage class
mx/ODBC/iODBC/mxODBC.h:785: error: parse error before '*' token
mx/ODBC/iODBC/mxODBC.h:786: warning: function declaration isn't a
prototype
error: command 'gcc' failed with exit status 1

I suspect this might be the reappearance of a system problem that I've
struggled with before on Cygwin, but long enough ago to have forgotten
the details. Something to do with C vs C++ and DLL headers? Anyone?

regards
--
Steve Holden          +1 703 278 8281        http://www.holdenweb.com/
Improve the Internet           http://vancouver-webpages.com/CacheNow/
Python Web Programming                http://pydish.holdenweb.com/pwp/
Interview with GvR August 14, 2003       http://www.onlamp.com/python/




More information about the egenix-users mailing list