xfce4-battery-plugin-0.5.1 can't compile on x86_64 machine. [alois@amilo xfce4-battery-plugin-0.5.1]$ ./configure --prefix=/usr checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for a BSD-compatible install... /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 gcc... 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 gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of 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 gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for a BSD-compatible install... /bin/install -c checking for xgettext... /usr/bin/xgettext checking for msgmerge... /usr/bin/msgmerge checking for msgfmt... /usr/bin/msgfmt checking for perl... /usr/bin/perl checking for XML::Parser... ok checking how to run the C preprocessor... 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... (cached) /usr/bin/msgfmt checking for dcgettext... yes checking if msgfmt accepts -c... yes checking for gmsgfmt... /usr/bin/msgfmt checking for xgettext... (cached) /usr/bin/xgettext checking for catalogs to be installed... ar ca cs da de el en_GB eu fi fr gl id it lv nb_NO pl pt_BR pt_PT sq uk ur zh_TW checking for bind_textdomain_codeset... (cached) yes checking for locales directory... ${datarootdir}/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.23 checking for gtk+-2.0 >= 2.6.0... 2.12.11 checking GTK_CFLAGS... -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 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 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.16.5 checking GTHREAD_CFLAGS... -pthread -I/usr/include/glib-2.0 -I/usr/lib/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/lib/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... -I/usr/include/xfce4 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -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... -I/usr/include/xfce4/ -I/usr/include/xfce4 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -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: config.h is unchanged 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 [alois@amilo xfce4-battery-plugin-0.5.1]$ make make all-recursive make[1]: Entering directory `/home/DOWNLOAD/xfce4-battery-plugin/src/xfce4-battery-plugin-0.5.1' Making all in panel-plugin make[2]: Entering directory `/home/DOWNLOAD/xfce4-battery-plugin/src/xfce4-battery-plugin-0.5.1/panel-plugin' gcc -DHAVE_CONFIG_H -I. -I.. -I.. -DG_LOG_DOMAIN=\"xfce4-battery-plugin\" -DPACKAGE_LOCALE_DIR=\"/usr/share/locale\" -I/usr/include/xfce4/ -I/usr/include/xfce4 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/atk-1.0 -I/usr/include/xfce4 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/atk-1.0 -I/usr/include/xfce4 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -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 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -g -O2 -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 In file included from ./libapm.h:21, from battery.c:39: /usr/include/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/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/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 ./libapm.h:21, from battery.c:39: /usr/include/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/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/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:124: error: previous declaration of ‘blkcnt_t’ was here make[2]: *** [xfce4_battery_plugin-battery.o] Error 1 make[2]: Leaving directory `/home/DOWNLOAD/xfce4-battery-plugin/src/xfce4-battery-plugin-0.5.1/panel-plugin' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/DOWNLOAD/xfce4-battery-plugin/src/xfce4-battery-plugin-0.5.1' make: *** [all] Error 2 [alois@amilo xfce4-battery-plugin-0.5.1]$
used gcc 4.3.2: Target: x86_64-unknown-linux-gnu Configured with: ../configure --prefix=/usr --enable-shared --enable-languages=c,c++,fortran,objc,obj-c++,treelang --enable-threads=posix --mandir=/usr/share/man --infodir=/usr/share/info --enable-__cxa_atexit --disable-multilib --libdir=/usr/lib --libexecdir=/usr/lib --enable-clocale=gnu --disable-libstdcxx-pch --with-tune=generic Thread model: posix gcc version 4.3.2 (GCC)
(In reply to comment #0) > xfce4-battery-plugin-0.5.1 can't compile on x86_64 machine. It works fine with the attached patch. It doesn't build since 2.6.24 kernel. Cheers,
Created attachment 1803 Fix FTBFS with kernels >= 2.6.24
works, Thanks !
(In reply to comment #0) > xfce4-battery-plugin-0.5.1 can't compile on x86_64 machine. This is not limited to x86_64 but also happens on i386 and other platforms (In reply to comment #3) > Fix FTBFS with kernels >= 2.6.24 I doubt that it is dependent on the kernel version because /usr/include/sys/types.h is provided by glibc-headers (on Fedora, no idea what the package is called on Debian). Do you know which glibc Debian used when you first hit that problem?
(In reply to comment #5) > (In reply to comment #3) > > Fix FTBFS with kernels >= 2.6.24 > > I doubt that it is dependent on the kernel version because > /usr/include/sys/types.h is provided by glibc-headers (on Fedora, no idea what > the package is called on Debian). Do you know which glibc Debian used when you > first hit that problem? /usr/include/sys/types.h is provided by libc6-dev here, but /usr/include/linux/types.h is provided by linux-libc-dev, which are the kernel userspace headers. The first problem appeared with linux-libc-dev 2.6.24. Cheers,
*** Bug 4372 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of bug 3938 ***