I never saw this problem before 2.6.24, so I'm attributing it to some change in either glibc (which owns /usr/include/sys/types.h) or linux-headers (which owns /usr/include/linux/types.h). Can anyone confirm this? sed -e "s,\@libexecdir\@,/usr/libexec,g" < battmon.desktop.in.in > battmon.desktop.in LC_ALL=C ../intltool-merge -d -u -c ../po/.intltool-merge-cache ../po battmon.desktop.in battmon.desktop Generating and caching the translation database Merging translations into battmon.desktop. In file included from ./libapm.h:21, from battery.c:39: /usr/include/sys/types.h:62: error: conflicting types for ‘dev_t’ /usr/include/linux/types.h:13: error: previous declaration of ‘dev_t’ was here /usr/include/sys/types.h:67: error: conflicting types for ‘gid_t’ /usr/include/linux/types.h:27: error: previous declaration of ‘gid_t’ was here /usr/include/sys/types.h:72: error: conflicting types for ‘mode_t’ /usr/include/linux/types.h:15: error: previous declaration of ‘mode_t’ was here /usr/include/sys/types.h:77: error: conflicting types for ‘nlink_t’ /usr/include/linux/types.h:16: error: previous declaration of ‘nlink_t’ was here /usr/include/sys/types.h:82: error: conflicting types for ‘uid_t’ /usr/include/linux/types.h:26: error: previous declaration of ‘uid_t’ was here In file included from /usr/include/sys/types.h:133, from ./libapm.h:21, from battery.c:39: /usr/include/time.h:105: error: conflicting types for ‘timer_t’ /usr/include/linux/types.h:22: error: previous declaration of ‘timer_t’ was here In file included from /usr/include/sys/types.h:220, from ./libapm.h:21, from battery.c:39: /usr/include/sys/select.h:78: error: conflicting types for ‘fd_set’ /usr/include/linux/types.h:12: error: previous declaration of ‘fd_set’ was here In file included from ./libapm.h:21, from battery.c:39: /usr/include/sys/types.h:235: error: conflicting types for ‘blkcnt_t’ /usr/include/linux/types.h:119: error: previous declaration of ‘blkcnt_t’ was here make[2]: *** [xfce4_battery_plugin-battery.o] Error 1 rm battmon.desktop.in make[2]: Leaving directory `/var/tmp/portage/xfce-extra/xfce4-battery-0.5.0-r2/work/xfce4-battery-plugin-0.5.0/panel-plugin' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/xfce-extra/xfce4-battery-0.5.0-r2/work/xfce4-battery-plugin-0.5.0' make: *** [all] Error 2 Reproducible: Always Steps to Reproduce: 1. emerge =xfce-extra/xfce4-battery-0.5.0-r2 Portage 2.1.4.4 (default-linux/x86/2006.1, gcc-4.2.2, glibc-2.7-r1, 2.6.24-zen1 i686) ================================================================= System uname: 2.6.24-zen1 i686 Intel(R) Pentium(R) M processor 1.86GHz Timestamp of tree: Thu, 14 Feb 2008 12:46:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.4 dev-lang/python: 2.5.1-r5 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.24 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium4m -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config /var/bind /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=pentium4m -O2 -pipe -fomit-frame-pointer -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="" FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.wpi.edu/gentoo/ http://distfiles.gentoo.org" INSTALL_MASK="" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" LINGUAS="en en_US" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_EXTRA_OPTS="" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/custom-kernels /usr/portage/local/layman/netscape /usr/portage/local/layman/sabayon /usr/portage/local/layman/enlightenment /usr/local/portage" SYNC="rsync://gentoo.wpi.edu/gentoo-portage" USE="7zip X Xaw3d a52 aac aalib acpi administrator aim akode alias alsa amarok amazon amr animgif ansi ao apache2 apm applet artswrappersuid aspnet2 async athena auctex audacious audiofile autoipd automountavahi avalon-framework avalon-logkit backtrace bash-completion battery bcmath bdf beagle berkdb bidi big-tables binfilter bitmap-fonts bittorrent blas blender-game bluetooth boost branding bzip2 cairo calendar caps captury cardbus cdda cddb cdinstall cdio cdparanoia cdr chm chroot clamav clearcase cli clisp colordiff connectionstatus console contentcache corba cpudetection cpufreq cracklib crypt cscope css ctype cups curl curlwrappers cursors cviewer cvs cvsgraph daap dbus depth32 device-mapper devil directfb disassembler disk-partition divx djbfft djvu dnd dri dts dvd dvdnav dvdr dvdread dynamicplugin eap-tls ecc emacs emerald emovix enca encode enscript eolconv epydoc equalizer erandom esd exif expat extra-cardsets extraengine fam fame fastbuild fasttrack fat fbcon fbcondecor fbsplash ffmpeg fftw finger firefox fits flac flash flatfile flexresp2 fltk fontconfig foomaticdb fortran fpx ftp fuse g15 gd gdbm gif gimpprint glade glib glibc-compat20 glibc-omitfp glitz glut gmedia gmp gnutella gnutls gpgme gphoto2 gpm graphviz gs gsm gstreamer gtk gtkhtml hal hash hddtemp hdri highlight history hou howl-compat hpn htmlhandbook http httpd icons iconv icq icu id3 id3tag idn ieee1394 image imagemagick inifile inline innodb inode inotify ipod ipv6 isdnlog ithreads jabber jack java java-internal java5 javascript jbig jce jikes jingle jms jmx jpeg jpeg2k junit kcal kde kdeenablefinal kdehiddenvisibility kdexdeltas kdm kerberos kig-scripting kqemu lame lapack latex lcms ldap ldap-sasl libcaca libgcrypt libnotify libsamplerate libsexy libtommath libvisual libwww live lm_sensors logitech-mouse lzo lzw mad magic mailwrapper maps math matroskamd5sum mdnsresponder-compat mhash midi mikmod mime ming mjpeg mmap mmx mmxext mng mod modplug mono moodbar motif mozdom mozembed mp2 mp3 mp4 mp4live mpeg mpeg2 mpi mplayer mtp mudflap multiuser musepack music musicbrainz mysql mysqli ncurses net netboot netjack network network-cron new-clx newspr nfs nis nls nntp no-helper nocd nova nowin nowlistening nptl nptlonly nsplugin ntfs numeric nvidia oav offensive ogg openal openexr opengl openmp openssl opensslcrypt oscar pam pango pccts pch pcmcia pcntl pcre pdf pdo-external perfprofiling perl perlsuid pertty php physfs plasma plib plotutils plugins png pnm pop posix postproc ppds pppd prediction prelude psyco pyste python qt-static qt3 qt3support qt4 query-browser quicktime rar rdesktop react readline real realmedia reflection reiser4 reiserfs remix replaygain replytolist rtc rtsp samba sasl scenarios sdl sdl-image semantic-desktop sensord server session shorten simplexml skins slang slp smime sms smtp sndfile snmp snortsam soap sockets socks5 solver sou sound soundex sounds sox speex spell spl sql sqlite sqlite3 srp srt sse sse2 ssl startup-notification statistics stream subversion suhosin suid svg svga svgz swat swig syslog sysvipc szip taglib tagwriting tcl tcpd tetex texteffect textures tga themes theora threads thunderbird tidy tiff timestats timidity tk tokenizer tomsfastmath toolbar toolkit-scroll-bars tordns translator transparency trayicon truetype truetype-fonts twolame type1-fonts unicode upnp urandom usb userlocales userpriv vcd vcdx vhosts videos vim vim-pager vim-syntax vim-with-x visualization vlm vnc vncviewer voice vorbis vorbis-psy vpopmail wavpack webdav webpresence wideband wifi win32codecs winbind wireshark wma wmf wmp wordexp workbench wxwindows x264 x86 xanim xattr xcomposite xemacs xface xforms xft xine xinerama xinetd xml xmldoclet xmlreader xmlrpc xmlwriter xorg xosd xpm xprint xrender xscreensaver xsl xulrunner xv xvid xvmc xvnc yv12 zip zlib zoran" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="g15 ncurses text xosd" LINGUAS="en en_US" USERLAND="GNU" VIDEO_CARDS="nvidia nv" Unset: CPPFLAGS, CTARGET, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
(In reply to comment #0) confirm on ~x86_64 with 2.6.24-r2 >>> Compiling source in /var/tmp/portage/xfce-extra/xfce4-battery-0.5.0-r2/work/xfce4-battery-plugin-0.5.0 ... * econf: updating xfce4-battery-plugin-0.5.0/config.sub with /usr/share/gnuconfig/config.sub * econf: updating xfce4-battery-plugin-0.5.0/config.guess with /usr/share/gnuconfig/config.guess ./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-debug --libdir=/usr/lib64 --build=x86_64-pc-linux-gnu checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking target system type... x86_64-pc-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking how to create a ustar tar archive... gnutar checking whether to enable maintainer-specific portions of Makefiles... no checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of x86_64-pc-linux-gnu-gcc... gcc3 checking for a sed that does not truncate output... /bin/sed checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ld used by x86_64-pc-linux-gnu-gcc... /usr/x86_64-pc-linux-gnu/bin/ld checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld) is GNU ld... yes checking for a BSD-compatible install... /usr/bin/install -c checking for perl... /usr/bin/perl checking for XML::Parser... ok checking for iconv... /usr/bin/iconv checking for msgfmt... /usr/bin/msgfmt checking for msgmerge... /usr/bin/msgmerge checking for xgettext... /usr/bin/xgettext checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dirent.h usability... yes checking dirent.h presence... yes checking for dirent.h... yes checking stdio.h usability... yes checking stdio.h presence... yes checking for stdio.h... yes checking for stdlib.h... (cached) yes checking for unistd.h... (cached) yes checking for string.h... (cached) yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking ctype.h usability... yes checking ctype.h presence... yes checking for ctype.h... yes checking for sys/stat.h... (cached) yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking for sys/types.h... (cached) yes checking for sysctl... yes checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking for LC_MESSAGES... yes checking libintl.h usability... yes checking libintl.h presence... yes checking for libintl.h... yes checking for ngettext in libc... yes checking for dgettext in libc... yes checking for bind_textdomain_codeset... yes checking for msgfmt... /usr/bin/msgfmt checking for dcgettext... yes checking for gmsgfmt... /usr/bin/gmsgfmt checking for xgettext... /usr/bin/xgettext checking for catalogs to be installed... checking for bind_textdomain_codeset... (cached) yes checking for locales directory... /usr/share/locale checking for additional xgettext flags... --keyword=Q_ --from-code=UTF-8 checking for pkg-config... /usr/bin/pkg-config checking for pkg-config >= 0.9.0... 0.22 checking for gtk+-2.0 >= 2.6.0... 2.12.8 checking GTK_CFLAGS... -D_REENTRANT -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 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 checking GTK_LIBS... -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 checking for gthread-2.0 >= 2.6.0... 2.14.6 checking GTHREAD_CFLAGS... -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include checking GTHREAD_LIBS... -pthread -lgthread-2.0 -lrt -lglib-2.0 checking for libxfce4util-1.0 >= 4.3.90.2... 4.4.2 checking LIBXFCE4UTIL_CFLAGS... -I/usr/include/xfce4 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include checking LIBXFCE4UTIL_LIBS... -lxfce4util -lglib-2.0 checking for libxfcegui4-1.0 >= 4.3.90.2... 4.4.2 checking LIBXFCEGUI4_CFLAGS... -D_REENTRANT -I/usr/include/xfce4 -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/atk-1.0 checking LIBXFCEGUI4_LIBS... -lxfcegui4 -lgtk-x11-2.0 -lxfce4util -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 checking for libxfce4panel-1.0 >= 4.3.90.2... 4.4.2 checking LIBXFCE4PANEL_CFLAGS... -D_REENTRANT -I/usr/include/xfce4/ -I/usr/include/xfce4 -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/atk-1.0 checking LIBXFCE4PANEL_LIBS... -lxfce4panel -lxfcegui4 -lgtk-x11-2.0 -lxfce4util -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 checking whether to build with debugging support... no configure: creating ./config.status config.status: creating Makefile config.status: creating panel-plugin/Makefile config.status: creating icons/Makefile config.status: creating icons/16x16/Makefile config.status: creating icons/22x22/Makefile config.status: creating icons/24x24/Makefile config.status: creating icons/32x32/Makefile config.status: creating icons/scalable/Makefile config.status: creating po/Makefile.in config.status: creating config.h config.status: executing depfiles commands config.status: executing intltool commands config.status: executing default-1 commands config.status: executing po/stamp-it commands Build Configuration: * Debug Support: no make all-recursive make[1]: Entering directory `/var/tmp/portage/xfce-extra/xfce4-battery-0.5.0-r2/work/xfce4-battery-plugin-0.5.0' Making all in panel-plugin make[2]: Entering directory `/var/tmp/portage/xfce-extra/xfce4-battery-0.5.0-r2/work/xfce4-battery-plugin-0.5.0/panel-plugin' x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -DG_LOG_DOMAIN=\"xfce4-battery-plugin\" -DPACKAGE_LOCALE_DIR=\"/usr/share/locale\" -D_REENTRANT -I/usr/include/xfce4/ -I/usr/include/xfce4 -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/atk-1.0 -D_REENTRANT -I/usr/include/xfce4 -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/atk-1.0 -I/usr/include/xfce4 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -D_REENTRANT -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 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -march=nocona -O2 -pipe -fomit-frame-pointer -MT xfce4_battery_plugin-battery.o -MD -MP -MF .deps/xfce4_battery_plugin-battery.Tpo -c -o xfce4_battery_plugin-battery.o `test -f 'battery.c' || echo './'`battery.c x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -DG_LOG_DOMAIN=\"xfce4-battery-plugin\" -DPACKAGE_LOCALE_DIR=\"/usr/share/locale\" -D_REENTRANT -I/usr/include/xfce4/ -I/usr/include/xfce4 -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/atk-1.0 -D_REENTRANT -I/usr/include/xfce4 -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/atk-1.0 -I/usr/include/xfce4 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -D_REENTRANT -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 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -march=nocona -O2 -pipe -fomit-frame-pointer -MT xfce4_battery_plugin-libacpi.o -MD -MP -MF .deps/xfce4_battery_plugin-libacpi.Tpo -c -o xfce4_battery_plugin-libacpi.o `test -f 'libacpi.c' || echo './'`libacpi.c x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -DG_LOG_DOMAIN=\"xfce4-battery-plugin\" -DPACKAGE_LOCALE_DIR=\"/usr/share/locale\" -D_REENTRANT -I/usr/include/xfce4/ -I/usr/include/xfce4 -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/atk-1.0 -D_REENTRANT -I/usr/include/xfce4 -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/atk-1.0 -I/usr/include/xfce4 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -D_REENTRANT -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 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -march=nocona -O2 -pipe -fomit-frame-pointer -MT xfce4_battery_plugin-libapm.o -MD -MP -MF .deps/xfce4_battery_plugin-libapm.Tpo -c -o xfce4_battery_plugin-libapm.o `test -f 'libapm.c' || echo './'`libapm.c In file included from /usr/include/sys/types.h:8, from ./libapm.h:21, from battery.c:39: /usr/include/gentoo-multilib/amd64/sys/types.h:46: error: conflicting types for ‘loff_t’ /usr/include/linux/types.h:30: error: previous declaration of ‘loff_t’ was here /usr/include/gentoo-multilib/amd64/sys/types.h:62: error: conflicting types for ‘dev_t’ /usr/include/linux/types.h:13: error: previous declaration of ‘dev_t’ was here In file included from /usr/include/time.h:8, from /usr/include/gentoo-multilib/amd64/sys/types.h:133, from /usr/include/sys/types.h:8, from ./libapm.h:21, from battery.c:39: /usr/include/gentoo-multilib/amd64/time.h:105: error: conflicting types for ‘timer_t’ /usr/include/linux/types.h:22: error: previous declaration of ‘timer_t’ was here In file included from /usr/include/sys/types.h:8, from ./libapm.h:21, from battery.c:39: /usr/include/gentoo-multilib/amd64/sys/types.h:198: error: conflicting types for ‘int64_t’ /usr/include/linux/types.h:98: error: previous declaration of ‘int64_t’ was here /usr/include/gentoo-multilib/amd64/sys/types.h:204: error: conflicting types for ‘u_int64_t’ /usr/include/linux/types.h:97: error: previous declaration of ‘u_int64_t’ was here In file included from /usr/include/sys/select.h:8, from /usr/include/gentoo-multilib/amd64/sys/types.h:220, from /usr/include/sys/types.h:8, from ./libapm.h:21, from battery.c:39: /usr/include/gentoo-multilib/amd64/sys/select.h:78: error: conflicting types for ‘fd_set’ /usr/include/linux/types.h:12: error: previous declaration of ‘fd_set’ was here In file included from /usr/include/sys/types.h:8, from ./libapm.h:21, from battery.c:39: /usr/include/gentoo-multilib/amd64/sys/types.h:235: error: conflicting types for ‘blkcnt_t’ /usr/include/linux/types.h:119: error: previous declaration of ‘blkcnt_t’ was here mv -f .deps/xfce4_battery_plugin-libacpi.Tpo .deps/xfce4_battery_plugin-libacpi.Po sed -e "s,\@libexecdir\@,/usr/libexec,g" < battmon.desktop.in.in > battmon.desktop.in LC_ALL=C ../intltool-merge -d -u -c ../po/.intltool-merge-cache ../po battmon.desktop.in battmon.desktop mv -f .deps/xfce4_battery_plugin-libapm.Tpo .deps/xfce4_battery_plugin-libapm.Po Generating and caching the translation database Merging translations into battmon.desktop. make[2]: *** [xfce4_battery_plugin-battery.o] Error 1 rm battmon.desktop.in make[2]: Leaving directory `/var/tmp/portage/xfce-extra/xfce4-battery-0.5.0-r2/work/xfce4-battery-plugin-0.5.0/panel-plugin' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/xfce-extra/xfce4-battery-0.5.0-r2/work/xfce4-battery-plugin-0.5.0' make: *** [all] Error 2
Hi, my packages: - sys-kernel/gentoo-sources-2.6.24-r2 - sys-kernel/linux-headers-2.6.23-r3 - sys-libs/glibc-2.6.1 No problem compiling xfce-extra/xfce4-battery-0.5.0-r2. I'm updating gcc-4.1.2, then I'll recompile linux-headers and I'll try again to compile xfce-extra/xfce4-battery-0.5.0-r2. Wait for a response. Maybe, recompile linux-headers can help you.
my system has following versions of the packages: - sys-kernel/gentoo-sources-2.6.24-r2 - sys-kernel/linux-headers-2.6.24 - sys-libs/glibc-2.7-r1 either newer headers or newer glibc cause the problem, since both of them include types.h and other headers
On my system: $ equery belongs /usr/include/linux/types.h [ Searching for file(s) /usr/include/linux/types.h in *... ] sys-kernel/linux-headers-2.6.23-r3 (/usr/include/linux/types.h) I'm sorry, I'm not in ~x86.
I also just came across this on a full rebuild. - sys-kernel/gentoo-sources-2.6.2.6.23-r3 (havent bothered to install 2.6.24) - sys-kernel/linux-headers-2.6.24 - sys-libs/glibc-2.7-r1 Problem compiling xfce-extra/xfce4-battery-0.5.0-r2!
*** Bug 213832 has been marked as a duplicate of this bug. ***
This is bug http://bugzilla.xfce.org/show_bug.cgi?id=3938 at upstream. Unfortunately upstream is in a bit of hibernation as we already patch the plugin for compability with newer kernels. :/
Sync in hour or so.. + 19 Mar 2008; Samuli Suominen <drac@gentoo.org> + +files/xfce4-battery-0.5.0-2.6.24-headers.patch, + xfce4-battery-0.5.0-r2.ebuild: + Flip include order for bug 210218 to fix conflicting types between + linux-headers-2.6.24 and glibc-2.7. and it should be fixed, thanks to Debian maintainer in upstream bug