Message190615
| Author |
brett.cannon |
| Recipients |
brett.cannon, eric.araujo, tarek |
| Date |
2013年06月04日.21:41:29 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1370382090.88.0.902200330561.issue18136@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I have not had test_distutils succeed in ages. It looks like various header files are not being passed to the compiler properly as all three test failures stem from PyModuleDef_HEAD_INIT supposedly not existing or some other macro. Below is an example failure
test_build_ext (distutils.tests.test_build_ext.BuildExtTestCase) ... /var/folders/00/030sr000h01000cxqpysvccm000c37/T/tmpx392aa/xxmodule.c:341:5: error: use of undeclared identifier
'PyModuleDef_HEAD_INIT'
PyModuleDef_HEAD_INIT,
^
/var/folders/00/030sr000h01000cxqpysvccm000c37/T/tmpx392aa/xxmodule.c:340:27: error: variable has incomplete type
'struct PyModuleDef'
static struct PyModuleDef xxmodule = {
^
/var/folders/00/030sr000h01000cxqpysvccm000c37/T/tmpx392aa/xxmodule.c:340:15: note: forward declaration of
'struct PyModuleDef'
static struct PyModuleDef xxmodule = {
^
/var/folders/00/030sr000h01000cxqpysvccm000c37/T/tmpx392aa/xxmodule.c:370:9: warning: implicit declaration of function
'PyModule_Create' is invalid in C99 [-Wimplicit-function-declaration]
m = PyModule_Create(&xxmodule);
^
/var/folders/00/030sr000h01000cxqpysvccm000c37/T/tmpx392aa/xxmodule.c:392:5: error: void function 'PyInit_xx' should
not return a value [-Wreturn-type]
return m;
^ ~
/var/folders/00/030sr000h01000cxqpysvccm000c37/T/tmpx392aa/xxmodule.c:395:5: error: void function 'PyInit_xx' should
not return a value [-Wreturn-type]
return NULL;
^ ~~~~
1 warning and 4 errors generated.
ERROR |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2013年06月04日 21:41:30 | brett.cannon | set | recipients:
+ brett.cannon, tarek, eric.araujo |
| 2013年06月04日 21:41:30 | brett.cannon | set | messageid: <1370382090.88.0.902200330561.issue18136@psf.upfronthosting.co.za> |
| 2013年06月04日 21:41:30 | brett.cannon | link | issue18136 messages |
| 2013年06月04日 21:41:29 | brett.cannon | create |
|