Summary: | xfce-extra/xfce4-battery-0.5.0-r2: compile fails with linux-headers-2.6.24 and glibc-2.7-r1 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Ivan D Vasin <ivan> |
Component: | Current packages | Assignee: | XFCE Team <xfce> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | askwar, esigra, keenblade, themactep |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://bugzilla.xfce.org/show_bug.cgi?id=3938 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Ivan D Vasin
2008-02-15 07:53:05 UTC
(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 |