Summary: | Gtkboard won't build with gcc4. | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Markus Gothe <nietzsche> |
Component: | [OLD] Games | Assignee: | Gentoo Games <games> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jdaluz, tristan |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 117482 | ||
Attachments: | gtkboard-0.11_pre0-gcc41.patch |
Description
Markus Gothe
2006-02-08 10:00:03 UTC
Reopen with some error messages and emerge --info output. i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Wall -Wno-unused -DDATADIR=\"/usr/share/games/gtkboard\" -O3 -ftracer -ffast-math -march=athlon-xp -fomit-frame-pointer -pipe -mfpmath=sse -I/usr/include/SDL -D_REENTRANT -c `test -f 'sound.c' || echo './'`sound.c i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Wall -Wno-unused -DDATADIR=\"/usr/share/games/gtkboard\" -O3 -ftracer -ffast-math -march=athlon-xp -fomit-frame-pointer -pipe -mfpmath=sse -I/usr/include/SDL -D_REENTRANT -c `test -f 'ui.c' || echo './'`ui.c board.c:77: error: static declaration of 'cell_size' follows non-static declaration game.h:420: error: previous declaration of 'cell_size' was here board.c:77: error: static declaration of 'num_pieces' follows non-static declaration game.h:420: error: previous declaration of 'num_pieces' was here board.c: In function 'board_init': board.c:628: warning: pointer targets in initialization differ in signedness make[2]: *** [board.o] Error 1 make[2]: *** Waiting for unfinished jobs.... ui.c: In function 'parse_opts': ui.c:708: warning: dereferencing type-punned pointer will break strict-aliasing rules make[2]: Leaving directory `/var/tmp/portage/gtkboard-0.11_pre0/work/gtkboard-0.11pre0/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/gtkboard-0.11_pre0/work/gtkboard-0.11pre0' make: *** [all] Error 2 !!! ERROR: games-board/gtkboard-0.11_pre0 failed. Call stack: ebuild.sh, line 1894: Called dyn_compile ebuild.sh, line 941: Called src_compile !!! emake failed !!! If you need support, post the topmost build error, and the call stack if relevant. leary xgl # emerge --info Portage 2.1_pre4-r1 (default-linux/x86/2005.1, gcc-4.0.2, glibc-2.3.6-r2, 2.6.15-ck1 i686) ================================================================= System uname: 2.6.15-ck1 i686 AMD Duron(TM) Gentoo Base System version 1.6.14 ccache version 2.3 [enabled] dev-lang/python: 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="" ALSA_CARDS="emu10k1" ANT_HOME="/usr/share/ant-core" ARCH="x86" AUTOCLEAN="yes" AW_COMMON="/opt/aw" BASH_ENV="/etc/spork/is/not/valid/profile.env" CBUILD="i686-pc-linux-gnu" CCACHE_SIZE="2G" CFLAGS="-O3 -ftracer -ffast-math -march=athlon-xp -fomit-frame-pointer -pipe -mfpmath=sse" CHOST="i686-pc-linux-gnu" CLASSPATH="." CLEAN_DELAY="5" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CVS_RSH="ssh" CXXFLAGS="-O3 -ftracer -ffast-math -march=athlon-xp -fomit-frame-pointer -pipe -mfpmath=sse -fvisibility-inlines-hidden" DISPLAY=":0.0" DISTDIR="/usr/portage/distfiles" EDITOR="/bin/nano" ELIBC="glibc" EMERGE_DEFAULT_OPTS="--verbose" EMERGE_WARNING_DELAY="10" FEATURES="autoconfig ccache distlocks parallel-fetch sandbox sfperms strict" FETCHCOMMAND="/usr/bin/wget -t 5 --passive-ftp -P ${DISTDIR} ${URI}" FLTK_DOCDIR="/usr/share/doc/fltk-1.1.6/html" GCC_SPECS="" GDK_USE_XFT="1" GENTOO_MIRRORS="ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ds.thn.htu.se/linux/gentoo http://mirror.pudas.net/gentoo http://ftp.du.se/pub/os/gentoo" GLIBC_SSP_CHECKED="1" G_BROKEN_FILENAMES="1" HOME="/root" HOSTNAME="leary" INFOPATH="/usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.16.1/info:/usr/share/gcc-data/i686-pc-linux-gnu/4.0.2/info:/usr/share/gcc-data/i686-pc-linux-gnu/4.0.2/info" INPUT_DEVICES="keyboard mouse" JAVAC="/opt/blackdown-jdk-1.4.2.03/bin/javac" JAVA_HOME="/opt/blackdown-jdk-1.4.2.03" JDK_HOME="/opt/blackdown-jdk-1.4.2.03" KDEDIRS="/usr" KERNEL="linux" LANG="en_US.ISO-8859-15" LC_ALL="en_US.ISO-8859-15" LDFLAGS="-Wl,-O1" LESS="-R -M --shift 5" LESSOPEN="|lesspipe.sh %s" LINGUAS="en" LIRC_OPTS="--with-driver=pctv --with-x" LOGNAME="root" MAIL="/var/mail/root" MAKEOPTS="-j3" MANPATH="/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.16.1/man:/usr/share/gcc-data/i686-pc-linux-gnu/4.0.2/man:/usr/share/gcc-data/i686-pc-linux-gnu/4.0.2/man::/opt/blackdown-jdk-1.4.2.03/man:/usr/qt/3/doc/man" MAYA_LOCATION="/opt/aw/maya" MAYA_SHADER_LIBRARY_PATH="/opt/aw/maya/shaderLibrary/shaders" OLDPWD="/usr/local/portage" OPENGL_PROFILE="nvidia" PAGER="/usr/bin/less" PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.0.2:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin:/usr/qt/3/bin:/usr/kde/3.4/sbin:/usr/kde/3.4/bin:/opt/aw/maya/bin" PKGDIR="/usr/portage/packages" PORTAGE_ARCHLIST="ppc s390 amd64 ppc64 m68k arm sparc sh mips ia64 alpha ppc-macos hppa x86" PORTAGE_BINHOST_CHUNKSIZE="3000" PORTAGE_CALLER="emerge" PORTAGE_GID="250" PORTAGE_MASTER_PID="20633" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" PRELINK_PATH="" PRELINK_PATH_MASK="/usr/lib/gstreamer-0.8" PWD="/usr/local/portage/x11-base/xgl" PYTHONPATH="/usr/lib/portage/pym" QMAKESPEC="linux-g++" QTDIR="/usr/qt/3" RESUMECOMMAND="/usr/bin/wget -c -t 5 --passive-ftp -P ${DISTDIR} ${URI}" RPMDIR="/usr/portage/rpm" RSYNC_RETRIES="3" RSYNC_TIMEOUT="180" SHELL="/bin/bash" SHLVL="1" SYNC="rsync://rsync.gentoo.org/gentoo-portage" TERM="xterm" USE="3dnow 3dnowext X Xaw3d aac alsa apache2 asm bash-completion berkdb bitmap-fonts bzip2 cdr crypt ctype curl directfb dlloader dvd dvdr dvdread encode exif expat ffmpeg firefox foomaticdb fortran gcj gd gdbm gnome gpm gs gstreamer gtk gtk2 icq idn imap imlib jabber java javascript jpeg lcms libg++ lirc live lm_sensors matroska memlimit mikmod mmx mmxext motif mozsvg mp3 mpeg msn musicbrainz mysql ncurses network nfs nls nodrm nptl nsplugin nvidia offensive ogg oggvorbis opengl oscar pam pcre pdf pdflib perl php plotutils png posix python qt quicktime readline real sdl sockets spell sse ssl svg svga sysfs sysvipc theora threads tiff truetype truetype-fonts type1-fonts unicode v4l v4l2 vorbis wifi win32codecs x86 xml xml2 xmms xscreensaver xsl xv xvid xvmc zlib zvbi elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_en userland_GNU video_cards_nvidia video_cards_v4l" USER="root" USERLAND="GNU" USE_EXPAND="DVB_CARDS ELIBC FCDSL_CARDS FRITZCAPI_CARDS INPUT_DEVICES KERNEL LINGUAS USERLAND VIDEO_CARDS" USE_EXPAND_HIDDEN="" USE_ORDER="env:pkg:conf:defaults" VIDEO_CARDS="nvidia v4l" XARGS="xargs -r" XAUTHORITY="/root/.xauthS4vjKm" _="/usr/bin/emerge" Same error on amd64 with gcc-4.1.0: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Wall -Wno-unused -DDATADIR=\"/usr/share/games/gtkboard\" -march=athlon64 -O2 -pipe -I/usr/include/SDL -D_REENTRANT -c `test -f 'board.c' || echo './'`board.c board.c:77: error: static declaration of Same error on amd64 with gcc-4.1.0: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Wall -Wno-unused -DDATADIR=\"/usr/share/games/gtkboard\" -march=athlon64 -O2 -pipe -I/usr/include/SDL -D_REENTRANT -c `test -f 'board.c' || echo './'`board.c board.c:77: error: static declaration of cell_size follows non-static declaration game.h:420: error: previous declaration of cell_size was here board.c:77: error: static declaration of num_pieces follows non-static declaration game.h:420: error: previous declaration of num_pieces was here board.c: In function board_init: board.c:628: warning: pointer targets in initialization differ in signedness make[2]: *** [board.o] Error 1 Portage 2.1_pre6 (default-linux/amd64/2006.0, gcc-3.4.5, glibc-2.4-r0, 2.6.15-ck5 x86_64) ================================================================= System uname: 2.6.15-ck5 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.12.0_pre16 ccache version 2.4 [enabled] dev-lang/python: 2.3.5-r2, 2.4.2-r1 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-r1 sys-devel/binutils: 2.16.1-r1, 2.16.91.0.3, 2.16.91.0.5, 2.16.91.0.6 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 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-march=athlon64 -O2 -pipe -ffriend-injection" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="" FEATURES="autoconfig ccache distlocks metadata-transfer nostrip sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.osuosl.org/" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/bmg-main /usr/local/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="amd64 X aac alsa avi bash-completion berkdb bitmap-fonts bzip2 cairo cdr crypt cups dbus debug dri dvd dvdr eds emboss encode esd firefox flac foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 hal imlib ipv6 java jpeg kde ldap lzw lzw-tiff mad mono mozilla mp3 mpeg ncurses nls nptl nptlonly ogg opengl pam pdflib perl pic png python qt quicktime readline ruby samba sdl spell sqlite ssl tcpd theora tiff truetype truetype-fonts type1-fonts usb vorbis xml2 xpm xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU video_cards_vga video_cards_vesa video_cards_nv" Unset: ASFLAGS, CTARGET, LDFLAGS, LINGUAS, MAKEOPTS Created attachment 85494 [details, diff]
gtkboard-0.11_pre0-gcc41.patch
patch from debian
(In reply to comment #4) > Created an attachment (id=85494) [edit] > gtkboard-0.11_pre0-gcc41.patch > > patch from debian > The patch works here. Thanks! thanks, fixed |