emerge pygame-1.6.2 failed - same with version 1.7.1 /usr/include/python2.4/pyconfig.h:826:1: warning: "_GNU_SOURCE" redefined <command line>: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 'pygame.sndarray' 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: "_GNU_SOURCE" redefined <command line>: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 'pygame.movie' 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: "_GNU_SOURCE" redefined <command line>: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 'pygame.base' 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: "_GNU_SOURCE" redefined <command line>: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 'pygame.cdrom' 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: "_GNU_SOURCE" redefined <command line>: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 'pygame.constants' 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: "_GNU_SOURCE" redefined <command line>: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 'pygame.display' 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: "_GNU_SOURCE" redefined <command line>:1:1: warning: this is the location of the previous definition src/display.c: In function 'get_wm_info': src/display.c:388: error: 'SDL_SysWMinfo' has no member named 'info' src/display.c:389: error: 'SDL_SysWMinfo' has no member named 'info' src/display.c:390: error: 'SDL_SysWMinfo' has no member named 'info' src/display.c:391: error: 'SDL_SysWMinfo' has no member named 'info' src/display.c:392: error: 'SDL_SysWMinfo' has no member named 'info' src/display.c:393: error: 'SDL_SysWMinfo' has no member named 'info' error: command 'i386-gentoo-linux-uclibc-gcc' 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?
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="x86" AUTOCLEAN="yes" CBUILD="i386-gentoo-linux-uclibc" CFLAGS="-march=i686 -Os -pipe -mmmx" CHOST="i386-gentoo-linux-uclibc" CONFIG_PROTECT="/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/" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo" CXXFLAGS="-march=i686 -Os -pipe -mmmx" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig buildpkg ccache distlocks metadata-transfer nodoc noinfo noman sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="de_DE.utf8" LC_ALL="de_DE.utf8" LDFLAGS="-Wl,-z,relro" LINGUAS="" MAKEOPTS="-j2" PKGDIR="/packages/uclibc" 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 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" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
# 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="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe" CHOST="x86_64-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/env.d /etc/gconf /etc/terminfo" CXXFLAGS="-march=athlon64 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distcc distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="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" 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" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="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" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
It fails in the same way for both 1.6.2 and 1.7.1
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: > a solution is to enter > #define DISABLE_X11 > into /usr/include/SDL/SDL_syswm.h > it then compiles withour x11 support
*** Bug 165032 has been marked as a duplicate of this bug. ***
*** Bug 168901 has been marked as a duplicate of this bug. ***
At least this ebuild should check if libsdl was compiled with USE="X", else it should stop and issue a warning.
(In reply to comment #7) > At least this ebuild should check if libsdl was compiled with USE="X", else it > should stop and issue a warning. Copy that.
*** Bug 196069 has been marked as a duplicate of this bug. ***
Ok, check added in the latest version bump (1.8.0_rc4). Thanks.
*** Bug 214489 has been marked as a duplicate of this bug. ***
Wouldn'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?