Google, but seems nobody is talking about it. No mention in FAQ either.
Thanks,
Tom
PS: a full list of glib installed:
glibc-common-2.3.6-0.fc3.1
glibc-profile-2.3.6-0.fc3.1
glibc-kernheaders-2.4-9.1.87
glib2-2.4.8-1.fc3
glibc-2.3.6-0.fc3.1
glibc-utils-2.3.6-0.fc3.1
glib-1.2.10-15
dbus-glib-0.22-10.FC3.2
glib2-devel-2.4.8-1.fc3
glibc-headers-2.3.6-0.fc3.1
glibc-devel-2.3.6-0.fc3.1
glib-devel-1.2.10-15
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Are your MySQL packages from FC3 or from MySQL.com or did you compile it yourself? Do you have mysql-devel installed? Make sure you don't have multiple versions installed, i.e. old vendor package + new version you compiled; you may be compiling against one and linking against the other at runtime.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm having the same problem and all mysql client code is from one version of mysql.
Still, something is weird here because I used to be able to build older MySQLdb and now I can't build 1.2.1c3 or 1.2.0; both it fail with:
_mysql.c:267: warning: `_mysql_server_enddoc' defined but not used
error: command 'gcc' failed with exit status 1
Building 1.2.1 appears to succeed, but then has the problem being discussed here the undefine symbol at import time).
Some possibly relevant data:
PATH=/astro/net/python/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/sbin:/usr/sbin
$ which mysql
/usr/bin/mysql
$ which mysql_config
/usr/bin/mysql_config
$ mysql_config --version
3.23.58
$ mysql --version
mysql Ver 11.18 Distrib 3.23.58, for redhat-linux-gnu (i386)
(this may be an issue since this is an i686 but that has always been true and it used to build)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The compiler warning will be fixed in the next release (I'm doing a patchlevel release); this is only relevant if you are using MySQL older than 4.0.
As for why your build fails, you may not be including all relevant compiler errors. Warnings should not cause the build to fail. However I suspect as in the case above you somehow have two installations of MySQL, or one was not removed cleanly when upgrading.
Follow-up to bug 1464168.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I was able to build MySQLdb on a different linux box (that had a different installation of mysql). So I agree it may be that something was messed up with the mysql client on the computer I first tried. It's weird, though. It certainly worked before. Corrupted files? Who knows.
As to the compile error I see when I try to build an older version of MySQLdb...I see a lot of messages, but they all look like warnings to me. Here's a log. Maybe you can stop the fatal error.
[rowen@babaroga MySQL-python-1.2.1c3]$ rm -r build [rowen@babaroga MySQL-python-1.2.1c3]$ python setup.py build
/usr/lib/python2.2/distutils/dist.py:215: UserWarning: Unknown distribution option: 'download_url'
warnings.warn(msg)
/usr/lib/python2.2/distutils/dist.py:215: UserWarning: Unknown distribution option: 'classifiers'
warnings.warn(msg)
running build
running build_py
creating build
creating build/lib.linux-i686-2.2
copying _mysql_exceptions.py -> build/lib.linux-i686-2.2
creating build/lib.linux-i686-2.2/MySQLdb
copying MySQLdb/init.py -> build/lib.linux-i686-2.2/MySQLdb
copying MySQLdb/converters.py -> build/lib.linux-i686-2.2/MySQLdb
copying MySQLdb/connections.py -> build/lib.linux-i686-2.2/MySQLdb
copying MySQLdb/cursors.py -> build/lib.linux-i686-2.2/MySQLdb
copying MySQLdb/sets.py -> build/lib.linux-i686-2.2/MySQLdb
copying MySQLdb/times.py -> build/lib.linux-i686-2.2/MySQLdb
copying MySQLdb/stringtimes.py -> build/lib.linux-i686-2.2/MySQLdb
copying MySQLdb/mxdatetimes.py -> build/lib.linux-i686-2.2/MySQLdb
copying MySQLdb/pytimes.py -> build/lib.linux-i686-2.2/MySQLdb
creating build/lib.linux-i686-2.2/MySQLdb/constants
copying MySQLdb/constants/init.py -> build/lib.linux-i686-2.2/MySQLdb/constants
copying MySQLdb/constants/CR.py -> build/lib.linux-i686-2.2/MySQLdb/constants
copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.linux-i686-2.2/MySQLdb/constants
copying MySQLdb/constants/ER.py -> build/lib.linux-i686-2.2/MySQLdb/constants
copying MySQLdb/constants/FLAG.py -> build/lib.linux-i686-2.2/MySQLdb/constants
copying MySQLdb/constants/REFRESH.py -> build/lib.linux-i686-2.2/MySQLdb/constants
copying MySQLdb/constants/CLIENT.py -> build/lib.linux-i686-2.2/MySQLdb/constants
running build_ext
building '_mysql' extension
creating build/temp.linux-i686-2.2
gcc -DNDEBUG -O2 -g -pipe -march=i386 -mcpu=i686 -D_GNU_SOURCE -fPIC -fPIC -I/usr/include/python2.2 -c _mysql.c -o build/temp.linux-i686-2.2/_mysql.o -I'/usr/include/mysql'
_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: syntax error before "MYSQL"
_mysql.c:73: warning: no semicolon at end of struct or union
_mysql.c:76: syntax error before '}' token
_mysql.c:76: warning: data definition has no type or storage class
_mysql.c:87: syntax error before "MYSQL_RES"
_mysql.c:87: warning: no semicolon at end of struct or union
_mysql.c:91: syntax error before '}' token
_mysql.c:91: warning: data definition has no type or storage class
_mysql.c:103: syntax error before '' token
_mysql.c: In function _mysql_Exception':
_mysql.c:117:c' undeclared (first use in this function)
_mysql.c:117: (Each undeclared identifier is reported only once
_mysql.c:117: for each function it appears in.)
_mysql.c:120: CR_MAX_ERROR' undeclared (first use in this function)
_mysql.c:128:CR_COMMANDS_OUT_OF_SYNC' undeclared (first use in this function)
_mysql.c:129: ER_DB_CREATE_EXISTS' undeclared (first use in this function)
_mysql.c:130:ER_SYNTAX_ERROR' undeclared (first use in this function)
_mysql.c:131: ER_PARSE_ERROR' undeclared (first use in this function)
_mysql.c:132:ER_NO_SUCH_TABLE' undeclared (first use in this function)
_mysql.c:133: ER_WRONG_DB_NAME' undeclared (first use in this function)
_mysql.c:134:ER_WRONG_TABLE_NAME' undeclared (first use in this function)
_mysql.c:135: ER_FIELD_SPECIFIED_TWICE' undeclared (first use in this function)
_mysql.c:136:ER_INVALID_GROUP_FUNC_USE' undeclared (first use in this function)
_mysql.c:137: ER_UNSUPPORTED_EXTENSION' undeclared (first use in this function)
_mysql.c:138:ER_TABLE_MUST_HAVE_COLUMNS' undeclared (first use in this function)
_mysql.c:144: ER_DUP_ENTRY' undeclared (first use in this function)
_mysql.c:166: warning: passing arg 1 ofPyString_FromString' makes pointer from integer without a cast
_mysql.c: At top level:
_mysql.c:311: syntax error before '' token
_mysql.c: In function _mysql_ResultObject_Initialize':
_mysql.c:316:MYSQL_RES' undeclared (first use in this function)
_mysql.c:316: result' undeclared (first use in this function)
_mysql.c:317:conn' undeclared (first use in this function)
_mysql.c:321: MYSQL_FIELD' undeclared (first use in this function)
_mysql.c:321:fields' undeclared (first use in this function)
_mysql.c:323: args' undeclared (first use in this function)
_mysql.c:323:kwargs' undeclared (first use in this function)
_mysql.c:328: self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:396: syntax error before '*' token
_mysql.c: In function_mysql_ResultObject_traverse':
_mysql.c:401: self' undeclared (first use in this function)
_mysql.c:402:arg' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:411: syntax error before '' token
_mysql.c: In function _mysql_ResultObject_clear':
_mysql.c:413:self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:422: syntax error before '' token
_mysql.c: In function _mysql_ConnectionObject_Initialize':
_mysql.c:426:MYSQL' undeclared (first use in this function)
_mysql.c:426: conn' undeclared (first use in this function)
_mysql.c:435:MYSQL_PORT' undeclared (first use in this function)
_mysql.c:451: self' undeclared (first use in this function)
_mysql.c:454:args' undeclared (first use in this function)
_mysql.c:454: kwargs' undeclared (first use in this function)
_mysql.c:500:MYSQL_OPT_CONNECT_TIMEOUT' undeclared (first use in this function)
_mysql.c:504: MYSQL_OPT_COMPRESS' undeclared (first use in this function)
_mysql.c:505:CLIENT_COMPRESS' undeclared (first use in this function)
_mysql.c:508: MYSQL_OPT_NAMED_PIPE' undeclared (first use in this function)
_mysql.c:510:MYSQL_INIT_COMMAND' undeclared (first use in this function)
_mysql.c:512: MYSQL_READ_DEFAULT_FILE' undeclared (first use in this function)
_mysql.c:514:MYSQL_READ_DEFAULT_GROUP' undeclared (first use in this function)
_mysql.c:517: MYSQL_OPT_LOCAL_INFILE' undeclared (first use in this function)
_mysql.c: In function_mysql_connect':
_mysql.c:604: c' undeclared (first use in this function)
_mysql.c:606: syntax error before ')' token
_mysql.c: At top level:
_mysql.c:617: syntax error before '*' token
_mysql.c: In function_mysql_ConnectionObject_traverse':
_mysql.c:621: self' undeclared (first use in this function)
_mysql.c:622:arg' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:628: syntax error before '' token
_mysql.c: In function _mysql_ConnectionObject_clear':
_mysql.c:630:self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:640: syntax error before '' token
_mysql.c: In function _mysql_ConnectionObject_close':
_mysql.c:643:args' undeclared (first use in this function)
_mysql.c:646: self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:668: syntax error before '*' token
_mysql.c: In function_mysql_ConnectionObject_affected_rows':
_mysql.c:671: args' undeclared (first use in this function)
_mysql.c:672:self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:702: syntax error before '' token
_mysql.c: In function _mysql_ConnectionObject_dump_debug_info':
_mysql.c:706:args' undeclared (first use in this function)
_mysql.c:707: self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:721: syntax error before '*' token
_mysql.c: In function_mysql_ConnectionObject_autocommit':
_mysql.c:725: args' undeclared (first use in this function)
_mysql.c:733:self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:747: syntax error before '' token
_mysql.c: In function _mysql_ConnectionObject_commit':
_mysql.c:751:args' undeclared (first use in this function)
_mysql.c:756: self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:769: syntax error before '*' token
_mysql.c: In function_mysql_ConnectionObject_rollback':
_mysql.c:773: args' undeclared (first use in this function)
_mysql.c:778:self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:801: syntax error before '' token
_mysql.c: In function _mysql_ConnectionObject_next_result':
_mysql.c:805:args' undeclared (first use in this function)
_mysql.c:813: self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:886: syntax error before '*' token
_mysql.c: In function_mysql_ConnectionObject_errno':
_mysql.c:889: args' undeclared (first use in this function)
_mysql.c:890:self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:902: syntax error before '' token
_mysql.c: In function _mysql_ConnectionObject_error':
_mysql.c:905:args' undeclared (first use in this function)
_mysql.c:906: self' undeclared (first use in this function)
_mysql.c:907: warning: passing arg 1 ofPyString_FromString' makes pointer from integer without a cast
_mysql.c: At top level:
_mysql.c:920: syntax error before '' token
_mysql.c: In function _mysql_escape_string':
_mysql.c:926:args' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:955: syntax error before '' token
_mysql.c: In function _mysql_string_literal':
_mysql.c:961:args' undeclared (first use in this function)
_mysql.c: In function _mysql_escape':
_mysql.c:1038: syntax error before ')' token
_mysql.c: At top level:
_mysql.c:1114: syntax error before '*' token
_mysql.c: In function_mysql_ResultObject_describe':
_mysql.c:1118: MYSQL_FIELD' undeclared (first use in this function)
_mysql.c:1118:fields' undeclared (first use in this function)
_mysql.c:1120: args' undeclared (first use in this function)
_mysql.c:1121: syntax error before ')' token
_mysql.c:1121: syntax error before ')' token
_mysql.c:1122:self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1150: syntax error before '' token
_mysql.c: In function _mysql_ResultObject_field_flags':
_mysql.c:1154:MYSQL_FIELD' undeclared (first use in this function)
_mysql.c:1154: fields' undeclared (first use in this function)
_mysql.c:1156:args' undeclared (first use in this function)
_mysql.c:1157: syntax error before ')' token
_mysql.c:1157: syntax error before ')' token
_mysql.c:1158: self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1199: syntax error before '*' token
_mysql.c: In function_mysql_row_to_tuple':
_mysql.c:1206: self' undeclared (first use in this function)
_mysql.c:1208: warning: assignment makes pointer from integer without a cast
_mysql.c:1212:row' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1224: syntax error before '' token
_mysql.c: In function _mysql_row_to_dict':
_mysql.c:1230:MYSQL_FIELD' undeclared (first use in this function)
_mysql.c:1230: fields' undeclared (first use in this function)
_mysql.c:1232:self' undeclared (first use in this function)
_mysql.c:1234: warning: assignment makes pointer from integer without a cast
_mysql.c:1239: row' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1263: syntax error before '*' token
_mysql.c: In function_mysql_row_to_dict_old':
_mysql.c:1269: MYSQL_FIELD' undeclared (first use in this function)
_mysql.c:1269:fields' undeclared (first use in this function)
_mysql.c:1271: self' undeclared (first use in this function)
_mysql.c:1273: warning: assignment makes pointer from integer without a cast
_mysql.c:1278:row' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1300: syntax error before '' token
_mysql.c:1304: syntax error before '' token
_mysql.c: In function _mysql__fetch_row':
_mysql.c:1311:MYSQL_ROW' undeclared (first use in this function)
_mysql.c:1311: syntax error before "row"
_mysql.c:1313: skiprows' undeclared (first use in this function)
_mysql.c:1313:maxrows' undeclared (first use in this function)
_mysql.c:1315: self' undeclared (first use in this function)
_mysql.c:1316:row' undeclared (first use in this function)
_mysql.c:1322: syntax error before ')' token
_mysql.c:1323: syntax error before ')' token
_mysql.c:1327: r' undeclared (first use in this function)
_mysql.c:1330: warning: assignment makes pointer from integer without a cast
_mysql.c: At top level:
_mysql.c:1350: syntax error before '*' token
_mysql.c: In function_mysql_ResultObject_fetch_row':
_mysql.c:1354: syntax error before '' token
_mysql.c:1366: args' undeclared (first use in this function)
_mysql.c:1366:kwargs' undeclared (first use in this function)
_mysql.c:1369: syntax error before ')' token
_mysql.c:1369: syntax error before ')' token
_mysql.c:1377: self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1457: syntax error before '*' token
_mysql.c: In function_mysql_ConnectionObject_character_set_name':
_mysql.c:1461: args' undeclared (first use in this function)
_mysql.c:1462:self' undeclared (first use in this function)
_mysql.c: In 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: syntax error before '' token
_mysql.c: In function _mysql_ConnectionObject_get_host_info':
_mysql.c:1494:args' undeclared (first use in this function)
_mysql.c:1495: self' undeclared (first use in this function)
_mysql.c:1496: warning: passing arg 1 ofPyString_FromString' makes pointer from integer without a cast
_mysql.c: At top level:
_mysql.c:1506: syntax error before '' token
_mysql.c: In function _mysql_ConnectionObject_get_proto_info':
_mysql.c:1509:args' undeclared (first use in this function)
_mysql.c:1510: self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1521: syntax error before '*' token
_mysql.c: In function_mysql_ConnectionObject_get_server_info':
_mysql.c:1524: args' undeclared (first use in this function)
_mysql.c:1525:self' undeclared (first use in this function)
_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: syntax error before '*' token
_mysql.c: In function_mysql_ConnectionObject_info':
_mysql.c:1541: args' undeclared (first use in this function)
_mysql.c:1542:self' undeclared (first use in this function)
_mysql.c:1543: warning: assignment makes pointer from integer without a cast
_mysql.c: At top level:
_mysql.c:1572: syntax error before '' token
_mysql.c: In function _mysql_ConnectionObject_insert_id':
_mysql.c:1575:my_ulonglong' undeclared (first use in this function)
_mysql.c:1575: syntax error before "r"
_mysql.c:1576: args' undeclared (first use in this function)
_mysql.c:1577:self' undeclared (first use in this function)
_mysql.c:1579: r' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1590: syntax error before '*' token
_mysql.c: In function_mysql_ConnectionObject_kill':
_mysql.c:1595: args' undeclared (first use in this function)
_mysql.c:1596:self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1613: syntax error before '' token
_mysql.c: In function _mysql_ConnectionObject_field_count':
_mysql.c:1616:args' undeclared (first use in this function)
_mysql.c:1617: self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1630: syntax error before '*' token
_mysql.c: In function_mysql_ResultObject_num_fields':
_mysql.c:1633: args' undeclared (first use in this function)
_mysql.c:1634: syntax error before ')' token
_mysql.c:1634: syntax error before ')' token
_mysql.c:1635:self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1646: syntax error before '' token
_mysql.c: In function _mysql_ResultObject_num_rows':
_mysql.c:1649:args' undeclared (first use in this function)
_mysql.c:1650: syntax error before ')' token
_mysql.c:1650: syntax error before ')' token
_mysql.c:1651: self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1668: syntax error before '*' token
_mysql.c: In function_mysql_ConnectionObject_ping':
_mysql.c:1672: args' undeclared (first use in this function)
_mysql.c:1673:self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1690: syntax error before '' token
_mysql.c: In function _mysql_ConnectionObject_query':
_mysql.c:1695:args' undeclared (first use in this function)
_mysql.c:1696: self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1720: syntax error before '*' token
_mysql.c: In function_mysql_ConnectionObject_select_db':
_mysql.c:1725: args' undeclared (first use in this function)
_mysql.c:1726:self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1742: syntax error before '' token
_mysql.c: In function _mysql_ConnectionObject_shutdown':
_mysql.c:1746:args' undeclared (first use in this function)
_mysql.c:1747: self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1769: syntax error before '*' token
_mysql.c: In function_mysql_ConnectionObject_stat':
_mysql.c:1773: args' undeclared (first use in this function)
_mysql.c:1774:self' undeclared (first use in this function)
_mysql.c:1776: warning: assignment makes pointer from integer without a cast
_mysql.c: At top level:
_mysql.c:1790: syntax error before '' token
_mysql.c: In function _mysql_ConnectionObject_store_result':
_mysql.c:1794:r' undeclared (first use in this function)
_mysql.c:1796: args' undeclared (first use in this function)
_mysql.c:1797:self' undeclared (first use in this function)
_mysql.c:1802: syntax error before ')' token
_mysql.c: At top level:
_mysql.c:1831: syntax error before '' token
_mysql.c: In function _mysql_ConnectionObject_thread_id':
_mysql.c:1835:args' undeclared (first use in this function)
_mysql.c:1836: self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1851: syntax error before '*' token
_mysql.c: In function_mysql_ConnectionObject_use_result':
_mysql.c:1855: r' undeclared (first use in this function)
_mysql.c:1857:args' undeclared (first use in this function)
_mysql.c:1858: self' undeclared (first use in this function)
_mysql.c:1863: syntax error before ')' token
_mysql.c: At top level:
_mysql.c:1881: syntax error before '*' token
_mysql.c: In function_mysql_ConnectionObject_dealloc':
_mysql.c:1885: self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1895: syntax error before '*' token
_mysql.c: In function_mysql_ConnectionObject_repr':
_mysql.c:1898: self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1912: syntax error before '*' token
_mysql.c: In function_mysql_ResultObject_data_seek':
_mysql.c:1916: args' undeclared (first use in this function)
_mysql.c:1917: syntax error before ')' token
_mysql.c:1917: syntax error before ')' token
_mysql.c:1918:self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1927: syntax error before '' token
_mysql.c: In function _mysql_ResultObject_row_seek':
_mysql.c:1931:MYSQL_ROW_OFFSET' undeclared (first use in this function)
_mysql.c:1931: syntax error before "r"
_mysql.c:1932: args' undeclared (first use in this function)
_mysql.c:1933: syntax error before ')' token
_mysql.c:1933: syntax error before ')' token
_mysql.c:1934:self' undeclared (first use in this function)
_mysql.c:1939: r' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1949: syntax error before '*' token
_mysql.c: In function_mysql_ResultObject_row_tell':
_mysql.c:1952: MYSQL_ROW_OFFSET' undeclared (first use in this function)
_mysql.c:1952: syntax error before "r"
_mysql.c:1953:args' undeclared (first use in this function)
_mysql.c:1954: syntax error before ')' token
_mysql.c:1954: syntax error before ')' token
_mysql.c:1955: self' undeclared (first use in this function)
_mysql.c:1960:r' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1966: syntax error before '' token
_mysql.c: In function _mysql_ResultObject_dealloc':
_mysql.c:1968:self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1976: syntax error before '' token
_mysql.c: In function _mysql_ResultObject_repr':
_mysql.c:1980:self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:2190: syntax error before ')' token
_mysql.c:2190: initializer element is not constant
_mysql.c:2190: (near initialization for _mysql_ConnectionObject_memberlist[0].offset')
_mysql.c:2190: initializer element is not constant
_mysql.c:2190: (near initialization for_mysql_ConnectionObject_memberlist[0]')
_mysql.c:2197: syntax error before ')' token
_mysql.c:2197: initializer element is not constant
_mysql.c:2197: (near initialization for _mysql_ConnectionObject_memberlist[1].offset')
_mysql.c:2197: initializer element is not constant
_mysql.c:2197: (near initialization for_mysql_ConnectionObject_memberlist[1]')
_mysql.c:2204: syntax error before ')' token
_mysql.c:2204: initializer element is not constant
_mysql.c:2204: (near initialization for _mysql_ConnectionObject_memberlist[2].offset')
_mysql.c:2204: initializer element is not constant
_mysql.c:2204: (near initialization for_mysql_ConnectionObject_memberlist[2]')
_mysql.c:2211: syntax error before ')' token
_mysql.c:2211: initializer element is not constant
_mysql.c:2211: (near initialization for _mysql_ConnectionObject_memberlist[3].offset')
_mysql.c:2211: initializer element is not constant
_mysql.c:2211: (near initialization for_mysql_ConnectionObject_memberlist[3]')
_mysql.c:2218: syntax error before ')' token
_mysql.c:2218: initializer element is not constant
_mysql.c:2218: (near initialization for _mysql_ConnectionObject_memberlist[4].flags')
_mysql.c:2218: initializer element is not constant
_mysql.c:2218: (near initialization for_mysql_ConnectionObject_memberlist[4]')
_mysql.c:2219: initializer element is not constant
_mysql.c:2219: (near initialization for _mysql_ConnectionObject_memberlist[5]')
_mysql.c:2281: syntax error before ')' token
_mysql.c:2281: initializer element is not constant
_mysql.c:2281: (near initialization for_mysql_ResultObject_memberlist[0].offset')
_mysql.c:2281: initializer element is not constant
_mysql.c:2281: (near initialization for _mysql_ResultObject_memberlist[0]')
_mysql.c:2282: initializer element is not constant
_mysql.c:2282: (near initialization for_mysql_ResultObject_memberlist[1]')
_mysql.c:2287: syntax error before '' token
_mysql.c: In function _mysql_ConnectionObject_getattr':
_mysql.c:2292:self' undeclared (first use in this function)
_mysql.c:2292: name' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:2315: syntax error before '*' token
_mysql.c: In function_mysql_ResultObject_getattr':
_mysql.c:2320: self' undeclared (first use in this function)
_mysql.c:2320:name' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:2341: syntax error before '' token
_mysql.c: In function _mysql_ConnectionObject_setattr':
_mysql.c:2345:v' undeclared (first use in this function)
_mysql.c:2356: name' undeclared (first use in this function)
_mysql.c:2357:self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:2366: syntax error before '' token
_mysql.c: In function _mysql_ResultObject_setattr':
_mysql.c:2370:v' undeclared (first use in this function)
_mysql.c:2381: name' undeclared (first use in this function)
_mysql.c:2382:self' undeclared (first use in this function)
error: command 'gcc' failed with exit status 1 [rowen@babaroga MySQL-python-1.2.1c3]$
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
On Fedora Core release 3 (Heidelberg),
after build and install 1.2.1c7, have the following error:
ImportError: /usr/lib/python2.3/site-packages/_mysql.so: undefined symbol: mysql_field_count
python: 2.3.4,
Mysql 4.1
zlib-devel-1.2.1.2-3.fc3
glib2-2.4.8-1.fc3
glibc-2.3.6-0.fc3.1
Google, but seems nobody is talking about it. No mention in FAQ either.
Thanks,
Tom
PS: a full list of glib installed:
glibc-common-2.3.6-0.fc3.1
glibc-profile-2.3.6-0.fc3.1
glibc-kernheaders-2.4-9.1.87
glib2-2.4.8-1.fc3
glibc-2.3.6-0.fc3.1
glibc-utils-2.3.6-0.fc3.1
glib-1.2.10-15
dbus-glib-0.22-10.FC3.2
glib2-devel-2.4.8-1.fc3
glibc-headers-2.3.6-0.fc3.1
glibc-devel-2.3.6-0.fc3.1
glib-devel-1.2.10-15
Are your MySQL packages from FC3 or from MySQL.com or did you compile it yourself? Do you have mysql-devel installed? Make sure you don't have multiple versions installed, i.e. old vendor package + new version you compiled; you may be compiling against one and linking against the other at runtime.
I'm having the same problem and all mysql client code is from one version of mysql.
Still, something is weird here because I used to be able to build older MySQLdb and now I can't build 1.2.1c3 or 1.2.0; both it fail with:
_mysql.c:267: warning: `_mysql_server_enddoc' defined but not used
error: command 'gcc' failed with exit status 1
Building 1.2.1 appears to succeed, but then has the problem being discussed here the undefine symbol at import time).
Some possibly relevant data:
PATH=/astro/net/python/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/sbin:/usr/sbin
$ which mysql
/usr/bin/mysql
$ which mysql_config
/usr/bin/mysql_config
$ mysql_config --version
3.23.58
$ mysql --version
mysql Ver 11.18 Distrib 3.23.58, for redhat-linux-gnu (i386)
(this may be an issue since this is an i686 but that has always been true and it used to build)
Read this bug:
https://sourceforge.net/tracker/index.php?func=detail&aid=1464168&group_id=22307&atid=374932
Your issue is nearly the same.
The compiler warning will be fixed in the next release (I'm doing a patchlevel release); this is only relevant if you are using MySQL older than 4.0.
As for why your build fails, you may not be including all relevant compiler errors. Warnings should not cause the build to fail. However I suspect as in the case above you somehow have two installations of MySQL, or one was not removed cleanly when upgrading.
Follow-up to bug 1464168.
I was able to build MySQLdb on a different linux box (that had a different installation of mysql). So I agree it may be that something was messed up with the mysql client on the computer I first tried. It's weird, though. It certainly worked before. Corrupted files? Who knows.
As to the compile error I see when I try to build an older version of MySQLdb...I see a lot of messages, but they all look like warnings to me. Here's a log. Maybe you can stop the fatal error.
[rowen@babaroga MySQL-python-1.2.1c3]$ rm -r build
[rowen@babaroga MySQL-python-1.2.1c3]$ python setup.py build
/usr/lib/python2.2/distutils/dist.py:215: UserWarning: Unknown distribution option: 'download_url'
warnings.warn(msg)
/usr/lib/python2.2/distutils/dist.py:215: UserWarning: Unknown distribution option: 'classifiers'
warnings.warn(msg)
running build
running build_py
creating build
creating build/lib.linux-i686-2.2
copying _mysql_exceptions.py -> build/lib.linux-i686-2.2
creating build/lib.linux-i686-2.2/MySQLdb
copying MySQLdb/init.py -> build/lib.linux-i686-2.2/MySQLdb
copying MySQLdb/converters.py -> build/lib.linux-i686-2.2/MySQLdb
copying MySQLdb/connections.py -> build/lib.linux-i686-2.2/MySQLdb
copying MySQLdb/cursors.py -> build/lib.linux-i686-2.2/MySQLdb
copying MySQLdb/sets.py -> build/lib.linux-i686-2.2/MySQLdb
copying MySQLdb/times.py -> build/lib.linux-i686-2.2/MySQLdb
copying MySQLdb/stringtimes.py -> build/lib.linux-i686-2.2/MySQLdb
copying MySQLdb/mxdatetimes.py -> build/lib.linux-i686-2.2/MySQLdb
copying MySQLdb/pytimes.py -> build/lib.linux-i686-2.2/MySQLdb
creating build/lib.linux-i686-2.2/MySQLdb/constants
copying MySQLdb/constants/init.py -> build/lib.linux-i686-2.2/MySQLdb/constants
copying MySQLdb/constants/CR.py -> build/lib.linux-i686-2.2/MySQLdb/constants
copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.linux-i686-2.2/MySQLdb/constants
copying MySQLdb/constants/ER.py -> build/lib.linux-i686-2.2/MySQLdb/constants
copying MySQLdb/constants/FLAG.py -> build/lib.linux-i686-2.2/MySQLdb/constants
copying MySQLdb/constants/REFRESH.py -> build/lib.linux-i686-2.2/MySQLdb/constants
copying MySQLdb/constants/CLIENT.py -> build/lib.linux-i686-2.2/MySQLdb/constants
running build_ext
building '_mysql' extension
creating build/temp.linux-i686-2.2
gcc -DNDEBUG -O2 -g -pipe -march=i386 -mcpu=i686 -D_GNU_SOURCE -fPIC -fPIC -I/usr/include/python2.2 -c _mysql.c -o build/temp.linux-i686-2.2/_mysql.o -I'/usr/include/mysql'
_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: syntax error before "MYSQL"
_mysql.c:73: warning: no semicolon at end of struct or union
_mysql.c:76: syntax error before '}' token
_mysql.c:76: warning: data definition has no type or storage class
_mysql.c:87: syntax error before "MYSQL_RES"
_mysql.c:87: warning: no semicolon at end of struct or union
_mysql.c:91: syntax error before '}' token
_mysql.c:91: warning: data definition has no type or storage class
_mysql.c:103: syntax error before '' token
_mysql.c: In function
_mysql_Exception': _mysql.c:117:
c' undeclared (first use in this function)_mysql.c:117: (Each undeclared identifier is reported only once
_mysql.c:117: for each function it appears in.)
_mysql.c:120:
CR_MAX_ERROR' undeclared (first use in this function) _mysql.c:128:
CR_COMMANDS_OUT_OF_SYNC' undeclared (first use in this function)_mysql.c:129:
ER_DB_CREATE_EXISTS' undeclared (first use in this function) _mysql.c:130:
ER_SYNTAX_ERROR' undeclared (first use in this function)_mysql.c:131:
ER_PARSE_ERROR' undeclared (first use in this function) _mysql.c:132:
ER_NO_SUCH_TABLE' undeclared (first use in this function)_mysql.c:133:
ER_WRONG_DB_NAME' undeclared (first use in this function) _mysql.c:134:
ER_WRONG_TABLE_NAME' undeclared (first use in this function)_mysql.c:135:
ER_FIELD_SPECIFIED_TWICE' undeclared (first use in this function) _mysql.c:136:
ER_INVALID_GROUP_FUNC_USE' undeclared (first use in this function)_mysql.c:137:
ER_UNSUPPORTED_EXTENSION' undeclared (first use in this function) _mysql.c:138:
ER_TABLE_MUST_HAVE_COLUMNS' undeclared (first use in this function)_mysql.c:144:
ER_DUP_ENTRY' undeclared (first use in this function) _mysql.c:166: warning: passing arg 1 of
PyString_FromString' makes pointer from integer without a cast_mysql.c: At top level:
_mysql.c:311: syntax error before '' token
_mysql.c: In function
_mysql_ResultObject_Initialize': _mysql.c:316:
MYSQL_RES' undeclared (first use in this function)_mysql.c:316:
result' undeclared (first use in this function) _mysql.c:317:
conn' undeclared (first use in this function)_mysql.c:321:
MYSQL_FIELD' undeclared (first use in this function) _mysql.c:321:
fields' undeclared (first use in this function)_mysql.c:323:
args' undeclared (first use in this function) _mysql.c:323:
kwargs' undeclared (first use in this function)_mysql.c:328:
self' undeclared (first use in this function) _mysql.c: At top level: _mysql.c:396: syntax error before '*' token _mysql.c: In function
_mysql_ResultObject_traverse':_mysql.c:401:
self' undeclared (first use in this function) _mysql.c:402:
arg' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:411: syntax error before '' token
_mysql.c: In function
_mysql_ResultObject_clear': _mysql.c:413:
self' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:422: syntax error before '' token
_mysql.c: In function
_mysql_ConnectionObject_Initialize': _mysql.c:426:
MYSQL' undeclared (first use in this function)_mysql.c:426:
conn' undeclared (first use in this function) _mysql.c:435:
MYSQL_PORT' undeclared (first use in this function)_mysql.c:451:
self' undeclared (first use in this function) _mysql.c:454:
args' undeclared (first use in this function)_mysql.c:454:
kwargs' undeclared (first use in this function) _mysql.c:500:
MYSQL_OPT_CONNECT_TIMEOUT' undeclared (first use in this function)_mysql.c:504:
MYSQL_OPT_COMPRESS' undeclared (first use in this function) _mysql.c:505:
CLIENT_COMPRESS' undeclared (first use in this function)_mysql.c:508:
MYSQL_OPT_NAMED_PIPE' undeclared (first use in this function) _mysql.c:510:
MYSQL_INIT_COMMAND' undeclared (first use in this function)_mysql.c:512:
MYSQL_READ_DEFAULT_FILE' undeclared (first use in this function) _mysql.c:514:
MYSQL_READ_DEFAULT_GROUP' undeclared (first use in this function)_mysql.c:517:
MYSQL_OPT_LOCAL_INFILE' undeclared (first use in this function) _mysql.c: In function
_mysql_connect':_mysql.c:604:
c' undeclared (first use in this function) _mysql.c:606: syntax error before ')' token _mysql.c: At top level: _mysql.c:617: syntax error before '*' token _mysql.c: In function
_mysql_ConnectionObject_traverse':_mysql.c:621:
self' undeclared (first use in this function) _mysql.c:622:
arg' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:628: syntax error before '' token
_mysql.c: In function
_mysql_ConnectionObject_clear': _mysql.c:630:
self' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:640: syntax error before '' token
_mysql.c: In function
_mysql_ConnectionObject_close': _mysql.c:643:
args' undeclared (first use in this function)_mysql.c:646:
self' undeclared (first use in this function) _mysql.c: At top level: _mysql.c:668: syntax error before '*' token _mysql.c: In function
_mysql_ConnectionObject_affected_rows':_mysql.c:671:
args' undeclared (first use in this function) _mysql.c:672:
self' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:702: syntax error before '' token
_mysql.c: In function
_mysql_ConnectionObject_dump_debug_info': _mysql.c:706:
args' undeclared (first use in this function)_mysql.c:707:
self' undeclared (first use in this function) _mysql.c: At top level: _mysql.c:721: syntax error before '*' token _mysql.c: In function
_mysql_ConnectionObject_autocommit':_mysql.c:725:
args' undeclared (first use in this function) _mysql.c:733:
self' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:747: syntax error before '' token
_mysql.c: In function
_mysql_ConnectionObject_commit': _mysql.c:751:
args' undeclared (first use in this function)_mysql.c:756:
self' undeclared (first use in this function) _mysql.c: At top level: _mysql.c:769: syntax error before '*' token _mysql.c: In function
_mysql_ConnectionObject_rollback':_mysql.c:773:
args' undeclared (first use in this function) _mysql.c:778:
self' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:801: syntax error before '' token
_mysql.c: In function
_mysql_ConnectionObject_next_result': _mysql.c:805:
args' undeclared (first use in this function)_mysql.c:813:
self' undeclared (first use in this function) _mysql.c: At top level: _mysql.c:886: syntax error before '*' token _mysql.c: In function
_mysql_ConnectionObject_errno':_mysql.c:889:
args' undeclared (first use in this function) _mysql.c:890:
self' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:902: syntax error before '' token
_mysql.c: In function
_mysql_ConnectionObject_error': _mysql.c:905:
args' undeclared (first use in this function)_mysql.c:906:
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: syntax error before '' token
_mysql.c: In function
_mysql_escape_string': _mysql.c:926:
args' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:955: syntax error before '' token
_mysql.c: In function
_mysql_string_literal': _mysql.c:961:
args' undeclared (first use in this function)_mysql.c: In function
_mysql_escape': _mysql.c:1038: syntax error before ')' token _mysql.c: At top level: _mysql.c:1114: syntax error before '*' token _mysql.c: In function
_mysql_ResultObject_describe':_mysql.c:1118:
MYSQL_FIELD' undeclared (first use in this function) _mysql.c:1118:
fields' undeclared (first use in this function)_mysql.c:1120:
args' undeclared (first use in this function) _mysql.c:1121: syntax error before ')' token _mysql.c:1121: syntax error before ')' token _mysql.c:1122:
self' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:1150: syntax error before '' token
_mysql.c: In function
_mysql_ResultObject_field_flags': _mysql.c:1154:
MYSQL_FIELD' undeclared (first use in this function)_mysql.c:1154:
fields' undeclared (first use in this function) _mysql.c:1156:
args' undeclared (first use in this function)_mysql.c:1157: syntax error before ')' token
_mysql.c:1157: syntax error before ')' token
_mysql.c:1158:
self' undeclared (first use in this function) _mysql.c: At top level: _mysql.c:1199: syntax error before '*' token _mysql.c: In function
_mysql_row_to_tuple':_mysql.c:1206:
self' undeclared (first use in this function) _mysql.c:1208: warning: assignment makes pointer from integer without a cast _mysql.c:1212:
row' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:1224: syntax error before '' token
_mysql.c: In function
_mysql_row_to_dict': _mysql.c:1230:
MYSQL_FIELD' undeclared (first use in this function)_mysql.c:1230:
fields' undeclared (first use in this function) _mysql.c:1232:
self' undeclared (first use in this function)_mysql.c:1234: warning: assignment makes pointer from integer without a cast
_mysql.c:1239:
row' undeclared (first use in this function) _mysql.c: At top level: _mysql.c:1263: syntax error before '*' token _mysql.c: In function
_mysql_row_to_dict_old':_mysql.c:1269:
MYSQL_FIELD' undeclared (first use in this function) _mysql.c:1269:
fields' undeclared (first use in this function)_mysql.c:1271:
self' undeclared (first use in this function) _mysql.c:1273: warning: assignment makes pointer from integer without a cast _mysql.c:1278:
row' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:1300: syntax error before '' token
_mysql.c:1304: syntax error before '' token
_mysql.c: In function
_mysql__fetch_row': _mysql.c:1311:
MYSQL_ROW' undeclared (first use in this function)_mysql.c:1311: syntax error before "row"
_mysql.c:1313:
skiprows' undeclared (first use in this function) _mysql.c:1313:
maxrows' undeclared (first use in this function)_mysql.c:1315:
self' undeclared (first use in this function) _mysql.c:1316:
row' undeclared (first use in this function)_mysql.c:1322: syntax error before ')' token
_mysql.c:1323: syntax error before ')' token
_mysql.c:1327:
r' undeclared (first use in this function) _mysql.c:1330: warning: assignment makes pointer from integer without a cast _mysql.c: At top level: _mysql.c:1350: syntax error before '*' token _mysql.c: In function
_mysql_ResultObject_fetch_row':_mysql.c:1354: syntax error before '' token
_mysql.c:1366:
args' undeclared (first use in this function) _mysql.c:1366:
kwargs' undeclared (first use in this function)_mysql.c:1369: syntax error before ')' token
_mysql.c:1369: syntax error before ')' token
_mysql.c:1377:
self' undeclared (first use in this function) _mysql.c: At top level: _mysql.c:1457: syntax error before '*' token _mysql.c: In function
_mysql_ConnectionObject_character_set_name':_mysql.c:1461:
args' undeclared (first use in this function) _mysql.c:1462:
self' undeclared (first use in this function)_mysql.c: In 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: syntax error before '' token
_mysql.c: In function
_mysql_ConnectionObject_get_host_info': _mysql.c:1494:
args' undeclared (first use in this function)_mysql.c:1495:
self' undeclared (first use in this function) _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: syntax error before '' token
_mysql.c: In function
_mysql_ConnectionObject_get_proto_info': _mysql.c:1509:
args' undeclared (first use in this function)_mysql.c:1510:
self' undeclared (first use in this function) _mysql.c: At top level: _mysql.c:1521: syntax error before '*' token _mysql.c: In function
_mysql_ConnectionObject_get_server_info':_mysql.c:1524:
args' undeclared (first use in this function) _mysql.c:1525:
self' undeclared (first use in this function)_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: syntax error before '*' token _mysql.c: In function
_mysql_ConnectionObject_info':_mysql.c:1541:
args' undeclared (first use in this function) _mysql.c:1542:
self' undeclared (first use in this function)_mysql.c:1543: warning: assignment makes pointer from integer without a cast
_mysql.c: At top level:
_mysql.c:1572: syntax error before '' token
_mysql.c: In function
_mysql_ConnectionObject_insert_id': _mysql.c:1575:
my_ulonglong' undeclared (first use in this function)_mysql.c:1575: syntax error before "r"
_mysql.c:1576:
args' undeclared (first use in this function) _mysql.c:1577:
self' undeclared (first use in this function)_mysql.c:1579:
r' undeclared (first use in this function) _mysql.c: At top level: _mysql.c:1590: syntax error before '*' token _mysql.c: In function
_mysql_ConnectionObject_kill':_mysql.c:1595:
args' undeclared (first use in this function) _mysql.c:1596:
self' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:1613: syntax error before '' token
_mysql.c: In function
_mysql_ConnectionObject_field_count': _mysql.c:1616:
args' undeclared (first use in this function)_mysql.c:1617:
self' undeclared (first use in this function) _mysql.c: At top level: _mysql.c:1630: syntax error before '*' token _mysql.c: In function
_mysql_ResultObject_num_fields':_mysql.c:1633:
args' undeclared (first use in this function) _mysql.c:1634: syntax error before ')' token _mysql.c:1634: syntax error before ')' token _mysql.c:1635:
self' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:1646: syntax error before '' token
_mysql.c: In function
_mysql_ResultObject_num_rows': _mysql.c:1649:
args' undeclared (first use in this function)_mysql.c:1650: syntax error before ')' token
_mysql.c:1650: syntax error before ')' token
_mysql.c:1651:
self' undeclared (first use in this function) _mysql.c: At top level: _mysql.c:1668: syntax error before '*' token _mysql.c: In function
_mysql_ConnectionObject_ping':_mysql.c:1672:
args' undeclared (first use in this function) _mysql.c:1673:
self' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:1690: syntax error before '' token
_mysql.c: In function
_mysql_ConnectionObject_query': _mysql.c:1695:
args' undeclared (first use in this function)_mysql.c:1696:
self' undeclared (first use in this function) _mysql.c: At top level: _mysql.c:1720: syntax error before '*' token _mysql.c: In function
_mysql_ConnectionObject_select_db':_mysql.c:1725:
args' undeclared (first use in this function) _mysql.c:1726:
self' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:1742: syntax error before '' token
_mysql.c: In function
_mysql_ConnectionObject_shutdown': _mysql.c:1746:
args' undeclared (first use in this function)_mysql.c:1747:
self' undeclared (first use in this function) _mysql.c: At top level: _mysql.c:1769: syntax error before '*' token _mysql.c: In function
_mysql_ConnectionObject_stat':_mysql.c:1773:
args' undeclared (first use in this function) _mysql.c:1774:
self' undeclared (first use in this function)_mysql.c:1776: warning: assignment makes pointer from integer without a cast
_mysql.c: At top level:
_mysql.c:1790: syntax error before '' token
_mysql.c: In function
_mysql_ConnectionObject_store_result': _mysql.c:1794:
r' undeclared (first use in this function)_mysql.c:1796:
args' undeclared (first use in this function) _mysql.c:1797:
self' undeclared (first use in this function)_mysql.c:1802: syntax error before ')' token
_mysql.c: At top level:
_mysql.c:1831: syntax error before '' token
_mysql.c: In function
_mysql_ConnectionObject_thread_id': _mysql.c:1835:
args' undeclared (first use in this function)_mysql.c:1836:
self' undeclared (first use in this function) _mysql.c: At top level: _mysql.c:1851: syntax error before '*' token _mysql.c: In function
_mysql_ConnectionObject_use_result':_mysql.c:1855:
r' undeclared (first use in this function) _mysql.c:1857:
args' undeclared (first use in this function)_mysql.c:1858:
self' undeclared (first use in this function) _mysql.c:1863: syntax error before ')' token _mysql.c: At top level: _mysql.c:1881: syntax error before '*' token _mysql.c: In function
_mysql_ConnectionObject_dealloc':_mysql.c:1885:
self' undeclared (first use in this function) _mysql.c: At top level: _mysql.c:1895: syntax error before '*' token _mysql.c: In function
_mysql_ConnectionObject_repr':_mysql.c:1898:
self' undeclared (first use in this function) _mysql.c: At top level: _mysql.c:1912: syntax error before '*' token _mysql.c: In function
_mysql_ResultObject_data_seek':_mysql.c:1916:
args' undeclared (first use in this function) _mysql.c:1917: syntax error before ')' token _mysql.c:1917: syntax error before ')' token _mysql.c:1918:
self' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:1927: syntax error before '' token
_mysql.c: In function
_mysql_ResultObject_row_seek': _mysql.c:1931:
MYSQL_ROW_OFFSET' undeclared (first use in this function)_mysql.c:1931: syntax error before "r"
_mysql.c:1932:
args' undeclared (first use in this function) _mysql.c:1933: syntax error before ')' token _mysql.c:1933: syntax error before ')' token _mysql.c:1934:
self' undeclared (first use in this function)_mysql.c:1939:
r' undeclared (first use in this function) _mysql.c: At top level: _mysql.c:1949: syntax error before '*' token _mysql.c: In function
_mysql_ResultObject_row_tell':_mysql.c:1952:
MYSQL_ROW_OFFSET' undeclared (first use in this function) _mysql.c:1952: syntax error before "r" _mysql.c:1953:
args' undeclared (first use in this function)_mysql.c:1954: syntax error before ')' token
_mysql.c:1954: syntax error before ')' token
_mysql.c:1955:
self' undeclared (first use in this function) _mysql.c:1960:
r' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:1966: syntax error before '' token
_mysql.c: In function
_mysql_ResultObject_dealloc': _mysql.c:1968:
self' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:1976: syntax error before '' token
_mysql.c: In function
_mysql_ResultObject_repr': _mysql.c:1980:
self' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:2190: syntax error before ')' token
_mysql.c:2190: initializer element is not constant
_mysql.c:2190: (near initialization for
_mysql_ConnectionObject_memberlist[0].offset') _mysql.c:2190: initializer element is not constant _mysql.c:2190: (near initialization for
_mysql_ConnectionObject_memberlist[0]')_mysql.c:2197: syntax error before ')' token
_mysql.c:2197: initializer element is not constant
_mysql.c:2197: (near initialization for
_mysql_ConnectionObject_memberlist[1].offset') _mysql.c:2197: initializer element is not constant _mysql.c:2197: (near initialization for
_mysql_ConnectionObject_memberlist[1]')_mysql.c:2204: syntax error before ')' token
_mysql.c:2204: initializer element is not constant
_mysql.c:2204: (near initialization for
_mysql_ConnectionObject_memberlist[2].offset') _mysql.c:2204: initializer element is not constant _mysql.c:2204: (near initialization for
_mysql_ConnectionObject_memberlist[2]')_mysql.c:2211: syntax error before ')' token
_mysql.c:2211: initializer element is not constant
_mysql.c:2211: (near initialization for
_mysql_ConnectionObject_memberlist[3].offset') _mysql.c:2211: initializer element is not constant _mysql.c:2211: (near initialization for
_mysql_ConnectionObject_memberlist[3]')_mysql.c:2218: syntax error before ')' token
_mysql.c:2218: initializer element is not constant
_mysql.c:2218: (near initialization for
_mysql_ConnectionObject_memberlist[4].flags') _mysql.c:2218: initializer element is not constant _mysql.c:2218: (near initialization for
_mysql_ConnectionObject_memberlist[4]')_mysql.c:2219: initializer element is not constant
_mysql.c:2219: (near initialization for
_mysql_ConnectionObject_memberlist[5]') _mysql.c:2281: syntax error before ')' token _mysql.c:2281: initializer element is not constant _mysql.c:2281: (near initialization for
_mysql_ResultObject_memberlist[0].offset')_mysql.c:2281: initializer element is not constant
_mysql.c:2281: (near initialization for
_mysql_ResultObject_memberlist[0]') _mysql.c:2282: initializer element is not constant _mysql.c:2282: (near initialization for
_mysql_ResultObject_memberlist[1]')_mysql.c:2287: syntax error before '' token
_mysql.c: In function
_mysql_ConnectionObject_getattr': _mysql.c:2292:
self' undeclared (first use in this function)_mysql.c:2292:
name' undeclared (first use in this function) _mysql.c: At top level: _mysql.c:2315: syntax error before '*' token _mysql.c: In function
_mysql_ResultObject_getattr':_mysql.c:2320:
self' undeclared (first use in this function) _mysql.c:2320:
name' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:2341: syntax error before '' token
_mysql.c: In function
_mysql_ConnectionObject_setattr': _mysql.c:2345:
v' undeclared (first use in this function)_mysql.c:2356:
name' undeclared (first use in this function) _mysql.c:2357:
self' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:2366: syntax error before '' token
_mysql.c: In function
_mysql_ResultObject_setattr': _mysql.c:2370:
v' undeclared (first use in this function)_mysql.c:2381:
name' undeclared (first use in this function) _mysql.c:2382:
self' undeclared (first use in this function)error: command 'gcc' failed with exit status 1
[rowen@babaroga MySQL-python-1.2.1c3]$
Python-2.2 is not supported.
Additionally, none of the settings that mysql_config provides are present. Run mysql_config and see what it says.