I can't seem to get mysql-python configured, here are my specs:
python2.42
mysql 4.0.24
gcc 3.3.5-debian
and when i run the setup.py script with the build arguement here are the errors i get
admin@chronoeffect:/mysql-python$ python setup.py build
running build
running build_py
running build_ext
building '_mysql' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include -I/usr/local/include/python2.4 -c _mysql.c -o build/temp.linux-i686-2.4/_mysql.o -I/usr/local/include -mcpu=pentiumpro
_mysql.c:41:19: mysql.h: No such file or directory
_mysql.c:42:26: mysqld_error.h: No such file or directory
_mysql.c:43:20: errmsg.h: No such file or directory
_mysql.c:73: error: syntax error before "MYSQL"
_mysql.c:73: warning: no semicolon at end of struct or union
_mysql.c:76: error: syntax error before '}' token
_mysql.c:76: warning: type defaults to int' in declaration of_mysql_ConnectionObject'
_mysql.c:76: warning: data definition has no type or storage class
_mysql.c:87: error: syntax error before "MYSQL_RES"
_mysql.c:87: warning: no semicolon at end of struct or union
_mysql.c:91: error: syntax error before '}' token
_mysql.c:91: warning: type defaults to int' in declaration of_mysql_ResultObject'
_mysql.c:91: warning: data definition has no type or storage class
_mysql.c:103: error: syntax error before '' token
_mysql.c:104: warning: function declaration isn't a prototype
_mysql.c: In function _mysql_Exception':
_mysql.c:117: warning: implicit declaration of functionmysql_errno'
_mysql.c:117: error: c' undeclared (first use in this function)
_mysql.c:117: error: (Each undeclared identifier is reported only once
_mysql.c:117: error: for each function it appears in.)
_mysql.c:120: error:CR_MAX_ERROR' undeclared (first use in this function)
_mysql.c:128: error: CR_COMMANDS_OUT_OF_SYNC' undeclared (first use in this function)
_mysql.c:129: error:ER_DB_CREATE_EXISTS' undeclared (first use in this function)
_mysql.c:130: error: ER_SYNTAX_ERROR' undeclared (first use in this function)
_mysql.c:131: error:ER_PARSE_ERROR' undeclared (first use in this function)
_mysql.c:132: error: ER_NO_SUCH_TABLE' undeclared (first use in this function)
_mysql.c:133: error:ER_WRONG_DB_NAME' undeclared (first use in this function)
_mysql.c:134: error: ER_WRONG_TABLE_NAME' undeclared (first use in this function)
_mysql.c:135: error:ER_FIELD_SPECIFIED_TWICE' undeclared (first use in this function)
_mysql.c:136: error: ER_INVALID_GROUP_FUNC_USE' undeclared (first use in this function)
_mysql.c:137: error:ER_UNSUPPORTED_EXTENSION' undeclared (first use in this function)
_mysql.c:138: error: ER_TABLE_MUST_HAVE_COLUMNS' undeclared (first use in this function)
_mysql.c:144: error:ER_DUP_ENTRY' undeclared (first use in this function)
_mysql.c:166: warning: implicit declaration of function mysql_error'
_mysql.c:166: warning: passing arg 1 ofPyString_FromString' makes pointer from integer without a cast
_mysql.c: In function _mysql_server_init':
_mysql.c:185: warning: unused variables'
_mysql.c:186: warning: unused variable cmd_argc'
_mysql.c:186: warning: unused variablei'
_mysql.c:186: warning: unused variable groupc'
_mysql.c:187: warning: unused variableitem'
_mysql.c:261: warning: label finish' defined but not used
_mysql.c: At top level:
_mysql.c:311: error: syntax error before '*' token
_mysql.c:314: warning: function declaration isn't a prototype
_mysql.c: In function_mysql_ResultObject_Initialize':
_mysql.c:316: error: MYSQL_RES' undeclared (first use in this function)
_mysql.c:316: error:result' undeclared (first use in this function)
_mysql.c:317: error: conn' undeclared (first use in this function)
_mysql.c:321: error:MYSQL_FIELD' undeclared (first use in this function)
_mysql.c:321: error: fields' undeclared (first use in this function)
_mysql.c:323: error:args' undeclared (first use in this function)
_mysql.c:323: error: kwargs' undeclared (first use in this function)
_mysql.c:328: error:self' undeclared (first use in this function)
_mysql.c:333: warning: implicit declaration of function mysql_use_result'
_mysql.c:335: warning: implicit declaration of functionmysql_store_result'
_mysql.c:342: warning: implicit declaration of function mysql_num_fields'
_mysql.c:345: warning: implicit declaration of functionmysql_fetch_fields'
_mysql.c: At top level:
_mysql.c:396: error: syntax error before '' token
_mysql.c:399: warning: function declaration isn't a prototype
_mysql.c: In function _mysql_ResultObject_traverse':
_mysql.c:401: error:self' undeclared (first use in this function)
_mysql.c:402: warning: implicit declaration of function visit'
_mysql.c:402: error:arg' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:411: error: syntax error before '' token
_mysql.c:412: warning: function declaration isn't a prototype
_mysql.c: In function _mysql_ResultObject_clear':
_mysql.c:413: error:self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:422: error: syntax error before '' token
_mysql.c:425: warning: function declaration isn't a prototype
_mysql.c: In function _mysql_ConnectionObject_Initialize':
_mysql.c:426: error:MYSQL' undeclared (first use in this function)
_mysql.c:426: error: conn' undeclared (first use in this function)
_mysql.c:435: error:MYSQL_PORT' undeclared (first use in this function)
_mysql.c:451: error: self' undeclared (first use in this function)
_mysql.c:454: error:args' undeclared (first use in this function)
_mysql.c:454: error: kwargs' undeclared (first use in this function)
_mysql.c:497: warning: implicit declaration of functionmysql_init'
_mysql.c:500: warning: implicit declaration of function mysql_options'
_mysql.c:500: error:MYSQL_OPT_CONNECT_TIMEOUT' undeclared (first use in this function)
_mysql.c:504: error: MYSQL_OPT_COMPRESS' undeclared (first use in this function)
_mysql.c:505: error:CLIENT_COMPRESS' undeclared (first use in this function)
_mysql.c:508: error: MYSQL_OPT_NAMED_PIPE' undeclared (first use in this function)
_mysql.c:510: error:MYSQL_INIT_COMMAND' undeclared (first use in this function)
_mysql.c:512: error: MYSQL_READ_DEFAULT_FILE' undeclared (first use in this function)
_mysql.c:514: error:MYSQL_READ_DEFAULT_GROUP' undeclared (first use in this function)
_mysql.c:517: error: MYSQL_OPT_LOCAL_INFILE' undeclared (first use in this function)
_mysql.c:525: warning: implicit declaration of functionmysql_real_connect'
_mysql.c: In function _mysql_connect':
_mysql.c:604: error:c' undeclared (first use in this function)
_mysql.c:606: error: syntax error before ')' token
_mysql.c: At top level:
_mysql.c:617: error: syntax error before '' token
_mysql.c:620: warning: function declaration isn't a prototype
_mysql.c: In function _mysql_ConnectionObject_traverse':
_mysql.c:621: error:self' undeclared (first use in this function)
_mysql.c:622: error: arg' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:628: error: syntax error before '*' token
_mysql.c:629: warning: function declaration isn't a prototype
_mysql.c: In function_mysql_ConnectionObject_clear':
_mysql.c:630: error: self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:640: error: syntax error before '*' token
_mysql.c:642: warning: function declaration isn't a prototype
_mysql.c: In function_mysql_ConnectionObject_close':
_mysql.c:643: error: args' undeclared (first use in this function)
_mysql.c:646: error:self' undeclared (first use in this function)
_mysql.c:648: warning: implicit declaration of function mysql_close'
_mysql.c: At top level:
_mysql.c:668: error: syntax error before '*' token
_mysql.c:670: warning: function declaration isn't a prototype
_mysql.c: In function_mysql_ConnectionObject_affected_rows':
_mysql.c:671: error: args' undeclared (first use in this function)
_mysql.c:672: error:self' undeclared (first use in this function)
_mysql.c:673: warning: implicit declaration of function mysql_affected_rows'
_mysql.c: In function_mysql_debug':
_mysql.c:689: warning: implicit declaration of function mysql_debug'
_mysql.c: At top level:
_mysql.c:702: error: syntax error before '*' token
_mysql.c:704: warning: function declaration isn't a prototype
_mysql.c: In function_mysql_ConnectionObject_dump_debug_info':
_mysql.c:706: error: args' undeclared (first use in this function)
_mysql.c:707: error:self' undeclared (first use in this function)
_mysql.c:709: warning: implicit declaration of function mysql_dump_debug_info'
_mysql.c: At top level:
_mysql.c:721: error: syntax error before '*' token
_mysql.c:723: warning: function declaration isn't a prototype
_mysql.c: In function_mysql_ConnectionObject_autocommit':
_mysql.c:725: error: args' undeclared (first use in this function)
_mysql.c:733: warning: implicit declaration of functionmysql_query'
_mysql.c:733: error: self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:747: error: syntax error before '*' token
_mysql.c:749: warning: function declaration isn't a prototype
_mysql.c: In function_mysql_ConnectionObject_commit':
_mysql.c:751: error: args' undeclared (first use in this function)
_mysql.c:756: error:self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:769: error: syntax error before '' token
_mysql.c:771: warning: function declaration isn't a prototype
_mysql.c: In function _mysql_ConnectionObject_rollback':
_mysql.c:773: error:args' undeclared (first use in this function)
_mysql.c:778: error: self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:801: error: syntax error before '*' token
_mysql.c:803: warning: function declaration isn't a prototype
_mysql.c: In function_mysql_ConnectionObject_next_result':
_mysql.c:805: error: args' undeclared (first use in this function)
_mysql.c:813: error:self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:886: error: syntax error before '' token
_mysql.c:888: warning: function declaration isn't a prototype
_mysql.c: In function _mysql_ConnectionObject_errno':
_mysql.c:889: error:args' undeclared (first use in this function)
_mysql.c:890: error: self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:902: error: syntax error before '*' token
_mysql.c:904: warning: function declaration isn't a prototype
_mysql.c: In function_mysql_ConnectionObject_error':
_mysql.c:905: error: args' undeclared (first use in this function)
_mysql.c:906: error:self' undeclared (first use in this function)
_mysql.c:907: warning: passing arg 1 of PyString_FromString' makes pointer from integer without a cast
_mysql.c: At top level:
_mysql.c:920: error: syntax error before '*' token
_mysql.c:922: warning: function declaration isn't a prototype
_mysql.c: In function_mysql_escape_string':
_mysql.c:926: error: args' undeclared (first use in this function)
_mysql.c:931: warning: implicit declaration of functionmysql_escape_string'
_mysql.c: At top level:
_mysql.c:955: error: syntax error before '' token
_mysql.c:957: warning: function declaration isn't a prototype
_mysql.c: In function _mysql_string_literal':
_mysql.c:961: error:args' undeclared (first use in this function)
_mysql.c: In function _mysql_escape':
_mysql.c:1038: error: syntax error before ')' token
_mysql.c: At top level:
_mysql.c:1114: error: syntax error before '*' token
_mysql.c:1116: warning: function declaration isn't a prototype
_mysql.c: In function_mysql_ResultObject_describe':
_mysql.c:1118: error: MYSQL_FIELD' undeclared (first use in this function)
_mysql.c:1118: error:fields' undeclared (first use in this function)
_mysql.c:1120: error: args' undeclared (first use in this function)
_mysql.c:1121: error: syntax error before ')' token
_mysql.c:1121: error: syntax error before ')' token
_mysql.c:1122: error:self' undeclared (first use in this function)
_mysql.c:1134: warning: implicit declaration of function IS_NOT_NULL'
_mysql.c: At top level:
_mysql.c:1150: error: syntax error before '*' token
_mysql.c:1152: warning: function declaration isn't a prototype
_mysql.c: In function_mysql_ResultObject_field_flags':
_mysql.c:1154: error: MYSQL_FIELD' undeclared (first use in this function)
_mysql.c:1154: error:fields' undeclared (first use in this function)
_mysql.c:1156: error: args' undeclared (first use in this function)
_mysql.c:1157: error: syntax error before ')' token
_mysql.c:1157: error: syntax error before ')' token
_mysql.c:1158: error:self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1199: error: syntax error before '' token
_mysql.c:1201: warning: function declaration isn't a prototype
_mysql.c: In function _mysql_row_to_tuple':
_mysql.c:1206: error:self' undeclared (first use in this function)
_mysql.c:1208: warning: implicit declaration of function mysql_fetch_lengths'
_mysql.c:1208: warning: assignment makes pointer from integer without a cast
_mysql.c:1212: error:row' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1224: error: syntax error before '' token
_mysql.c:1226: warning: function declaration isn't a prototype
_mysql.c: In function _mysql_row_to_dict':
_mysql.c:1230: error:MYSQL_FIELD' undeclared (first use in this function)
_mysql.c:1230: error: fields' undeclared (first use in this function)
_mysql.c:1232: error:self' undeclared (first use in this function)
_mysql.c:1234: warning: assignment makes pointer from integer without a cast
_mysql.c:1239: error: row' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1263: error: syntax error before '*' token
_mysql.c:1265: warning: function declaration isn't a prototype
_mysql.c: In function_mysql_row_to_dict_old':
_mysql.c:1269: error: MYSQL_FIELD' undeclared (first use in this function)
_mysql.c:1269: error:fields' undeclared (first use in this function)
_mysql.c:1271: error: self' undeclared (first use in this function)
_mysql.c:1273: warning: assignment makes pointer from integer without a cast
_mysql.c:1278: error:row' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1300: error: syntax error before '' token
_mysql.c:1300: warning: function declaration isn't a prototype
_mysql.c:1304: error: syntax error before '' token
_mysql.c:1309: warning: function declaration isn't a prototype
_mysql.c: In function _mysql__fetch_row':
_mysql.c:1311: error:MYSQL_ROW' undeclared (first use in this function)
_mysql.c:1311: error: syntax error before "row"
_mysql.c:1313: error: skiprows' undeclared (first use in this function)
_mysql.c:1313: error:maxrows' undeclared (first use in this function)
_mysql.c:1315: error: self' undeclared (first use in this function)
_mysql.c:1316: error:row' undeclared (first use in this function)
_mysql.c:1316: warning: implicit declaration of function mysql_fetch_row'
_mysql.c:1322: error: syntax error before ')' token
_mysql.c:1323: error: syntax error before ')' token
_mysql.c:1327: error:r' undeclared (first use in this function)
_mysql.c:1330: warning: implicit declaration of function convert_row'
_mysql.c:1330: warning: assignment makes pointer from integer without a cast
_mysql.c: At top level:
_mysql.c:1350: error: syntax error before '*' token
_mysql.c:1353: warning: function declaration isn't a prototype
_mysql.c: In function_mysql_ResultObject_fetch_row':
_mysql.c:1354: error: syntax error before '' token
_mysql.c:1354: warning: function declaration isn't a prototype
_mysql.c:1366: error: args' undeclared (first use in this function)
_mysql.c:1366: error:kwargs' undeclared (first use in this function)
_mysql.c:1369: error: syntax error before ')' token
_mysql.c:1369: error: syntax error before ')' token
_mysql.c:1377: error: self' undeclared (first use in this function)
_mysql.c:1395: warning: implicit declaration of functionmysql_num_rows'
_mysql.c: At top level:
_mysql.c:1457: error: syntax error before '' token
_mysql.c:1459: warning: function declaration isn't a prototype
_mysql.c: In function _mysql_ConnectionObject_character_set_name':
_mysql.c:1461: error:args' undeclared (first use in this function)
_mysql.c:1462: error: self' undeclared (first use in this function)
_mysql.c: In function_mysql_get_client_info':
_mysql.c:1481: warning: implicit declaration of function mysql_get_client_info'
_mysql.c:1481: warning: passing arg 1 ofPyString_FromString' makes pointer from integer without a cast
_mysql.c: At top level:
_mysql.c:1491: error: syntax error before '' token
_mysql.c:1493: warning: function declaration isn't a prototype
_mysql.c: In function _mysql_ConnectionObject_get_host_info':
_mysql.c:1494: error:args' undeclared (first use in this function)
_mysql.c:1495: error: self' undeclared (first use in this function)
_mysql.c:1496: warning: implicit declaration of functionmysql_get_host_info'
_mysql.c:1496: warning: passing arg 1 of PyString_FromString' makes pointer from integer without a cast
_mysql.c: At top level:
_mysql.c:1506: error: syntax error before '*' token
_mysql.c:1508: warning: function declaration isn't a prototype
_mysql.c: In function_mysql_ConnectionObject_get_proto_info':
_mysql.c:1509: error: args' undeclared (first use in this function)
_mysql.c:1510: error:self' undeclared (first use in this function)
_mysql.c:1511: warning: implicit declaration of function mysql_get_proto_info'
_mysql.c: At top level:
_mysql.c:1521: error: syntax error before '*' token
_mysql.c:1523: warning: function declaration isn't a prototype
_mysql.c: In function_mysql_ConnectionObject_get_server_info':
_mysql.c:1524: error: args' undeclared (first use in this function)
_mysql.c:1525: error:self' undeclared (first use in this function)
_mysql.c:1526: warning: implicit declaration of function mysql_get_server_info'
_mysql.c:1526: warning: passing arg 1 ofPyString_FromString' makes pointer from integer without a cast
_mysql.c: At top level:
_mysql.c:1537: error: syntax error before '' token
_mysql.c:1539: warning: function declaration isn't a prototype
_mysql.c: In function _mysql_ConnectionObject_info':
_mysql.c:1541: error:args' undeclared (first use in this function)
_mysql.c:1542: error: self' undeclared (first use in this function)
_mysql.c:1543: warning: implicit declaration of functionmysql_info'
_mysql.c:1543: warning: assignment makes pointer from integer without a cast
_mysql.c: At top level:
_mysql.c:1572: error: syntax error before '' token
_mysql.c:1574: warning: function declaration isn't a prototype
_mysql.c: In function _mysql_ConnectionObject_insert_id':
_mysql.c:1575: error:my_ulonglong' undeclared (first use in this function)
_mysql.c:1575: error: syntax error before "r"
_mysql.c:1576: error: args' undeclared (first use in this function)
_mysql.c:1577: error:self' undeclared (first use in this function)
_mysql.c:1579: error: r' undeclared (first use in this function)
_mysql.c:1579: warning: implicit declaration of functionmysql_insert_id'
_mysql.c: At top level:
_mysql.c:1590: error: syntax error before '' token
_mysql.c:1592: warning: function declaration isn't a prototype
_mysql.c: In function _mysql_ConnectionObject_kill':
_mysql.c:1595: error:args' undeclared (first use in this function)
_mysql.c:1596: error: self' undeclared (first use in this function)
_mysql.c:1598: warning: implicit declaration of functionmysql_kill'
_mysql.c: At top level:
_mysql.c:1613: error: syntax error before '' token
_mysql.c:1615: warning: function declaration isn't a prototype
_mysql.c: In function _mysql_ConnectionObject_field_count':
_mysql.c:1616: error:args' undeclared (first use in this function)
_mysql.c:1617: error: self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1630: error: syntax error before '*' token
_mysql.c:1632: warning: function declaration isn't a prototype
_mysql.c: In function_mysql_ResultObject_num_fields':
_mysql.c:1633: error: args' undeclared (first use in this function)
_mysql.c:1634: error: syntax error before ')' token
_mysql.c:1634: error: syntax error before ')' token
_mysql.c:1635: error:self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1646: error: syntax error before '' token
_mysql.c:1648: warning: function declaration isn't a prototype
_mysql.c: In function _mysql_ResultObject_num_rows':
_mysql.c:1649: error:args' undeclared (first use in this function)
_mysql.c:1650: error: syntax error before ')' token
_mysql.c:1650: error: syntax error before ')' token
_mysql.c:1651: error: self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1668: error: syntax error before '*' token
_mysql.c:1670: warning: function declaration isn't a prototype
_mysql.c: In function_mysql_ConnectionObject_ping':
_mysql.c:1672: error: args' undeclared (first use in this function)
_mysql.c:1673: error:self' undeclared (first use in this function)
_mysql.c:1675: warning: implicit declaration of function mysql_ping'
_mysql.c: At top level:
_mysql.c:1690: error: syntax error before '*' token
_mysql.c:1692: warning: function declaration isn't a prototype
_mysql.c: In function_mysql_ConnectionObject_query':
_mysql.c:1695: error: args' undeclared (first use in this function)
_mysql.c:1696: error:self' undeclared (first use in this function)
_mysql.c:1698: warning: implicit declaration of function mysql_real_query'
_mysql.c: At top level:
_mysql.c:1720: error: syntax error before '*' token
_mysql.c:1722: warning: function declaration isn't a prototype
_mysql.c: In function_mysql_ConnectionObject_select_db':
_mysql.c:1725: error: args' undeclared (first use in this function)
_mysql.c:1726: error:self' undeclared (first use in this function)
_mysql.c:1728: warning: implicit declaration of function mysql_select_db'
_mysql.c: At top level:
_mysql.c:1742: error: syntax error before '*' token
_mysql.c:1744: warning: function declaration isn't a prototype
_mysql.c: In function_mysql_ConnectionObject_shutdown':
_mysql.c:1746: error: args' undeclared (first use in this function)
_mysql.c:1747: error:self' undeclared (first use in this function)
_mysql.c:1749: warning: implicit declaration of function mysql_shutdown'
_mysql.c: At top level:
_mysql.c:1769: error: syntax error before '*' token
_mysql.c:1771: warning: function declaration isn't a prototype
_mysql.c: In function_mysql_ConnectionObject_stat':
_mysql.c:1773: error: args' undeclared (first use in this function)
_mysql.c:1774: error:self' undeclared (first use in this function)
_mysql.c:1776: warning: implicit declaration of function mysql_stat'
_mysql.c:1776: warning: assignment makes pointer from integer without a cast
_mysql.c: At top level:
_mysql.c:1790: error: syntax error before '*' token
_mysql.c:1792: warning: function declaration isn't a prototype
_mysql.c: In function_mysql_ConnectionObject_store_result':
_mysql.c:1794: error: r' undeclared (first use in this function)
_mysql.c:1796: error:args' undeclared (first use in this function)
_mysql.c:1797: error: self' undeclared (first use in this function)
_mysql.c:1802: error: syntax error before ')' token
_mysql.c: At top level:
_mysql.c:1831: error: syntax error before '*' token
_mysql.c:1833: warning: function declaration isn't a prototype
_mysql.c: In function_mysql_ConnectionObject_thread_id':
_mysql.c:1835: error: args' undeclared (first use in this function)
_mysql.c:1836: error:self' undeclared (first use in this function)
_mysql.c:1838: warning: implicit declaration of function mysql_thread_id'
_mysql.c: At top level:
_mysql.c:1851: error: syntax error before '*' token
_mysql.c:1853: warning: function declaration isn't a prototype
_mysql.c: In function_mysql_ConnectionObject_use_result':
_mysql.c:1855: error: r' undeclared (first use in this function)
_mysql.c:1857: error:args' undeclared (first use in this function)
_mysql.c:1858: error: self' undeclared (first use in this function)
_mysql.c:1863: error: syntax error before ')' token
_mysql.c: At top level:
_mysql.c:1881: error: syntax error before '*' token
_mysql.c:1882: warning: function declaration isn't a prototype
_mysql.c: In function_mysql_ConnectionObject_dealloc':
_mysql.c:1885: error: self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1895: error: syntax error before '*' token
_mysql.c:1896: warning: function declaration isn't a prototype
_mysql.c: In function_mysql_ConnectionObject_repr':
_mysql.c:1898: error: self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1912: error: syntax error before '*' token
_mysql.c:1914: warning: function declaration isn't a prototype
_mysql.c: In function_mysql_ResultObject_data_seek':
_mysql.c:1916: error: args' undeclared (first use in this function)
_mysql.c:1917: error: syntax error before ')' token
_mysql.c:1917: error: syntax error before ')' token
_mysql.c:1918: warning: implicit declaration of functionmysql_data_seek'
_mysql.c:1918: error: self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1927: error: syntax error before '*' token
_mysql.c:1929: warning: function declaration isn't a prototype
_mysql.c: In function_mysql_ResultObject_row_seek':
_mysql.c:1931: error: MYSQL_ROW_OFFSET' undeclared (first use in this function)
_mysql.c:1931: error: syntax error before "r"
_mysql.c:1932: error:args' undeclared (first use in this function)
_mysql.c:1933: error: syntax error before ')' token
_mysql.c:1933: error: syntax error before ')' token
_mysql.c:1934: error: r' undeclared (first use in this function)
_mysql.c:1934: warning: implicit declaration of functionmysql_row_tell'
_mysql.c:1934: error: self' undeclared (first use in this function)
_mysql.c:1935: warning: implicit declaration of functionmysql_row_seek'
_mysql.c: At top level:
_mysql.c:1944: error: syntax error before '' token
_mysql.c:1946: warning: function declaration isn't a prototype
_mysql.c: In function _mysql_ResultObject_row_tell':
_mysql.c:1947: error:MYSQL_ROW_OFFSET' undeclared (first use in this function)
_mysql.c:1947: error: syntax error before "r"
_mysql.c:1948: error: args' undeclared (first use in this function)
_mysql.c:1949: error: syntax error before ')' token
_mysql.c:1949: error: syntax error before ')' token
_mysql.c:1950: error:r' undeclared (first use in this function)
_mysql.c:1950: error: self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1956: error: syntax error before '*' token
_mysql.c:1957: warning: function declaration isn't a prototype
_mysql.c: In function_mysql_ResultObject_dealloc':
_mysql.c:1958: error: self' undeclared (first use in this function)
_mysql.c:1959: warning: implicit declaration of functionmysql_free_result'
_mysql.c: At top level:
_mysql.c:1966: error: syntax error before '' token
_mysql.c:1967: warning: function declaration isn't a prototype
_mysql.c: In function _mysql_ResultObject_repr':
_mysql.c:1970: error:self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:2174: error: syntax error before ')' token
_mysql.c:2174: error: initializer element is not constant
_mysql.c:2174: error: (near initialization for _mysql_ConnectionObject_memberlist[0].offset')
_mysql.c:2174: error: initializer element is not constant
_mysql.c:2174: error: (near initialization for_mysql_ConnectionObject_memberlist[0]')
_mysql.c:2181: error: syntax error before ')' token
_mysql.c:2181: error: initializer element is not constant
_mysql.c:2181: error: (near initialization for _mysql_ConnectionObject_memberlist[1].offset')
_mysql.c:2181: error: initializer element is not constant
_mysql.c:2181: error: (near initialization for_mysql_ConnectionObject_memberlist[1]')
_mysql.c:2188: error: syntax error before ')' token
_mysql.c:2188: error: initializer element is not constant
_mysql.c:2188: error: (near initialization for _mysql_ConnectionObject_memberlist[2].offset')
_mysql.c:2188: error: initializer element is not constant
_mysql.c:2188: error: (near initialization for_mysql_ConnectionObject_memberlist[2]')
_mysql.c:2195: error: syntax error before ')' token
_mysql.c:2195: error: initializer element is not constant
_mysql.c:2195: error: (near initialization for _mysql_ConnectionObject_memberlist[3].offset')
_mysql.c:2195: error: initializer element is not constant
_mysql.c:2195: error: (near initialization for_mysql_ConnectionObject_memberlist[3]')
_mysql.c:2202: error: syntax error before ')' token
_mysql.c:2202: error: initializer element is not constant
_mysql.c:2202: error: (near initialization for _mysql_ConnectionObject_memberlist[4].flags')
_mysql.c:2202: error: initializer element is not constant
_mysql.c:2202: error: (near initialization for_mysql_ConnectionObject_memberlist[4]')
_mysql.c:2209: error: initializer element is not constant
_mysql.c:2209: error: (near initialization for _mysql_ConnectionObject_memberlist[5]')
_mysql.c:2265: error: syntax error before ')' token
_mysql.c:2265: error: initializer element is not constant
_mysql.c:2265: error: (near initialization for_mysql_ResultObject_memberlist[0].offset')
_mysql.c:2265: error: initializer element is not constant
_mysql.c:2265: error: (near initialization for _mysql_ResultObject_memberlist[0]')
_mysql.c:2272: error: initializer element is not constant
_mysql.c:2272: error: (near initialization for_mysql_ResultObject_memberlist[1]')
_mysql.c:2277: error: syntax error before '' token
_mysql.c:2279: warning: function declaration isn't a prototype
_mysql.c: In function _mysql_ConnectionObject_getattr':
_mysql.c:2282: error:self' undeclared (first use in this function)
_mysql.c:2282: error: name' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:2305: error: syntax error before '*' token
_mysql.c:2307: warning: function declaration isn't a prototype
_mysql.c: In function_mysql_ResultObject_getattr':
_mysql.c:2310: error: self' undeclared (first use in this function)
_mysql.c:2310: error:name' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:2331: error: syntax error before '' token
_mysql.c:2334: warning: function declaration isn't a prototype
_mysql.c: In function _mysql_ConnectionObject_setattr':
_mysql.c:2335: error:v' undeclared (first use in this function)
_mysql.c:2346: error: name' undeclared (first use in this function)
_mysql.c:2347: error:self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:2356: error: syntax error before '*' token
_mysql.c:2359: warning: function declaration isn't a prototype
_mysql.c: In function _mysql_ResultObject_setattr':
_mysql.c:2360: error:v' undeclared (first use in this function)
_mysql.c:2371: error: name' undeclared (first use in this function)
_mysql.c:2372: error:self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:172: warning: _mysql_server_init__doc__' defined but not used
_mysql.c:183: warning:_mysql_server_init' defined but not used
_mysql.c:267: warning: _mysql_server_end__doc__' defined but not used
_mysql.c:273: warning:_mysql_server_end' defined but not used
error: command 'gcc' failed with exit status 1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I can't seem to get mysql-python configured, here are my specs:
python2.42
mysql 4.0.24
gcc 3.3.5-debian
and when i run the setup.py script with the build arguement here are the errors i get
admin@chronoeffect:/mysql-python$ python setup.py build
running build
running build_py
running build_ext
building '_mysql' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include -I/usr/local/include/python2.4 -c _mysql.c -o build/temp.linux-i686-2.4/_mysql.o -I/usr/local/include -mcpu=pentiumpro
_mysql.c:41:19: mysql.h: No such file or directory
_mysql.c:42:26: mysqld_error.h: No such file or directory
_mysql.c:43:20: errmsg.h: No such file or directory
_mysql.c:73: error: syntax error before "MYSQL"
_mysql.c:73: warning: no semicolon at end of struct or union
_mysql.c:76: error: syntax error before '}' token
_mysql.c:76: warning: type defaults to
int' in declaration of
_mysql_ConnectionObject'_mysql.c:76: warning: data definition has no type or storage class
_mysql.c:87: error: syntax error before "MYSQL_RES"
_mysql.c:87: warning: no semicolon at end of struct or union
_mysql.c:91: error: syntax error before '}' token
_mysql.c:91: warning: type defaults to
int' in declaration of
_mysql_ResultObject'_mysql.c:91: warning: data definition has no type or storage class
_mysql.c:103: error: syntax error before '' token
_mysql.c:104: warning: function declaration isn't a prototype
_mysql.c: In function
_mysql_Exception': _mysql.c:117: warning: implicit declaration of function
mysql_errno'_mysql.c:117: error:
c' undeclared (first use in this function) _mysql.c:117: error: (Each undeclared identifier is reported only once _mysql.c:117: error: for each function it appears in.) _mysql.c:120: error:
CR_MAX_ERROR' undeclared (first use in this function)_mysql.c:128: error:
CR_COMMANDS_OUT_OF_SYNC' undeclared (first use in this function) _mysql.c:129: error:
ER_DB_CREATE_EXISTS' undeclared (first use in this function)_mysql.c:130: error:
ER_SYNTAX_ERROR' undeclared (first use in this function) _mysql.c:131: error:
ER_PARSE_ERROR' undeclared (first use in this function)_mysql.c:132: error:
ER_NO_SUCH_TABLE' undeclared (first use in this function) _mysql.c:133: error:
ER_WRONG_DB_NAME' undeclared (first use in this function)_mysql.c:134: error:
ER_WRONG_TABLE_NAME' undeclared (first use in this function) _mysql.c:135: error:
ER_FIELD_SPECIFIED_TWICE' undeclared (first use in this function)_mysql.c:136: error:
ER_INVALID_GROUP_FUNC_USE' undeclared (first use in this function) _mysql.c:137: error:
ER_UNSUPPORTED_EXTENSION' undeclared (first use in this function)_mysql.c:138: error:
ER_TABLE_MUST_HAVE_COLUMNS' undeclared (first use in this function) _mysql.c:144: error:
ER_DUP_ENTRY' undeclared (first use in this function)_mysql.c:166: warning: implicit declaration of function
mysql_error' _mysql.c:166: warning: passing arg 1 of
PyString_FromString' makes pointer from integer without a cast_mysql.c: In function
_mysql_server_init': _mysql.c:185: warning: unused variable
s'_mysql.c:186: warning: unused variable
cmd_argc' _mysql.c:186: warning: unused variable
i'_mysql.c:186: warning: unused variable
groupc' _mysql.c:187: warning: unused variable
item'_mysql.c:261: warning: label
finish' defined but not used _mysql.c: At top level: _mysql.c:311: error: syntax error before '*' token _mysql.c:314: warning: function declaration isn't a prototype _mysql.c: In function
_mysql_ResultObject_Initialize':_mysql.c:316: error:
MYSQL_RES' undeclared (first use in this function) _mysql.c:316: error:
result' undeclared (first use in this function)_mysql.c:317: error:
conn' undeclared (first use in this function) _mysql.c:321: error:
MYSQL_FIELD' undeclared (first use in this function)_mysql.c:321: error:
fields' undeclared (first use in this function) _mysql.c:323: error:
args' undeclared (first use in this function)_mysql.c:323: error:
kwargs' undeclared (first use in this function) _mysql.c:328: error:
self' undeclared (first use in this function)_mysql.c:333: warning: implicit declaration of function
mysql_use_result' _mysql.c:335: warning: implicit declaration of function
mysql_store_result'_mysql.c:342: warning: implicit declaration of function
mysql_num_fields' _mysql.c:345: warning: implicit declaration of function
mysql_fetch_fields'_mysql.c: At top level:
_mysql.c:396: error: syntax error before '' token
_mysql.c:399: warning: function declaration isn't a prototype
_mysql.c: In function
_mysql_ResultObject_traverse': _mysql.c:401: error:
self' undeclared (first use in this function)_mysql.c:402: warning: implicit declaration of function
visit' _mysql.c:402: error:
arg' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:411: error: syntax error before '' token
_mysql.c:412: warning: function declaration isn't a prototype
_mysql.c: In function
_mysql_ResultObject_clear': _mysql.c:413: error:
self' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:422: error: syntax error before '' token
_mysql.c:425: warning: function declaration isn't a prototype
_mysql.c: In function
_mysql_ConnectionObject_Initialize': _mysql.c:426: error:
MYSQL' undeclared (first use in this function)_mysql.c:426: error:
conn' undeclared (first use in this function) _mysql.c:435: error:
MYSQL_PORT' undeclared (first use in this function)_mysql.c:451: error:
self' undeclared (first use in this function) _mysql.c:454: error:
args' undeclared (first use in this function)_mysql.c:454: error:
kwargs' undeclared (first use in this function) _mysql.c:497: warning: implicit declaration of function
mysql_init'_mysql.c:500: warning: implicit declaration of function
mysql_options' _mysql.c:500: error:
MYSQL_OPT_CONNECT_TIMEOUT' undeclared (first use in this function)_mysql.c:504: error:
MYSQL_OPT_COMPRESS' undeclared (first use in this function) _mysql.c:505: error:
CLIENT_COMPRESS' undeclared (first use in this function)_mysql.c:508: error:
MYSQL_OPT_NAMED_PIPE' undeclared (first use in this function) _mysql.c:510: error:
MYSQL_INIT_COMMAND' undeclared (first use in this function)_mysql.c:512: error:
MYSQL_READ_DEFAULT_FILE' undeclared (first use in this function) _mysql.c:514: error:
MYSQL_READ_DEFAULT_GROUP' undeclared (first use in this function)_mysql.c:517: error:
MYSQL_OPT_LOCAL_INFILE' undeclared (first use in this function) _mysql.c:525: warning: implicit declaration of function
mysql_real_connect'_mysql.c: In function
_mysql_connect': _mysql.c:604: error:
c' undeclared (first use in this function)_mysql.c:606: error: syntax error before ')' token
_mysql.c: At top level:
_mysql.c:617: error: syntax error before '' token
_mysql.c:620: warning: function declaration isn't a prototype
_mysql.c: In function
_mysql_ConnectionObject_traverse': _mysql.c:621: error:
self' undeclared (first use in this function)_mysql.c:622: error:
arg' undeclared (first use in this function) _mysql.c: At top level: _mysql.c:628: error: syntax error before '*' token _mysql.c:629: warning: function declaration isn't a prototype _mysql.c: In function
_mysql_ConnectionObject_clear':_mysql.c:630: error:
self' undeclared (first use in this function) _mysql.c: At top level: _mysql.c:640: error: syntax error before '*' token _mysql.c:642: warning: function declaration isn't a prototype _mysql.c: In function
_mysql_ConnectionObject_close':_mysql.c:643: error:
args' undeclared (first use in this function) _mysql.c:646: error:
self' undeclared (first use in this function)_mysql.c:648: warning: implicit declaration of function
mysql_close' _mysql.c: At top level: _mysql.c:668: error: syntax error before '*' token _mysql.c:670: warning: function declaration isn't a prototype _mysql.c: In function
_mysql_ConnectionObject_affected_rows':_mysql.c:671: error:
args' undeclared (first use in this function) _mysql.c:672: error:
self' undeclared (first use in this function)_mysql.c:673: warning: implicit declaration of function
mysql_affected_rows' _mysql.c: In function
_mysql_debug':_mysql.c:689: warning: implicit declaration of function
mysql_debug' _mysql.c: At top level: _mysql.c:702: error: syntax error before '*' token _mysql.c:704: warning: function declaration isn't a prototype _mysql.c: In function
_mysql_ConnectionObject_dump_debug_info':_mysql.c:706: error:
args' undeclared (first use in this function) _mysql.c:707: error:
self' undeclared (first use in this function)_mysql.c:709: warning: implicit declaration of function
mysql_dump_debug_info' _mysql.c: At top level: _mysql.c:721: error: syntax error before '*' token _mysql.c:723: warning: function declaration isn't a prototype _mysql.c: In function
_mysql_ConnectionObject_autocommit':_mysql.c:725: error:
args' undeclared (first use in this function) _mysql.c:733: warning: implicit declaration of function
mysql_query'_mysql.c:733: error:
self' undeclared (first use in this function) _mysql.c: At top level: _mysql.c:747: error: syntax error before '*' token _mysql.c:749: warning: function declaration isn't a prototype _mysql.c: In function
_mysql_ConnectionObject_commit':_mysql.c:751: error:
args' undeclared (first use in this function) _mysql.c:756: error:
self' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:769: error: syntax error before '' token
_mysql.c:771: warning: function declaration isn't a prototype
_mysql.c: In function
_mysql_ConnectionObject_rollback': _mysql.c:773: error:
args' undeclared (first use in this function)_mysql.c:778: error:
self' undeclared (first use in this function) _mysql.c: At top level: _mysql.c:801: error: syntax error before '*' token _mysql.c:803: warning: function declaration isn't a prototype _mysql.c: In function
_mysql_ConnectionObject_next_result':_mysql.c:805: error:
args' undeclared (first use in this function) _mysql.c:813: error:
self' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:886: error: syntax error before '' token
_mysql.c:888: warning: function declaration isn't a prototype
_mysql.c: In function
_mysql_ConnectionObject_errno': _mysql.c:889: error:
args' undeclared (first use in this function)_mysql.c:890: error:
self' undeclared (first use in this function) _mysql.c: At top level: _mysql.c:902: error: syntax error before '*' token _mysql.c:904: warning: function declaration isn't a prototype _mysql.c: In function
_mysql_ConnectionObject_error':_mysql.c:905: error:
args' undeclared (first use in this function) _mysql.c:906: error:
self' undeclared (first use in this function)_mysql.c:907: warning: passing arg 1 of
PyString_FromString' makes pointer from integer without a cast _mysql.c: At top level: _mysql.c:920: error: syntax error before '*' token _mysql.c:922: warning: function declaration isn't a prototype _mysql.c: In function
_mysql_escape_string':_mysql.c:926: error:
args' undeclared (first use in this function) _mysql.c:931: warning: implicit declaration of function
mysql_escape_string'_mysql.c: At top level:
_mysql.c:955: error: syntax error before '' token
_mysql.c:957: warning: function declaration isn't a prototype
_mysql.c: In function
_mysql_string_literal': _mysql.c:961: error:
args' undeclared (first use in this function)_mysql.c: In function
_mysql_escape': _mysql.c:1038: error: syntax error before ')' token _mysql.c: At top level: _mysql.c:1114: error: syntax error before '*' token _mysql.c:1116: warning: function declaration isn't a prototype _mysql.c: In function
_mysql_ResultObject_describe':_mysql.c:1118: error:
MYSQL_FIELD' undeclared (first use in this function) _mysql.c:1118: error:
fields' undeclared (first use in this function)_mysql.c:1120: error:
args' undeclared (first use in this function) _mysql.c:1121: error: syntax error before ')' token _mysql.c:1121: error: syntax error before ')' token _mysql.c:1122: error:
self' undeclared (first use in this function)_mysql.c:1134: warning: implicit declaration of function
IS_NOT_NULL' _mysql.c: At top level: _mysql.c:1150: error: syntax error before '*' token _mysql.c:1152: warning: function declaration isn't a prototype _mysql.c: In function
_mysql_ResultObject_field_flags':_mysql.c:1154: error:
MYSQL_FIELD' undeclared (first use in this function) _mysql.c:1154: error:
fields' undeclared (first use in this function)_mysql.c:1156: error:
args' undeclared (first use in this function) _mysql.c:1157: error: syntax error before ')' token _mysql.c:1157: error: syntax error before ')' token _mysql.c:1158: error:
self' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:1199: error: syntax error before '' token
_mysql.c:1201: warning: function declaration isn't a prototype
_mysql.c: In function
_mysql_row_to_tuple': _mysql.c:1206: error:
self' undeclared (first use in this function)_mysql.c:1208: warning: implicit declaration of function
mysql_fetch_lengths' _mysql.c:1208: warning: assignment makes pointer from integer without a cast _mysql.c:1212: error:
row' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:1224: error: syntax error before '' token
_mysql.c:1226: warning: function declaration isn't a prototype
_mysql.c: In function
_mysql_row_to_dict': _mysql.c:1230: error:
MYSQL_FIELD' undeclared (first use in this function)_mysql.c:1230: error:
fields' undeclared (first use in this function) _mysql.c:1232: error:
self' undeclared (first use in this function)_mysql.c:1234: warning: assignment makes pointer from integer without a cast
_mysql.c:1239: error:
row' undeclared (first use in this function) _mysql.c: At top level: _mysql.c:1263: error: syntax error before '*' token _mysql.c:1265: warning: function declaration isn't a prototype _mysql.c: In function
_mysql_row_to_dict_old':_mysql.c:1269: error:
MYSQL_FIELD' undeclared (first use in this function) _mysql.c:1269: error:
fields' undeclared (first use in this function)_mysql.c:1271: error:
self' undeclared (first use in this function) _mysql.c:1273: warning: assignment makes pointer from integer without a cast _mysql.c:1278: error:
row' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:1300: error: syntax error before '' token
_mysql.c:1300: warning: function declaration isn't a prototype
_mysql.c:1304: error: syntax error before '' token
_mysql.c:1309: warning: function declaration isn't a prototype
_mysql.c: In function
_mysql__fetch_row': _mysql.c:1311: error:
MYSQL_ROW' undeclared (first use in this function)_mysql.c:1311: error: syntax error before "row"
_mysql.c:1313: error:
skiprows' undeclared (first use in this function) _mysql.c:1313: error:
maxrows' undeclared (first use in this function)_mysql.c:1315: error:
self' undeclared (first use in this function) _mysql.c:1316: error:
row' undeclared (first use in this function)_mysql.c:1316: warning: implicit declaration of function
mysql_fetch_row' _mysql.c:1322: error: syntax error before ')' token _mysql.c:1323: error: syntax error before ')' token _mysql.c:1327: error:
r' undeclared (first use in this function)_mysql.c:1330: warning: implicit declaration of function
convert_row' _mysql.c:1330: warning: assignment makes pointer from integer without a cast _mysql.c: At top level: _mysql.c:1350: error: syntax error before '*' token _mysql.c:1353: warning: function declaration isn't a prototype _mysql.c: In function
_mysql_ResultObject_fetch_row':_mysql.c:1354: error: syntax error before '' token
_mysql.c:1354: warning: function declaration isn't a prototype
_mysql.c:1366: error:
args' undeclared (first use in this function) _mysql.c:1366: error:
kwargs' undeclared (first use in this function)_mysql.c:1369: error: syntax error before ')' token
_mysql.c:1369: error: syntax error before ')' token
_mysql.c:1377: error:
self' undeclared (first use in this function) _mysql.c:1395: warning: implicit declaration of function
mysql_num_rows'_mysql.c: At top level:
_mysql.c:1457: error: syntax error before '' token
_mysql.c:1459: warning: function declaration isn't a prototype
_mysql.c: In function
_mysql_ConnectionObject_character_set_name': _mysql.c:1461: error:
args' undeclared (first use in this function)_mysql.c:1462: error:
self' undeclared (first use in this function) _mysql.c: In function
_mysql_get_client_info':_mysql.c:1481: warning: implicit declaration of function
mysql_get_client_info' _mysql.c:1481: warning: passing arg 1 of
PyString_FromString' makes pointer from integer without a cast_mysql.c: At top level:
_mysql.c:1491: error: syntax error before '' token
_mysql.c:1493: warning: function declaration isn't a prototype
_mysql.c: In function
_mysql_ConnectionObject_get_host_info': _mysql.c:1494: error:
args' undeclared (first use in this function)_mysql.c:1495: error:
self' undeclared (first use in this function) _mysql.c:1496: warning: implicit declaration of function
mysql_get_host_info'_mysql.c:1496: warning: passing arg 1 of
PyString_FromString' makes pointer from integer without a cast _mysql.c: At top level: _mysql.c:1506: error: syntax error before '*' token _mysql.c:1508: warning: function declaration isn't a prototype _mysql.c: In function
_mysql_ConnectionObject_get_proto_info':_mysql.c:1509: error:
args' undeclared (first use in this function) _mysql.c:1510: error:
self' undeclared (first use in this function)_mysql.c:1511: warning: implicit declaration of function
mysql_get_proto_info' _mysql.c: At top level: _mysql.c:1521: error: syntax error before '*' token _mysql.c:1523: warning: function declaration isn't a prototype _mysql.c: In function
_mysql_ConnectionObject_get_server_info':_mysql.c:1524: error:
args' undeclared (first use in this function) _mysql.c:1525: error:
self' undeclared (first use in this function)_mysql.c:1526: warning: implicit declaration of function
mysql_get_server_info' _mysql.c:1526: warning: passing arg 1 of
PyString_FromString' makes pointer from integer without a cast_mysql.c: At top level:
_mysql.c:1537: error: syntax error before '' token
_mysql.c:1539: warning: function declaration isn't a prototype
_mysql.c: In function
_mysql_ConnectionObject_info': _mysql.c:1541: error:
args' undeclared (first use in this function)_mysql.c:1542: error:
self' undeclared (first use in this function) _mysql.c:1543: warning: implicit declaration of function
mysql_info'_mysql.c:1543: warning: assignment makes pointer from integer without a cast
_mysql.c: At top level:
_mysql.c:1572: error: syntax error before '' token
_mysql.c:1574: warning: function declaration isn't a prototype
_mysql.c: In function
_mysql_ConnectionObject_insert_id': _mysql.c:1575: error:
my_ulonglong' undeclared (first use in this function)_mysql.c:1575: error: syntax error before "r"
_mysql.c:1576: error:
args' undeclared (first use in this function) _mysql.c:1577: error:
self' undeclared (first use in this function)_mysql.c:1579: error:
r' undeclared (first use in this function) _mysql.c:1579: warning: implicit declaration of function
mysql_insert_id'_mysql.c: At top level:
_mysql.c:1590: error: syntax error before '' token
_mysql.c:1592: warning: function declaration isn't a prototype
_mysql.c: In function
_mysql_ConnectionObject_kill': _mysql.c:1595: error:
args' undeclared (first use in this function)_mysql.c:1596: error:
self' undeclared (first use in this function) _mysql.c:1598: warning: implicit declaration of function
mysql_kill'_mysql.c: At top level:
_mysql.c:1613: error: syntax error before '' token
_mysql.c:1615: warning: function declaration isn't a prototype
_mysql.c: In function
_mysql_ConnectionObject_field_count': _mysql.c:1616: error:
args' undeclared (first use in this function)_mysql.c:1617: error:
self' undeclared (first use in this function) _mysql.c: At top level: _mysql.c:1630: error: syntax error before '*' token _mysql.c:1632: warning: function declaration isn't a prototype _mysql.c: In function
_mysql_ResultObject_num_fields':_mysql.c:1633: error:
args' undeclared (first use in this function) _mysql.c:1634: error: syntax error before ')' token _mysql.c:1634: error: syntax error before ')' token _mysql.c:1635: error:
self' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:1646: error: syntax error before '' token
_mysql.c:1648: warning: function declaration isn't a prototype
_mysql.c: In function
_mysql_ResultObject_num_rows': _mysql.c:1649: error:
args' undeclared (first use in this function)_mysql.c:1650: error: syntax error before ')' token
_mysql.c:1650: error: syntax error before ')' token
_mysql.c:1651: error:
self' undeclared (first use in this function) _mysql.c: At top level: _mysql.c:1668: error: syntax error before '*' token _mysql.c:1670: warning: function declaration isn't a prototype _mysql.c: In function
_mysql_ConnectionObject_ping':_mysql.c:1672: error:
args' undeclared (first use in this function) _mysql.c:1673: error:
self' undeclared (first use in this function)_mysql.c:1675: warning: implicit declaration of function
mysql_ping' _mysql.c: At top level: _mysql.c:1690: error: syntax error before '*' token _mysql.c:1692: warning: function declaration isn't a prototype _mysql.c: In function
_mysql_ConnectionObject_query':_mysql.c:1695: error:
args' undeclared (first use in this function) _mysql.c:1696: error:
self' undeclared (first use in this function)_mysql.c:1698: warning: implicit declaration of function
mysql_real_query' _mysql.c: At top level: _mysql.c:1720: error: syntax error before '*' token _mysql.c:1722: warning: function declaration isn't a prototype _mysql.c: In function
_mysql_ConnectionObject_select_db':_mysql.c:1725: error:
args' undeclared (first use in this function) _mysql.c:1726: error:
self' undeclared (first use in this function)_mysql.c:1728: warning: implicit declaration of function
mysql_select_db' _mysql.c: At top level: _mysql.c:1742: error: syntax error before '*' token _mysql.c:1744: warning: function declaration isn't a prototype _mysql.c: In function
_mysql_ConnectionObject_shutdown':_mysql.c:1746: error:
args' undeclared (first use in this function) _mysql.c:1747: error:
self' undeclared (first use in this function)_mysql.c:1749: warning: implicit declaration of function
mysql_shutdown' _mysql.c: At top level: _mysql.c:1769: error: syntax error before '*' token _mysql.c:1771: warning: function declaration isn't a prototype _mysql.c: In function
_mysql_ConnectionObject_stat':_mysql.c:1773: error:
args' undeclared (first use in this function) _mysql.c:1774: error:
self' undeclared (first use in this function)_mysql.c:1776: warning: implicit declaration of function
mysql_stat' _mysql.c:1776: warning: assignment makes pointer from integer without a cast _mysql.c: At top level: _mysql.c:1790: error: syntax error before '*' token _mysql.c:1792: warning: function declaration isn't a prototype _mysql.c: In function
_mysql_ConnectionObject_store_result':_mysql.c:1794: error:
r' undeclared (first use in this function) _mysql.c:1796: error:
args' undeclared (first use in this function)_mysql.c:1797: error:
self' undeclared (first use in this function) _mysql.c:1802: error: syntax error before ')' token _mysql.c: At top level: _mysql.c:1831: error: syntax error before '*' token _mysql.c:1833: warning: function declaration isn't a prototype _mysql.c: In function
_mysql_ConnectionObject_thread_id':_mysql.c:1835: error:
args' undeclared (first use in this function) _mysql.c:1836: error:
self' undeclared (first use in this function)_mysql.c:1838: warning: implicit declaration of function
mysql_thread_id' _mysql.c: At top level: _mysql.c:1851: error: syntax error before '*' token _mysql.c:1853: warning: function declaration isn't a prototype _mysql.c: In function
_mysql_ConnectionObject_use_result':_mysql.c:1855: error:
r' undeclared (first use in this function) _mysql.c:1857: error:
args' undeclared (first use in this function)_mysql.c:1858: error:
self' undeclared (first use in this function) _mysql.c:1863: error: syntax error before ')' token _mysql.c: At top level: _mysql.c:1881: error: syntax error before '*' token _mysql.c:1882: warning: function declaration isn't a prototype _mysql.c: In function
_mysql_ConnectionObject_dealloc':_mysql.c:1885: error:
self' undeclared (first use in this function) _mysql.c: At top level: _mysql.c:1895: error: syntax error before '*' token _mysql.c:1896: warning: function declaration isn't a prototype _mysql.c: In function
_mysql_ConnectionObject_repr':_mysql.c:1898: error:
self' undeclared (first use in this function) _mysql.c: At top level: _mysql.c:1912: error: syntax error before '*' token _mysql.c:1914: warning: function declaration isn't a prototype _mysql.c: In function
_mysql_ResultObject_data_seek':_mysql.c:1916: error:
args' undeclared (first use in this function) _mysql.c:1917: error: syntax error before ')' token _mysql.c:1917: error: syntax error before ')' token _mysql.c:1918: warning: implicit declaration of function
mysql_data_seek'_mysql.c:1918: error:
self' undeclared (first use in this function) _mysql.c: At top level: _mysql.c:1927: error: syntax error before '*' token _mysql.c:1929: warning: function declaration isn't a prototype _mysql.c: In function
_mysql_ResultObject_row_seek':_mysql.c:1931: error:
MYSQL_ROW_OFFSET' undeclared (first use in this function) _mysql.c:1931: error: syntax error before "r" _mysql.c:1932: error:
args' undeclared (first use in this function)_mysql.c:1933: error: syntax error before ')' token
_mysql.c:1933: error: syntax error before ')' token
_mysql.c:1934: error:
r' undeclared (first use in this function) _mysql.c:1934: warning: implicit declaration of function
mysql_row_tell'_mysql.c:1934: error:
self' undeclared (first use in this function) _mysql.c:1935: warning: implicit declaration of function
mysql_row_seek'_mysql.c: At top level:
_mysql.c:1944: error: syntax error before '' token
_mysql.c:1946: warning: function declaration isn't a prototype
_mysql.c: In function
_mysql_ResultObject_row_tell': _mysql.c:1947: error:
MYSQL_ROW_OFFSET' undeclared (first use in this function)_mysql.c:1947: error: syntax error before "r"
_mysql.c:1948: error:
args' undeclared (first use in this function) _mysql.c:1949: error: syntax error before ')' token _mysql.c:1949: error: syntax error before ')' token _mysql.c:1950: error:
r' undeclared (first use in this function)_mysql.c:1950: error:
self' undeclared (first use in this function) _mysql.c: At top level: _mysql.c:1956: error: syntax error before '*' token _mysql.c:1957: warning: function declaration isn't a prototype _mysql.c: In function
_mysql_ResultObject_dealloc':_mysql.c:1958: error:
self' undeclared (first use in this function) _mysql.c:1959: warning: implicit declaration of function
mysql_free_result'_mysql.c: At top level:
_mysql.c:1966: error: syntax error before '' token
_mysql.c:1967: warning: function declaration isn't a prototype
_mysql.c: In function
_mysql_ResultObject_repr': _mysql.c:1970: error:
self' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:2174: error: syntax error before ')' token
_mysql.c:2174: error: initializer element is not constant
_mysql.c:2174: error: (near initialization for
_mysql_ConnectionObject_memberlist[0].offset') _mysql.c:2174: error: initializer element is not constant _mysql.c:2174: error: (near initialization for
_mysql_ConnectionObject_memberlist[0]')_mysql.c:2181: error: syntax error before ')' token
_mysql.c:2181: error: initializer element is not constant
_mysql.c:2181: error: (near initialization for
_mysql_ConnectionObject_memberlist[1].offset') _mysql.c:2181: error: initializer element is not constant _mysql.c:2181: error: (near initialization for
_mysql_ConnectionObject_memberlist[1]')_mysql.c:2188: error: syntax error before ')' token
_mysql.c:2188: error: initializer element is not constant
_mysql.c:2188: error: (near initialization for
_mysql_ConnectionObject_memberlist[2].offset') _mysql.c:2188: error: initializer element is not constant _mysql.c:2188: error: (near initialization for
_mysql_ConnectionObject_memberlist[2]')_mysql.c:2195: error: syntax error before ')' token
_mysql.c:2195: error: initializer element is not constant
_mysql.c:2195: error: (near initialization for
_mysql_ConnectionObject_memberlist[3].offset') _mysql.c:2195: error: initializer element is not constant _mysql.c:2195: error: (near initialization for
_mysql_ConnectionObject_memberlist[3]')_mysql.c:2202: error: syntax error before ')' token
_mysql.c:2202: error: initializer element is not constant
_mysql.c:2202: error: (near initialization for
_mysql_ConnectionObject_memberlist[4].flags') _mysql.c:2202: error: initializer element is not constant _mysql.c:2202: error: (near initialization for
_mysql_ConnectionObject_memberlist[4]')_mysql.c:2209: error: initializer element is not constant
_mysql.c:2209: error: (near initialization for
_mysql_ConnectionObject_memberlist[5]') _mysql.c:2265: error: syntax error before ')' token _mysql.c:2265: error: initializer element is not constant _mysql.c:2265: error: (near initialization for
_mysql_ResultObject_memberlist[0].offset')_mysql.c:2265: error: initializer element is not constant
_mysql.c:2265: error: (near initialization for
_mysql_ResultObject_memberlist[0]') _mysql.c:2272: error: initializer element is not constant _mysql.c:2272: error: (near initialization for
_mysql_ResultObject_memberlist[1]')_mysql.c:2277: error: syntax error before '' token
_mysql.c:2279: warning: function declaration isn't a prototype
_mysql.c: In function
_mysql_ConnectionObject_getattr': _mysql.c:2282: error:
self' undeclared (first use in this function)_mysql.c:2282: error:
name' undeclared (first use in this function) _mysql.c: At top level: _mysql.c:2305: error: syntax error before '*' token _mysql.c:2307: warning: function declaration isn't a prototype _mysql.c: In function
_mysql_ResultObject_getattr':_mysql.c:2310: error:
self' undeclared (first use in this function) _mysql.c:2310: error:
name' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:2331: error: syntax error before '' token
_mysql.c:2334: warning: function declaration isn't a prototype
_mysql.c: In function
_mysql_ConnectionObject_setattr': _mysql.c:2335: error:
v' undeclared (first use in this function)_mysql.c:2346: error:
name' undeclared (first use in this function) _mysql.c:2347: error:
self' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:2356: error: syntax error before '*' token
_mysql.c:2359: warning: function declaration isn't a prototype
_mysql.c: In function
_mysql_ResultObject_setattr': _mysql.c:2360: error:
v' undeclared (first use in this function)_mysql.c:2371: error:
name' undeclared (first use in this function) _mysql.c:2372: error:
self' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:172: warning:
_mysql_server_init__doc__' defined but not used _mysql.c:183: warning:
_mysql_server_init' defined but not used_mysql.c:267: warning:
_mysql_server_end__doc__' defined but not used _mysql.c:273: warning:
_mysql_server_end' defined but not usederror: command 'gcc' failed with exit status 1
Re-read (or read) README. You are missing the MySQL development package (whatever it is for Debian).