I get a compilation error if I emerge bochs with the sdl USE flag set. Doing ``env USE="-sdl" emerge bochs'' works. Reproducible: Always Steps to Reproduce: 1. emerge libsdl-1.2.6-r2 2. add sdl to USE flags 3. emerge bochs Actual Results: ++ -c -I.. -I./.. -I../iodev -I./../iodev -I../instrument/stubs -I./../instrument/stubs -g -O2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/X11R6/include `sdl-config --cflags` `wx-config --cxxflags` `gtk-config --cflags` sdl.cc -o sdl.o sdl.cc: In member function `virtual void bx_sdl_gui_c::handle_events()': sdl.cc:600: `SDL_VIDEOEXPOSE' undeclared (first use this function) sdl.cc:600: (Each undeclared identifier is reported only once for each function it appears in.) sdl.cc:637: `SDL_BUTTON_MIDDLE' undeclared (first use this function) In file included from sdl.cc:1137: sdlkeys.h: At global scope: sdlkeys.h:249: `SDLK_COMPOSE' was not declared in this scope sdlkeys.h:257: `SDLK_UNDO' was not declared in this scope make[1]: *** [sdl.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/bochs-2.0.2/work/bochs-2.0.2/gui' make: *** [gui/libgui.a] Error 2 make: *** Waiting for unfinished jobs.... Expected Results: Successful compilation and installation Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gentoo-r8) ================================================================= System uname: 2.4.20-gentoo-r8 i686 AMD Athlon(tm) XP 1900+ Gentoo Base System version 1.4.3.10p1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-g -O2" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/xdvi/" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-g -O2" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs -ccache -distcc fixpackages sandbox userpriv nostrip" GENTOO_MIRRORS="http://gentoo.noved.org/ ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp://gentoo.ccccom.com http://gentoo.ccccom.com ftp://mirrors.tds.net/gentoo http://mirrors.tds.net/gentoo" 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 oss apm avi crypt cups encode foomaticdb gif gnome libg++ mad mikmod ncurses nls pdflib quicktime spell xml2 xmms xv zlib gdbm berkdb slang svga java guile sdl gpm tcpd pam libwww ssl python imlib oggvorbis gtk opengl mozilla 3dnow -alsa aalib arts canna cdr cjk debug doc dvd esd -firebird freetype freewnn joystick jpeg kde maildir matrox mbox -motif mozsvg mpeg mule perl png qt readline ruby scanner sse tcltk tetex tiff truetype usb X Xaw3d"
Please attach the confg.log as text/plain. Also, please post the output of: sdl-config --cflags wx-config --cxxflags gtk-config --cflags I have a different processor and one kernel rev behind, but everything else is the same and it works fine for me with sdl in USE.
Mark - also, please attach /var/db/pkg/media-libs/libsdl-*/*.ebuild as text/plain. Thanks.
Created attachment 20627 [details] /var/tmp/portage/bochs-2.0.2/work/bochs-2.0.2/config.log config.log as requested
Created attachment 20628 [details] /var/db/pkg/media-libs/libsdl-1.2.6-r2/libsdl-1.2.6-r2.ebuild libsdl ebuild, as requested.
Thanks for the quick reply, Mr. Bones! bash-2.05b# sdl-config --cflags -I/usr/include/SDL -D_REENTRANT bash-2.05b# wx-config --cxxflags -I/usr/lib/wx/include/gtk-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES bash-2.05b# gtk-config --cflags -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
Does grep -l SDL_VIDEOEXPOSE /usr/include/SDL/*h give you /usr/include/SDL/SDL_events.h and grep -l SDL_events /usr/include/SDL/*h give you /usr/include/SDL/SDL.h /usr/include/SDL/SDL_events.h Tthe only difference in conf was that I have libcap installed. You might try merging that and seeing if that makes a difference for you. If that doesn't change any thing. Please remerge libsdl and try to merge bochs again. Finally, if none of these things change anything. Please attach the files /var/db/pkg/media-libs/libsdl-1.2.6-r2/USE and /var/db/pkg/media-libs/libsdl-1.2.6-r2/CONTENTS Thanks.
I think I figured it out. I had an old version of SDL in /usr/local/include, and somehow the build was getting those headers (though I don't see how, since it definitely wasn't running the /usr/local/bin/sdl-config). But when I deleted those headers, the error went away. Sorry for the false alarm; I'm marking the bug INVALID.