私はCygwinでpython-sybaseモジュールをビルドしようとしていますが、動作しないようです。これは、コンパイルを開始するようで、それは次のエラーを投げて開始します。WindowsでPython Sybaseモジュールをビルドするにはどうしたらいいですか?
$ python setup.py install
running install
running bdist_egg
running egg_info
writing python_sybase.egg-info/PKG-INFO
writing top-level names to python_sybase.egg-info/top_level.txt
writing dependency_links to python_sybase.egg-info/dependency_links.txt
reading manifest file 'python_sybase.egg-info/SOURCES.txt'
writing manifest file 'python_sybase.egg-info/SOURCES.txt'
installing library code to build/bdist.cygwin-1.7.7-i686/egg
running install_lib
running build_py
running build_ext
building 'sybasect' extension
gcc -fno-strict-aliasing -g -O2 -pipe -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DWANT_BULKCOPY -DHAVE_DATE TIME -DHAVE_DECIMAL -DHAVE_BLK_ALLOC -DHAVE_BLK_DESCRIBE -DHAVE_BLK_DROP -DHAVE_BLK_ROWXFER_MULT -DHAVE_BLK_TEXTXFE R -DHAVE_CT_CURSOR -DHAVE_CT_DATA_INFO -DHAVE_CT_DYNAMIC -DHAVE_CT_SEND_DATA -DHAVE_CT_SETPARAM -DHAVE_CS_CALC -DHA VE_CS_CMP -IC:\Sybase\sql1251/OCS-15_0/include -I/usr/include/python2.6 -c blk.c -o build/temp.cygwin-1.7.7-i686-2. 6/blk.o
...
build/temp.cygwin-1.7.7-i686-2.6/blk.o: In function `CS_BLKDESC_blk_bind':
/home/jjamae/tmp/python-sybase-0.40pre2/blk.c:33: undefined reference to `_blk_bind'
build/temp.cygwin-1.7.7-i686-2.6/blk.o: In function `CS_BLKDESC_blk_describe':
/home/jjamae/tmp/python-sybase-0.40pre2/blk.c:77: undefined reference to `_blk_describe'
build/temp.cygwin-1.7.7-i686-2.6/blk.o: In function `CS_BLKDESC_blk_done':
/home/jjamae/tmp/python-sybase-0.40pre2/blk.c:133: undefined reference to `_blk_done'
build/temp.cygwin-1.7.7-i686-2.6/blk.o: In function `CS_BLKDESC_blk_drop':
/home/jjamae/tmp/python-sybase-0.40pre2/blk.c:166: undefined reference to `_blk_drop'
build/temp.cygwin-1.7.7-i686-2.6/blk.o: In function `CS_BLKDESC_blk_init':
/home/jjamae/tmp/python-sybase-0.40pre2/blk.c:200: undefined reference to `_blk_init'
build/temp.cygwin-1.7.7-i686-2.6/blk.o: In function `CS_BLKDESC_blk_props':
/home/jjamae/tmp/python-sybase-0.40pre2/blk.c:440: undefined reference to `_blk_props'
/home/jjamae/tmp/python-sybase-0.40pre2/blk.c:362: undefined reference to `_blk_props'
/home/jjamae/tmp/python-sybase-0.40pre2/blk.c:283: undefined reference to `_blk_props'
/home/jjamae/tmp/python-sybase-0.40pre2/blk.c:398: undefined reference to `_blk_props'
/home/jjamae/tmp/python-sybase-0.40pre2/blk.c:305: undefined reference to `_blk_props'
私もMINGW32コンパイラを試してみたが、私はこのエラーを取得:
$ python setup.py build -c mingw32
running build
running build_py
running build_ext
building 'sybasect' extension
gcc -mno-cygwin -mdll -O -Wall -DWANT_BULKCOPY -DHAVE_DATETIME -DHAVE_DECIMAL -DHAVE_BLK_ALLOC -DHAVE_BLK_DESCRIBE -DHAVE_BLK_DROP -DHAVE_BLK_ROWXFER_MULT -DHAVE_BLK_TEXTXFER -DHAVE_CT_CURSOR -DHAVE_CT_DATA_INFO -DHAVE_CT_DYNAMIC -DHAVE_CT_SEND_DATA -DHAVE_CT_SETPARAM -DHAVE_CS_CALC -DHAVE_CS_CMP -IC:\Sybase\sql1251/OCS-15_0/include -I/usr/include/python2.6 -c blk.c -o build/temp.cygwin-1.7.7-i686-2.6/blk.o
In file included from /usr/include/python2.6/Python.h:58,
from sybasect.h:9,
from blk.c:9:
/usr/include/python2.6/pyport.h:261:24: sys/select.h: No such file or directory
/usr/include/python2.6/pyport.h:472:24: sys/termio.h: No such file or directory
error: command 'gcc' failed with exit status 1
は、誰もが正常にコンパイルできるようになりましたWindows上のPython-Sybase? Cygwinでできない場合は、簡単にCygwinの外で(フリーコンパイラを使って)ビルドできますか?