Caldera 2.3 and SDL_net

Has anyone gotten SDL_net 1.1.1 to compile on Caldera 2.3? I get the
following error:

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:60,
from SDL_net.h:29,
from SDLnet.c:34:
/usr/include/linux/byteorder/generic.h:149: conflicting types for
ntohl' /usr/include/netinet/in.h:233: previous declaration ofntohl’
/usr/include/linux/byteorder/generic.h:151: conflicting types for
htonl' /usr/include/netinet/in.h:235: previous declaration ofhtonl’
make: *** [SDLnet.lo] Error 1

The file generic.h is including in the package
linux-kernel-include-2.2.10-8 and in.h is included in the package
glibc-devel-2.1.1-1.
I have no problems compiling under Mandrake 7.1 or icepack linux 0.83,
just the Caldera includes seem to conflict.
I’d appreciate any help that anyone can pass along on this. Thanks.

Mensaje citado por: Joe Blough :

Has anyone gotten SDL_net 1.1.1 to compile on Caldera 2.3? I get
the
following error:

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:60,
from SDL_net.h:29,
from SDLnet.c:34:
/usr/include/linux/byteorder/generic.h:149: conflicting types for
ntohl' /usr/include/netinet/in.h:233: previous declaration ofntohl’
/usr/include/linux/byteorder/generic.h:151: conflicting types for
htonl' /usr/include/netinet/in.h:235: previous declaration ofhtonl’
make: *** [SDLnet.lo] Error 1

The file generic.h is including in the package
linux-kernel-include-2.2.10-8 and in.h is included in the package
glibc-devel-2.1.1-1.
I have no problems compiling under Mandrake 7.1 or icepack linux
0.83,
just the Caldera includes seem to conflict.
I’d appreciate any help that anyone can pass along on this. Thanks.

It is because of the kernel version.
You should update your kernel or comment something to fix it, but I
really don’t remember what it was, better update the kernel. 2.2.14
should be fine.

Regards,
Miguel

http://www.arianne.cx

Thanks! That worked perfectly. I grabbed the latest Caldera 2.3.1
eServer ISO image and installed the 2.2.14 kernel from that.

MIGUEL ANGEL BLANCH LARDIN wrote:>

Mensaje citado por: Joe Blough <@Joe_Blough>:

Has anyone gotten SDL_net 1.1.1 to compile on Caldera 2.3? I get
the
following error:

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:60,
from SDL_net.h:29,
from SDLnet.c:34:
/usr/include/linux/byteorder/generic.h:149: conflicting types for
ntohl' /usr/include/netinet/in.h:233: previous declaration ofntohl’
/usr/include/linux/byteorder/generic.h:151: conflicting types for
htonl' /usr/include/netinet/in.h:235: previous declaration ofhtonl’
make: *** [SDLnet.lo] Error 1

The file generic.h is including in the package
linux-kernel-include-2.2.10-8 and in.h is included in the package
glibc-devel-2.1.1-1.
I have no problems compiling under Mandrake 7.1 or icepack linux
0.83,
just the Caldera includes seem to conflict.
I’d appreciate any help that anyone can pass along on this. Thanks.

It is because of the kernel version.
You should update your kernel or comment something to fix it, but I
really don’t remember what it was, better update the kernel. 2.2.14
should be fine.

Regards,
Miguel

http://www.arianne.cx

I have a question when i set_video_mode using the OPENGLBLITS mode how do i
blit ?? ,
i use SDL_LoadBMP to load a pic
then SDL_BlitSurface but when i use SDL_GL_SWAPBUFFERS nothing can be seen,
when i use SDL_FLIP() i can see my pic but not my OpenGL drawings ?

Anyone know the answer ?