On Tue, Sep 01, 2009 at 10:28:20PM -0700, cd34 wrote:
> In Debian, it is contained within the package libmysqlclient15-dev and
> exists in /usr/bin/mysql_config which may not be on your system.

You're right; I needed to install that package.

Unfortunately, when I do a "python setup.py build" in the MySQL-python-1.2.3c1,
it gives a whole bunch of errors (attached)

Anyone got any tips on getting this installed in my virtual env?
-- 
Obama Nation | My emails do not have attachments; it's a digital signature
that your mail program doesn't understand. | 
http://www.subspacefield.org/~travis/ 
If you are a spammer, please email [email protected] to get blacklisted.
running build
running build_py
copying MySQLdb/release.py -> build/lib.linux-x86_64-2.5/MySQLdb
running build_ext
building '_mysql' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -fPIC -Dversion_info=(1,2,3,'gamma',1) 
-D__version__=1.2.3c1 -I/usr/include/mysql -I/usr/include/python2.5 -c _mysql.c 
-o build/temp.linux-x86_64-2.5/_mysql.o -DBIG_JOINS=1 -fPIC
In file included from _mysql.c:29:
pymemcompat.h:10:20: error: Python.h: No such file or directory
_mysql.c:30:26: error: structmember.h: No such file or directory
_mysql.c:62: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' 
token
_mysql.c:63: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' 
token
_mysql.c:64: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' 
token
_mysql.c:65: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' 
token
_mysql.c:66: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' 
token
_mysql.c:67: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' 
token
_mysql.c:68: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' 
token
_mysql.c:69: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' 
token
_mysql.c:70: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' 
token
_mysql.c:71: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' 
token
_mysql.c:72: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' 
token
_mysql.c:75: error: expected specifier-qualifier-list before 'PyObject_HEAD'
_mysql.c:85: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'_mysql_ConnectionObject_Type'
_mysql.c:88: error: expected specifier-qualifier-list before 'PyObject_HEAD'
_mysql.c:96: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'_mysql_ResultObject_Type'
_mysql.c:105: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:227: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:318: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:336: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:359: error: expected declaration specifiers or '...' before 'PyObject'
_mysql.c:360: error: expected declaration specifiers or '...' before 'PyObject'
_mysql.c: In function '_mysql_ResultObject_Initialize':
_mysql.c:362: error: 'NULL' undeclared (first use in this function)
_mysql.c:362: error: (Each undeclared identifier is reported only once
_mysql.c:362: error: for each function it appears in.)
_mysql.c:364: warning: initialization from incompatible pointer type
_mysql.c:366: error: 'PyObject' undeclared (first use in this function)
_mysql.c:366: error: 'conv' undeclared (first use in this function)
_mysql.c:366: error: invalid operands to binary * (have 'char **' and 'char **')
_mysql.c:366: warning: statement with no effect
_mysql.c:370: warning: implicit declaration of function 
'PyArg_ParseTupleAndKeywords'
_mysql.c:370: error: 'args' undeclared (first use in this function)
_mysql.c:370: error: 'kwargs' undeclared (first use in this function)
_mysql.c:373: warning: implicit declaration of function 'PyDict_New'
_mysql.c:373: warning: statement with no effect
_mysql.c:375: error: '_mysql_ResultObject' has no member named 'conn'
_mysql.c:375: error: expected expression before ')' token
_mysql.c:375: error: invalid operands to binary * (have 'char **' and 'char **')
_mysql.c:375: warning: statement with no effect
_mysql.c:376: warning: implicit declaration of function 'Py_INCREF'
_mysql.c:377: error: '_mysql_ResultObject' has no member named 'use'
_mysql.c:377: warning: statement with no effect
_mysql.c:378: error: 'Py_BEGIN_ALLOW_THREADS' undeclared (first use in this 
function)
_mysql.c:378: warning: statement with no effect
_mysql.c:380: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c:380: warning: passing argument 1 of 'mysql_use_result' from 
incompatible pointer type
_mysql.c:382: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c:382: warning: passing argument 1 of 'mysql_store_result' from 
incompatible pointer type
_mysql.c:383: error: '_mysql_ResultObject' has no member named 'result'
_mysql.c:383: warning: statement with no effect
_mysql.c:384: error: 'Py_END_ALLOW_THREADS' undeclared (first use in this 
function)
_mysql.c:384: warning: statement with no effect
_mysql.c:386: error: '_mysql_ResultObject' has no member named 'converter'
_mysql.c:386: warning: implicit declaration of function 'PyTuple_New'
_mysql.c:386: warning: statement with no effect
_mysql.c:390: error: '_mysql_ResultObject' has no member named 'nfields'
_mysql.c:390: warning: statement with no effect
_mysql.c:391: error: '_mysql_ResultObject' has no member named 'converter'
_mysql.c:394: error: 'tmp' undeclared (first use in this function)
_mysql.c:394: error: invalid operands to binary * (have 'char **' and 'char **')
_mysql.c:394: error: 'fun' undeclared (first use in this function)
_mysql.c:394: warning: left-hand operand of comma expression has no effect
_mysql.c:394: warning: statement with no effect
_mysql.c:395: warning: implicit declaration of function 'PyInt_FromLong'
_mysql.c:395: warning: statement with no effect
_mysql.c:397: warning: implicit declaration of function 'PyObject_GetItem'
_mysql.c:397: warning: statement with no effect
_mysql.c:398: warning: implicit declaration of function 'Py_DECREF'
_mysql.c:400: warning: implicit declaration of function 'PyErr_Clear'
_mysql.c:401: error: 'Py_None' undeclared (first use in this function)
_mysql.c:401: warning: statement with no effect
_mysql.c:404: warning: implicit declaration of function 'PySequence_Check'
_mysql.c:405: warning: implicit declaration of function 'PySequence_Size'
_mysql.c:406: error: 'fun2' undeclared (first use in this function)
_mysql.c:406: error: invalid operands to binary * (have 'char **' and 'char **')
_mysql.c:406: warning: statement with no effect
_mysql.c:408: error: 't' undeclared (first use in this function)
_mysql.c:408: error: invalid operands to binary * (have 'char **' and 'char **')
_mysql.c:408: warning: implicit declaration of function 'PySequence_GetItem'
_mysql.c:408: warning: statement with no effect
_mysql.c:410: warning: implicit declaration of function 'PyTuple_Check'
_mysql.c:411: warning: implicit declaration of function 'PyTuple_GET_SIZE'
_mysql.c:413: error: 'pmask' undeclared (first use in this function)
_mysql.c:413: error: invalid operands to binary * (have 'char **' and 'char **')
_mysql.c:413: warning: statement with no effect
_mysql.c:414: warning: implicit declaration of function 'PyTuple_GET_ITEM'
_mysql.c:414: warning: statement with no effect
_mysql.c:415: warning: statement with no effect
_mysql.c:416: warning: implicit declaration of function 'PyInt_Check'
_mysql.c:417: warning: implicit declaration of function 'PyInt_AS_LONG'
_mysql.c:433: warning: statement with no effect
_mysql.c:436: warning: statement with no effect
_mysql.c:438: warning: implicit declaration of function 'PyTuple_SET_ITEM'
_mysql.c:438: error: '_mysql_ResultObject' has no member named 'converter'
_mysql.c: In function '_mysql_ResultObject_clear':
_mysql.c:462: warning: implicit declaration of function 'Py_XDECREF'
_mysql.c:462: error: '_mysql_ResultObject' has no member named 'converter'
_mysql.c:463: error: '_mysql_ResultObject' has no member named 'converter'
_mysql.c:463: error: 'NULL' undeclared (first use in this function)
_mysql.c:463: warning: statement with no effect
_mysql.c:464: error: '_mysql_ResultObject' has no member named 'conn'
_mysql.c:465: error: '_mysql_ResultObject' has no member named 'conn'
_mysql.c:465: warning: statement with no effect
_mysql.c: At top level:
_mysql.c:472: error: expected declaration specifiers or '...' before 'PyObject'
_mysql.c:473: error: expected declaration specifiers or '...' before 'PyObject'
_mysql.c: In function '_mysql_ConnectionObject_Initialize':
_mysql.c:475: error: 'NULL' undeclared (first use in this function)
_mysql.c:475: warning: initialization from incompatible pointer type
_mysql.c:476: error: 'PyObject' undeclared (first use in this function)
_mysql.c:476: error: 'conv' undeclared (first use in this function)
_mysql.c:476: error: invalid operands to binary * (have 'char **' and 'char **')
_mysql.c:476: warning: statement with no effect
_mysql.c:477: error: 'ssl' undeclared (first use in this function)
_mysql.c:477: error: invalid operands to binary * (have 'char **' and 'char **')
_mysql.c:477: warning: statement with no effect
_mysql.c:479: warning: initialization from incompatible pointer type
_mysql.c:479: warning: initialization from incompatible pointer type
_mysql.c:479: warning: initialization from incompatible pointer type
_mysql.c:480: warning: initialization from incompatible pointer type
_mysql.c:480: warning: initialization from incompatible pointer type
_mysql.c:482: warning: initialization from incompatible pointer type
_mysql.c:482: warning: initialization from incompatible pointer type
_mysql.c:482: warning: initialization from incompatible pointer type
_mysql.c:483: warning: initialization from incompatible pointer type
_mysql.c:483: warning: initialization from incompatible pointer type
_mysql.c:493: error: initializer element is not constant
_mysql.c:493: error: (near initialization for 'kwlist[16]')
_mysql.c:496: warning: initialization from incompatible pointer type
_mysql.c:497: warning: initialization from incompatible pointer type
_mysql.c:498: warning: initialization from incompatible pointer type
_mysql.c:500: error: '_mysql_ConnectionObject' has no member named 'converter'
_mysql.c:500: warning: statement with no effect
_mysql.c:501: error: '_mysql_ConnectionObject' has no member named 'open'
_mysql.c:501: warning: statement with no effect
_mysql.c:502: warning: implicit declaration of function '_mysql_Exception'
_mysql.c:503: error: 'args' undeclared (first use in this function)
_mysql.c:503: error: 'kwargs' undeclared (first use in this function)
_mysql.c:518: warning: statement with no effect
_mysql.c:525: error: '_mysql_ConnectionObject' has no member named 'converter'
_mysql.c:525: warning: statement with no effect
_mysql.c:533: error: 'value' undeclared (first use in this function)
_mysql.c:533: error: invalid operands to binary * (have 'char **' and 'char **')
_mysql.c:533: warning: statement with no effect
_mysql.c:534: warning: implicit declaration of function 
'PyMapping_GetItemString'
_mysql.c:534: warning: statement with no effect
_mysql.c:534: warning: implicit declaration of function 'PyString_AsString'
_mysql.c:534: warning: assignment makes pointer from integer without a cast
_mysql.c:535: warning: statement with no effect
_mysql.c:535: warning: assignment makes pointer from integer without a cast
_mysql.c:536: warning: statement with no effect
_mysql.c:536: warning: assignment makes pointer from integer without a cast
_mysql.c:537: warning: statement with no effect
_mysql.c:537: warning: assignment makes pointer from integer without a cast
_mysql.c:538: warning: statement with no effect
_mysql.c:538: warning: assignment makes pointer from integer without a cast
_mysql.c:546: error: 'Py_BEGIN_ALLOW_THREADS' undeclared (first use in this 
function)
_mysql.c:546: warning: statement with no effect
_mysql.c:547: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c:547: warning: passing argument 1 of 'mysql_init' from incompatible 
pointer type
_mysql.c:550: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c:551: warning: passing argument 1 of 'mysql_options' from incompatible 
pointer type
_mysql.c:554: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c:554: warning: passing argument 1 of 'mysql_options' from incompatible 
pointer type
_mysql.c:558: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c:558: warning: passing argument 1 of 'mysql_options' from incompatible 
pointer type
_mysql.c:559: warning: comparison of distinct pointer types lacks a cast
_mysql.c:560: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c:560: warning: passing argument 1 of 'mysql_options' from incompatible 
pointer type
_mysql.c:561: warning: comparison of distinct pointer types lacks a cast
_mysql.c:562: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c:562: warning: passing argument 1 of 'mysql_options' from incompatible 
pointer type
_mysql.c:563: warning: comparison of distinct pointer types lacks a cast
_mysql.c:564: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c:564: warning: passing argument 1 of 'mysql_options' from incompatible 
pointer type
_mysql.c:567: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c:567: warning: passing argument 1 of 'mysql_options' from incompatible 
pointer type
_mysql.c:571: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c:572: warning: passing argument 1 of 'mysql_ssl_set' from incompatible 
pointer type
_mysql.c:575: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c:576: warning: passing argument 1 of 'mysql_real_connect' from 
incompatible pointer type
_mysql.c:578: error: 'Py_END_ALLOW_THREADS' undeclared (first use in this 
function)
_mysql.c:578: warning: statement with no effect
_mysql.c:590: error: '_mysql_ConnectionObject' has no member named 'open'
_mysql.c:590: warning: statement with no effect
_mysql.c: At top level:
_mysql.c:648: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c: In function '_mysql_ConnectionObject_clear':
_mysql.c:680: error: '_mysql_ConnectionObject' has no member named 'converter'
_mysql.c:681: error: '_mysql_ConnectionObject' has no member named 'converter'
_mysql.c:681: error: 'NULL' undeclared (first use in this function)
_mysql.c:681: warning: statement with no effect
_mysql.c: At top level:
_mysql.c:688: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:716: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:732: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:750: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:769: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:795: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:817: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:849: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:875: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:902: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:917: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:934: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:950: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:968: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:1003: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:1034: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:1036: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:1066: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:1096: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:1130: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:1162: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:1198: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:1222: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:1247: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:1272: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:1311: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:1350: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:1355: error: expected declaration specifiers or '...' before 'PyObject'
_mysql.c:1358: error: expected declaration specifiers or '...' before '_PYFUNC'
_mysql.c: In function '_mysql__fetch_row':
_mysql.c:1364: error: 'PyObject' undeclared (first use in this function)
_mysql.c:1364: error: 'v' undeclared (first use in this function)
_mysql.c:1364: error: invalid operands to binary * (have 'char **' and 'char 
**')
_mysql.c:1364: warning: statement with no effect
_mysql.c:1365: error: '_mysql_ResultObject' has no member named 'use'
_mysql.c:1366: error: '_mysql_ResultObject' has no member named 'result'
_mysql.c:1366: warning: passing argument 1 of 'mysql_fetch_row' from 
incompatible pointer type
_mysql.c:1368: error: 'Py_BEGIN_ALLOW_THREADS' undeclared (first use in this 
function)
_mysql.c:1368: warning: statement with no effect
_mysql.c:1369: error: '_mysql_ResultObject' has no member named 'result'
_mysql.c:1369: warning: passing argument 1 of 'mysql_fetch_row' from 
incompatible pointer type
_mysql.c:1370: error: 'Py_END_ALLOW_THREADS' undeclared (first use in this 
function)
_mysql.c:1370: warning: statement with no effect
_mysql.c:1372: error: '_mysql_ResultObject' has no member named 'conn'
_mysql.c:1372: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c:1372: warning: passing argument 1 of 'mysql_errno' from incompatible 
pointer type
_mysql.c:1373: error: '_mysql_ResultObject' has no member named 'conn'
_mysql.c:1377: warning: implicit declaration of function '_PyTuple_Resize'
_mysql.c:1377: error: 'r' undeclared (first use in this function)
_mysql.c:1380: warning: implicit declaration of function 'convert_row'
_mysql.c:1380: warning: statement with no effect
_mysql.c: At top level:
_mysql.c:1398: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:1477: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:1505: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:1527: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:1567: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:1596: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:1611: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:1626: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:1641: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:1657: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:1692: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:1710: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:1733: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:1750: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:1766: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:1795: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:1818: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:1848: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:1870: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:1897: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:1918: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:1959: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:1979: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c: In function '_mysql_ConnectionObject_dealloc':
_mysql.c:2013: error: 'PyObject' undeclared (first use in this function)
_mysql.c:2013: error: 'o' undeclared (first use in this function)
_mysql.c:2013: error: invalid operands to binary * (have 'char **' and 'char 
**')
_mysql.c:2013: warning: statement with no effect
_mysql.c:2016: error: '_mysql_ConnectionObject' has no member named 'open'
_mysql.c:2017: warning: implicit declaration of function 
'_mysql_ConnectionObject_close'
_mysql.c:2017: error: 'NULL' undeclared (first use in this function)
_mysql.c:2017: warning: statement with no effect
_mysql.c:2020: warning: implicit declaration of function 'PyMem_Free'
_mysql.c: At top level:
_mysql.c:2023: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:2040: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:2055: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:2077: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c: In function '_mysql_ResultObject_dealloc':
_mysql.c:2099: error: '_mysql_ResultObject' has no member named 'result'
_mysql.c:2099: warning: passing argument 1 of 'mysql_free_result' from 
incompatible pointer type
_mysql.c: At top level:
_mysql.c:2104: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:2114: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'_mysql_ConnectionObject_methods'
_mysql.c:2329: error: array type has incomplete element type
_mysql.c:2330: error: 'T_INT' undeclared here (not in a function)
_mysql.c:2330: warning: implicit declaration of function 'offsetof'
_mysql.c:2330: error: expected expression before '_mysql_ConnectionObject'
_mysql.c:2330: error: 'RO' undeclared here (not in a function)
_mysql.c:2337: error: 'T_OBJECT' undeclared here (not in a function)
_mysql.c:2337: error: expected expression before '_mysql_ConnectionObject'
_mysql.c:2344: error: 'T_UINT' undeclared here (not in a function)
_mysql.c:2344: error: expected expression before '_mysql_ConnectionObject'
_mysql.c:2351: error: expected expression before '_mysql_ConnectionObject'
_mysql.c:2358: error: expected expression before '_mysql_ConnectionObject'
_mysql.c:2365: error: 'NULL' undeclared here (not in a function)
_mysql.c:2368: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'_mysql_ResultObject_methods'
_mysql.c:2420: error: array type has incomplete element type
_mysql.c:2421: error: expected expression before '_mysql_ResultObject'
_mysql.c:2431: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:2459: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:2489: error: expected declaration specifiers or '...' before 'PyObject'
_mysql.c: In function '_mysql_ConnectionObject_setattr':
_mysql.c:2491: error: 'v' undeclared (first use in this function)
_mysql.c:2492: warning: implicit declaration of function 'PyErr_SetString'
_mysql.c:2492: error: 'PyExc_AttributeError' undeclared (first use in this 
function)
_mysql.c:2497: warning: implicit declaration of function 'PyMember_Set'
_mysql.c: At top level:
_mysql.c:2514: error: expected declaration specifiers or '...' before 'PyObject'
_mysql.c: In function '_mysql_ResultObject_setattr':
_mysql.c:2516: error: 'v' undeclared (first use in this function)
_mysql.c:2517: error: 'PyExc_AttributeError' undeclared (first use in this 
function)
_mysql.c: At top level:
_mysql.c:2535: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'_mysql_ConnectionObject_Type'
_mysql.c:2619: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'_mysql_ResultObject_Type'
_mysql.c:2705: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'_mysql_methods'
_mysql.c:2777: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
_mysql.c:2809: warning: return type defaults to 'int'
_mysql.c: In function 'DL_EXPORT':
_mysql.c:2809: error: expected declaration specifiers before 'init_mysql'
_mysql.c:2887: error: expected '{' at end of input
error: command 'gcc' failed with exit status 1

Attachment: pgpWTD2XHwtbs.pgp
Description: PGP signature

Reply via email to