problems configuring util-linux-2.12
Kevin Coffman
kwc at citi.umich.edu
Mon Oct 30 22:54:19 EST 2006
See my concerns/comments below:
On 10/30/06, Michael D. Norwick <mnorwick at centurytel.net> wrote:
> I've been trying to build nfs-utils taking a clue from Mr. Fields remark
> that nfs-utils includes it's own 'mount' program. I did try making
> util-linux but it bombed trying to compile;
>
> cc -s fsck.minix.o -o fsck.minix
> cc -c -pipe -O2 -m486 -fomit-frame-pointer -I../lib -Wall
> -Wmissing-prototypes -Wstrict-prototypes -DNCH=1 -D_FILE_OFFSET_BITS=64
> -DSBINDIR=\"/sbin\" -DUSRSBINDIR=\"/usr/sbin\" -DLOGDIR=\"/var/log\"
> -DVARPATH=\"/var\" -DLOCALEDIR=\"/usr/share/locale\" -O2 mkfs.minix.c -o
> mkfs.minix.o
> mkfs.minix.c: In function 'setup_tables':
> mkfs.minix.c:476: error: invalid lvalue in assignment
> mkfs.minix.c:477: error: invalid lvalue in assignment
> mkfs.minix.c:478: error: invalid lvalue in assignment
> mkfs.minix.c:496: error: invalid lvalue in assignment
> mkfs.minix.c:497: error: invalid lvalue in assignment
> mkfs.minix.c:498: error: invalid lvalue in assignment
> mkfs.minix.c:505: error: invalid lvalue in assignment
> make[1]: *** [mkfs.minix.o] Error 1
> make[1]: Leaving directory `/usr/src/util-linux-2.12/disk-utils'
> make: *** [all] Error 1
I'm ignoring this for now, but it doesn't appear to have anything to
do with -lcrypt, and I'm betting you don't need mkfs.minux.
> Alas, nfs-utils has it's own issues. I built krb5-1.5.1, (CITI patched)
You must be reading the wrong CITI web pages if you think you need a
patched Kerberos to build nfs-utils. The only page that mentions that
is for a special "alpha" release. You certainly don't want to use the
versions of things referenced from that page. Use this page instead:
http://www.citi.umich.edu/projects/nfsv4/linux/
> librpcsecgss-0.14, and (CITI patched) libgssapi-0.10 and installed to
> /opt to keep them away from Debian installed binaries. I issued the
> following to (CITI patched) nfs-utils-1.0.10 ./configure;
>
> rocinante:/usr/src/nfs-utils-1.0.10# ./configure --prefix=/opt
> --enable-mount --with-krb5=/opt
> RPCSECGSS_CFLAGS=-I/opt/include/rpcsecgss/rpc RPCSECGSS_LIBS=-L/opt/lib
> GSSAPI_CFLAGS=-I/opt/include/gssglue/gssapi GSSAPI_LIBS=-L/opt/lib
You should not have to specify RPCSECGSS_* or GSSAPI_* manually. If
you configured librpcsecgss and libgssapi using "--prefix=", they
should produce the right pkgconfig data. You will have to set
PKG_CONFIG_PATH to find the right pkgconfig files before running
configure for nfs-utils. (You probably need to set it to something
different that what the error message suggests.)
They would have set "RPCSECGSS_CFLAGS=-I/opt/include/rpcsecgss" and
"GSSAPI_CFLAGS=-I/opt/include/gssglue". (Note the "missing" final
directory.)
> So I'm guessing that mere mortals should stick with Debian and Fedora
> binaries and leave gcc and make to the high priests.:)
Not really. You're practically there...
K.C.
More information about the NFSv4
mailing list