[SDL] Netlib compile problem

Sam Lantinga slouken at devolution.com
Mon Aug 2 14:39:47 PDT 1999


This is a bug in the kernel headers.
Comment the definitions in /usr/include/linux/byteorder/generic.h

> Linux version 2.2.5-15 (Redhat 6.0)
> SDL libSDLx11.so.0.9.16

> Compiling the netlib demo:

> [karn at earth /home/karn/net/SDL-demos/netlib] make all
> cc  -I../../SDL/include  -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 ../../SDL/include/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




	-Sam Lantinga				(slouken at devolution.com)

Lead Programmer, Loki Entertainment Software
--
"Any sufficiently advanced bug is indistinguishable from a feature"
						 -- Rich Kulawiec 



More information about the SDL mailing list