<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>150329</bug_id>
          
          <creation_ts>2006-10-06 16:02 0000</creation_ts>
          <short_desc>dev-python/pygame-1.6.2 won&apos;t compile (SDL_SysWMinfo&apos; has no member named &apos;info)</short_desc>
          <delta_ts>2008-05-29 18:47:45 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>michaell@gmx.org</reporter>
          <assigned_to>python@gentoo.org</assigned_to>
          <cc>betelgeuse@gentoo.org</cc>
    
    <cc>bugzilla@lasse-lindner.de</cc>
    
    <cc>lucianm@users.sourceforge.net</cc>
    
    <cc>mortenjo@ifi.uio.no</cc>
    
    <cc>serrs@theserrs.net</cc>
    
    <cc>spida@spida.net</cc>
    
    <cc>zenith@zenith.dk</cc>

      

      
          <long_desc isprivate="0">
            <who>michaell@gmx.org</who>
            <bug_when>2006-10-06 16:02:16 0000</bug_when>
            <thetext>emerge pygame-1.6.2 failed - same with version 1.7.1

/usr/include/python2.4/pyconfig.h:826:1: warning: &quot;_GNU_SOURCE&quot; redefined
&lt;command line&gt;:1:1: warning: this is the location of the previous definition
i386-gentoo-linux-uclibc-gcc -pthread -shared -Wl,-z,relro -march=i686 -Os -pipe -mmmx build/temp.linux-i686-2.4/src/surfarray.o -lSDL -lpthread -o build/lib.linux-i686-2.4/pygame/surfarray.so
building &apos;pygame.sndarray&apos; extension
i386-gentoo-linux-uclibc-gcc -pthread -fno-strict-aliasing -DNDEBUG -march=i686 -Os -pipe -mmmx -fPIC -D_GNU_SOURCE= -D_REENTRANT -I/usr/include/SDL -I/usr/include/python2.4/Numeric -I/usr/include/SDL -I/usr/include/python2.4 -c src/sndarray.c -o build/temp.linux-i686-2.4/src/sndarray.o
In file included from /usr/include/python2.4/Python.h:13,
                 from src/pygame.h:57,
                 from src/sndarray.c:23:
/usr/include/python2.4/pyconfig.h:826:1: warning: &quot;_GNU_SOURCE&quot; redefined
&lt;command line&gt;:1:1: warning: this is the location of the previous definition
i386-gentoo-linux-uclibc-gcc -pthread -shared -Wl,-z,relro -march=i686 -Os -pipe -mmmx build/temp.linux-i686-2.4/src/sndarray.o -L/usr/lib -lSDL -lpthread -lSDL_mixer -o build/lib.linux-i686-2.4/pygame/sndarray.so
building &apos;pygame.movie&apos; extension
i386-gentoo-linux-uclibc-gcc -pthread -fno-strict-aliasing -DNDEBUG -march=i686 -Os -pipe -mmmx -fPIC -D_GNU_SOURCE= -D_REENTRANT -D_GNU_SOURCE= -D_REENTRANT -I/usr/include/SDL -I/usr/include/smpeg -I/usr/include/SDL -I/usr/include/python2.4 -c src/movie.c -o build/temp.linux-i686-2.4/src/movie.o
In file included from /usr/include/python2.4/Python.h:13,
                 from src/pygame.h:57,
                 from src/movie.c:26:
/usr/include/python2.4/pyconfig.h:826:1: warning: &quot;_GNU_SOURCE&quot; redefined
&lt;command line&gt;:1:1: warning: this is the location of the previous definition
i386-gentoo-linux-uclibc-gcc -pthread -shared -Wl,-z,relro -march=i686 -Os -pipe -mmmx build/temp.linux-i686-2.4/src/movie.o -lSDL -lpthread -lsmpeg -lSDL -lpthread -o build/lib.linux-i686-2.4/pygame/movie.so
/usr/lib/gcc/i386-gentoo-linux-uclibc/4.1.1/../../../../i386-gentoo-linux-uclibc/bin/ld: warning: creating a DT_TEXTREL in object.
building &apos;pygame.base&apos; extension
i386-gentoo-linux-uclibc-gcc -pthread -fno-strict-aliasing -DNDEBUG -march=i686 -Os -pipe -mmmx -fPIC -D_GNU_SOURCE= -D_REENTRANT -I/usr/include/SDL -I/usr/include/python2.4 -c src/base.c -o build/temp.linux-i686-2.4/src/base.o
In file included from /usr/include/python2.4/Python.h:13,
                 from src/pygame.h:57,
                 from src/base.c:24:
/usr/include/python2.4/pyconfig.h:826:1: warning: &quot;_GNU_SOURCE&quot; redefined
&lt;command line&gt;:1:1: warning: this is the location of the previous definition
i386-gentoo-linux-uclibc-gcc -pthread -shared -Wl,-z,relro -march=i686 -Os -pipe -mmmx build/temp.linux-i686-2.4/src/base.o -lSDL -lpthread -o build/lib.linux-i686-2.4/pygame/base.so
building &apos;pygame.cdrom&apos; extension
i386-gentoo-linux-uclibc-gcc -pthread -fno-strict-aliasing -DNDEBUG -march=i686 -Os -pipe -mmmx -fPIC -D_GNU_SOURCE= -D_REENTRANT -I/usr/include/SDL -I/usr/include/python2.4 -c src/cdrom.c -o build/temp.linux-i686-2.4/src/cdrom.o
In file included from /usr/include/python2.4/Python.h:13,
                 from src/pygame.h:57,
                 from src/cdrom.c:24:
/usr/include/python2.4/pyconfig.h:826:1: warning: &quot;_GNU_SOURCE&quot; redefined
&lt;command line&gt;:1:1: warning: this is the location of the previous definition
i386-gentoo-linux-uclibc-gcc -pthread -shared -Wl,-z,relro -march=i686 -Os -pipe -mmmx build/temp.linux-i686-2.4/src/cdrom.o -lSDL -lpthread -o build/lib.linux-i686-2.4/pygame/cdrom.so
building &apos;pygame.constants&apos; extension
i386-gentoo-linux-uclibc-gcc -pthread -fno-strict-aliasing -DNDEBUG -march=i686 -Os -pipe -mmmx -fPIC -D_GNU_SOURCE= -D_REENTRANT -I/usr/include/SDL -I/usr/include/python2.4 -c src/constants.c -o build/temp.linux-i686-2.4/src/constants.o
In file included from /usr/include/python2.4/Python.h:13,
                 from src/pygame.h:57,
                 from src/constants.c:23:
/usr/include/python2.4/pyconfig.h:826:1: warning: &quot;_GNU_SOURCE&quot; redefined
&lt;command line&gt;:1:1: warning: this is the location of the previous definition
i386-gentoo-linux-uclibc-gcc -pthread -shared -Wl,-z,relro -march=i686 -Os -pipe -mmmx build/temp.linux-i686-2.4/src/constants.o -lSDL -lpthread -o build/lib.linux-i686-2.4/pygame/constants.so
building &apos;pygame.display&apos; extension
i386-gentoo-linux-uclibc-gcc -pthread -fno-strict-aliasing -DNDEBUG -march=i686 -Os -pipe -mmmx -fPIC -D_GNU_SOURCE= -D_REENTRANT -I/usr/include/SDL -I/usr/include/python2.4 -c src/display.c -o build/temp.linux-i686-2.4/src/display.o
In file included from /usr/include/python2.4/Python.h:13,
                 from src/pygame.h:57,
                 from src/display.c:27:
/usr/include/python2.4/pyconfig.h:826:1: warning: &quot;_GNU_SOURCE&quot; redefined
&lt;command line&gt;:1:1: warning: this is the location of the previous definition
src/display.c: In function &apos;get_wm_info&apos;:
src/display.c:388: error: &apos;SDL_SysWMinfo&apos; has no member named &apos;info&apos;
src/display.c:389: error: &apos;SDL_SysWMinfo&apos; has no member named &apos;info&apos;
src/display.c:390: error: &apos;SDL_SysWMinfo&apos; has no member named &apos;info&apos;
src/display.c:391: error: &apos;SDL_SysWMinfo&apos; has no member named &apos;info&apos;
src/display.c:392: error: &apos;SDL_SysWMinfo&apos; has no member named &apos;info&apos;
src/display.c:393: error: &apos;SDL_SysWMinfo&apos; has no member named &apos;info&apos;
error: command &apos;i386-gentoo-linux-uclibc-gcc&apos; failed with exit status 1

!!! ERROR: dev-python/pygame-1.6.2 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  ebuild.sh, line 1255:   Called distutils_src_compile
  distutils.eclass, line 38:   Called die

!!! compilation failed
!!! If you need support, post the topmost build error, and the call stack if relevant.


need libsdl X- or WM-support?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>michaell@gmx.org</who>
            <bug_when>2006-10-06 16:04:42 0000</bug_when>
            <thetext>Portage 2.1.1 (uclibc/x86, gcc-4.1.1, uclibc-0.9.28-r0, 2.6.17-gentoo-r4 i686)
=================================================================
System uname: 2.6.17-gentoo-r4 i686 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.5
Last Sync: Mon, 02 Oct 2006 14:20:01 +0000
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
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-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i386-gentoo-linux-uclibc&quot;
CFLAGS=&quot;-march=i686 -Os -pipe -mmmx&quot;
CHOST=&quot;i386-gentoo-linux-uclibc&quot;
CONFIG_PROTECT=&quot;/etc /usr/share/X11/xkb /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/gconf /etc/terminfo&quot;
CXXFLAGS=&quot;-march=i686 -Os -pipe -mmmx&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoconfig buildpkg ccache distlocks metadata-transfer nodoc noinfo noman sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo&quot;
LANG=&quot;de_DE.utf8&quot;
LC_ALL=&quot;de_DE.utf8&quot;
LDFLAGS=&quot;-Wl,-z,relro&quot;
LINGUAS=&quot;&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/packages/uclibc&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=&apos;/distfiles&apos; --exclude=&apos;/local&apos; --exclude=&apos;/packages&apos;&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;x86 alsa bitmap-fonts cli dlloader dri elibc_uclibc fbcon gif input_devices_evdev input_devices_keyboard input_devices_mouse jpeg kernel_linux minimal mmx mp3 ncurses pcre png readline reflection sdl session spl sse truetype-fonts type1-fonts uclibc userland_GNU video_cards_i810 win32codecs xine xinetd xorg zlib&quot;
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mizipzor@gmail.com</who>
            <bug_when>2006-12-20 03:51:58 0000</bug_when>
            <thetext># emerge --info
Portage 2.1.1-r2 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.18-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.18-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.12.1
Last Sync: Sat, 16 Dec 2006 19:50:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
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-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS=&quot;amd64&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;x86_64-pc-linux-gnu&quot;
CFLAGS=&quot;-march=athlon64 -O2 -pipe&quot;
CHOST=&quot;x86_64-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/gconf /etc/terminfo&quot;
CXXFLAGS=&quot;-march=athlon64 -O2 -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoconfig distcc distlocks metadata-transfer sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;http://mirror.uni-c.dk/pub/gentoo/ ftp://ftp.du.se/pub/os/gentoo http://ftp.du.se/pub/os/gentoo http://ds.thn.htu.se/linux/gentoo&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=&apos;/distfiles&apos; --exclude=&apos;/local&apos; --exclude=&apos;/packages&apos;&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.europe.gentoo.org/gentoo-portage&quot;
USE=&quot;amd64 alsa berkdb bitmap-fonts cli cracklib crypt cups dlloader dri dvd elibc_glibc fortran gdbm gpm iconv input_devices_keyboard input_devices_mouse ipv6 isdnlog kde kernel_linux libg++ ncurses nls nptl nptlonly oss pam pcre perl ppds pppd python qt3 qt4 readline reflection session spl ssl tcpd truetype-fonts type1-fonts udev unicode userland_GNU video_cards_nvidia xorg zlib&quot;
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mizipzor@gmail.com</who>
            <bug_when>2006-12-20 03:58:56 0000</bug_when>
            <thetext>It fails in the same way for both 1.6.2 and 1.7.1</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>zenith@zenith.dk</who>
            <bug_when>2007-01-15 13:54:11 0000</bug_when>
            <thetext>It seems that the fix for both 1.6.x and 1.7.x is to use the advice from http://bugs.gentoo.org/show_bug.cgi?id=89486#4, which is:

&gt; a solution is to enter
&gt; #define DISABLE_X11
&gt; into /usr/include/SDL/SDL_syswm.h

&gt; it then compiles withour x11 support</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lucass@gentoo.org</who>
            <bug_when>2007-02-03 08:34:46 0000</bug_when>
            <thetext>*** Bug 165032 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2007-03-01 16:37:10 0000</bug_when>
            <thetext>*** Bug 168901 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mreincke@gmx.net</who>
            <bug_when>2007-03-01 22:34:53 0000</bug_when>
            <thetext>At least this ebuild should check if libsdl was compiled with USE=&quot;X&quot;, else it should stop and issue a warning.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2007-07-12 16:32:24 0000</bug_when>
            <thetext>(In reply to comment #7)
&gt; At least this ebuild should check if libsdl was compiled with USE=&quot;X&quot;, else it
&gt; should stop and issue a warning.

Copy that.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2007-10-16 17:16:35 0000</bug_when>
            <thetext>*** Bug 196069 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dev-zero@gentoo.org</who>
            <bug_when>2008-03-03 13:57:30 0000</bug_when>
            <thetext>Ok, check added in the latest version bump (1.8.0_rc4).
Thanks.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2008-03-24 19:20:26 0000</bug_when>
            <thetext>*** Bug 214489 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mortenjo@ifi.uio.no</who>
            <bug_when>2008-05-29 18:47:45 0000</bug_when>
            <thetext>Wouldn&apos;t it be better to add -DDISABLE_X11 to the compile flags if the X use flag is disabled, so that pygame builds without X support?

I assume pygame will actually work without X support, since the define exists, so why require it from users?
</thetext>
          </long_desc>
      
    </bug>

</bugzilla>