I know this question has been answered before, but I couldn’t find it in
the mail…
When I try to compile the netlib I get the following error:
cc -I/usr/local/include/SDL -I…/gui -O2 -funroll-loops
-fomit-frame-pointer -ffast-math -D_REENTRANT -c SDLnet.c -o SDLnet.o
In file included from /usr/include/linux/byteorder/little_endian.h:54,
from /usr/include/asm/byteorder.h:45,
from /usr/local/include/SDL/SDL_endian.h:58,
from SDLnet.h:29,
from SDLnet.c:26:
/usr/include/linux/byteorder/generic.h:149: conflicting types for
ntohl' /usr/include/netinet/in.h:232: previous declaration of
ntohl’
/usr/include/linux/byteorder/generic.h:151: conflicting types for
htonl' /usr/include/netinet/in.h:234: previous declaration of
htonl’
make: *** [SDLnet.o] Error 1
The answer should go into the readme in the netlib directory.
Thanks, Karl.
You need to upgrade your Linux kernel to version 2.2.13
Karl Bartel wrote:>
I know this question has been answered before, but I couldn’t find it in
the mail…
When I try to compile the netlib I get the following error:
cc -I/usr/local/include/SDL -I…/gui -O2 -funroll-loops
-fomit-frame-pointer -ffast-math -D_REENTRANT -c SDLnet.c -o SDLnet.o
In file included from /usr/include/linux/byteorder/little_endian.h:54,
from /usr/include/asm/byteorder.h:45,
from /usr/local/include/SDL/SDL_endian.h:58,
from SDLnet.h:29,
from SDLnet.c:26:
/usr/include/linux/byteorder/generic.h:149: conflicting types for
ntohl' /usr/include/netinet/in.h:232: previous declaration of
ntohl’
/usr/include/linux/byteorder/generic.h:151: conflicting types for
htonl' /usr/include/netinet/in.h:234: previous declaration of
htonl’
make: *** [SDLnet.o] Error 1
The answer should go into the readme in the netlib directory.
Thanks, Karl.
–
-Sam Lantinga, Lead Programmer, Loki Entertainment Software