x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"xosd\" -DPACKAGE_TARNAME=\"xosd\" -DPACKAGE_VERSION=\"2.2.8\" "-DPACKAGE_STRING=\"xosd 2.2.8\"" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_LIBX11=1 -DHAVE_LIBXEXT=1 -DHAVE_LIBXT=1 -DHAVE_LIBPTHREAD=1 -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_VPRINTF=1 -DXOSD_VERSION=\"2.2.8\" -I. -I. -I../../src -march=k8 -O2 -Wall -MT xosd.lo -MD -MP -MF .deps/xosd.Tpo -c xosd.c -fPIC -DPIC -o .libs/xosd.o xosd.c:71: error: static declaration of 'osd_default_colour' follows non-static declaration ../../src/xosd.h:21: error: previous declaration of 'osd_default_colour' was here # emerge --info Portage 2.1 (default-linux/amd64/2005.1, gcc-4.1.1, glibc-2.3.6-r3, 2.6.16-gentoo-r7 x86_64) ================================================================= System uname: 2.6.16-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.6.14 ccache version 2.3 [disabled] dev-lang/python: 2.3.5, 2.4.2 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-r1 sys-devel/binutils: 2.16.1-r2 sys-devel/gcc-config: 1.3.13-r2 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=k8 -O2" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /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/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=k8 -O2" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://130.59.10.34/mirror/gentoo/ http://130.59.10.35/mirror/gentoo/" LANG="de_DE@euro" LC_ALL="de_DE@euro" LINGUAS="de cz it fr en" 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 /usr/local/overlays/migration-overlay" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="amd64 X aalib alsa arts avi berkdb bitmap-fonts bzip2 cdr cli crypt css cups dri dvd dvdr eds emboss encode foomaticdb fortran gif gnome gpm gstreamer gtk gtk2 imlib ipv6 isdnlog java jpeg jpeg2k kde lzw lzw-tiff mozilla mp3 mpeg musicbrainz mysql ncurses nls nsplugin ogg opengl oss pam pango pcre pdflib perl png pppd python qt quicktime readline reflection samba sdl session spell spl ssl tcpd tiff truetype truetype-fonts type1-fonts unicode usb vorbis xmms xorg xosd xpm xv xvid zlib elibc_glibc kernel_linux linguas_de linguas_cz linguas_it linguas_fr linguas_en userland_GNU" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
xosd-2.2.10-r1 and xosd-2.2.14-r1 are compiling with gcc-4.1. They are both ~x86 just like gcc-4.1, so maybe try them... Mixing x86 and ~x86 is not the best thing you could do.
I've got the same error with xosd-2.2.8-r1 and GCC-4.1.1 --------- In file included from xosd.c:43: ../../src/xosd.h:12:1: warning: "__deprecated" redefined In file included from /usr/include/asm/sigcontext.h:4, from /usr/include/bits/sigcontext.h:28, from /usr/include/signal.h:333, from xosd.c:26: /usr/include/linux/compiler.h:100:1: warning: this is the location of the previous definition xosd.c:71: error: static declaration of 'osd_default_colour' follows non-static declaration ../../src/xosd.h:21: error: previous declaration of 'osd_default_colour' was here xosd.c: In function 'set_colour': xosd.c:718: warning: pointer targets in passing argument 3 of 'parse_colour' differ in signedness xosd.c: In function 'xosd_set_shadow_colour': xosd.c:1295: warning: pointer targets in passing argument 3 of 'parse_colour' differ in signedness xosd.c: In function 'xosd_set_outline_colour': xosd.c:1313: warning: pointer targets in passing argument 3 of 'parse_colour' differ in signedness ------ emerge --info Portage 2.1 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.3.6-r3, 2.6.15-gentoo-r1-kph0 i686) ================================================================= System uname: 2.6.15-gentoo-r1-kph0 i686 AMD Sempron(tm) 2200+ Gentoo Base System version 1.6.14 dev-lang/python: 2.3.5-r2, 2.4.2 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-r1 sys-devel/binutils: 2.16.1-r2 sys-devel/gcc-config: 1.3.13-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /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/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.uni-c.dk/pub/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://mirror.gentoo.no/ ftp://ftp.du.se/pub/os/gentoo" LANG="da_DK.UTF8" LC_ALL="da_DK.UTF8" LINGUAS="da en" 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.de.gentoo.org/gentoo-portage" USE="x86 3dnow X a52 aac aalib acpi aim alsa apache2 audiofile avahi avi bash-completion beagle berkdb bitmap-fonts bonobo bzip2 cdinstall cdr cli crypt cups curl dbus doc dri dv eds emacs emboss encode esd exif expat fam ffmpeg firefox flac flash foomaticdb fortran ftp gb gcj gd gdbm gif glut gmp gnome gpm gstreamer gtk gtk2 gtkhtml guile hal icq idn imagemagick imlib ipv6 isdnlog jabber jack java javascript jpeg junit lcms ldap lesstif libcaca libg++ libwww lua mad matroska matrox mhash mikmod mime ming mmx mng mono mozilla mp3 mpeg msn mysql nas ncurses nls nptl nsplugin nvidia objc odbc offensive ogg openal opengl oscar oss pam pcre pdflib perl php png posix postgres pppd python qdbm quicktime radius readline reflection ruby samba sasl sdl session slang sndfile sox speex spell spl sqlite sse ssl svg svga symlink tcltk tcpd test tetex theora tidy tiff tokenizer truetype truetype-fonts type1-fonts udev unicode usb v4l vcd videos vorbis win32codecs wmf wxwindows xml xml2 xmlrpc xorg xosd xpm xprint xsl xv xvid yahoo zlib elibc_glibc kernel_linux linguas_da linguas_en userland_GNU" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
x11-libs/xosd-2.2.8-r1 source is not compatible with gcc-4.1.1 - no need to confirm that. And there is also no need to do anything about this bug b/c working versions are already in the tree(WONTFIX?) And again plz don't mix x86 with ~x86(esp don't take compiler from ~x86 and use it for x86)
Fixed.