SDLNet & Kernel 2.2.5

I have get this from a user.

Greetings,

When I first heard about Arianne RPG I got really
excited, and I downloaded it right away (the Linux
version). I downloaded and installed SDL 1.1.3, and
SDL_net 1.0.2 . Though, I’m unable to build SDL_net. I
run the $ ./configure, everything goes fine, but when
I run $ make, I get an error:

gcc -DPACKAGE=“SDL_net” -DVERSION=“1.0.2” -I. -I.
-g -O2 -I/usr/include/SDL -D_REENTRANT -c -fPIC -DPIC
SDLnet.c -o .libs/SDLnet.lo
In file included from
/usr/include/linux/byteorder/little_endian.h:54,
from /usr/include/asm/byteorder.h:45,
from
/usr/include/SDL/SDL_endian.h:60,
from SDL_net.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 ofntohl’
/usr/include/linux/byteorder/generic.h:151:
conflicting types for htonl' /usr/include/netinet/in.h:234: previous declaration ofhtonl’
make: *** [SDLnet.lo] Error 1

I hate this error! I want to play Arianne RPG, but I
can’t because of this. Am I doing something wrong?
Please help me!
BTW, I have got GUIlib 1.1.0 installed, which is
required by SDL_net 1.0.2.

Thanks :slight_smile:

I think that because of the Kernel.
He has asked me for a SDL_Net_1.0.2.rpm. Would this fix this problem ?

Miguel

/usr/include/linux/byteorder/generic.h:149:
conflicting types for ntohl' /usr/include/netinet/in.h:232: previous declaration ofntohl’

I think that because of the Kernel.
He has asked me for a SDL_Net_1.0.2.rpm. Would this fix this problem ?

This is because of the kernel. Have him edit /usr/include/netinet/in.h
and comment the declaration of ntohl and friends.

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software