Python 2.1: cannot compile socket module

Carsten Gaebler cg at schlund.de
Thu Apr 19 09:09:22 EDT 2001


Carsten Gaebler wrote:

> I've tried to compile Python 2.1 on my Linux machine, but make says:
> 
> gcc -g -O2 -Wall -Wstrict-prototypes -fPIC -I.
> -I/root/Python-2.1/./Include -I/usr/local/include -IInclude/ -c
> /root/Python-2.1/Modules/socketmodule.c:178: netpacket/packet.h: No such
> file or directory
>

After browsing through my system's header files I have replaced

#include <netpacket/packet.h>

with

#include <net/if_packet.h>

in socketmodule.c. Now it compiles and seems to work - at least
test_socket succeeds. Is it ok to use if_packet.h instead of packet.h?

cg.



More information about the Python-list mailing list