Problem: MNT_DETACH is not declared
I did some checking (google) and as far as I can find MNT_DETACH should
be defined in fs.h header.
Which the information from google is from glibc.
Doing a search on the build system I see that header is from
linux-2.6.37, installed by the Linux-2.6.37 API Headers chapter.
A grep (grep MNT_DETACH /usr/include/linux/fs.h) on the system under
build reports it is not there.
I am building each package in a seperate subdirectory with the layout
like this:
build - Starting subdirectory
base - chapter 6 stuff
util-linux - the files necessary to build util-linux
src - where I build the package/ tarball extracted here
tools - chapter 5 stuff
.......
Can anyone point me in the right direction?
Here is the error logged
make[2]: Entering directory
`/mnt/lfs/build/base/util-linux/src/util-linux-2.19/shlibs/mount'
Making all in src
make[3]: Entering directory
`/mnt/lfs/build/base/util-linux/src/util-linux-2.19/shlibs/mount/src'
CC version.lo
CC utils.lo
CC test.lo
CC init.lo
CC cache.lo
CC optstr.lo
CC optmap.lo
CC iter.lo
CC lock.lo
CC fs.lo
CC tab.lo
CC tab_parse.lo
CC tab_update.lo
CC context.lo
CC context_mount.lo
CC context_umount.lo
CC at.lo
CC mangle.lo
CC canonicalize.lo
context_umount.c: In function 'do_umount':
context_umount.c:430:24: error: 'MNT_DETACH' undeclared (first use in
this function)
context_umount.c:430:24: note: each undeclared identifier is reported
only once for each function it appears in
make[3]: *** [context_umount.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory
`/mnt/lfs/build/base/util-linux/src/util-linux-2.19/shlibs/mount/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/mnt/lfs/build/base/util-linux/src/util-linux-2.19/shlibs/mount'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/mnt/lfs/build/base/util-linux/src/util-linux-2.19'
make: *** [all] Error 2
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page