Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 134386 - libsdl-1.2.10 does not compile when USE="-xinerama"
Summary: libsdl-1.2.10 does not compile when USE="-xinerama"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Games
URL: http://bugzilla.libsdl.org/show_bug.c...
Whiteboard:
Keywords:
: 134420 134434 134468 134608 134736 134755 134817 134842 134887 135092 135172 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-05-26 01:07 UTC by Takano Akio
Modified: 2006-06-09 11:24 UTC (History)
6 users (show)

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


Attachments
This patch fixes the compilation problems for me (libsdl-fix-xinerama.patch,2.20 KB, patch)
2006-05-26 19:54 UTC, Andoni Zubimendi
Details | Diff
libsdl-1.2.10-r1.ebuild (libsdl-1.2.10-r1.ebuild,4.31 KB, text/plain)
2006-05-27 07:45 UTC, Wagner Sartori Junior
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Takano Akio 2006-05-26 01:07:31 UTC
"emerge libsdl" fails with the following message:

/bin/sh ./libtool --mode=compile i686-pc-linux-gnu-gcc -O2 -march=pentium-m  -I./include -D_GNU_SOURCE=1   -DXTHREADS -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'
./src/video/x11/SDL_x11modes.c: In function `X11_ResizeFullScreen':
./src/video/x11/SDL_x11modes.c:905: error: structure has no member named `xinerama_info'
./src/video/x11/SDL_x11modes.c:906: error: structure has no member named `xinerama_info'
./src/video/x11/SDL_x11modes.c:907: error: structure has no member named `xinerama_info'
./src/video/x11/SDL_x11modes.c:908: error: structure has no member named `xinerama_info'
./src/video/x11/SDL_x11modes.c: In function `X11_EnterFullScreen':
./src/video/x11/SDL_x11modes.c:967: error: structure has no member named `xinerama_info'
./src/video/x11/SDL_x11modes.c:968: error: structure has no member named `xinerama_info'
./src/video/x11/SDL_x11modes.c:969: error: structure has no member named `xinerama_info'
./src/video/x11/SDL_x11modes.c:970: error: structure has no member named `xinerama_info'
make: *** [build/SDL_x11modes.lo] Error 1
make: *** Waiting for unfinished jobs....
 i686-pc-linux-gnu-gcc -O2 -march=pentium-m -I./include -D_GNU_SOURCE=1 -DXTHREADS -D_REENTRANT -DHAVE_LINUX_VERSION_H -c ./src/video/x11/SDL_x11mouse.c  -fPIC -DPIC -o build/.libs/SDL_x11mouse.o
 i686-pc-linux-gnu-gcc -O2 -march=pentium-m -I./include -D_GNU_SOURCE=1 -DXTHREADS -D_REENTRANT -DHAVE_LINUX_VERSION_H -c ./src/video/x11/SDL_x11mouse.c -o build/SDL_x11mouse.o >/dev/null 2>&1

!!! ERROR: media-libs/libsdl-1.2.10 failed.
Call stack:
  ebuild.sh, line 1531:   Called dyn_compile
  ebuild.sh, line 931:   Called src_compile
  libsdl-1.2.10.ebuild, line 143:   Called die

emerge --info:
Portage 2.1_rc2-r3 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r3, 2.6.16-gentoo-r7 i686)
=================================================================
System uname: 2.6.16-gentoo-r7 i686 Intel(R) Celeron(R) M processor         1.30GHz
Gentoo Base System version 1.12.0                            
dev-lang/python:     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="-O2 -march=pentium-m -fomit-frame-pointer"           
CHOST="i686-pc-linux-gnu"                                    
CONFIG_PROTECT="/etc /usr/lib/X11/xkb"                       
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=pentium-m -fomit-frame-pointer"         
DISTDIR="/usr/portage/distfiles"                             
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.gg3.net/ ftp://ftp.ecc.u-tokyo.ac.jp/GENTOO"
LANG="ja_JP.utf8"                                            
MAKEOPTS="-j2"                                               
PKGDIR="/usr/portage/packages"                               
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --sta
ts --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"                                                 PORTAGE_TMPDIR="/var/tmp"                                    
PORTDIR="/usr/portage"                                       
SYNC="rsync://rsync.asia.gentoo.org/gentoo-portage"          
USE="x86 X acpi alsa apache2 apm avi berkdb bitmap-fonts bzip2 cdr cjk cli crypt cups dri dvd dvdr emboss encode examples fbcon fo
omaticdb gdbm gif gpm gstreamer gtk gtk2 iconv imlib ipv6 isdnlog jack jpeg libg++ libwww mad mikmod mime mmap mmx motif mozsvg mp3 mpeg ncurses nls nptl nptlonly nsplugin ogg oggvorbis opengl pam pcre pdflib perl png pppd quicktime readline reflection sdl session spell spl sse sse2 ssl svg tcpd truetype truetype-fonts truetypr type1-fonts udev unicode vorbis win32codecs wxwindows xml xml2 xorg xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_synaptics kernel_linux userland_GNU video_cards_i810 video_cards_fbdev"                                   
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Jean Bréfort 2006-05-26 02:05:39 UTC
I have the same problem on an amd64.

emerge --info:
Portage 2.1_rc2-r3 (default-linux/amd64/2006.0/no-multilib, gcc-3.4.6, glibc-2.4-r3, 2.6.16-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.16-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.0
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5, 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-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -g -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon64 -g -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo/"
LANG="fr_FR.UTF-8"
LC_ALL="fr_FR.UTF-8"
LINGUAS="de es fr it pl ru zh_CN"
MAKEOPTS=""
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"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 X alsa avi berkdb bitmap-fonts blas bonobo bzip2 bzlib cdr clamav cli crypt cups dba dbus debug dri dvd dvdr eds emboss encode esd evolution fam firefox foomaticdb fortran ftp gd gdbm gif gimp gnome gpm gstreamer gtk gtk2 guile hal hdf5 imap imlib ipv6 isdnlog javascript jpeg lzw lzw-tiff mopac7 mp3 mpeg mpqc ncurses nls nptl nptlonly nsplugin ogg openbabel opengl pam pcre pdf pdflib perl png pop postgres pppd print python quicktime readline reflection samba sdl session spell spl ssl tcpd tetex threads tiff toolbar truetype truetype-fonts type1-fonts usb userlocales vorbis xml2 xorg xpm xv zlib elibc_glibc kernel_linux linguas_de linguas_es linguas_fr linguas_it linguas_pl linguas_ru linguas_zh_CN userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 2 Michal Jakubowski 2006-05-26 03:05:09 UTC
Me too

Salute
Comment 3 Francois Chenier 2006-05-26 03:13:45 UTC
Same problem here too but compile if xinerama flag is ON (e.g. USE="xinerama" emerge libsdl)
Comment 4 agent007se 2006-05-26 04:49:17 UTC
Exactly same problem here too... with up-to-date (~x86) (gcc 4.1.1, kernel 2.6.16-gentoo-r8).

I confirm : compile nice with xinerama flag.


emerge --info
Portage 2.1_rc2-r3 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.16-gentoo-r8 i686)
=================================================================
System uname: 2.6.16-gentoo-r8 i686 Intel(R) Pentium(R) 4 CPU 2.53GHz
Gentoo Base System version 1.12.0
dev-lang/python:     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="-O2 -march=i686 -pipe -fomit-frame-pointer"
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/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo http://distfiles.gentoo.org"
MAKEOPTS="-j2"
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"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aalib acpi aim alsa amarok apache2 arts artworkextra asf audiofile avi bash-completion bitmap-fonts bittorrent bluetooth bonobo bzip2 c++ cairo cdio cdr chroot cpudetection crypt css ctype cups dba dbus dbx dri dvd dvdr dvdread elibc_glibc emacs emboss emerald encode ethereal exif expat fam ffmpeg firefox foomaticdb ftp gb gcj gd gdbm gif gimp gimpprint gkrellm glade glut glx gmail gmp gnome gnome-print gnomedb gphoto2 gpm gstreamer gtalk gtk gtk2 gtkhtml gtkspell guile h323 hal icq idn imagemagick imlib imlib2 ipv6 irc isdnlog jabber java jpeg kde kernel_linux lame lcms ldap libg++ libwww mad memlimit mikmod mmx mng motif mozilla mp3 mpeg mplayer msn msnextras ncurses nls nptl nptlonly nsplugin ogg openal opengl openssh oss pam pdf pdflib perl php plotutils png posix pppd python qt quicktime readline real reflection samba sdl session simplexml skins slang sockets spell spl sse sse2 ssl subtitles svg svga swat symlink tcltk tetex tiff tokenizer truetype truetype-fonts type1-fonts udev userland_GNU userlocales vorbis win32codecs wma wma123 wxgtk1 wxwindows x86 xine xml xml2 xmms xorg xscreensaver xsl xv xvid yahoo zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-05-26 08:23:27 UTC
*** Bug 134420 has been marked as a duplicate of this bug. ***
Comment 6 Andrey Falko 2006-05-26 08:53:38 UTC
I confirm with gcc-3.4.6 and glibc-2.3.6.
Comment 7 Mike Doty (RETIRED) gentoo-dev 2006-05-26 10:26:20 UTC
confirmed on amd64.  I've masked =libsdl-1.2.10 on amd64 until this is resolved
Comment 8 Ian Abbott 2006-05-26 10:34:34 UTC
(In reply to comment #7)
> confirmed on amd64.  I've masked =libsdl-1.2.10 on amd64 until this is resolved
It's on x86 too!

I filed a bug upstream: http://bugzilla.libsdl.org/show_bug.cgi?id=241

And attached a patch (which may or may not be correct, but at least it compiles!): http://bugzilla.libsdl.org/attachment.cgi?id=134&action=view
Comment 9 Mike Doty (RETIRED) gentoo-dev 2006-05-26 10:37:09 UTC
(In reply to comment #7)
> confirmed on amd64.  I've masked =libsdl-1.2.10 on amd64 until this is resolved
> 

er, this wasn't stable on amd64, mask dropped
Comment 10 FieldySnuts 2006-05-26 10:40:41 UTC
Possible dupe of bug #134434 ?
Comment 11 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-05-26 10:44:10 UTC
*** Bug 134434 has been marked as a duplicate of this bug. ***
Comment 12 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-05-26 11:01:09 UTC
Thanks Ian for reporting upstream.

Resetting Hardware and OS as this bug applies unconditionally (even on G/FBSD).
Comment 13 Andoni Zubimendi 2006-05-26 19:54:31 UTC
Created attachment 87611 [details, diff]
This patch fixes the compilation problems for me

It seems that some parts of the xinerama conditional compilation is not put under #ifdef...#endif.
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2006-05-27 00:37:39 UTC
*** Bug 134468 has been marked as a duplicate of this bug. ***
Comment 15 Wagner Sartori Junior 2006-05-27 07:45:24 UTC
Created attachment 87657 [details]
libsdl-1.2.10-r1.ebuild

ebuild with patch proposed(libsdl-1.2.10-xinerama.patch! worked perfectly...
Comment 16 Fabio Coatti 2006-05-27 07:45:47 UTC
Andoni, your patch fixed problem on my system (x86-P4, gcc 4.1.1), now it compiles just fine. (of course, xinerama use flag switched off).
Comment 17 Ash Varma 2006-05-27 10:35:26 UTC
patch worked here also.
~x86 with gcc version 3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9)
Comment 18 Rumen Yotov 2006-05-27 11:28:21 UTC
Hi,
Works for me too, GCC-4.1.1 ~x86.
A note here, anyone - rename the patch to match the patch name in the ebuild or apply manually.
Thanks.Rumen
Comment 19 Edward Hervey 2006-05-28 02:53:33 UTC
(In reply to comment #15)
> Created an attachment (id=87657) [edit]
> libsdl-1.2.10-r1.ebuild
> 
> ebuild with patch proposed(libsdl-1.2.10-xinerama.patch! worked perfectly...
> 

works here too (~amd64, gcc 4.1.1)
Comment 20 Jakub Moc (RETIRED) gentoo-dev 2006-05-28 04:40:51 UTC
*** Bug 134608 has been marked as a duplicate of this bug. ***
Comment 21 Damian Szczech 2006-05-28 08:43:38 UTC
When patch be add official to the portage tree?

Comment 22 Jakub Moc (RETIRED) gentoo-dev 2006-05-29 02:42:58 UTC
*** Bug 134736 has been marked as a duplicate of this bug. ***
Comment 23 Jakub Moc (RETIRED) gentoo-dev 2006-05-29 04:55:36 UTC
*** Bug 134755 has been marked as a duplicate of this bug. ***
Comment 24 Enrico May 2006-05-29 08:08:33 UTC
patch works perfectly. 

~x86 / gcc 3.4.6
Comment 25 lothalev 2006-05-29 09:03:27 UTC
Works correctly with USE=xinerama; didn't try the patch, though looks it should not cause any problems... SDL team probably just forgot #ifdef's in a few places ;)
Comment 26 Sylvain Garrigues 2006-05-29 13:05:50 UTC
*** Bug 134817 has been marked as a duplicate of this bug. ***
Comment 27 Patrick Ohearn 2006-05-29 14:08:38 UTC
Patch works fine on ~x86 / gcc-4.1.1
Comment 28 Giacomo Perale 2006-05-29 14:38:42 UTC
Please, I think that the developers know that the patch works, but they don't want to modify the #ifdefs until upstream evaluates the proposed fix. How do you know that this patch doesn't break some programs that use sdl?
Comment 29 Tupone Alfredo gentoo-dev 2006-05-29 15:26:07 UTC
Patch is now in portage.
You are welcomed to test it.
Comment 30 Jakub Moc (RETIRED) gentoo-dev 2006-05-29 15:53:07 UTC
*** Bug 134842 has been marked as a duplicate of this bug. ***
Comment 31 Damian Szczech 2006-05-30 08:59:39 UTC
Patch in the portage tree works fine on gentoo ~x86 gcc-4.1.1
Comment 32 charly 2006-05-30 11:01:02 UTC
*** Bug 134887 has been marked as a duplicate of this bug. ***
Comment 33 Jakub Moc (RETIRED) gentoo-dev 2006-06-01 02:06:39 UTC
*** Bug 135092 has been marked as a duplicate of this bug. ***
Comment 34 Jakub Moc (RETIRED) gentoo-dev 2006-06-01 08:31:09 UTC
*** Bug 135172 has been marked as a duplicate of this bug. ***