Red Hat Bugzilla – Bug 115209
make error in rhgb CVS 2-8-04, undeclared
Last modified: 2007-11-30 17:10:36 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1)
Description of problem:
Configuration works fine. When running "make" to compile rhgb cvs, get
an undeclared error as demonstrated below.
Making all in src
make: Entering directory `/home/steven/sources/rhgb/src'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -g -O2
-I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include
-I/usr/lib/glib-2.0/include -MT main.o -MD -MP -MF ".deps/main.Tpo" \
-c -o main.o `test -f 'main.c' || echo './'`main.c; \
then mv -f ".deps/main.Tpo" ".deps/main.Po"; \
else rm -f ".deps/main.Tpo"; exit 1; \
main.c: In function `unmount_ramfs':
main.c:235: `MNT_DETACH' undeclared (first use in this function)
main.c:235: (Each undeclared identifier is reported only once
main.c:235: for each function it appears in.)
make: *** [main.o] Error 1
make: Leaving directory `/home/steven/sources/rhgb/src'
make: *** [all-recursive] Error 1
make: Leaving directory `/home/steven/sources/rhgb'
make: *** [all] Error 2
Intel celeron 1.1 ghz
384 megs ram
fedora core 1
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. download latest cvs
Actual Results: Error as seen above
Expected Results: compilation and installation of latest rhgb
MNT_DETACH is missing from <sys/mount.h> in glibc-headers-2.3.2-101.4
on FC1 with some updated packages. This is surprising, since the
umount2 man page clearly mentions MNT_DETACH as a valid flag.
Defining MNT_DETACH to 2 (to match the kernel) in sys/mount.h makes it
compile, although this isn't the most desirable "fix" by far.
Oh, and I also needed to include <sys/mount.h> in main.c.
The bug would be fixed by the patch in bug #112928
Fixed, as seen in: