When I try to install or build mysqldb 1.2.1, i get enough errors that I can't even read all of them. a sample:
_mysql.c:2493: error: expected declaration specifiers or â...â before âPyObjectâ
_mysql.c: In function â_mysql_ResultObject_setattrâ:
_mysql.c:2495: error: âvâ undeclared (first use in this function)
_mysql.c:2496: error: âPyExc_AttributeErrorâ undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:2514: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â_mysql_ConnectionObject_Typeâ
_mysql.c:2598: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â_mysql_ResultObject_Typeâ
_mysql.c:2684: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â_mysql_methodsâ
_mysql.c:2756: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:2785: warning: return type defaults to âintâ
_mysql.c: In function âDL_EXPORTâ:
_mysql.c:2785: error: expected declaration specifiers before âinit_mysqlâ
_mysql.c:2863: error: expected â{â at end of input
error: command 'gcc' failed with exit status 1
I'm on Ubuntu Server 7.10.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2008-04-16
I don't have it. The build creates so many errors that it overflows and I can't scroll back up.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2008-04-16
Is there some sort of option other than "python setup.py install" that I need to use? Do I have to use build before install?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2008-04-16
OK, I tried 1.2.2, I fixed the mysql_config issues, and now I get this:
_mysql.c:416: warning: statement with no effect
_mysql.c:417: warning: statement with no effect
_mysql.c:418: warning: implicit declaration of function âPyInt_Checkâ
_mysql.c:419: 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
_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
_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:517: warning: statement with no effect
_mysql.c:524: error: â_mysql_ConnectionObjectâ has no member named âconverterâ
_mysql.c:524: warning: statement with no effect
_mysql.c:532: error: âvalueâ undeclared (first use in this function)
_mysql.c:532: error: invalid operands to binary
_mysql.c:532: warning: statement with no effect
_mysql.c:533: warning: implicit declaration of function âPyMapping_GetItemStringâ
_mysql.c:533: warning: statement with no effect
_mysql.c:533: warning: implicit declaration of function âPyString_AsStringâ
_mysql.c:533: warning: assignment makes pointer from integer without a cast
_mysql.c:534: warning: statement with no effect
_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:545: error: âPy_BEGIN_ALLOW_THREADSâ undeclared (first use in this function)
_mysql.c:545: warning: statement with no effect
_mysql.c:546: error: â_mysql_ConnectionObjectâ has no member named âconnectionâ
_mysql.c:546: warning: passing argument 1 of âmysql_initâ from incompatible pointer type
_mysql.c:549: error: â_mysql_ConnectionObjectâ has no member named âconnectionâ
_mysql.c:550: warning: passing argument 1 of âmysql_optionsâ from incompatible pointer type
_mysql.c:553: error: â_mysql_ConnectionObjectâ has no member named âconnectionâ
_mysql.c:553: warning: passing argument 1 of âmysql_optionsâ from incompatible pointer type
_mysql.c:557: error: â_mysql_ConnectionObjectâ has no member named âconnectionâ
_mysql.c:557: warning: passing argument 1 of âmysql_optionsâ from incompatible pointer type
_mysql.c:558: warning: comparison of distinct pointer types lacks a cast
_mysql.c:559: error: â_mysql_ConnectionObjectâ has no member named âconnectionâ
_mysql.c:559: warning: passing argument 1 of âmysql_optionsâ from incompatible pointer type
_mysql.c:560: warning: comparison of distinct pointer types lacks a cast
_mysql.c:561: error: â_mysql_ConnectionObjectâ has no member named âconnectionâ
_mysql.c:561: warning: passing argument 1 of âmysql_optionsâ from incompatible pointer type
_mysql.c:562: warning: comparison of distinct pointer types lacks a cast
_mysql.c:563: error: â_mysql_ConnectionObjectâ has no member named âconnectionâ
_mysql.c:563: warning: passing argument 1 of âmysql_optionsâ from incompatible pointer type
_mysql.c:566: error: â_mysql_ConnectionObjectâ has no member named âconnectionâ
_mysql.c:566: warning: passing argument 1 of âmysql_optionsâ from incompatible pointer type
_mysql.c:570: error: â_mysql_ConnectionObjectâ has no member named âconnectionâ
_mysql.c:571: warning: passing argument 1 of âmysql_ssl_setâ from incompatible pointer type
_mysql.c:574: error: â_mysql_ConnectionObjectâ has no member named âconnectionâ
_mysql.c:575: warning: passing argument 1 of âmysql_real_connectâ from incompatible pointer type
_mysql.c:577: error: âPy_END_ALLOW_THREADSâ undeclared (first use in this function)
_mysql.c:577: warning: statement with no effect
_mysql.c:589: error: â_mysql_ConnectionObjectâ has no member named âopenâ
_mysql.c:589: warning: statement with no effect
_mysql.c: At top level:
_mysql.c:647: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c: In function â_mysql_ConnectionObject_clearâ:
_mysql.c:679: error: â_mysql_ConnectionObjectâ has no member named âconverterâ
_mysql.c:680: error: â_mysql_ConnectionObjectâ has no member named âconverterâ
_mysql.c:680: error: âNULLâ undeclared (first use in this function)
_mysql.c:680: warning: statement with no effect
_mysql.c: At top level:
_mysql.c:687: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:715: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:731: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:749: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:768: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:794: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:816: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:848: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:874: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:901: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:916: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:933: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:949: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:967: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:1002: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:1033: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:1035: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:1065: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:1095: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:1129: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:1161: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:1197: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:1221: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:1246: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:1271: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:1310: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:1349: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:1354: error: expected declaration specifiers or â...â before âPyObjectâ
_mysql.c:1357: error: expected declaration specifiers or â...â before â_PYFUNCâ
_mysql.c: In function â_mysqlfetch_rowâ:
_mysql.c:1363: error: âPyObjectâ undeclared (first use in this function)
_mysql.c:1363: error: âvâ undeclared (first use in this function)
_mysql.c:1363: error: invalid operands to binary *
_mysql.c:1363: warning: statement with no effect
_mysql.c:1364: error: â_mysql_ResultObjectâ has no member named âuseâ
_mysql.c:1365: error: â_mysql_ResultObjectâ has no member named âresultâ
_mysql.c:1365: warning: passing argument 1 of âmysql_fetch_rowâ from incompatible pointer type
_mysql.c:1367: error: âPy_BEGIN_ALLOW_THREADSâ undeclared (first use in this function)
_mysql.c:1367: warning: statement with no effect
_mysql.c:1368: error: â_mysql_ResultObjectâ has no member named âresultâ
_mysql.c:1368: warning: passing argument 1 of âmysql_fetch_rowâ from incompatible pointer type
_mysql.c:1369: error: âPy_END_ALLOW_THREADSâ undeclared (first use in this function)
_mysql.c:1369: warning: statement with no effect
_mysql.c:1371: error: â_mysql_ResultObjectâ has no member named âconnâ
_mysql.c:1371: error: â_mysql_ConnectionObjectâ has no member named âconnectionâ
_mysql.c:1371: warning: passing argument 1 of âmysql_errnoâ from incompatible pointer type
_mysql.c:1372: error: â_mysql_ResultObjectâ has no member named âconnâ
_mysql.c:1376: warning: implicit declaration of function â_PyTuple_Resizeâ
_mysql.c:1376: error: ârâ undeclared (first use in this function)
_mysql.c:1379: warning: implicit declaration of function âconvert_rowâ
_mysql.c:1379: warning: statement with no effect
_mysql.c: At top level:
_mysql.c:1397: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1476: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1504: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1526: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1566: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1595: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1610: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1625: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1640: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1656: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1691: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1709: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1732: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1749: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1765: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1794: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1817: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1847: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1869: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1896: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1917: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1958: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1978: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c: In function â_mysql_ConnectionObject_deallocâ:
_mysql.c:2012: error: âPyObjectâ undeclared (first use in this function)
_mysql.c:2012: error: âoâ undeclared (first use in this function)
_mysql.c:2012: error: invalid operands to binary
_mysql.c:2012: warning: statement with no effect
_mysql.c:2015: error: â_mysql_ConnectionObjectâ has no member named âopenâ
_mysql.c:2016: warning: implicit declaration of function â_mysql_ConnectionObject_closeâ
_mysql.c:2016: error: âNULLâ undeclared (first use in this function)
_mysql.c:2016: warning: statement with no effect
_mysql.c:2019: warning: implicit declaration of function âPyMem_Freeâ
_mysql.c: At top level:
_mysql.c:2022: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:2039: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:2054: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:2076: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c: In function â_mysql_ResultObject_deallocâ:
_mysql.c:2098: error: â_mysql_ResultObjectâ has no member named âresultâ
_mysql.c:2098: warning: passing argument 1 of âmysql_free_resultâ from incompatible pointer type
_mysql.c: At top level:
_mysql.c:2103: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:2113: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â_mysql_ConnectionObject_methodsâ
_mysql.c:2328: error: array type has incomplete element type
_mysql.c:2329: error: âT_INTâ undeclared here (not in a function)
_mysql.c:2329: warning: implicit declaration of function âoffsetofâ
_mysql.c:2329: error: expected expression before â_mysql_ConnectionObjectâ
_mysql.c:2329: error: âROâ undeclared here (not in a function)
_mysql.c:2336: error: âT_OBJECTâ undeclared here (not in a function)
_mysql.c:2336: error: expected expression before â_mysql_ConnectionObjectâ
_mysql.c:2343: error: âT_UINTâ undeclared here (not in a function)
_mysql.c:2343: error: expected expression before â_mysql_ConnectionObjectâ
_mysql.c:2350: error: expected expression before â_mysql_ConnectionObjectâ
_mysql.c:2357: error: expected expression before â_mysql_ConnectionObjectâ
_mysql.c:2364: error: âNULLâ undeclared here (not in a function)
_mysql.c:2367: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â_mysql_ResultObject_methodsâ
_mysql.c:2419: error: array type has incomplete element type
_mysql.c:2420: error: expected expression before â_mysql_ResultObjectâ
_mysql.c:2430: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:2458: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:2488: error: expected declaration specifiers or â...â before âPyObjectâ
_mysql.c: In function â_mysql_ConnectionObject_setattrâ:
_mysql.c:2490: error: âvâ undeclared (first use in this function)
_mysql.c:2491: warning: implicit declaration of function âPyErr_SetStringâ
_mysql.c:2491: error: âPyExc_AttributeErrorâ undeclared (first use in this function)
_mysql.c:2496: warning: implicit declaration of function âPyMember_Setâ
_mysql.c: At top level:
_mysql.c:2513: error: expected declaration specifiers or â...â before âPyObjectâ
_mysql.c: In function â_mysql_ResultObject_setattrâ:
_mysql.c:2515: error: âvâ undeclared (first use in this function)
_mysql.c:2516: error: âPyExc_AttributeErrorâ undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:2534: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â_mysql_ConnectionObject_Typeâ
_mysql.c:2618: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â_mysql_ResultObject_Typeâ
_mysql.c:2704: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â_mysql_methodsâ
_mysql.c:2776: error: expected â=â, â,â, â;â, âasmâ or âattribute__â before ââ token
_mysql.c:2808: warning: return type defaults to âintâ
_mysql.c: In function âDL_EXPORTâ:
_mysql.c:2808: error: expected declaration specifiers before âinit_mysqlâ
_mysql.c:2886: error: expected â{â at end of input
error: command 'gcc' failed with exit status 1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I will guess that you don't have the Python development package installed. In particular, I think it is not finding <python.h>. As Chef Ramsey would say, "Start again". :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2008-04-17
Where does this file need to go?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2008-04-17
OK, now I get this output:
running install
running bdist_egg
running egg_info
writing MySQL_python.egg-info/PKG-INFO
writing top-level names to MySQL_python.egg-info/top_level.txt
writing dependency_links to MySQL_python.egg-info/dependency_links.txt
reading manifest file 'MySQL_python.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'MySQL_python.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-i686/egg
running install_lib
running build_py
copying MySQLdb/release.py -> build/lib.linux-i686-2.5/MySQLdb
running build_ext
building '_mysql' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-prototypes -fPIC -Dversion_info=(1,2,2,'final',0) -Dversion=1.2.2 -I/usr/include/mysql -I/usr/include/python2.5 -c _mysql.c -o build/temp.linux-i686-2.5/_mysql.o -DBIG_JOINS=1
In file included from pymemcompat.h:10,
from _mysql.c:29:
/usr/include/Python.h:7:24: error: patchlevel.h: No such file or directory
/usr/include/Python.h:57:20: error: pyport.h: No such file or directory
/usr/include/Python.h:76:19: error: pymem.h: No such file or directory
/usr/include/Python.h:78:20: error: object.h: No such file or directory
/usr/include/Python.h:79:21: error: objimpl.h: No such file or directory
/usr/include/Python.h:81:21: error: pydebug.h: No such file or directory
/usr/include/Python.h:83:27: error: unicodeobject.h: No such file or directory
/usr/include/Python.h:84:23: error: intobject.h: No such file or directory
/usr/include/Python.h:85:24: error: boolobject.h: No such file or directory
/usr/include/Python.h:86:24: error: longobject.h: No such file or directory
/usr/include/Python.h:87:25: error: floatobject.h: No such file or directory
/usr/include/Python.h:89:27: error: complexobject.h: No such file or directory
/usr/include/Python.h:91:25: error: rangeobject.h: No such file or directory
/usr/include/Python.h:92:26: error: stringobject.h: No such file or directory
/usr/include/Python.h:93:26: error: bufferobject.h: No such file or directory
/usr/include/Python.h:94:25: error: tupleobject.h: No such file or directory
/usr/include/Python.h:95:24: error: listobject.h: No such file or directory
/usr/include/Python.h:96:24: error: dictobject.h: No such file or directory
/usr/include/Python.h:97:24: error: enumobject.h: No such file or directory
/usr/include/Python.h:98:23: error: setobject.h: No such file or directory
/usr/include/Python.h:99:26: error: methodobject.h: No such file or directory
/usr/include/Python.h:100:26: error: moduleobject.h: No such file or directory
/usr/include/Python.h:101:24: error: funcobject.h: No such file or directory
/usr/include/Python.h:102:25: error: classobject.h: No such file or directory
/usr/include/Python.h:103:24: error: fileobject.h: No such file or directory
/usr/include/Python.h:104:21: error: cobject.h: No such file or directory
/usr/include/Python.h:105:23: error: traceback.h: No such file or directory
/usr/include/Python.h:106:25: error: sliceobject.h: No such file or directory
/usr/include/Python.h:107:24: error: cellobject.h: No such file or directory
/usr/include/Python.h:108:24: error: iterobject.h: No such file or directory
/usr/include/Python.h:109:23: error: genobject.h: No such file or directory
/usr/include/Python.h:110:25: error: descrobject.h: No such file or directory
/usr/include/Python.h:111:27: error: weakrefobject.h: No such file or directory
/usr/include/Python.h:113:20: error: codecs.h: No such file or directory
/usr/include/Python.h:114:22: error: pyerrors.h: No such file or directory
/usr/include/Python.h:116:21: error: pystate.h: No such file or directory
/usr/include/Python.h:118:21: error: pyarena.h: No such file or directory
/usr/include/Python.h:119:24: error: modsupport.h: No such file or directory
/usr/include/Python.h:120:23: error: pythonrun.h: No such file or directory
/usr/include/Python.h:121:19: error: ceval.h: No such file or directory
/usr/include/Python.h:122:23: error: sysmodule.h: No such file or directory
/usr/include/Python.h:123:23: error: intrcheck.h: No such file or directory
/usr/include/Python.h:124:20: error: import.h: No such file or directory
/usr/include/Python.h:126:22: error: abstract.h: No such file or directory
/usr/include/Python.h:128:21: error: compile.h: No such file or directory
/usr/include/Python.h:129:18: error: eval.h: No such file or directory
/usr/include/Python.h:131:22: error: pystrtod.h: No such file or directory
In file included from pymemcompat.h:10,
from _mysql.c:29:
/usr/include/Python.h:134: error: expected ‘)’ before ‘’ token
/usr/include/Python.h:151:19: error: pyfpe.h: No such file or directory
_mysql.c:30:26: error: structmember.h: No such file or directory
_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:73: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:74: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:77: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
_mysql.c:87: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘_mysql_ConnectionObject_Type’
_mysql.c:90: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
_mysql.c:98: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘_mysql_ResultObject_Type’
_mysql.c:107: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:229: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:320: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:338: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:361: error: expected declaration specifiers or ‘...’ before ‘PyObject’
_mysql.c:362: error: expected declaration specifiers or ‘...’ before ‘PyObject’
_mysql.c: In function ‘_mysql_ResultObject_Initialize’:
_mysql.c:368: error: ‘PyObject’ undeclared (first use in this function)
_mysql.c:368: error: (Each undeclared identifier is reported only once
_mysql.c:368: error: for each function it appears in.)
_mysql.c:368: error: ‘conv’ undeclared (first use in this function)
_mysql.c:372: warning: implicit declaration of function ‘PyArg_ParseTupleAndKeywords’
_mysql.c:372: error: ‘args’ undeclared (first use in this function)
_mysql.c:372: error: ‘kwargs’ undeclared (first use in this function)
_mysql.c:375: warning: implicit declaration of function ‘PyDict_New’
_mysql.c:377: error: ‘_mysql_ResultObject’ has no member named ‘conn’
_mysql.c:377: error: expected expression before ‘)’ token
_mysql.c:378: warning: implicit declaration of function ‘Py_INCREF’
_mysql.c:379: error: ‘_mysql_ResultObject’ has no member named ‘use’
_mysql.c:380: error: ‘Py_BEGIN_ALLOW_THREADS’ undeclared (first use in this function)
_mysql.c:382: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:384: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:385: error: ‘_mysql_ResultObject’ has no member named ‘result’
_mysql.c:386: error: ‘Py_END_ALLOW_THREADS’ undeclared (first use in this function)
_mysql.c:388: error: ‘_mysql_ResultObject’ has no member named ‘converter’
_mysql.c:388: warning: implicit declaration of function ‘PyTuple_New’
_mysql.c:392: error: ‘_mysql_ResultObject’ has no member named ‘nfields’
_mysql.c:393: error: ‘_mysql_ResultObject’ has no member named ‘converter’
_mysql.c:396: error: ‘tmp’ undeclared (first use in this function)
_mysql.c:396: error: ‘fun’ undeclared (first use in this function)
_mysql.c:396: warning: left-hand operand of comma expression has no effect
_mysql.c:397: warning: implicit declaration of function ‘PyInt_FromLong’
_mysql.c:399: warning: implicit declaration of function ‘PyObject_GetItem’
_mysql.c:400: warning: implicit declaration of function ‘Py_DECREF’
_mysql.c:402: warning: implicit declaration of function ‘PyErr_Clear’
_mysql.c:403: error: ‘Py_None’ undeclared (first use in this function)
_mysql.c:406: warning: implicit declaration of function ‘PySequence_Check’
_mysql.c:407: warning: implicit declaration of function ‘PySequence_Size’
_mysql.c:408: error: ‘fun2’ undeclared (first use in this function)
_mysql.c:410: error: ‘t’ undeclared (first use in this function)
_mysql.c:410: warning: implicit declaration of function ‘PySequence_GetItem’
_mysql.c:412: warning: implicit declaration of function ‘PyTuple_Check’
_mysql.c:413: warning: implicit declaration of function ‘PyTuple_GET_SIZE’
_mysql.c:415: error: ‘pmask’ undeclared (first use in this function)
_mysql.c:416: warning: implicit declaration of function ‘PyTuple_GET_ITEM’
_mysql.c:418: warning: implicit declaration of function ‘PyInt_Check’
_mysql.c:419: warning: implicit declaration of function ‘PyInt_AS_LONG’
_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:464: error: ‘_mysql_ResultObject’ has no member named ‘conn’
_mysql.c:465: error: ‘_mysql_ResultObject’ has no member named ‘conn’
_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:476: error: ‘PyObject’ undeclared (first use in this function)
_mysql.c:476: error: ‘conv’ undeclared (first use in this function)
_mysql.c:477: error: ‘ssl’ undeclared (first use in this function)
_mysql.c:500: error: ‘_mysql_ConnectionObject’ has no member named ‘converter’
_mysql.c:501: error: ‘_mysql_ConnectionObject’ has no member named ‘open’
_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:524: error: ‘_mysql_ConnectionObject’ has no member named ‘converter’
_mysql.c:532: error: ‘value’ undeclared (first use in this function)
_mysql.c:533: warning: implicit declaration of function ‘PyMapping_GetItemString’
_mysql.c:533: warning: implicit declaration of function ‘PyString_AsString’
_mysql.c:533: warning: assignment makes pointer from integer without a cast
_mysql.c:534: warning: assignment makes pointer from integer without a cast
_mysql.c:535: warning: assignment makes pointer from integer without a cast
_mysql.c:536: warning: assignment makes pointer from integer without a cast
_mysql.c:537: warning: assignment makes pointer from integer without a cast
_mysql.c:545: error: ‘Py_BEGIN_ALLOW_THREADS’ undeclared (first use in this function)
_mysql.c:546: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:549: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:553: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:557: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:559: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:561: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:563: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:566: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:570: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:574: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:577: error: ‘Py_END_ALLOW_THREADS’ undeclared (first use in this function)
_mysql.c:589: error: ‘_mysql_ConnectionObject’ has no member named ‘open’
_mysql.c: At top level:
_mysql.c:647: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c: In function ‘_mysql_ConnectionObject_clear’:
_mysql.c:679: error: ‘_mysql_ConnectionObject’ has no member named ‘converter’
_mysql.c:680: error: ‘_mysql_ConnectionObject’ has no member named ‘converter’
_mysql.c: At top level:
_mysql.c:687: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:715: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:731: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:749: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:768: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:794: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:816: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:848: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:874: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:901: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:916: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:933: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:949: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:967: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:1002: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:1033: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:1035: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:1065: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:1095: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:1129: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:1161: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:1197: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:1221: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:1246: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:1271: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:1310: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:1349: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:1354: error: expected declaration specifiers or ‘...’ before ‘PyObject’
_mysql.c:1357: error: expected declaration specifiers or ‘...’ before ‘_PYFUNC’
_mysql.c: In function ‘_mysqlfetch_row’:
_mysql.c:1363: error: ‘PyObject’ undeclared (first use in this function)
_mysql.c:1363: error: ‘v’ undeclared (first use in this function)
_mysql.c:1364: error: ‘_mysql_ResultObject’ has no member named ‘use’
_mysql.c:1365: error: ‘_mysql_ResultObject’ has no member named ‘result’
_mysql.c:1367: error: ‘Py_BEGIN_ALLOW_THREADS’ undeclared (first use in this function)
_mysql.c:1368: error: ‘_mysql_ResultObject’ has no member named ‘result’
_mysql.c:1369: error: ‘Py_END_ALLOW_THREADS’ undeclared (first use in this function)
_mysql.c:1371: error: ‘_mysql_ResultObject’ has no member named ‘conn’
_mysql.c:1372: error: ‘_mysql_ResultObject’ has no member named ‘conn’
_mysql.c:1376: warning: implicit declaration of function ‘_PyTuple_Resize’
_mysql.c:1376: error: ‘r’ undeclared (first use in this function)
_mysql.c:1379: warning: implicit declaration of function ‘convert_row’
_mysql.c: At top level:
_mysql.c:1397: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1476: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1504: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1526: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1566: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1595: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1610: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1625: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1640: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1656: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1691: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1709: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1732: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1749: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1765: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1794: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1817: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1847: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1869: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1896: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1917: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1958: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1978: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c: In function ‘_mysql_ConnectionObject_dealloc’:
_mysql.c:2012: error: ‘PyObject’ undeclared (first use in this function)
_mysql.c:2012: error: ‘o’ undeclared (first use in this function)
_mysql.c:2015: error: ‘_mysql_ConnectionObject’ has no member named ‘open’
_mysql.c:2016: warning: implicit declaration of function ‘_mysql_ConnectionObject_close’
_mysql.c:2019: warning: implicit declaration of function ‘PyMem_Free’
_mysql.c: At top level:
_mysql.c:2022: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:2039: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:2054: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:2076: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c: In function ‘_mysql_ResultObject_dealloc’:
_mysql.c:2098: error: ‘_mysql_ResultObject’ has no member named ‘result’
_mysql.c: At top level:
_mysql.c:2103: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:2113: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘_mysql_ConnectionObject_methods’
_mysql.c:2328: error: array type has incomplete element type
_mysql.c:2329: error: ‘T_INT’ undeclared here (not in a function)
_mysql.c:2329: warning: implicit declaration of function ‘offsetof’
_mysql.c:2329: error: expected expression before ‘_mysql_ConnectionObject’
_mysql.c:2329: error: ‘RO’ undeclared here (not in a function)
_mysql.c:2336: error: ‘T_OBJECT’ undeclared here (not in a function)
_mysql.c:2336: error: expected expression before ‘_mysql_ConnectionObject’
_mysql.c:2343: error: ‘T_UINT’ undeclared here (not in a function)
_mysql.c:2343: error: expected expression before ‘_mysql_ConnectionObject’
_mysql.c:2350: error: expected expression before ‘_mysql_ConnectionObject’
_mysql.c:2357: error: expected expression before ‘_mysql_ConnectionObject’
_mysql.c:2367: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘_mysql_ResultObject_methods’
_mysql.c:2419: error: array type has incomplete element type
_mysql.c:2420: error: expected expression before ‘_mysql_ResultObject’
_mysql.c:2430: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:2458: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:2488: error: expected declaration specifiers or ‘...’ before ‘PyObject’
_mysql.c: In function ‘_mysql_ConnectionObject_setattr’:
_mysql.c:2490: error: ‘v’ undeclared (first use in this function)
_mysql.c:2491: warning: implicit declaration of function ‘PyErr_SetString’
_mysql.c:2491: error: ‘PyExc_AttributeError’ undeclared (first use in this function)
_mysql.c:2496: warning: implicit declaration of function ‘PyMember_Set’
_mysql.c: At top level:
_mysql.c:2513: error: expected declaration specifiers or ‘...’ before ‘PyObject’
_mysql.c: In function ‘_mysql_ResultObject_setattr’:
_mysql.c:2515: error: ‘v’ undeclared (first use in this function)
_mysql.c:2516: error: ‘PyExc_AttributeError’ undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:2534: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘_mysql_ConnectionObject_Type’
_mysql.c:2618: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘_mysql_ResultObject_Type’
_mysql.c:2704: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘_mysql_methods’
_mysql.c:2776: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute__’ before ‘*’ token
_mysql.c: In function ‘init_mysql’:
_mysql.c:2810: error: ‘PyObject’ undeclared (first use in this function)
_mysql.c:2810: error: ‘dict’ undeclared (first use in this function)
_mysql.c:2810: error: ‘module’ undeclared (first use in this function)
_mysql.c:2810: warning: left-hand operand of comma expression has no effect
_mysql.c:2810: error: ‘emod’ undeclared (first use in this function)
_mysql.c:2810: warning: left-hand operand of comma expression has no effect
_mysql.c:2810: error: ‘edict’ undeclared (first use in this function)
_mysql.c:2810: warning: left-hand operand of comma expression has no effect
_mysql.c:2811: warning: implicit declaration of function ‘Py_InitModule4’
_mysql.c:2811: error: ‘_mysql_methods’ undeclared (first use in this function)
_mysql.c:2812: error: expected expression before ‘)’ token
_mysql.c:2812: error: ‘PYTHON_API_VERSION’ undeclared (first use in this function)
_mysql.c:2814: error: ‘_mysql_ConnectionObject_Type’ undeclared (first use in this function)
_mysql.c:2814: error: ‘PyType_Type’ undeclared (first use in this function)
_mysql.c:2815: error: ‘_mysql_ResultObject_Type’ undeclared (first use in this function)
_mysql.c:2825: warning: implicit declaration of function ‘PyModule_GetDict’
_mysql.c:2826: warning: implicit declaration of function ‘PyDict_SetItemString’
_mysql.c:2827: warning: implicit declaration of function ‘PyRun_String’
_mysql.c:2831: warning: implicit declaration of function ‘PyString_FromString’
_mysql.c:2834: error: expected expression before ‘)’ token
_mysql.c:2838: error: expected expression before ‘)’ token
_mysql.c:2841: warning: implicit declaration of function ‘PyImport_ImportModule’
_mysql.c:2844: error: ‘_mysql_MySQLError’ undeclared (first use in this function)
_mysql.c:2845: warning: implicit declaration of function ‘_mysql_NewException’
_mysql.c:2847: error: ‘_mysql_Warning’ undeclared (first use in this function)
_mysql.c:2850: error: ‘_mysql_Error’ undeclared (first use in this function)
_mysql.c:2853: error: ‘_mysql_InterfaceError’ undeclared (first use in this function)
_mysql.c:2856: error: ‘_mysql_DatabaseError’ undeclared (first use in this function)
_mysql.c:2859: error: ‘_mysql_DataError’ undeclared (first use in this function)
_mysql.c:2862: error: ‘_mysql_OperationalError’ undeclared (first use in this function)
_mysql.c:2865: error: ‘_mysql_IntegrityError’ undeclared (first use in this function)
_mysql.c:2868: error: ‘_mysql_InternalError’ undeclared (first use in this function)
_mysql.c:2871: error: ‘_mysql_ProgrammingError’ undeclared (first use in this function)
_mysql.c:2874: error: ‘_mysql_NotSupportedError’ undeclared (first use in this function)
_mysql.c:2878: error: ‘_mysql_NULL’ undeclared (first use in this function)
_mysql.c:2882: warning: implicit declaration of function ‘PyErr_Occurred’
_mysql.c:2883: error: ‘PyExc_ImportError’ undeclared (first use in this function)
error: command 'gcc' failed with exit status 1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
What Linux distro are you running? It doesn't look like you have an incomplete Python development environment. On my RedHat/Fedora systems, I would use yum to install the python-devel RPM...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When I try to install or build mysqldb 1.2.1, i get enough errors that I can't even read all of them. a sample:
_mysql.c:2493: error: expected declaration specifiers or â...â before âPyObjectâ
_mysql.c: In function â_mysql_ResultObject_setattrâ:
_mysql.c:2495: error: âvâ undeclared (first use in this function)
_mysql.c:2496: error: âPyExc_AttributeErrorâ undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:2514: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â_mysql_ConnectionObject_Typeâ
_mysql.c:2598: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â_mysql_ResultObject_Typeâ
_mysql.c:2684: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â_mysql_methodsâ
_mysql.c:2756: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:2785: warning: return type defaults to âintâ
_mysql.c: In function âDL_EXPORTâ:
_mysql.c:2785: error: expected declaration specifiers before âinit_mysqlâ
_mysql.c:2863: error: expected â{â at end of input
error: command 'gcc' failed with exit status 1
I'm on Ubuntu Server 7.10.
No samples, please. Give us the very first error.
I don't have it. The build creates so many errors that it overflows and I can't scroll back up.
Is there some sort of option other than "python setup.py install" that I need to use? Do I have to use build before install?
OK, I tried 1.2.2, I fixed the mysql_config issues, and now I get this:
_mysql.c:416: warning: statement with no effect
_mysql.c:417: warning: statement with no effect
_mysql.c:418: warning: implicit declaration of function âPyInt_Checkâ
_mysql.c:419: 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
_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
_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:517: warning: statement with no effect
_mysql.c:524: error: â_mysql_ConnectionObjectâ has no member named âconverterâ
_mysql.c:524: warning: statement with no effect
_mysql.c:532: error: âvalueâ undeclared (first use in this function)
_mysql.c:532: error: invalid operands to binary
_mysql.c:532: warning: statement with no effect
_mysql.c:533: warning: implicit declaration of function âPyMapping_GetItemStringâ
_mysql.c:533: warning: statement with no effect
_mysql.c:533: warning: implicit declaration of function âPyString_AsStringâ
_mysql.c:533: warning: assignment makes pointer from integer without a cast
_mysql.c:534: warning: statement with no effect
_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:545: error: âPy_BEGIN_ALLOW_THREADSâ undeclared (first use in this function)
_mysql.c:545: warning: statement with no effect
_mysql.c:546: error: â_mysql_ConnectionObjectâ has no member named âconnectionâ
_mysql.c:546: warning: passing argument 1 of âmysql_initâ from incompatible pointer type
_mysql.c:549: error: â_mysql_ConnectionObjectâ has no member named âconnectionâ
_mysql.c:550: warning: passing argument 1 of âmysql_optionsâ from incompatible pointer type
_mysql.c:553: error: â_mysql_ConnectionObjectâ has no member named âconnectionâ
_mysql.c:553: warning: passing argument 1 of âmysql_optionsâ from incompatible pointer type
_mysql.c:557: error: â_mysql_ConnectionObjectâ has no member named âconnectionâ
_mysql.c:557: warning: passing argument 1 of âmysql_optionsâ from incompatible pointer type
_mysql.c:558: warning: comparison of distinct pointer types lacks a cast
_mysql.c:559: error: â_mysql_ConnectionObjectâ has no member named âconnectionâ
_mysql.c:559: warning: passing argument 1 of âmysql_optionsâ from incompatible pointer type
_mysql.c:560: warning: comparison of distinct pointer types lacks a cast
_mysql.c:561: error: â_mysql_ConnectionObjectâ has no member named âconnectionâ
_mysql.c:561: warning: passing argument 1 of âmysql_optionsâ from incompatible pointer type
_mysql.c:562: warning: comparison of distinct pointer types lacks a cast
_mysql.c:563: error: â_mysql_ConnectionObjectâ has no member named âconnectionâ
_mysql.c:563: warning: passing argument 1 of âmysql_optionsâ from incompatible pointer type
_mysql.c:566: error: â_mysql_ConnectionObjectâ has no member named âconnectionâ
_mysql.c:566: warning: passing argument 1 of âmysql_optionsâ from incompatible pointer type
_mysql.c:570: error: â_mysql_ConnectionObjectâ has no member named âconnectionâ
_mysql.c:571: warning: passing argument 1 of âmysql_ssl_setâ from incompatible pointer type
_mysql.c:574: error: â_mysql_ConnectionObjectâ has no member named âconnectionâ
_mysql.c:575: warning: passing argument 1 of âmysql_real_connectâ from incompatible pointer type
_mysql.c:577: error: âPy_END_ALLOW_THREADSâ undeclared (first use in this function)
_mysql.c:577: warning: statement with no effect
_mysql.c:589: error: â_mysql_ConnectionObjectâ has no member named âopenâ
_mysql.c:589: warning: statement with no effect
_mysql.c: At top level:
_mysql.c:647: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c: In function â_mysql_ConnectionObject_clearâ:
_mysql.c:679: error: â_mysql_ConnectionObjectâ has no member named âconverterâ
_mysql.c:680: error: â_mysql_ConnectionObjectâ has no member named âconverterâ
_mysql.c:680: error: âNULLâ undeclared (first use in this function)
_mysql.c:680: warning: statement with no effect
_mysql.c: At top level:
_mysql.c:687: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:715: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:731: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:749: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:768: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:794: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:816: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:848: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:874: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:901: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:916: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:933: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:949: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:967: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:1002: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:1033: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:1035: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:1065: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:1095: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:1129: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:1161: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:1197: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:1221: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:1246: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:1271: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:1310: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:1349: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c:1354: error: expected declaration specifiers or â...â before âPyObjectâ
_mysql.c:1357: error: expected declaration specifiers or â...â before â_PYFUNCâ
_mysql.c: In function â_mysqlfetch_rowâ:
_mysql.c:1363: error: âPyObjectâ undeclared (first use in this function)
_mysql.c:1363: error: âvâ undeclared (first use in this function)
_mysql.c:1363: error: invalid operands to binary *
_mysql.c:1363: warning: statement with no effect
_mysql.c:1364: error: â_mysql_ResultObjectâ has no member named âuseâ
_mysql.c:1365: error: â_mysql_ResultObjectâ has no member named âresultâ
_mysql.c:1365: warning: passing argument 1 of âmysql_fetch_rowâ from incompatible pointer type
_mysql.c:1367: error: âPy_BEGIN_ALLOW_THREADSâ undeclared (first use in this function)
_mysql.c:1367: warning: statement with no effect
_mysql.c:1368: error: â_mysql_ResultObjectâ has no member named âresultâ
_mysql.c:1368: warning: passing argument 1 of âmysql_fetch_rowâ from incompatible pointer type
_mysql.c:1369: error: âPy_END_ALLOW_THREADSâ undeclared (first use in this function)
_mysql.c:1369: warning: statement with no effect
_mysql.c:1371: error: â_mysql_ResultObjectâ has no member named âconnâ
_mysql.c:1371: error: â_mysql_ConnectionObjectâ has no member named âconnectionâ
_mysql.c:1371: warning: passing argument 1 of âmysql_errnoâ from incompatible pointer type
_mysql.c:1372: error: â_mysql_ResultObjectâ has no member named âconnâ
_mysql.c:1376: warning: implicit declaration of function â_PyTuple_Resizeâ
_mysql.c:1376: error: ârâ undeclared (first use in this function)
_mysql.c:1379: warning: implicit declaration of function âconvert_rowâ
_mysql.c:1379: warning: statement with no effect
_mysql.c: At top level:
_mysql.c:1397: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1476: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1504: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1526: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1566: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1595: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1610: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1625: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1640: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1656: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1691: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1709: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1732: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1749: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1765: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1794: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1817: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1847: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1869: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1896: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1917: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1958: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:1978: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
_mysql.c: In function â_mysql_ConnectionObject_deallocâ:
_mysql.c:2012: error: âPyObjectâ undeclared (first use in this function)
_mysql.c:2012: error: âoâ undeclared (first use in this function)
_mysql.c:2012: error: invalid operands to binary
_mysql.c:2012: warning: statement with no effect
_mysql.c:2015: error: â_mysql_ConnectionObjectâ has no member named âopenâ
_mysql.c:2016: warning: implicit declaration of function â_mysql_ConnectionObject_closeâ
_mysql.c:2016: error: âNULLâ undeclared (first use in this function)
_mysql.c:2016: warning: statement with no effect
_mysql.c:2019: warning: implicit declaration of function âPyMem_Freeâ
_mysql.c: At top level:
_mysql.c:2022: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:2039: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:2054: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:2076: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c: In function â_mysql_ResultObject_deallocâ:
_mysql.c:2098: error: â_mysql_ResultObjectâ has no member named âresultâ
_mysql.c:2098: warning: passing argument 1 of âmysql_free_resultâ from incompatible pointer type
_mysql.c: At top level:
_mysql.c:2103: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:2113: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â_mysql_ConnectionObject_methodsâ
_mysql.c:2328: error: array type has incomplete element type
_mysql.c:2329: error: âT_INTâ undeclared here (not in a function)
_mysql.c:2329: warning: implicit declaration of function âoffsetofâ
_mysql.c:2329: error: expected expression before â_mysql_ConnectionObjectâ
_mysql.c:2329: error: âROâ undeclared here (not in a function)
_mysql.c:2336: error: âT_OBJECTâ undeclared here (not in a function)
_mysql.c:2336: error: expected expression before â_mysql_ConnectionObjectâ
_mysql.c:2343: error: âT_UINTâ undeclared here (not in a function)
_mysql.c:2343: error: expected expression before â_mysql_ConnectionObjectâ
_mysql.c:2350: error: expected expression before â_mysql_ConnectionObjectâ
_mysql.c:2357: error: expected expression before â_mysql_ConnectionObjectâ
_mysql.c:2364: error: âNULLâ undeclared here (not in a function)
_mysql.c:2367: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â_mysql_ResultObject_methodsâ
_mysql.c:2419: error: array type has incomplete element type
_mysql.c:2420: error: expected expression before â_mysql_ResultObjectâ
_mysql.c:2430: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:2458: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â*â token
_mysql.c:2488: error: expected declaration specifiers or â...â before âPyObjectâ
_mysql.c: In function â_mysql_ConnectionObject_setattrâ:
_mysql.c:2490: error: âvâ undeclared (first use in this function)
_mysql.c:2491: warning: implicit declaration of function âPyErr_SetStringâ
_mysql.c:2491: error: âPyExc_AttributeErrorâ undeclared (first use in this function)
_mysql.c:2496: warning: implicit declaration of function âPyMember_Setâ
_mysql.c: At top level:
_mysql.c:2513: error: expected declaration specifiers or â...â before âPyObjectâ
_mysql.c: In function â_mysql_ResultObject_setattrâ:
_mysql.c:2515: error: âvâ undeclared (first use in this function)
_mysql.c:2516: error: âPyExc_AttributeErrorâ undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:2534: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â_mysql_ConnectionObject_Typeâ
_mysql.c:2618: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â_mysql_ResultObject_Typeâ
_mysql.c:2704: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â_mysql_methodsâ
_mysql.c:2776: error: expected â=â, â,â, â;â, âasmâ or âattribute__â before ââ token
_mysql.c:2808: warning: return type defaults to âintâ
_mysql.c: In function âDL_EXPORTâ:
_mysql.c:2808: error: expected declaration specifiers before âinit_mysqlâ
_mysql.c:2886: error: expected â{â at end of input
error: command 'gcc' failed with exit status 1
I will guess that you don't have the Python development package installed. In particular, I think it is not finding <python.h>. As Chef Ramsey would say, "Start again". :)
Where does this file need to go?
OK, now I get this output:
running install
running bdist_egg
running egg_info
writing MySQL_python.egg-info/PKG-INFO
writing top-level names to MySQL_python.egg-info/top_level.txt
writing dependency_links to MySQL_python.egg-info/dependency_links.txt
reading manifest file 'MySQL_python.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'MySQL_python.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-i686/egg
running install_lib
running build_py
copying MySQLdb/release.py -> build/lib.linux-i686-2.5/MySQLdb
running build_ext
building '_mysql' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-prototypes -fPIC -Dversion_info=(1,2,2,'final',0) -Dversion=1.2.2 -I/usr/include/mysql -I/usr/include/python2.5 -c _mysql.c -o build/temp.linux-i686-2.5/_mysql.o -DBIG_JOINS=1
In file included from pymemcompat.h:10,
from _mysql.c:29:
/usr/include/Python.h:7:24: error: patchlevel.h: No such file or directory
/usr/include/Python.h:57:20: error: pyport.h: No such file or directory
/usr/include/Python.h:76:19: error: pymem.h: No such file or directory
/usr/include/Python.h:78:20: error: object.h: No such file or directory
/usr/include/Python.h:79:21: error: objimpl.h: No such file or directory
/usr/include/Python.h:81:21: error: pydebug.h: No such file or directory
/usr/include/Python.h:83:27: error: unicodeobject.h: No such file or directory
/usr/include/Python.h:84:23: error: intobject.h: No such file or directory
/usr/include/Python.h:85:24: error: boolobject.h: No such file or directory
/usr/include/Python.h:86:24: error: longobject.h: No such file or directory
/usr/include/Python.h:87:25: error: floatobject.h: No such file or directory
/usr/include/Python.h:89:27: error: complexobject.h: No such file or directory
/usr/include/Python.h:91:25: error: rangeobject.h: No such file or directory
/usr/include/Python.h:92:26: error: stringobject.h: No such file or directory
/usr/include/Python.h:93:26: error: bufferobject.h: No such file or directory
/usr/include/Python.h:94:25: error: tupleobject.h: No such file or directory
/usr/include/Python.h:95:24: error: listobject.h: No such file or directory
/usr/include/Python.h:96:24: error: dictobject.h: No such file or directory
/usr/include/Python.h:97:24: error: enumobject.h: No such file or directory
/usr/include/Python.h:98:23: error: setobject.h: No such file or directory
/usr/include/Python.h:99:26: error: methodobject.h: No such file or directory
/usr/include/Python.h:100:26: error: moduleobject.h: No such file or directory
/usr/include/Python.h:101:24: error: funcobject.h: No such file or directory
/usr/include/Python.h:102:25: error: classobject.h: No such file or directory
/usr/include/Python.h:103:24: error: fileobject.h: No such file or directory
/usr/include/Python.h:104:21: error: cobject.h: No such file or directory
/usr/include/Python.h:105:23: error: traceback.h: No such file or directory
/usr/include/Python.h:106:25: error: sliceobject.h: No such file or directory
/usr/include/Python.h:107:24: error: cellobject.h: No such file or directory
/usr/include/Python.h:108:24: error: iterobject.h: No such file or directory
/usr/include/Python.h:109:23: error: genobject.h: No such file or directory
/usr/include/Python.h:110:25: error: descrobject.h: No such file or directory
/usr/include/Python.h:111:27: error: weakrefobject.h: No such file or directory
/usr/include/Python.h:113:20: error: codecs.h: No such file or directory
/usr/include/Python.h:114:22: error: pyerrors.h: No such file or directory
/usr/include/Python.h:116:21: error: pystate.h: No such file or directory
/usr/include/Python.h:118:21: error: pyarena.h: No such file or directory
/usr/include/Python.h:119:24: error: modsupport.h: No such file or directory
/usr/include/Python.h:120:23: error: pythonrun.h: No such file or directory
/usr/include/Python.h:121:19: error: ceval.h: No such file or directory
/usr/include/Python.h:122:23: error: sysmodule.h: No such file or directory
/usr/include/Python.h:123:23: error: intrcheck.h: No such file or directory
/usr/include/Python.h:124:20: error: import.h: No such file or directory
/usr/include/Python.h:126:22: error: abstract.h: No such file or directory
/usr/include/Python.h:128:21: error: compile.h: No such file or directory
/usr/include/Python.h:129:18: error: eval.h: No such file or directory
/usr/include/Python.h:131:22: error: pystrtod.h: No such file or directory
In file included from pymemcompat.h:10,
from _mysql.c:29:
/usr/include/Python.h:134: error: expected ‘)’ before ‘’ token
/usr/include/Python.h:151:19: error: pyfpe.h: No such file or directory
_mysql.c:30:26: error: structmember.h: No such file or directory
_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:73: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:74: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:77: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
_mysql.c:87: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘_mysql_ConnectionObject_Type’
_mysql.c:90: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
_mysql.c:98: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘_mysql_ResultObject_Type’
_mysql.c:107: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:229: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:320: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:338: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:361: error: expected declaration specifiers or ‘...’ before ‘PyObject’
_mysql.c:362: error: expected declaration specifiers or ‘...’ before ‘PyObject’
_mysql.c: In function ‘_mysql_ResultObject_Initialize’:
_mysql.c:368: error: ‘PyObject’ undeclared (first use in this function)
_mysql.c:368: error: (Each undeclared identifier is reported only once
_mysql.c:368: error: for each function it appears in.)
_mysql.c:368: error: ‘conv’ undeclared (first use in this function)
_mysql.c:372: warning: implicit declaration of function ‘PyArg_ParseTupleAndKeywords’
_mysql.c:372: error: ‘args’ undeclared (first use in this function)
_mysql.c:372: error: ‘kwargs’ undeclared (first use in this function)
_mysql.c:375: warning: implicit declaration of function ‘PyDict_New’
_mysql.c:377: error: ‘_mysql_ResultObject’ has no member named ‘conn’
_mysql.c:377: error: expected expression before ‘)’ token
_mysql.c:378: warning: implicit declaration of function ‘Py_INCREF’
_mysql.c:379: error: ‘_mysql_ResultObject’ has no member named ‘use’
_mysql.c:380: error: ‘Py_BEGIN_ALLOW_THREADS’ undeclared (first use in this function)
_mysql.c:382: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:384: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:385: error: ‘_mysql_ResultObject’ has no member named ‘result’
_mysql.c:386: error: ‘Py_END_ALLOW_THREADS’ undeclared (first use in this function)
_mysql.c:388: error: ‘_mysql_ResultObject’ has no member named ‘converter’
_mysql.c:388: warning: implicit declaration of function ‘PyTuple_New’
_mysql.c:392: error: ‘_mysql_ResultObject’ has no member named ‘nfields’
_mysql.c:393: error: ‘_mysql_ResultObject’ has no member named ‘converter’
_mysql.c:396: error: ‘tmp’ undeclared (first use in this function)
_mysql.c:396: error: ‘fun’ undeclared (first use in this function)
_mysql.c:396: warning: left-hand operand of comma expression has no effect
_mysql.c:397: warning: implicit declaration of function ‘PyInt_FromLong’
_mysql.c:399: warning: implicit declaration of function ‘PyObject_GetItem’
_mysql.c:400: warning: implicit declaration of function ‘Py_DECREF’
_mysql.c:402: warning: implicit declaration of function ‘PyErr_Clear’
_mysql.c:403: error: ‘Py_None’ undeclared (first use in this function)
_mysql.c:406: warning: implicit declaration of function ‘PySequence_Check’
_mysql.c:407: warning: implicit declaration of function ‘PySequence_Size’
_mysql.c:408: error: ‘fun2’ undeclared (first use in this function)
_mysql.c:410: error: ‘t’ undeclared (first use in this function)
_mysql.c:410: warning: implicit declaration of function ‘PySequence_GetItem’
_mysql.c:412: warning: implicit declaration of function ‘PyTuple_Check’
_mysql.c:413: warning: implicit declaration of function ‘PyTuple_GET_SIZE’
_mysql.c:415: error: ‘pmask’ undeclared (first use in this function)
_mysql.c:416: warning: implicit declaration of function ‘PyTuple_GET_ITEM’
_mysql.c:418: warning: implicit declaration of function ‘PyInt_Check’
_mysql.c:419: warning: implicit declaration of function ‘PyInt_AS_LONG’
_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:464: error: ‘_mysql_ResultObject’ has no member named ‘conn’
_mysql.c:465: error: ‘_mysql_ResultObject’ has no member named ‘conn’
_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:476: error: ‘PyObject’ undeclared (first use in this function)
_mysql.c:476: error: ‘conv’ undeclared (first use in this function)
_mysql.c:477: error: ‘ssl’ undeclared (first use in this function)
_mysql.c:500: error: ‘_mysql_ConnectionObject’ has no member named ‘converter’
_mysql.c:501: error: ‘_mysql_ConnectionObject’ has no member named ‘open’
_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:524: error: ‘_mysql_ConnectionObject’ has no member named ‘converter’
_mysql.c:532: error: ‘value’ undeclared (first use in this function)
_mysql.c:533: warning: implicit declaration of function ‘PyMapping_GetItemString’
_mysql.c:533: warning: implicit declaration of function ‘PyString_AsString’
_mysql.c:533: warning: assignment makes pointer from integer without a cast
_mysql.c:534: warning: assignment makes pointer from integer without a cast
_mysql.c:535: warning: assignment makes pointer from integer without a cast
_mysql.c:536: warning: assignment makes pointer from integer without a cast
_mysql.c:537: warning: assignment makes pointer from integer without a cast
_mysql.c:545: error: ‘Py_BEGIN_ALLOW_THREADS’ undeclared (first use in this function)
_mysql.c:546: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:549: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:553: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:557: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:559: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:561: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:563: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:566: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:570: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:574: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:577: error: ‘Py_END_ALLOW_THREADS’ undeclared (first use in this function)
_mysql.c:589: error: ‘_mysql_ConnectionObject’ has no member named ‘open’
_mysql.c: At top level:
_mysql.c:647: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c: In function ‘_mysql_ConnectionObject_clear’:
_mysql.c:679: error: ‘_mysql_ConnectionObject’ has no member named ‘converter’
_mysql.c:680: error: ‘_mysql_ConnectionObject’ has no member named ‘converter’
_mysql.c: At top level:
_mysql.c:687: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:715: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:731: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:749: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:768: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:794: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:816: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:848: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:874: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:901: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:916: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:933: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:949: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:967: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:1002: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:1033: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:1035: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:1065: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:1095: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:1129: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:1161: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:1197: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:1221: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:1246: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:1271: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:1310: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:1349: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
_mysql.c:1354: error: expected declaration specifiers or ‘...’ before ‘PyObject’
_mysql.c:1357: error: expected declaration specifiers or ‘...’ before ‘_PYFUNC’
_mysql.c: In function ‘_mysqlfetch_row’:
_mysql.c:1363: error: ‘PyObject’ undeclared (first use in this function)
_mysql.c:1363: error: ‘v’ undeclared (first use in this function)
_mysql.c:1364: error: ‘_mysql_ResultObject’ has no member named ‘use’
_mysql.c:1365: error: ‘_mysql_ResultObject’ has no member named ‘result’
_mysql.c:1367: error: ‘Py_BEGIN_ALLOW_THREADS’ undeclared (first use in this function)
_mysql.c:1368: error: ‘_mysql_ResultObject’ has no member named ‘result’
_mysql.c:1369: error: ‘Py_END_ALLOW_THREADS’ undeclared (first use in this function)
_mysql.c:1371: error: ‘_mysql_ResultObject’ has no member named ‘conn’
_mysql.c:1372: error: ‘_mysql_ResultObject’ has no member named ‘conn’
_mysql.c:1376: warning: implicit declaration of function ‘_PyTuple_Resize’
_mysql.c:1376: error: ‘r’ undeclared (first use in this function)
_mysql.c:1379: warning: implicit declaration of function ‘convert_row’
_mysql.c: At top level:
_mysql.c:1397: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1476: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1504: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1526: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1566: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1595: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1610: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1625: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1640: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1656: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1691: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1709: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1732: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1749: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1765: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1794: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1817: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1847: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1869: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1896: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1917: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1958: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:1978: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c: In function ‘_mysql_ConnectionObject_dealloc’:
_mysql.c:2012: error: ‘PyObject’ undeclared (first use in this function)
_mysql.c:2012: error: ‘o’ undeclared (first use in this function)
_mysql.c:2015: error: ‘_mysql_ConnectionObject’ has no member named ‘open’
_mysql.c:2016: warning: implicit declaration of function ‘_mysql_ConnectionObject_close’
_mysql.c:2019: warning: implicit declaration of function ‘PyMem_Free’
_mysql.c: At top level:
_mysql.c:2022: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:2039: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:2054: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:2076: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c: In function ‘_mysql_ResultObject_dealloc’:
_mysql.c:2098: error: ‘_mysql_ResultObject’ has no member named ‘result’
_mysql.c: At top level:
_mysql.c:2103: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:2113: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘_mysql_ConnectionObject_methods’
_mysql.c:2328: error: array type has incomplete element type
_mysql.c:2329: error: ‘T_INT’ undeclared here (not in a function)
_mysql.c:2329: warning: implicit declaration of function ‘offsetof’
_mysql.c:2329: error: expected expression before ‘_mysql_ConnectionObject’
_mysql.c:2329: error: ‘RO’ undeclared here (not in a function)
_mysql.c:2336: error: ‘T_OBJECT’ undeclared here (not in a function)
_mysql.c:2336: error: expected expression before ‘_mysql_ConnectionObject’
_mysql.c:2343: error: ‘T_UINT’ undeclared here (not in a function)
_mysql.c:2343: error: expected expression before ‘_mysql_ConnectionObject’
_mysql.c:2350: error: expected expression before ‘_mysql_ConnectionObject’
_mysql.c:2357: error: expected expression before ‘_mysql_ConnectionObject’
_mysql.c:2367: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘_mysql_ResultObject_methods’
_mysql.c:2419: error: array type has incomplete element type
_mysql.c:2420: error: expected expression before ‘_mysql_ResultObject’
_mysql.c:2430: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:2458: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
_mysql.c:2488: error: expected declaration specifiers or ‘...’ before ‘PyObject’
_mysql.c: In function ‘_mysql_ConnectionObject_setattr’:
_mysql.c:2490: error: ‘v’ undeclared (first use in this function)
_mysql.c:2491: warning: implicit declaration of function ‘PyErr_SetString’
_mysql.c:2491: error: ‘PyExc_AttributeError’ undeclared (first use in this function)
_mysql.c:2496: warning: implicit declaration of function ‘PyMember_Set’
_mysql.c: At top level:
_mysql.c:2513: error: expected declaration specifiers or ‘...’ before ‘PyObject’
_mysql.c: In function ‘_mysql_ResultObject_setattr’:
_mysql.c:2515: error: ‘v’ undeclared (first use in this function)
_mysql.c:2516: error: ‘PyExc_AttributeError’ undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:2534: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘_mysql_ConnectionObject_Type’
_mysql.c:2618: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘_mysql_ResultObject_Type’
_mysql.c:2704: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘_mysql_methods’
_mysql.c:2776: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute__’ before ‘*’ token
_mysql.c: In function ‘init_mysql’:
_mysql.c:2810: error: ‘PyObject’ undeclared (first use in this function)
_mysql.c:2810: error: ‘dict’ undeclared (first use in this function)
_mysql.c:2810: error: ‘module’ undeclared (first use in this function)
_mysql.c:2810: warning: left-hand operand of comma expression has no effect
_mysql.c:2810: error: ‘emod’ undeclared (first use in this function)
_mysql.c:2810: warning: left-hand operand of comma expression has no effect
_mysql.c:2810: error: ‘edict’ undeclared (first use in this function)
_mysql.c:2810: warning: left-hand operand of comma expression has no effect
_mysql.c:2811: warning: implicit declaration of function ‘Py_InitModule4’
_mysql.c:2811: error: ‘_mysql_methods’ undeclared (first use in this function)
_mysql.c:2812: error: expected expression before ‘)’ token
_mysql.c:2812: error: ‘PYTHON_API_VERSION’ undeclared (first use in this function)
_mysql.c:2814: error: ‘_mysql_ConnectionObject_Type’ undeclared (first use in this function)
_mysql.c:2814: error: ‘PyType_Type’ undeclared (first use in this function)
_mysql.c:2815: error: ‘_mysql_ResultObject_Type’ undeclared (first use in this function)
_mysql.c:2825: warning: implicit declaration of function ‘PyModule_GetDict’
_mysql.c:2826: warning: implicit declaration of function ‘PyDict_SetItemString’
_mysql.c:2827: warning: implicit declaration of function ‘PyRun_String’
_mysql.c:2831: warning: implicit declaration of function ‘PyString_FromString’
_mysql.c:2834: error: expected expression before ‘)’ token
_mysql.c:2838: error: expected expression before ‘)’ token
_mysql.c:2841: warning: implicit declaration of function ‘PyImport_ImportModule’
_mysql.c:2844: error: ‘_mysql_MySQLError’ undeclared (first use in this function)
_mysql.c:2845: warning: implicit declaration of function ‘_mysql_NewException’
_mysql.c:2847: error: ‘_mysql_Warning’ undeclared (first use in this function)
_mysql.c:2850: error: ‘_mysql_Error’ undeclared (first use in this function)
_mysql.c:2853: error: ‘_mysql_InterfaceError’ undeclared (first use in this function)
_mysql.c:2856: error: ‘_mysql_DatabaseError’ undeclared (first use in this function)
_mysql.c:2859: error: ‘_mysql_DataError’ undeclared (first use in this function)
_mysql.c:2862: error: ‘_mysql_OperationalError’ undeclared (first use in this function)
_mysql.c:2865: error: ‘_mysql_IntegrityError’ undeclared (first use in this function)
_mysql.c:2868: error: ‘_mysql_InternalError’ undeclared (first use in this function)
_mysql.c:2871: error: ‘_mysql_ProgrammingError’ undeclared (first use in this function)
_mysql.c:2874: error: ‘_mysql_NotSupportedError’ undeclared (first use in this function)
_mysql.c:2878: error: ‘_mysql_NULL’ undeclared (first use in this function)
_mysql.c:2882: warning: implicit declaration of function ‘PyErr_Occurred’
_mysql.c:2883: error: ‘PyExc_ImportError’ undeclared (first use in this function)
error: command 'gcc' failed with exit status 1
What Linux distro are you running? It doesn't look like you have an incomplete Python development environment. On my RedHat/Fedora systems, I would use yum to install the python-devel RPM...