Menu

Install on MacOS X

Help
Mophilly
2005-03-29
2012-09-19
  • Mophilly

    Mophilly - 2005-03-29

    Warning: Newbie, feeling pathetic, on the loose...

    setup.py build complains that it cannot find mysql_config. I added a symlink to the file in site-packages:
    lrwxr-xr-x 1 root admin 75 29 Mar 11:33 mysql_config -> /usr/local/mysql-standard-4.0.20-apple-darwin7.3.0-powerpc/bin/mysql_config

    Reboot and ran setup.py again. No joy. Can someone tell me (again) how to do this?

     
    • Elmer Argente

      Elmer Argente - 2006-07-14

      installing the updated appropriate xcode tools might help.

       
    • Andy Dustman

      Andy Dustman - 2005-03-29

      Simple: site-packages is not on your executable path.

      Assuming you are using a bash shell, just do this:

      % export PATH=$PATH:/usr/local/mysql-standard-4.0.20-apple-darwin7.3.0-powerpc/bin

      on one line

      and then install as directed.

       
    • Mophilly

      Mophilly - 2005-03-30

      Thanks for the reply. I think that will work.

      What I used that did work was:
      $ env PATH=/usr/local/mysql-standard-4.0.20-apple-darwin7.3.0-powerpc/bin:$PATH python setup.py build

      All on one line. The build and the subsequent install worked fine.

       
    • Alex Novo

      Alex Novo - 2005-05-30

      I Have the next problem installing MySQLdb on a mac osx tiger:

      When i run:
      $ env PATH=/Applications/mysql-3.23.58-apple-darwin6.4-powerpc/bin:$PATH python setup.py build

      where "/Applications/mysql-3.23.58-apple-darwin6.4-powerpc" its the directiory where i have installed mysql (mysql alone works fine).

      After execute the env order i have the next result:
      build
      running build
      running build_py
      running build_ext
      building '_mysql' extension
      gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3 -c _mysql.c -o build/temp.darwin-8.1.0-Power_Macintosh-2.3/_mysql.o -I'/Applications/mysql-3.23.58-apple-darwin6.4-powerpc/include'
      _mysql.c:41:19: error: mysql.h: No such file or directory
      _mysql.c:42:26: error: mysqld_error.h: No such file or directory
      _mysql.c:43:20: error: errmsg.h: No such file or directory
      _mysql.c:73: error: parse error before "MYSQL"
      _mysql.c:73: warning: no semicolon at end of struct or union
      _mysql.c:76: error: parse 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: parse error before "MYSQL_RES"
      _mysql.c:87: warning: no semicolon at end of struct or union
      _mysql.c:91: error: parse 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: parse 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 argument 1 of 'PyString_FromString' makes pointer from integer without a cast
      _mysql.c: In function '_mysql_server_init':
      _mysql.c:261: warning: label 'finish' defined but not used
      _mysql.c:187: warning: unused variable 'item'
      _mysql.c:186: warning: unused variable 'groupc'
      _mysql.c:186: warning: unused variable 'i'
      _mysql.c:186: warning: unused variable 'cmd_argc'
      _mysql.c:185: warning: unused variable 's'
      _mysql.c: At top level:
      _mysql.c:311: error: parse 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: parse 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: parse 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: parse 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: parse error before ')' token
      _mysql.c: At top level:
      _mysql.c:617: error: parse 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: parse 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: parse 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: parse 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: parse 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: parse 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: parse 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: parse 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: parse 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: parse 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: parse 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 argument 1 of 'PyString_FromString' makes pointer from integer without a cast
      _mysql.c: At top level:
      _mysql.c:920: error: parse 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: parse 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: parse error before ')' token
      _mysql.c: At top level:
      _mysql.c:1114: error: parse 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: parse error before ')' token
      _mysql.c:1121: error: parse 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: parse 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: parse error before ')' token
      _mysql.c:1157: error: parse error before ')' token
      _mysql.c:1158: error: 'self' undeclared (first use in this function)
      _mysql.c: At top level:
      _mysql.c:1199: error: parse 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: parse 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: parse 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: parse error before '
      ' token
      _mysql.c:1300: warning: function declaration isn't a prototype
      _mysql.c:1304: error: parse 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: parse 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: parse error before ')' token
      _mysql.c:1323: error: parse 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: parse 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: parse 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: parse error before ')' token
      _mysql.c:1369: error: parse 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: parse 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 argument 1 of 'PyString_FromString' makes pointer from integer without a cast
      _mysql.c: At top level:
      _mysql.c:1491: error: parse 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 argument 1 of 'PyString_FromString' makes pointer from integer without a cast
      _mysql.c: At top level:
      _mysql.c:1506: error: parse 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: parse 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 argument 1 of 'PyString_FromString' makes pointer from integer without a cast
      _mysql.c: At top level:
      _mysql.c:1537: error: parse 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: parse 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: parse 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: parse 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: parse 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: parse 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: parse error before ')' token
      _mysql.c:1634: error: parse error before ')' token
      _mysql.c:1635: error: 'self' undeclared (first use in this function)
      _mysql.c: At top level:
      _mysql.c:1646: error: parse 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: parse error before ')' token
      _mysql.c:1650: error: parse error before ')' token
      _mysql.c:1651: error: 'self' undeclared (first use in this function)
      _mysql.c: At top level:
      _mysql.c:1668: error: parse 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: parse 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: parse 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: parse 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: parse 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: parse 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: parse error before ')' token
      _mysql.c: At top level:
      _mysql.c:1831: error: parse 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: parse 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: parse error before ')' token
      _mysql.c: At top level:
      _mysql.c:1881: error: parse 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: parse 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: parse 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: parse error before ')' token
      _mysql.c:1917: error: parse 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: parse 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: parse error before "r"
      _mysql.c:1932: error: 'args' undeclared (first use in this function)
      _mysql.c:1933: error: parse error before ')' token
      _mysql.c:1933: error: parse 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: parse 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: parse error before "r"
      _mysql.c:1948: error: 'args' undeclared (first use in this function)
      _mysql.c:1949: error: parse error before ')' token
      _mysql.c:1949: error: parse 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: parse 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: parse 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: parse error before "_mysql_ConnectionObject"
      _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: parse error before "_mysql_ConnectionObject"
      _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: parse error before "_mysql_ConnectionObject"
      _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: parse error before "_mysql_ConnectionObject"
      _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: parse error before "_mysql_ConnectionObject"
      _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: parse error before "_mysql_ResultObject"
      _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: parse 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: parse 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: parse 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: parse 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)
      error: command 'gcc' failed with exit status 1

      I have installed de gc 4.0 that its packaged wiht xcode in tiger, whats i made bad?

      Thanks for the help!

       
      • Andy Dustman

        Andy Dustman - 2005-05-31

        It doesn't seem to be finding your MySQL development headers. If you have the development package installed (this may be separate), this is probably due to older versions of mysql_config not supporting the --include option. I'll fix this in the next release candidate, but you can probably modify setup.py to use the right path by changing this line:

        include_dirs = [ i[2:] for i in config('include') if i.startswith('-i') ]
        

        to:

        include_dirs = [ i[2:] for i in config('cflags') if i.startswith('-i') ]
        

        Let me know if this works.

         
    • Alex Novo

      Alex Novo - 2005-06-01

      I made the change:

      include_dirs = [ i[2:] for i in config('include') ]

      to

      include_dirs = [ i[2:] for i in config('cflags') if i.startswith('-i') ]

      in setup.py in the MySQLdb 1.2.0 version and have the same problem that I said after =(

       
      • Andy Dustman

        Andy Dustman - 2005-06-01

        Post your output from setup.py with this change; only lines starting with gcc or ld will be useful.

        Also, post the output of mysql_config, mysql_config --cflags, and mysql_config --libs

         
    • Alex Novo

      Alex Novo - 2005-06-01

      The output with the change:

      running build
      running build_py
      running build_ext
      building '_mysql' extension
      gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3 -c _mysql.c -o build/temp.darwin-8.1.0-Power_Macintosh-2.3/_mysql.o -I'/Applications/mysql-3.23.58-apple-darwin6.4-powerpc/include'
      _mysql.c:41:19: error: mysql.h: No such file or directory
      _mysql.c:42:26: error: mysqld_error.h: No such file or directory
      _mysql.c:43:20: error: errmsg.h: No such file or directory
      _mysql.c:73: error: parse error before "MYSQL"
      _mysql.c:73: warning: no semicolon at end of struct or union
      _mysql.c:76: error: parse 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: parse error before "MYSQL_RES"
      _mysql.c:87: warning: no semicolon at end of struct or union
      _mysql.c:91: error: parse 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: parse 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 argument 1 of 'PyString_FromString' makes pointer from integer without a cast
      _mysql.c: In function '_mysql_server_init':
      _mysql.c:261: warning: label 'finish' defined but not used
      _mysql.c:187: warning: unused variable 'item'
      _mysql.c:186: warning: unused variable 'groupc'
      _mysql.c:186: warning: unused variable 'i'
      _mysql.c:186: warning: unused variable 'cmd_argc'
      _mysql.c:185: warning: unused variable 's'
      _mysql.c: At top level:
      _mysql.c:311: error: parse 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: parse 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: parse 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: parse 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: parse error before ')' token
      _mysql.c: At top level:
      _mysql.c:617: error: parse 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: parse 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: parse 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: parse 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: parse 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: parse 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: parse 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: parse 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: parse 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: parse 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: parse 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 argument 1 of 'PyString_FromString' makes pointer from integer without a cast
      _mysql.c: At top level:
      _mysql.c:920: error: parse 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: parse 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: parse error before ')' token
      _mysql.c: At top level:
      _mysql.c:1114: error: parse 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: parse error before ')' token
      _mysql.c:1121: error: parse 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: parse 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: parse error before ')' token
      _mysql.c:1157: error: parse error before ')' token
      _mysql.c:1158: error: 'self' undeclared (first use in this function)
      _mysql.c: At top level:
      _mysql.c:1199: error: parse 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: parse 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: parse 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: parse error before '
      ' token
      _mysql.c:1300: warning: function declaration isn't a prototype
      _mysql.c:1304: error: parse 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: parse 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: parse error before ')' token
      _mysql.c:1323: error: parse 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: parse 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: parse 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: parse error before ')' token
      _mysql.c:1369: error: parse 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: parse 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 argument 1 of 'PyString_FromString' makes pointer from integer without a cast
      _mysql.c: At top level:
      _mysql.c:1491: error: parse 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 argument 1 of 'PyString_FromString' makes pointer from integer without a cast
      _mysql.c: At top level:
      _mysql.c:1506: error: parse 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: parse 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 argument 1 of 'PyString_FromString' makes pointer from integer without a cast
      _mysql.c: At top level:
      _mysql.c:1537: error: parse 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: parse 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: parse 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: parse 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: parse 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: parse 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: parse error before ')' token
      _mysql.c:1634: error: parse error before ')' token
      _mysql.c:1635: error: 'self' undeclared (first use in this function)
      _mysql.c: At top level:
      _mysql.c:1646: error: parse 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: parse error before ')' token
      _mysql.c:1650: error: parse error before ')' token
      _mysql.c:1651: error: 'self' undeclared (first use in this function)
      _mysql.c: At top level:
      _mysql.c:1668: error: parse 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: parse 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: parse 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: parse 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: parse 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: parse 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: parse error before ')' token
      _mysql.c: At top level:
      _mysql.c:1831: error: parse 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: parse 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: parse error before ')' token
      _mysql.c: At top level:
      _mysql.c:1881: error: parse 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: parse 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: parse 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: parse error before ')' token
      _mysql.c:1917: error: parse 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: parse 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: parse error before "r"
      _mysql.c:1932: error: 'args' undeclared (first use in this function)
      _mysql.c:1933: error: parse error before ')' token
      _mysql.c:1933: error: parse 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: parse 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: parse error before "r"
      _mysql.c:1948: error: 'args' undeclared (first use in this function)
      _mysql.c:1949: error: parse error before ')' token
      _mysql.c:1949: error: parse 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: parse 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: parse 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: parse error before "_mysql_ConnectionObject"
      _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: parse error before "_mysql_ConnectionObject"
      _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: parse error before "_mysql_ConnectionObject"
      _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: parse error before "_mysql_ConnectionObject"
      _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: parse error before "_mysql_ConnectionObject"
      _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: parse error before "_mysql_ResultObject"
      _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: parse 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: parse 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: parse 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: parse 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)
      error: command 'gcc' failed with exit status 1

      Output of mysql_config:

      Usage: ./mysql_config [OPTIONS]
      Options:
      --cflags [-I'/Applications/mysql-3.23.58-apple-darwin6.4-powerpc/include']
      --libs [-L'/Applications/mysql-3.23.58-apple-darwin6.4-powerpc/lib' -lmysqlclient -lz -lm]
      --socket [/tmp/mysql.sock]
      --port [3306]
      --version [3.23.58]

      Output of mysql_config --cflags:

      Usage: ./mysql_config [OPTIONS]
      Options:
      --cflags [-I'/Applications/mysql-3.23.58-apple-darwin6.4-powerpc/include']
      --libs [-L'/Applications/mysql-3.23.58-apple-darwin6.4-powerpc/lib' -lmysqlclient -lz -lm]
      --socket [/tmp/mysql.sock]
      --port [3306]
      --version [3.23.58]
      Alex:/Applications/mysql-3.23.58-apple-darwin6.4-powerpc/bin Alex$ ./mysql_config --cflags
      -I'/Applications/mysql-3.23.58-apple-darwin6.4-powerpc/include'

      Output of mysql_config --libs:

      -L'/Applications/mysql-3.23.58-apple-darwin6.4-powerpc/lib' -lmysqlclient -lz -lm

      I hope this will serve to you ;)

       
      • Andy Dustman

        Andy Dustman - 2005-06-01

        Ah, quotes around the path.

        This is either fixed in the current release candidate, or else in the next (I need to put another one out).

         
    • Alex Novo

      Alex Novo - 2005-06-02

      With the lastest build (1.2.1c3) i have this:

      running build
      running build_py
      creating build
      creating build/lib.darwin-8.1.0-Power_Macintosh-2.3
      copying _mysql_exceptions.py -> build/lib.darwin-8.1.0-Power_Macintosh-2.3
      creating build/lib.darwin-8.1.0-Power_Macintosh-2.3/MySQLdb
      copying MySQLdb/init.py -> build/lib.darwin-8.1.0-Power_Macintosh-2.3/MySQLdb
      copying MySQLdb/converters.py -> build/lib.darwin-8.1.0-Power_Macintosh-2.3/MySQLdb
      copying MySQLdb/connections.py -> build/lib.darwin-8.1.0-Power_Macintosh-2.3/MySQLdb
      copying MySQLdb/cursors.py -> build/lib.darwin-8.1.0-Power_Macintosh-2.3/MySQLdb
      copying MySQLdb/sets.py -> build/lib.darwin-8.1.0-Power_Macintosh-2.3/MySQLdb
      copying MySQLdb/times.py -> build/lib.darwin-8.1.0-Power_Macintosh-2.3/MySQLdb
      copying MySQLdb/stringtimes.py -> build/lib.darwin-8.1.0-Power_Macintosh-2.3/MySQLdb
      copying MySQLdb/mxdatetimes.py -> build/lib.darwin-8.1.0-Power_Macintosh-2.3/MySQLdb
      copying MySQLdb/pytimes.py -> build/lib.darwin-8.1.0-Power_Macintosh-2.3/MySQLdb
      creating build/lib.darwin-8.1.0-Power_Macintosh-2.3/MySQLdb/constants
      copying MySQLdb/constants/init.py -> build/lib.darwin-8.1.0-Power_Macintosh-2.3/MySQLdb/constants
      copying MySQLdb/constants/CR.py -> build/lib.darwin-8.1.0-Power_Macintosh-2.3/MySQLdb/constants
      copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.darwin-8.1.0-Power_Macintosh-2.3/MySQLdb/constants
      copying MySQLdb/constants/ER.py -> build/lib.darwin-8.1.0-Power_Macintosh-2.3/MySQLdb/constants
      copying MySQLdb/constants/FLAG.py -> build/lib.darwin-8.1.0-Power_Macintosh-2.3/MySQLdb/constants
      copying MySQLdb/constants/REFRESH.py -> build/lib.darwin-8.1.0-Power_Macintosh-2.3/MySQLdb/constants
      copying MySQLdb/constants/CLIENT.py -> build/lib.darwin-8.1.0-Power_Macintosh-2.3/MySQLdb/constants
      running build_ext
      building '_mysql' extension
      creating build/temp.darwin-8.1.0-Power_Macintosh-2.3
      gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3 -c _mysql.c -o build/temp.darwin-8.1.0-Power_Macintosh-2.3/_mysql.o -I'/Applications/mysql-3.23.58-apple-darwin6.4-powerpc/include'
      _mysql.c:41:19: error: mysql.h: No such file or directory
      _mysql.c:42:26: error: mysqld_error.h: No such file or directory
      _mysql.c:43:20: error: errmsg.h: No such file or directory
      _mysql.c:73: error: parse error before "MYSQL"
      _mysql.c:73: warning: no semicolon at end of struct or union
      _mysql.c:76: error: parse 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: parse error before "MYSQL_RES"
      _mysql.c:87: warning: no semicolon at end of struct or union
      _mysql.c:91: error: parse 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: parse 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 argument 1 of 'PyString_FromString' makes pointer from integer without a cast
      _mysql.c: In function '_mysql_server_init':
      _mysql.c:261: warning: label 'finish' defined but not used
      _mysql.c:187: warning: unused variable 'item'
      _mysql.c:186: warning: unused variable 'groupc'
      _mysql.c:186: warning: unused variable 'i'
      _mysql.c:186: warning: unused variable 'cmd_argc'
      _mysql.c:185: warning: unused variable 's'
      _mysql.c: At top level:
      _mysql.c:311: error: parse 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: parse 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: parse 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: parse 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: parse error before ')' token
      _mysql.c: At top level:
      _mysql.c:617: error: parse 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: parse 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: parse 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: parse 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: parse 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: parse 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: parse 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: parse 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: parse 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: parse 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: parse 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 argument 1 of 'PyString_FromString' makes pointer from integer without a cast
      _mysql.c: At top level:
      _mysql.c:920: error: parse 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: parse 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: parse error before ')' token
      _mysql.c: At top level:
      _mysql.c:1114: error: parse 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: parse error before ')' token
      _mysql.c:1121: error: parse 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: parse 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: parse error before ')' token
      _mysql.c:1157: error: parse error before ')' token
      _mysql.c:1158: error: 'self' undeclared (first use in this function)
      _mysql.c: At top level:
      _mysql.c:1199: error: parse 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: parse 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: parse 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: parse error before '
      ' token
      _mysql.c:1300: warning: function declaration isn't a prototype
      _mysql.c:1304: error: parse 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: parse 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: parse error before ')' token
      _mysql.c:1323: error: parse 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: parse 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: parse 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: parse error before ')' token
      _mysql.c:1369: error: parse 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: parse 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 argument 1 of 'PyString_FromString' makes pointer from integer without a cast
      _mysql.c: At top level:
      _mysql.c:1491: error: parse 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 argument 1 of 'PyString_FromString' makes pointer from integer without a cast
      _mysql.c: At top level:
      _mysql.c:1506: error: parse 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: parse 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 argument 1 of 'PyString_FromString' makes pointer from integer without a cast
      _mysql.c: At top level:
      _mysql.c:1537: error: parse 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: parse 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: parse 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: parse 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: parse 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: parse 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: parse error before ')' token
      _mysql.c:1634: error: parse error before ')' token
      _mysql.c:1635: error: 'self' undeclared (first use in this function)
      _mysql.c: At top level:
      _mysql.c:1646: error: parse 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: parse error before ')' token
      _mysql.c:1650: error: parse error before ')' token
      _mysql.c:1651: error: 'self' undeclared (first use in this function)
      _mysql.c: At top level:
      _mysql.c:1668: error: parse 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: parse 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: parse 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: parse 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: parse 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: parse 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: parse error before ')' token
      _mysql.c: At top level:
      _mysql.c:1831: error: parse 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: parse 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: parse error before ')' token
      _mysql.c: At top level:
      _mysql.c:1881: error: parse 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: parse 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: parse 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: parse error before ')' token
      _mysql.c:1917: error: parse 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: parse 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: parse error before "r"
      _mysql.c:1932: error: 'args' undeclared (first use in this function)
      _mysql.c:1933: error: parse error before ')' token
      _mysql.c:1933: error: parse error before ')' token
      _mysql.c:1934: error: 'self' undeclared (first use in this function)
      _mysql.c:1939: error: 'r' undeclared (first use in this function)
      _mysql.c:1939: warning: implicit declaration of function 'mysql_row_tell'
      _mysql.c:1940: warning: implicit declaration of function 'mysql_row_seek'
      _mysql.c: At top level:
      _mysql.c:1949: error: parse error before '
      ' token
      _mysql.c:1951: warning: function declaration isn't a prototype
      _mysql.c: In function '_mysql_ResultObject_row_tell':
      _mysql.c:1952: error: 'MYSQL_ROW_OFFSET' undeclared (first use in this function)
      _mysql.c:1952: error: parse error before "r"
      _mysql.c:1953: error: 'args' undeclared (first use in this function)
      _mysql.c:1954: error: parse error before ')' token
      _mysql.c:1954: error: parse error before ')' token
      _mysql.c:1955: error: 'self' undeclared (first use in this function)
      _mysql.c:1960: error: 'r' undeclared (first use in this function)
      _mysql.c: At top level:
      _mysql.c:1966: error: parse error before '' token
      _mysql.c:1967: warning: function declaration isn't a prototype
      _mysql.c: In function '_mysql_ResultObject_dealloc':
      _mysql.c:1968: error: 'self' undeclared (first use in this function)
      _mysql.c:1969: warning: implicit declaration of function 'mysql_free_result'
      _mysql.c: At top level:
      _mysql.c:1976: error: parse error before '
      ' token
      _mysql.c:1977: warning: function declaration isn't a prototype
      _mysql.c: In function '_mysql_ResultObject_repr':
      _mysql.c:1980: error: 'self' undeclared (first use in this function)
      _mysql.c: At top level:
      _mysql.c:2184: error: parse error before "_mysql_ConnectionObject"
      _mysql.c:2184: error: initializer element is not constant
      _mysql.c:2184: error: (near initialization for '_mysql_ConnectionObject_memberlist[0].offset')
      _mysql.c:2184: error: initializer element is not constant
      _mysql.c:2184: error: (near initialization for '_mysql_ConnectionObject_memberlist[0]')
      _mysql.c:2191: error: parse error before "_mysql_ConnectionObject"
      _mysql.c:2191: error: initializer element is not constant
      _mysql.c:2191: error: (near initialization for '_mysql_ConnectionObject_memberlist[1].offset')
      _mysql.c:2191: error: initializer element is not constant
      _mysql.c:2191: error: (near initialization for '_mysql_ConnectionObject_memberlist[1]')
      _mysql.c:2198: error: parse error before "_mysql_ConnectionObject"
      _mysql.c:2198: error: initializer element is not constant
      _mysql.c:2198: error: (near initialization for '_mysql_ConnectionObject_memberlist[2].offset')
      _mysql.c:2198: error: initializer element is not constant
      _mysql.c:2198: error: (near initialization for '_mysql_ConnectionObject_memberlist[2]')
      _mysql.c:2205: error: parse error before "_mysql_ConnectionObject"
      _mysql.c:2205: error: initializer element is not constant
      _mysql.c:2205: error: (near initialization for '_mysql_ConnectionObject_memberlist[3].offset')
      _mysql.c:2205: error: initializer element is not constant
      _mysql.c:2205: error: (near initialization for '_mysql_ConnectionObject_memberlist[3]')
      _mysql.c:2212: error: parse error before "_mysql_ConnectionObject"
      _mysql.c:2212: error: initializer element is not constant
      _mysql.c:2212: error: (near initialization for '_mysql_ConnectionObject_memberlist[4].flags')
      _mysql.c:2212: error: initializer element is not constant
      _mysql.c:2212: error: (near initialization for '_mysql_ConnectionObject_memberlist[4]')
      _mysql.c:2219: error: initializer element is not constant
      _mysql.c:2219: error: (near initialization for '_mysql_ConnectionObject_memberlist[5]')
      _mysql.c:2275: error: parse error before "_mysql_ResultObject"
      _mysql.c:2275: error: initializer element is not constant
      _mysql.c:2275: error: (near initialization for '_mysql_ResultObject_memberlist[0].offset')
      _mysql.c:2275: error: initializer element is not constant
      _mysql.c:2275: error: (near initialization for '_mysql_ResultObject_memberlist[0]')
      _mysql.c:2282: error: initializer element is not constant
      _mysql.c:2282: error: (near initialization for '_mysql_ResultObject_memberlist[1]')
      _mysql.c:2287: error: parse error before '' token
      _mysql.c:2289: warning: function declaration isn't a prototype
      _mysql.c: In function '_mysql_ConnectionObject_getattr':
      _mysql.c:2292: error: 'self' undeclared (first use in this function)
      _mysql.c:2292: error: 'name' undeclared (first use in this function)
      _mysql.c: At top level:
      _mysql.c:2315: error: parse error before '
      ' token
      _mysql.c:2317: warning: function declaration isn't a prototype
      _mysql.c: In function '_mysql_ResultObject_getattr':
      _mysql.c:2320: error: 'self' undeclared (first use in this function)
      _mysql.c:2320: error: 'name' undeclared (first use in this function)
      _mysql.c: At top level:
      _mysql.c:2341: error: parse error before '' token
      _mysql.c:2344: warning: function declaration isn't a prototype
      _mysql.c: In function '_mysql_ConnectionObject_setattr':
      _mysql.c:2345: error: 'v' undeclared (first use in this function)
      _mysql.c:2356: error: 'name' undeclared (first use in this function)
      _mysql.c:2357: error: 'self' undeclared (first use in this function)
      _mysql.c: At top level:
      _mysql.c:2366: error: parse error before '
      ' token
      _mysql.c:2369: warning: function declaration isn't a prototype
      _mysql.c: In function '_mysql_ResultObject_setattr':
      _mysql.c:2370: error: 'v' undeclared (first use in this function)
      _mysql.c:2381: error: 'name' undeclared (first use in this function)
      _mysql.c:2382: error: 'self' undeclared (first use in this function)
      error: command 'gcc' failed with exit status 1

      Seems ok at first but later appear the same error than before :(

       
    • Alex Novo

      Alex Novo - 2005-06-07

      Any hint to solve this? :(

       

Log in to post a comment.

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