I was trying to emerge the newest version of libsdl, 1.2.7-r3. However, it fails to build when compiling SDL_svgaevents.c, with the following error: /usr/include/linux/types.h:182: error: redefinition of `struct ustat' Following USE flags were used: +X +aalib +alsa +arts -debug -dga +directfb +esd -fbcon -ggi -libcaca +nas -noaudio -nojoystick -novideo +opengl +oss +svga +xinerama +xv The probable conflict is with USE="+svga" I have linux-headers 2.6.11 version installed. Here is the gcc command and whole output: i686-pc-linux-gnu-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERS ION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"SDL\" -DVERS ION=\"1.2.7\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_S TDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES _H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_ALLOCA_H=1 -DHA VE_ALLOCA=1 -I. -I. -O3 -march=pentium3 -pipe -Wall -DENABLE_DUMMYVIDEO -DDISKAU D_SUPPORT -DUSE_DLOPEN -DUSE_ASMBLIT -I./hermes -I../../../src/hermes -DOSS_SUPP ORT -DALSA_SUPPORT -DARTSC_SUPPORT -DARTSC_DYNAMIC=libartsc.so.0 -I/usr/kde/3.3/ include/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DESD _SUPPORT -DESD_DYNAMIC=libesd.so.0 -DNAS_SUPPORT -I/usr/X11R6/include/ -DENABLE_ X11 -DXTHREADS -I./include -I./src/video -DXFREE86_VM -DXFREE86_VMGAMMA -DXFREE8 6_XV -DHAVE_XINERAMA -DENABLE_DIRECTFB -DENABLE_SVGALIB -DENABLE_AALIB -DHAVE_OP ENGL -DUSE_INPUT_EVENTS -D_REENTRANT -DSDL_USE_PTHREADS -DHAVE_SIGACTION -I../.. /../include -I../../../include/SDL -I../../../src -I../../../src/main/linux -I.. /../../src/audio -I../../../src/video -I../../../src/video/XFree86/extensions -I ../../../src/events -I../../../src/joystick -I../../../src/cdrom -I../../../src/ thread -I../../../src/timer -I../../../src/endian -I../../../src/file -I../../.. /src/thread -MT SDL_svgaevents.lo -MD -MP -MF .deps/SDL_svgaevents.Tpo -c SDL_sv gaevents.c -fPIC -DPIC -o .libs/SDL_svgaevents.o [--- output of SDL_svgamouse.c here ---] In file included from SDL_svgaevents.c:38: /usr/include/linux/keyboard.h:7:2: warning: #warning Gentoo Linux Headers Warnin g: GNU Libc Linux Headers Override Detected. /usr/include/linux/keyboard.h:8:2: warning: #warning Gentoo Linux Headers Warnin g: This is bad. Removing override and continuing. /usr/include/linux/keyboard.h:9:2: warning: #warning Gentoo Linux Headers Warnin g: If your compilation dies here, mention this when /usr/include/linux/keyboard.h:10:2: warning: #warning Gentoo Linux Headers Warni ng: filing a bug! In file included from /usr/include/linux/keyboard.h:11, from SDL_svgaevents.c:38: /usr/include/linux/types.h:182: error: redefinition of `struct ustat' Reproducible: Always Steps to Reproduce: 1. Have linux-headers-2.6.11 installed 2. Emerge libsdl-1.2.7-r with use flags mentioned in details Note: Using USE="-svga" removes the conflict, but naturally it does drop the svga support. Actual Results: Compiling failed as described in details. Expected Results: Compilation OK. Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20040808-r1, 2.6.11-gentoo-r6 i686) ================================================================ System uname: 2.6.11-gentoo-r6 i686 Intel(R) Pentium(R) III Mobile CPU 933MHz Gentoo Base System version 1.6.10 Python: dev-lang/python-2.2.3-r5,dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 21 2005, 13:06:07)] dev-lang/python: 2.2.3-r5, 2.3.4-r1 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.8.5-r3, 1.5, 1.7.9-r1, 1.6.3, 1.4_p6, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r7 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.11 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium3 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium3 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/" LANG="fi_FI.UTF8" LC_ALL="fi_FI" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X aalib alsa apm arts avi berkdb bitmap-fonts cdr crypt cscope cups curl directfb dvd emboss encode esd fam firebird flac foomaticdb fortran gd gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 imagemagick imlib ipv6 jack java jpeg libg++ libwww mad mikmod mmx mmx2 motif mp3 mpeg nas ncurses nls nptl ogg oggvorbis opengl oss pam pdflib perl png postgres python quicktime readline samba scanner sdl slang spell sse ssl svga tcltk tcpd tiff truetype truetype-fonts type1-fonts vorbis xinerama xml xml2 xmms xv zlib" Unset: ASFLAGS, CBUILD, CTARGET, LDFLAGS, LINGUAS
*** This bug has been marked as a duplicate of 91052 ***
Also worked for me!
Closing to clean up after bugzilla upgrade. reopen if closed in error. Thanks.
clean up bug list after bugzilla update