Menu

1.1.7 win32 build

Help
jcg
2004-12-01
2012-09-19
  • jcg

    jcg - 2004-12-01

    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 to
    nm_mb_cur_max'
    Info: resolving iob by linking to imp
    iob (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

     
    • Jose Galvez

      Jose Galvez - 2004-12-03

      I've built it against python 2.3, are you sure you need 2.2?
      Jose

       
    • jcg

      jcg - 2004-12-17

      humm..yes, I really need it for 2.2 . Please, can you try to build it ?

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.