Framebuffer test: conflicting headers

hi,

I’m new here and have a little problem concerning SDL and framebuffers.
The only thing between me and a successful project port from DOS to
LINUX is an SDL library with console framebuffer support.

alas the framebuffer test from configure fails.

in config.log I find the error posted further down. now I know this is
probably not a problem of SDL but of my debian system (current debian
testing), BUT it worked a time ago (i cannot say exactly what has
changed) and I simply hope that one of you has encountered that before
and developed a solution :slight_smile:

so thanks in advance - all help is greatly appreciated - and greetings
from perth,

axel.

-----------------********** snip **********-----------------

the error message was:

configure:5114: checking for framebuffer console support
configure:5129: gcc -c -g -O2 -fexpensive-optimizations -march=pentium
-mcpu=pentiumpro -Wall -DDISABLE_AUDIO -DDISABLE_CDROM -DDISABLE_THREADS
-DENABLE_DUMMYVIDEO conftest.c 1>&5
In file included from /usr/include/sys/time.h:30,
from /usr/include/linux/input.h:16,
from /usr/include/linux/keyboard.h:5,
from configure:5121:
/usr/include/sys/select.h:78: error: conflicting types for fd_set' /usr/include/linux/types.h:22: error: previous declaration offd_set’
configure: failed program was:
#line 5117 “configure”
#include “confdefs.h”

      #include <linux/fb.h>
      #include <linux/kd.h>
      #include <linux/keyboard.h>

int main() {

; return 0; }

-----------------********** snip **********-----------------

Axel Bock wrote:

configure:5114: checking for framebuffer console support
configure:5129: gcc -c -g -O2 -fexpensive-optimizations -march=pentium
-mcpu=pentiumpro -Wall -DDISABLE_AUDIO -DDISABLE_CDROM -DDISABLE_THREADS
-DENABLE_DUMMYVIDEO conftest.c 1>&5
In file included from /usr/include/sys/time.h:30,
from /usr/include/linux/input.h:16,
from /usr/include/linux/keyboard.h:5,
from configure:5121:
/usr/include/sys/select.h:78: error: conflicting types for fd_set' /usr/include/linux/types.h:22: error: previous declaration offd_set’

Say a prayer and try compiling with ‘-D__KERNEL_STRICT_NAMES’.–
Christian
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20040121/9ac074fe/attachment.pgp

Christian Biere wrote:

Axel Bock wrote:

configure:5114: checking for framebuffer console support
configure:5129: gcc -c -g -O2 -fexpensive-optimizations -march=pentium
-mcpu=pentiumpro -Wall -DDISABLE_AUDIO -DDISABLE_CDROM -DDISABLE_THREADS
-DENABLE_DUMMYVIDEO conftest.c 1>&5
In file included from /usr/include/sys/time.h:30,
from /usr/include/linux/input.h:16,
from /usr/include/linux/keyboard.h:5,
from configure:5121:
/usr/include/sys/select.h:78: error: conflicting types for fd_set' /usr/include/linux/types.h:22: error: previous declaration offd_set’

Say a prayer and try compiling with ‘-D__KERNEL_STRICT_NAMES’.

ok, thanks. but … how? :slight_smile: can i set global compiler flags? do i have
to modify configure.sh? i couldn’t find anything related to compiler
settings in the help files and configure documentation …

thanks again and greetings,

axel.

Axel Bock wrote:

Say a prayer and try compiling with ‘-D__KERNEL_STRICT_NAMES’.

ok, thanks. but … how? :slight_smile: can i set global compiler flags? do i have
to modify configure.sh? i couldn’t find anything related to compiler
settings in the help files and configure documentation …

ok, sorry, got it. changed the configure script (without .sh :slight_smile: and the
test went well, as well as the final SDL compilation. and even without
prayer :))

thanks again and greetings,

axel.