Problems installing 2.2.1 and 2.2.2

"Martin v. Löwis" martin at v.loewis.de
Wed Jan 1 16:50:38 EST 2003


RVD wrote:
> In file included from /usr/include/sys/select.h:31,
>                  from Include/pyport.h:119,
>                  from Include/Python.h:62,
>                  from Modules/python.c:3:
> /usr/include/selectbits.h:30: warning: `__FD_ZERO' redefined
> /usr/include/asm/posix_types.h:61: warning: this is the location of
> the previous definition

That is a bug in your C library: the kernel headers and the C library 
headers are conflicting. Are you sure you are still using the 
vendor-supplied headers? Have you applied all vendor patches for the C 
library headers?

This is significant problem, but not a fatal one: you should still be 
able to compile Python. Depending on how precisely those header files 
conflict, you resulting Python binary may or may not work.

> /usr/include/sys/select.h:48: conflicting types for `fd_set'
> /usr/include/linux/types.h:9: previous declaration of `fd_set'

This is more serious, but has essentially the same origin: conflicting 
header files. Either you have a *way* outdated C library, or you have 
modified the system headers: the C library headers are never supposed to 
include kernel headers.

> For each of the extentions, it disables them... making a less than
> useful python executable.

You could try to overcome this problem by editing Modules/Setup, thus 
avoiding that separate extensions are built.

Regards,
Martin





More information about the Python-list mailing list