GNOME Bugzilla – Bug 141696
gnome-utils compile problem
Last modified: 2005-06-12 12:20:49 UTC
I attempted to compile gnome-utils-2.6.2 on my Gentoo system with kernel version 2.6.5, and it broke with the following error in gfloppy: if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DGNOMELOCALEDIR=\""/usr/share/locale"\" -DGLADEDIR=\""/usr/share/gnome-utils/glade"\" -DDATADIR=\""/usr/share"\" -DORBIT2=1 -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libgnome-2.0 -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0 -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0 -I/usr/include/libbonoboui-2.0 -I/usr/include/libxml2 -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -MT gfloppy.o -MD -MP -MF ".deps/gfloppy.Tpo" \ -c -o gfloppy.o `test -f 'gfloppy.c' || echo './'`gfloppy.c; \ then mv ".deps/gfloppy.Tpo" ".deps/gfloppy.Po"; \ else rm -f ".deps/gfloppy.Tpo"; exit 1; \ fi In file included from /usr/include/linux/fs.h:16, from gfloppy.c:39: /usr/include/linux/list.h:604:2: warning: #warning "don't include kernel headers in userspace" In file included from /usr/include/linux/fs.h:20, from gfloppy.c:39: /usr/include/linux/radix-tree.h: In function `radix_tree_preload_end': /usr/include/linux/radix-tree.h:54: error: invalid type argument of `->' /usr/include/linux/radix-tree.h:54: error: `TIF_NEED_RESCHED' undeclared (first use in this function) /usr/include/linux/radix-tree.h:54: error: (Each undeclared identifier is reported only once /usr/include/linux/radix-tree.h:54: error: for each function it appears in.) make[3]: *** [gfloppy.o] Error 1 make[3]: Leaving directory `/home/curtis/src/gnome-utils-2.6.2/gfloppy/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/curtis/src/gnome-utils-2.6.2/gfloppy' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/curtis/src/gnome-utils-2.6.2' make: *** [all] Error 2 It seems fs.h isn't needed, and is causing the problem. Also where gfloppy tries to make sure the selected device is actually a floppy drive, it uses a MAJOR() macro, which should probably the "major()" macro from sys/sysmacros.h. Maybe this is specific to kernel 2.6? I'll attach a patch that fixes the problem here, maybe its useful to someone else?
Created attachment 27319 [details] Patch for gnome-utils-2.6.2 compile probs (maybe kernel 2.6 specific?)
do you still have this problem? I think a fix went into it for 2.7.90 release.
no reply, bug closed. Feel free to reopen with the asked informations if that's still an issue for you