Hi! I'm trying to have a build for version 1.1.7 with this config: - win32 - python 2.2 - mysql 4.1.7
but gcc fails to complete the job. here's the partial log : python setup.py build running build running build_py not copying _mysql_exceptions.py (output up-to-date) (...) not copying MySQLdb\constants\CLIENT.py (output up-to-date) running build_ext building '_mysql' extension creating build\temp.win32-2.2 creating build\temp.win32-2.2\Release C:\Progra~1\cygwin\bin\gcc.exe -mno-cygwin -mdll -O -Wall -Ic:\mysql\include -IC :\Python22\include -c _mysql.c -o build\temp.win32-2.2\Release_mysql.o _mysql.c: In function _mysql_ConnectionObject_Initialize': _mysql.c:429: warning: unused variablevalue' _mysql.c:521: warning: label error' defined but not used writing build\temp.win32-2.2\Release\_mysql.def C:\Progra~1\cygwin\bin\gcc.exe -mno-cygwin -mdll -static -s build\temp.win32-2.2 \Release\_mysql.o c:\mysql\lib\opt\mysqlclient.lib build\temp.win32-2.2\Release\ _mysql.def -Lc:\mysql\lib\opt -LC:\Python22\libs -lmysqlclient -lzlib -lmsvcrt - llibcmt -lwsock32 -ladvapi32 -lpython22 -o build\lib.win32-2.2\_mysql.pyd Warning: .drectve/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LI BCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized (...) Warning: .drectve /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized c:\mysql\lib\opt\mysqlclient.lib(./release/default.obj)(.text+0x6):C:\cygwin\hom e\mys: undefined reference tochkstk' c:\mysql\lib\opt\mysqlclient.lib(./release/longlong2str.obj)(.text+0xa5):C:\cygw in\home\mys: undefined reference to __aulldiv' (...) nmth000039.o(.idata$4+0x0): undefined reference tonm_mb_cur_max' Info: resolving iob by linking to impiob (auto-import) Info: resolving pctype by linking to imppctype (auto-import) Info: resolving mb_cur_max by linking to imp__mb_cur_max (auto-import) collect2: ld returned 1 exit status error: command 'gcc' failed with exit status 1
_mysql_ConnectionObject_Initialize': _mysql.c:429: warning: unused variable
error' defined but not used writing build\temp.win32-2.2\Release\_mysql.def C:\Progra~1\cygwin\bin\gcc.exe -mno-cygwin -mdll -static -s build\temp.win32-2.2 \Release\_mysql.o c:\mysql\lib\opt\mysqlclient.lib build\temp.win32-2.2\Release\ _mysql.def -Lc:\mysql\lib\opt -LC:\Python22\libs -lmysqlclient -lzlib -lmsvcrt - llibcmt -lwsock32 -ladvapi32 -lpython22 -o build\lib.win32-2.2\_mysql.pyd Warning: .drectve
/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized c:\mysql\lib\opt\mysqlclient.lib(./release/default.obj)(.text+0x6):C:\cygwin\hom e\mys: undefined reference to
__aulldiv' (...) nmth000039.o(.idata$4+0x0): undefined reference to
Since it's not the first extention for python that I built , I check a lot of things that could produce that.
Any idea / help ?
Thanks, jc
I've built it against python 2.3, are you sure you need 2.2? Jose
humm..yes, I really need it for 2.2 . Please, can you try to build it ?
Log in to post a comment.
Hi!
I'm trying to have a build for version 1.1.7 with this config:
- win32
- python 2.2
- mysql 4.1.7
but gcc fails to complete the job. here's the partial log :
python setup.py build
running build
running build_py
not copying _mysql_exceptions.py (output up-to-date)
(...)
not copying MySQLdb\constants\CLIENT.py (output up-to-date)
running build_ext
building '_mysql' extension
creating build\temp.win32-2.2
creating build\temp.win32-2.2\Release
C:\Progra~1\cygwin\bin\gcc.exe -mno-cygwin -mdll -O -Wall -Ic:\mysql\include -IC
:\Python22\include -c _mysql.c -o build\temp.win32-2.2\Release_mysql.o
_mysql.c: In function
_mysql_ConnectionObject_Initialize': _mysql.c:429: warning: unused variable
value'_mysql.c:521: warning: label
error' defined but not used writing build\temp.win32-2.2\Release\_mysql.def C:\Progra~1\cygwin\bin\gcc.exe -mno-cygwin -mdll -static -s build\temp.win32-2.2 \Release\_mysql.o c:\mysql\lib\opt\mysqlclient.lib build\temp.win32-2.2\Release\ _mysql.def -Lc:\mysql\lib\opt -LC:\Python22\libs -lmysqlclient -lzlib -lmsvcrt - llibcmt -lwsock32 -ladvapi32 -lpython22 -o build\lib.win32-2.2\_mysql.pyd Warning: .drectve
/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
(...)
Warning: .drectve
/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized c:\mysql\lib\opt\mysqlclient.lib(./release/default.obj)(.text+0x6):C:\cygwin\hom e\mys: undefined reference to
chkstk'c:\mysql\lib\opt\mysqlclient.lib(./release/longlong2str.obj)(.text+0xa5):C:\cygw
in\home\mys: undefined reference to
__aulldiv' (...) nmth000039.o(.idata$4+0x0): undefined reference to
nm_mb_cur_max'Info: resolving iob by linking to impiob (auto-import)
Info: resolving pctype by linking to imppctype (auto-import)
Info: resolving mb_cur_max by linking to imp__mb_cur_max (auto-import)
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
Since it's not the first extention for python that I built , I check a lot of things that could produce that.
Any idea / help ?
Thanks,
jc
I've built it against python 2.3, are you sure you need 2.2?
Jose
humm..yes, I really need it for 2.2 . Please, can you try to build it ?