Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33262 - bochs-2.0.2 emerge fails if sdl USE flag is given
Summary: bochs-2.0.2 emerge fails if sdl USE flag is given
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor
Assignee: Thomas Raschbacher
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-11 16:19 UTC by Mark Purtill
Modified: 2003-11-12 22:13 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
/var/tmp/portage/bochs-2.0.2/work/bochs-2.0.2/config.log (config.log,67.52 KB, text/plain)
2003-11-11 18:43 UTC, Mark Purtill
Details
/var/db/pkg/media-libs/libsdl-1.2.6-r2/libsdl-1.2.6-r2.ebuild (libsdl-1.2.6-r2.ebuild,2.54 KB, text/plain)
2003-11-11 18:43 UTC, Mark Purtill
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Purtill 2003-11-11 16:19:08 UTC
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"
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2003-11-11 17:38:29 UTC
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.
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2003-11-11 18:16:15 UTC
Mark - also, please attach /var/db/pkg/media-libs/libsdl-*/*.ebuild as text/plain.
Thanks.
Comment 3 Mark Purtill 2003-11-11 18:43:03 UTC
Created attachment 20627 [details]
/var/tmp/portage/bochs-2.0.2/work/bochs-2.0.2/config.log

config.log as requested
Comment 4 Mark Purtill 2003-11-11 18:43:51 UTC
Created attachment 20628 [details]
/var/db/pkg/media-libs/libsdl-1.2.6-r2/libsdl-1.2.6-r2.ebuild

libsdl ebuild, as requested.
Comment 5 Mark Purtill 2003-11-11 18:45:31 UTC
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
Comment 6 Mr. Bones. (RETIRED) gentoo-dev 2003-11-11 23:26:38 UTC
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.
Comment 7 Mark Purtill 2003-11-12 22:13:10 UTC
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.