mysqldb on cygwin

dw dswj at plasa.com
Tue Feb 17 05:55:34 CET 2004


Pehaba,

   does anyone knows how to install MySQLdb on cygwin?
   
   - test device: MySQLdb 0.9.2.0 targz + cygwin 
1.5.7-cr-0x9e + python
   2.3.3 [GCC 3.3.1 (cygming special)] on cygwin + mysql 
4.0.17 win32
   - modified setup.py's using thread library.. NO, 
library + include
   path also
   - result:

dody at D /tmp/MySQL-python-0.9.2
$ python setup.py build
running build
running build_py
running build_ext
building '_mysql' extension
creating build/temp.cygwin-1.5.7-i686-2.3
gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall 
-Wstrict-prototypes -I/cygdrive/c
/mysql/include -I/usr/include/python2.3 -c _mysql.c -o 
build/temp.cygwin-1.5.7-i
686-2.3/_mysql.o -DMS_WIN32
In file included from _mysql.c:41:
/cygdrive/c/mysql/include/mysql.h:42:1: warning: "STDCALL" 
redefined
In file included from /usr/include/w32api/windows.h:48,
                  from _mysql.c:34:
/usr/include/w32api/windef.h:105:1: warning: this is the 
location of the previou
s definition
_mysql.c: In function `_mysql_ConnectionObject_info':
_mysql.c:1150: warning: assignment discards qualifiers 
from pointer target type
_mysql.c: In function `_mysql_ConnectionObject_stat':
_mysql.c:1379: warning: assignment discards qualifiers 
from pointer target type
_mysql.c: At top level:
_mysql.c:2007: warning: initialization from incompatible 
pointer type
_mysql.c:2096: warning: initialization from incompatible 
pointer type
gcc -shared -Wl,--enable-auto-image-base 
build/temp.cygwin-1.5.7-i686-2.3/_mysql
..o -L/cygdrive/c/mysql/lib/opt 
-L/usr/lib/python2.3/config -lmysqlclient -lz -lp
ython2.3 -o build/lib.cygwin-1.5.7-i686-2.3/_mysql.dll
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x67): In 
function `_mysql_Excep
tion':
/tmp/MySQL-python-0.9.2/_mysql.c:110: undefined reference 
to `_mysql_errno'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0xdf):/tmp/MySQL-python-0.9.2/_m
ysql.c:159: undefined reference to `_mysql_error'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x2d5): In 
function `_mysql__fet
ch_row':
/tmp/MySQL-python-0.9.2/_mysql.c:924: undefined reference 
to `_mysql_fetch_row'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x329):/tmp/MySQL-python-0.9.2/_
mysql.c:944: undefined reference to `_mysql_errno'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x366):/tmp/MySQL-python-0.9.2/_
mysql.c:927: undefined reference to `_mysql_fetch_row'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0xbf0): In 
function `_mysql_thre
ad_safe':
/tmp/MySQL-python-0.9.2/_mysql.c:174: undefined reference 
to `_mysql_thread_safe
'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0xccb): In 
function `_mysql_Resu
ltObject_Initialize':
/tmp/MySQL-python-0.9.2/_mysql.c:212: undefined reference 
to `_mysql_use_result'

build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0xceb):/tmp/MySQL-python-0.9.2/_
mysql.c:221: undefined reference to `_mysql_num_fields'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0xd16):/tmp/MySQL-python-0.9.2/_
mysql.c:224: undefined reference to `_mysql_fetch_fields'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0xdca):/tmp/MySQL-python-0.9.2/_
mysql.c:214: undefined reference to `_mysql_store_result'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x1007): 
In function `_mysql_Con
nectionObject_Initialize':
/tmp/MySQL-python-0.9.2/_mysql.c:315: undefined reference 
to `_mysql_init'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x1030):/tmp/MySQL-python-0.9.2/
_mysql.c:322: undefined reference to `_mysql_options'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x1055):/tmp/MySQL-python-0.9.2/
_mysql.c:326: undefined reference to `_mysql_options'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x10ab):/tmp/MySQL-python-0.9.2/
_mysql.c:333: undefined reference to `_mysql_real_connect'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x10f0):/tmp/MySQL-python-0.9.2/
_mysql.c:332: undefined reference to `_mysql_options'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x1106):/tmp/MySQL-python-0.9.2/
_mysql.c:330: undefined reference to `_mysql_options'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x1120):/tmp/MySQL-python-0.9.2/
_mysql.c:328: undefined reference to `_mysql_options'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x1146):/tmp/MySQL-python-0.9.2/
_mysql.c:318: undefined reference to `_mysql_options'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x12c6): 
In function `_mysql_Con
nectionObject_close':
/tmp/MySQL-python-0.9.2/_mysql.c:420: undefined reference 
to `_mysql_close'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x1314): 
In function `_mysql_Con
nectionObject_affected_rows':
/tmp/MySQL-python-0.9.2/_mysql.c:441: undefined reference 
to `_mysql_affected_ro
ws'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x137d): 
In function `_mysql_deb
ug':
/tmp/MySQL-python-0.9.2/_mysql.c:457: undefined reference 
to `_mysql_debug'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x13e3): 
In function `_mysql_Con
nectionObject_dump_debug_info':
/tmp/MySQL-python-0.9.2/_mysql.c:477: undefined reference 
to `_mysql_dump_debug_
info'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x1464): 
In function `_mysql_Con
nectionObject_errno':
/tmp/MySQL-python-0.9.2/_mysql.c:497: undefined reference 
to `_mysql_errno'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x14c4): 
In function `_mysql_Con
nectionObject_error':
/tmp/MySQL-python-0.9.2/_mysql.c:513: undefined reference 
to `_mysql_error'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x157a): 
In function `_mysql_esc
ape_string':
/tmp/MySQL-python-0.9.2/_mysql.c:541: undefined reference 
to `_mysql_real_escape
_string'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x15bd):/tmp/MySQL-python-0.9.2/
_mysql.c:544: undefined reference to 
`_mysql_escape_string'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x1694): 
In function `_mysql_str
ing_literal':
/tmp/MySQL-python-0.9.2/_mysql.c:581: undefined reference 
to `_mysql_real_escape
_string'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x16fc):/tmp/MySQL-python-0.9.2/
_mysql.c:584: undefined reference to 
`_mysql_escape_string'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x1dc1): 
In function `_mysql_Res
ultObject_describe':
/tmp/MySQL-python-0.9.2/_mysql.c:730: undefined reference 
to `_mysql_num_fields'

build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x1dcf):/tmp/MySQL-python-0.9.2/
_mysql.c:731: undefined reference to `_mysql_fetch_fields'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x1ebd): 
In function `_mysql_Res
ultObject_field_flags':
/tmp/MySQL-python-0.9.2/_mysql.c:766: undefined reference 
to `_mysql_num_fields'

build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x1ecb):/tmp/MySQL-python-0.9.2/
_mysql.c:767: undefined reference to `_mysql_fetch_fields'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x1f63): 
In function `_mysql_row
_to_tuple':
/tmp/MySQL-python-0.9.2/_mysql.c:814: undefined reference 
to `_mysql_num_fields'

build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x1f86):/tmp/MySQL-python-0.9.2/
_mysql.c:816: undefined reference to 
`_mysql_fetch_lengths'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x2056): 
In function `_mysql_row
_to_dict':
/tmp/MySQL-python-0.9.2/_mysql.c:840: undefined reference 
to `_mysql_num_fields'

build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x2087):/tmp/MySQL-python-0.9.2/
_mysql.c:842: undefined reference to 
`_mysql_fetch_lengths'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x209b):/tmp/MySQL-python-0.9.2/
_mysql.c:843: undefined reference to `_mysql_fetch_fields'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x23e6): 
In function `_mysql_row
_to_dict_old':
/tmp/MySQL-python-0.9.2/_mysql.c:879: undefined reference 
to `_mysql_num_fields'

build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x2417):/tmp/MySQL-python-0.9.2/
_mysql.c:881: undefined reference to 
`_mysql_fetch_lengths'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x242b):/tmp/MySQL-python-0.9.2/
_mysql.c:882: undefined reference to `_mysql_fetch_fields'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x27df): 
In function `_mysql_Res
ultObject_fetch_row':
/tmp/MySQL-python-0.9.2/_mysql.c:1003: undefined reference 
to `_mysql_num_rows'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x28e4): 
In function `_mysql_Con
nectionObject_change_user':
/tmp/MySQL-python-0.9.2/_mysql.c:1050: undefined reference 
to `_mysql_change_use
r'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x2964): 
In function `_mysql_Con
nectionObject_character_set_name':
/tmp/MySQL-python-0.9.2/_mysql.c:1072: undefined reference 
to `_mysql_character_
set_name'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x29ae): 
In function `_mysql_get
_client_info':
/tmp/MySQL-python-0.9.2/_mysql.c:1088: undefined reference 
to `_mysql_get_client
_info'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x2a04): 
In function `_mysql_Con
nectionObject_get_host_info':
/tmp/MySQL-python-0.9.2/_mysql.c:1103: undefined reference 
to `_mysql_get_host_i
nfo'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x2a64): 
In function `_mysql_Con
nectionObject_get_proto_info':
/tmp/MySQL-python-0.9.2/_mysql.c:1118: undefined reference 
to `_mysql_get_proto_
info'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x2ac4): 
In function `_mysql_Con
nectionObject_get_server_info':
/tmp/MySQL-python-0.9.2/_mysql.c:1133: undefined reference 
to `_mysql_get_server
_info'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x2b26): 
In function `_mysql_Con
nectionObject_info':
/tmp/MySQL-python-0.9.2/_mysql.c:1150: undefined reference 
to `_mysql_info'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x2bb1): 
In function `_mysql_Con
nectionObject_insert_id':
/tmp/MySQL-python-0.9.2/_mysql.c:1186: undefined reference 
to `_mysql_insert_id'

build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x2c51): 
In function `_mysql_Con
nectionObject_kill':
/tmp/MySQL-python-0.9.2/_mysql.c:1205: undefined reference 
to `_mysql_kill'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x2cd4): 
In function `_mysql_Con
nectionObject_field_count':
/tmp/MySQL-python-0.9.2/_mysql.c:1228: undefined reference 
to `_mysql_field_coun
t'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x2d37): 
In function `_mysql_Res
ultObject_num_fields':
/tmp/MySQL-python-0.9.2/_mysql.c:1242: undefined reference 
to `_mysql_num_fields
'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x2da7): 
In function `_mysql_Res
ultObject_num_rows':
/tmp/MySQL-python-0.9.2/_mysql.c:1258: undefined reference 
to `_mysql_num_rows'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x2e23): 
In function `_mysql_Con
nectionObject_ping':
/tmp/MySQL-python-0.9.2/_mysql.c:1282: undefined reference 
to `_mysql_ping'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x2ed9): 
In function `_mysql_Con
nectionObject_query':
/tmp/MySQL-python-0.9.2/_mysql.c:1305: undefined reference 
to `_mysql_real_query
'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x2f81): 
In function `_mysql_Con
nectionObject_select_db':
/tmp/MySQL-python-0.9.2/_mysql.c:1335: undefined reference 
to `_mysql_select_db'

build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x3013): 
In function `_mysql_Con
nectionObject_shutdown':
/tmp/MySQL-python-0.9.2/_mysql.c:1356: undefined reference 
to `_mysql_shutdown'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x30a1): 
In function `_mysql_Con
nectionObject_stat':
/tmp/MySQL-python-0.9.2/_mysql.c:1379: undefined reference 
to `_mysql_stat'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x325e): 
In function `_mysql_Con
nectionObject_thread_id':
/tmp/MySQL-python-0.9.2/_mysql.c:1441: undefined reference 
to `_mysql_thread_id'

build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x3479): 
In function `_mysql_Con
nectionObject_dealloc':
/tmp/MySQL-python-0.9.2/_mysql.c:420: undefined reference 
to `_mysql_close'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x35df): 
In function `_mysql_Res
ultObject_data_seek':
/tmp/MySQL-python-0.9.2/_mysql.c:1521: undefined reference 
to `_mysql_data_seek'

build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x3660): 
In function `_mysql_Res
ultObject_row_seek':
/tmp/MySQL-python-0.9.2/_mysql.c:1537: undefined reference 
to `_mysql_row_tell'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x3675):/tmp/MySQL-python-0.9.2/
_mysql.c:1538: undefined reference to `_mysql_row_seek'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x36d7): 
In function `_mysql_Res
ultObject_row_tell':
/tmp/MySQL-python-0.9.2/_mysql.c:1553: undefined reference 
to `_mysql_row_tell'
build/temp.cygwin-1.5.7-i686-2.3/_mysql.o(.text+0x372b): 
In function `_mysql_Res
ultObject_dealloc':
/tmp/MySQL-python-0.9.2/_mysql.c:1562: undefined reference 
to `_mysql_free_resul
t'
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1

dody at D /tmp/MySQL-python-0.9.2
$

===========================================================================================
Akses Internet Prabayar TELKOMNet-Prepaid,
 nominal Rp.10.000- Rp.150.000. 
Dapatkan di Plasa - Plasa TELKOM terdekat (khusus di Jawa Timur)
===========================================================================================




More information about the Python-list mailing list