Building extensions ( suit / was: Python 1.0 & gnu readline )

Steven D. Majewski (sdm7g@elvis.med.virginia.edu)
Thu, 3 Feb 1994 13:22:51 -0500

On Feb 3, 10:02, lance@markv.com wrote:
>
> This is a problem I have seen also.. I just coppied the
> Makefile.in into Makefile and then ran the mkext.py file.
> This will build the Makefile in the build directory. You will then
> need to edit the Makefile and add '-I$(TOP)' to the CFLAGS line
> in the newly created Makefile
>
> That should work...
>

Thanks, Lance!

Now I got as far as:

>make
> gcc -O -I/usr/local/src/python/Modules/./../Include -I..
> -DHAVE_CONFIG_H -c config.c
>config.c:147: parse error before `.'
>config.c:176: `initsuitmodule' undeclared here (not in a function)
>The error code from the last failed command is 1.

Where it looks like config.c has been mis-generated:

} inittab[] = {

[ ... ]

{"audioop", initaudioop},
{"imageop", initimageop},
{"rgbimg", initrgbimg},
{"md5", initmd5},
{"rotor", initrotor},

{"suitmodule.c", initsuitmodule.c},
/* -- ADDMODULE MARKER 2 -- */

- Steve Majewski (804-982-0831) <sdm7g@Virginia.EDU>
- UVA Department of Molecular Physiology and Biological Physics