After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 141696 - gnome-utils compile problem
gnome-utils compile problem
Status: RESOLVED INCOMPLETE
Product: gnome-utils
Classification: Deprecated
Component: gfloppy
2.6.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-utils Maintainers
gnome-utils Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-05-03 03:49 UTC by Curtis Magyar
Modified: 2005-06-12 12:20 UTC
See Also:
GNOME target: ---
GNOME version: 2.5/2.6


Attachments
Patch for gnome-utils-2.6.2 compile probs (maybe kernel 2.6 specific?) (933 bytes, text/plain)
2004-05-03 03:49 UTC, Curtis Magyar
Details

Description Curtis Magyar 2004-05-03 03:49:01 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?
Comment 1 Curtis Magyar 2004-05-03 03:49:35 UTC
Created attachment 27319 [details]
Patch for gnome-utils-2.6.2 compile probs (maybe kernel 2.6 specific?)
Comment 2 Glynn Foster 2004-09-02 21:31:14 UTC
do you still have this problem? I think a fix went into it for 2.7.90 release.
Comment 3 Sebastien Bacher 2005-06-12 12:20:49 UTC
no reply, bug closed. Feel free to reopen with the asked informations if that's
still an issue for you