Ticket #48 (assigned defect)
Python-devel required, but configure doesn't check.
| Reported by: | anonymous | Owned by: | dsmith |
|---|---|---|---|
| Priority: | trivial | Milestone: | Version 0.6.00 |
| Component: | build system | Version: | 0.5.02 |
| Keywords: | python | Cc: |
Description
I tried compiling cwiid-0.6.00 on an openSUSE 10.2 system and found that the configure script did not check for python-devel ("Include Files and Libraries Mandatory for Building Python Modules"), even though it is required. This of course meant that the build failed.
This wasn't a problem as I just installed it and then everything compiled OK, but I thought maybe this should be fixed.
The errors started with:
gcc -g -Wall -W -DHAVE_CONFIG_H -I/home/pt/CWiid/cwiid-0.6.00/common/include -I../libcwiid -DWMINPUT_CONFIG_DIR=\"/usr/local/etc/cwiid/wminput\" -DCWIID_PLUGINS_DIR=\"/usr/local/lib/cwiid/plugins\" -I/usr/include/python2.5 -c -o py_plugin.o py_plugin.c py_plugin.c:38:20: error: Python.h: No such file or directory py_plugin.c:45:26: error: structmember.h: No such file or directory py_plugin.c:56: error: expected specifier-qualifier-list before ‘PyObject’ py_plugin.c:62: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token py_plugin.c:63: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token py_plugin.c:64: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token py_plugin.c:65: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token py_plugin.c:66: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token py_plugin.c:68: error: expected declaration specifiers or ‘...’ before ‘PyObject’ py_plugin.c:69: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token py_plugin.c:83: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Module_Methods’ py_plugin.c: In function ‘py_init’: py_plugin.c:92: error: ‘PyObject’ undeclared (first use in this function) py_plugin.c:92: error: (Each undeclared identifier is reported only once py_plugin.c:92: error: for each function it appears in.)
etc, etc.
Change History
Note: See
TracTickets for help on using
tickets.
