Thomas Seeling via blfs-support
2018-11-28 16:58:23 UTC
Hallo,
I had some minor problems building NFS-utils 2.3.3 but I'm not sure if
it still occurs - my gcc version is a bit older than current LFS, and I
tried to compile on 2 different machines (32 and 64 bit).
I used to configure and compile with "--with-rpcgen=internal" which
worked fine with previous nfs-utils and now no longer does. In all of
the Makefiles the definitions for "internal rpcgen" in ../tools/... are
commented out.
I wondered why I got error messages like
c -i 0 -o sm_inter_xdr.c sm_inter.x
make[2]: c: Command not found
...
l -o sm_inter_clnt.c sm_inter.x
make[3]: l: Command not found
but then I realized by looking inside the Makefiles that $(RPCGEN) is
empty, "-" is then swallowed and interpreted by make, and what should be
the rpcgen invocation with some commandline switches now becomes an
"unknown command".
I solved this one by installing prerequisite rpcgen (as documented in
BLFS) and setting the environment variable RPCGEN=/usr/bin/rpcgen before
running configure.
Then after configure I had one more small error:
In nfs-utils-2.3.3/utils/mountd
cache.c:207:5: error: "USE_BLKID" is not defined, evaluates to 0
[-Werror=undef]
#if USE_BLKID
I got rid of this by changing "#if" to "#ifdef".
And finally I got it compiled ;)
Tschau...Thomas
I had some minor problems building NFS-utils 2.3.3 but I'm not sure if
it still occurs - my gcc version is a bit older than current LFS, and I
tried to compile on 2 different machines (32 and 64 bit).
I used to configure and compile with "--with-rpcgen=internal" which
worked fine with previous nfs-utils and now no longer does. In all of
the Makefiles the definitions for "internal rpcgen" in ../tools/... are
commented out.
I wondered why I got error messages like
c -i 0 -o sm_inter_xdr.c sm_inter.x
make[2]: c: Command not found
...
l -o sm_inter_clnt.c sm_inter.x
make[3]: l: Command not found
but then I realized by looking inside the Makefiles that $(RPCGEN) is
empty, "-" is then swallowed and interpreted by make, and what should be
the rpcgen invocation with some commandline switches now becomes an
"unknown command".
I solved this one by installing prerequisite rpcgen (as documented in
BLFS) and setting the environment variable RPCGEN=/usr/bin/rpcgen before
running configure.
Then after configure I had one more small error:
In nfs-utils-2.3.3/utils/mountd
cache.c:207:5: error: "USE_BLKID" is not defined, evaluates to 0
[-Werror=undef]
#if USE_BLKID
I got rid of this by changing "#if" to "#ifdef".
And finally I got it compiled ;)
Tschau...Thomas
--
"Do you wanna be a legend or a passing footprint on the sands of time?"
"Do you wanna be a legend or a passing footprint on the sands of time?"