On 10/30/06, Alessandro Alocci <[EMAIL PROTECTED]> wrote:
Compiling nfs-utils-1.0.10 on a system with linux kernel 2.6.18.1
I get this error:

make[2]: Entering directory
`/mnt/rh/bld/nfs-utils-1.0.10/tools/getkversion'
if gcc -DHAVE_CONFIG_H -I. -I. -I../../support/include  -D_GNU_SOURCE
-D_GNU_SOURCE -g -O2 -g -O2 -MT getkversion-getkversion.o -MD -MP -MF
".deps/getkversion-getkversion.Tpo" -c -o getkversion-getkversion.o
`test -f 'getkversion.c' || echo './'`getkversion.c; \
        then
mv -f ".deps/getkversion-getkversion.Tpo" ".deps/getkversion-getkve
rsion.Po"; else rm -f ".deps/getkversion-getkversion.Tpo"; exit 1; fi
getkversion.c: In function 'main':
getkversion.c:17: error: 'UTS_RELEASE' undeclared (first use in this
function)

<snip>

In fact UTS_RELEASE seems not to be defined anymore in linux/version.h
but in linux-2.5.18 is defined in
/usr/src/linux-2.6.18/include/linux/utsrelease.h
an header that is not installed in the system by the new
make headers_install procedure in LFS-SVN.

Fedora is working around the problem by just not building getiversion
and getkversion at all. They just fiddle with the SUBDIRS value in
tools/. Here's their patch, which unfortunately has some other
unrelated things mixed in:

http://cvs.fedora.redhat.com/viewcvs/devel/nfs-utils/nfs-utils-1.0.9-compile.patch?view=markup

--
Dan
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to