Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 134887 - sdl-1.2.10 fail to build (xinerama error)
Summary: sdl-1.2.10 fail to build (xinerama error)
Status: RESOLVED DUPLICATE of bug 134386
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-30 01:54 UTC by charly
Modified: 2006-05-30 11:01 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description charly 2006-05-30 01:54:12 UTC
Hi 
I was emerging media-libs/libsdl-1.2.10. Use flags were: USE="X aalib alsa fbcon libcaca opengl xv -arts -dga -directfb -esd -ggi -nas -noaudio -noflagstrip -nojoystick -novideo -oss -svga -xinerama"

I checked if the "--xinerama" was really disabled in the configure (it does):

./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-rpath --enable-events --enable-cdrom --enable-threads --enable-timers --enable-endian --enable-file --enable-cpuinfo --disable-oss --enable-alsa --disable-esd --disable-arts --disable-nas --enable-video-x11 --disable-dga --enable-video-x11-xv --disable-video-x11-xinerama --enable-video-x11-xrandr --disable-video-dga --enable-video-fbcon --disable-video-ggi --disable-video-svga --enable-video-aalib --enable-video-caca --enable-video-opengl --with-x --disable-video-x11-xme --enable-nasm --enable-video-dummy --disable-video-directfb --build=i686-pc-linux-gnu


early in the build process, emake fail with this error:

i686-pc-linux-gnu-gcc -O3 -mtune=i686 -march=athlon-xp -pipe -I./include -D_GNU_SOURCE=1 -DXTHREADS -I/usr/include/ -D_REENTRANT -DHAVE_LINUX_VERSION_H -c ./src/video/x11/SDL_x11modes.c  -fPIC -DPIC -o build/.libs/SDL_x11modes.o
/bin/sh ./libtool --mode=compile i686-pc-linux-gnu-gcc -O3 -mtune=i686 -march=athlon-xp -pipe  -I./include -D_GNU_SOURCE=1   -DXTHREADS -I/usr/include/ -D_REENTRANT -DHAVE_LINUX_VERSION_H -c ./src/video/x11/SDL_x11mouse.c  -o build/SDL_x11mouse.lo
./src/video/x11/SDL_x11modes.c: In function `X11_GetVideoModes':
./src/video/x11/SDL_x11modes.c:632: error: structure has no member named `xinerama_info'

my emerge --info:

Portage 2.1_rc3 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r3, 2.6.16-gentoo-r4 i686)
=================================================================
System uname: 2.6.16-gentoo-r4 i686 AMD Athlon(tm)
Gentoo Base System version 1.12.0
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -mtune=i686 -march=athlon-xp -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O3 -mtune=i686 -march=athlon-xp -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LANG="C"
LC_ALL="en_US.UTF-8"
LINGUAS="en_GB fr"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X aalib allegro alsa apache2 apm avi berkdb bitmap-fonts bzip2 cdr cli crypt cups dlloader dri dvd eds emboss encode fbcon ffmpeg foomaticdb fortran gdbm gif gpm gstreamer gtk2 imlib ipv6 isdnlog java javascript jpeg kde libcaca libg++ libwww mad mikmod mmx motif mp3 mpeg mplayer musicbrainz mysql ncurses nls nptl nsplugin nvidia objc ogg openal opengl pam pcre pdflib perl png pppd python qt qt4 quicktime readline reflection samba sdl session spell spl sse ssl svg tcltk tcpd threads truetype truetype-fonts type1-fonts udev unicode vorbis xcomposite xine xml xorg xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_en_GB linguas_fr userland_GNU video_cards_nvidia video_cards_none"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 PaX Team 2006-05-30 06:28:02 UTC
i think it's an upstream bug, my little investigation showed this:

src/video/x11/SDL_x11modes.c
 629 #if SDL_VIDEO_DRIVER_X11_VIDMODE
 630     /* XVidMode */
 631     if ( !use_xrandr &&
 632          (!use_xinerama || xinerama_info.screen_number == 0) &&
 633          CheckVidMode(this, &vm_major, &vm_minor) &&
 634          SDL_NAME(XF86VidModeGetAllModeLines)(SDL_Display,SDL_Screen,&nmodes,&modes) )
 635     {

note the use of xinerama_info under the SDL_VIDEO_DRIVER_X11_VIDMODE define. it is defined as:

src/video/x11/SDL_x11video.h:189:#define xinerama_info   (this->hidden->xinerama_info)

which in turn ends up as:

src/video/x11/SDL_x11video.h
118 #if SDL_VIDEO_DRIVER_X11_XINERAMA
119     SDL_NAME(XineramaScreenInfo) xinerama_info;
120 #endif

note that the actual xinerama_info field is under the SDL_VIDEO_DRIVER_X11_XINERAMA define, therefore with -xinerama it doesn't get defined and hence the compiler error. the quick fix would be to remove the dependency on SDL_VIDEO_DRIVER_X11_XINERAMA but upstream probably has a better idea, someone please escalate it there.
Comment 2 UncleOwen 2006-05-30 10:51:31 UTC
https://bugs.gentoo.org/show_bug.cgi?id=134386
Comment 3 charly 2006-05-30 11:01:02 UTC
(In reply to comment #2)
> https://bugs.gentoo.org/show_bug.cgi?id=134386

Thanks. Its strange that the search terms 'sdl xinerama' doesnt return this bug.. maybe the quotes?


*** This bug has been marked as a duplicate of 134386 ***