Discussion:
[blfs-support] nfs-utils 2.3.3
Thomas Seeling via blfs-support
2018-11-28 16:58:23 UTC
Permalink
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
--
"Do you wanna be a legend or a passing footprint on the sands of time?"
rslovers--- via blfs-support
2018-11-29 03:16:51 UTC
Permalink
I also encountered the same problem, --with-rpcgen=internal can still be
used but patches are required for configure.ac:

[1] https://marc.info/?l=linux-nfs&m=154149008632189&w=4
[2] https://marc.info/?l=linux-nfs&m=154149082710987&w=4
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.
Ken Moffat via blfs-support
2018-11-29 03:53:58 UTC
Permalink
Post by rslovers--- via blfs-support
I also encountered the same problem, --with-rpcgen=internal can still be
[1] https://marc.info/?l=linux-nfs&m=154149008632189&w=4
[2] https://marc.info/?l=linux-nfs&m=154149082710987&w=4
I'm somewhat puzzled by why these reports are now coming in - does
what is in the released 8.3 books (for whatever version we had
there), or the *current* svn books, not work for you ?

And yes, I flagged up the rpcgen problem some time ago, and thanks
to help on the list I eventually understood the weird error messages
and we got the development book fixed. Or I thought we did. Maybe
I'm missing something.

ĸen
--
I'm saving up 22 shillings and 10 pence (almost a pound!) per week to
buy an ARM-13.
http://www.antipope.org/charlie/blog-static/2018/11/brexit-means-brexit.html
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsub
Thomas Seeling via blfs-support
2018-11-29 09:42:59 UTC
Permalink
Hallo,
Post by Ken Moffat via blfs-support
Post by rslovers--- via blfs-support
I also encountered the same problem, --with-rpcgen=internal can still be
I'm somewhat puzzled by why these reports are now coming in - does
what is in the released 8.3 books (for whatever version we had
there), or the *current* svn books, not work for you ?
it just happened while I wanted to update this package from 2.1 to 2.3.3
on my systems. I'm not bleeding edge current with LFS so I didn't report
right on time when 2.3.3 was included in the book. My previous config
had "internal" which now fails, and the reason is that some lines in
Makefiles seem to be commented to disable references to the included rpcgen.

It was worthwile to report from my point of view because the error
messages look so absurd at first glance, where make thinks that it has
to call a one-char command because of an empty variable substitution.

$(RPCGEN) -l -o bla
results in
l: command not found

Tschau...Thomas
--
"Do you wanna be a legend or a passing footprint on the sands of time?"
Loading...