problems configuring util-linux-2.12

Michael D. Norwick mnorwick at centurytel.net
Tue Oct 31 23:32:52 EST 2006


Kevin Coffman wrote:
> 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;
>>
> < snip >

> 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.
< snip>
>
>> 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/
>
>
> Not really. You're practically there...
>
> K.C.
>
>
I apologize for using up more bandwidth on this thread but I thought a
little more explanantion necessary. I built krb5-1.5.1 for testing
purposes, I did not patch it. I also wanted to make these krb5 headers
and libs available to nfs-utils.. My formatting was obscure as I wanted
to note that I was using CITI patched nfs-utils, and util-linux. I just ran;

rocinante:/usr/src/nfs-utils-1.0.10# ./configure --prefix=/opt
--enable-mount --with-krb5=/opt

and the top level makefile has _CFLAGS and _LIBS set as follows;

GSSAPI_CFLAGS = -I/usr/include/gssglue
GSSAPI_LIBS = -lgssapi -ldl

and

RPCSECGSS_CFLAGS = -I/usr/include/rpcsecgss -I/usr/include/gssglue
RPCSECGSS_LIBS = -lrpcsecgss -lgssapi -ldl

when I actually wanted them to be found in /opt/include/gssglue and
/usr/include/rpcsecgss. Err... just found the error, I was specifying
down one directory too far. Now configure found the includes I wanted.

Just a heads up the following error stops the build of nfs-utils - gssd
and (I am assuming) is probably due to krb5-1.5.1 includes and/or libs;

gssd_proc.c: In function ‘create_auth_rpc_client’:
gssd_proc.c:496: warning: implicit declaration of function ‘setfsuid’
if gcc -DHAVE_CONFIG_H -I. -I. -I../../support/include
-I../../support/include -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -Wall -pipe
-g -O2 -I/opt/include/rpcsecgss -I/opt/include -g -O2 -MT
gssd-krb5_util.o -MD -MP -MF ".deps/gssd-krb5_util.Tpo" -c -o
gssd-krb5_util.o `test -f 'krb5_util.c' || echo './'`krb5_util.c; \
then mv -f ".deps/gssd-krb5_util.Tpo" ".deps/gssd-krb5_util.Po"; else rm
-f ".deps/gssd-krb5_util.Tpo"; exit 1; fi
krb5_util.c: In function ‘limit_krb5_enctypes’:
krb5_util.c:907: warning: implicit declaration of function
‘gss_set_allowable_enctypes’
krb5_util.c: In function ‘gssd_obtain_kernel_krb5_info’:
krb5_util.c:953: warning: implicit declaration of function ‘read’
krb5_util.c: In function ‘gssd_setup_krb5_user_gss_ccache’:
krb5_util.c:185: warning: ‘best_match_stat.st_mtim.tv_sec’ may be used
uninitialized in this function
/bin/sh ../../libtool --tag=CC --mode=link gcc -Wall -pipe -g -O2 -o
gssd gssd-context.o gssd-context_mit.o gssd-context_heimdal.o
gssd-context_spkm3.o gssd-gss_util.o gssd-gss_oids.o gssd-err_util.o
gssd-gssd.o gssd-gssd_main_loop.o gssd-gssd_proc.o gssd-krb5_util.o
-L/opt/lib -L/opt/lib -Wl,-rpath -Wl,/opt/lib -lgssapi_krb5 -lkrb5
-lk5crypto -lcom_err -lresolv -ldl
mkdir .libs
gcc -Wall -pipe -g -O2 -o gssd gssd-context.o gssd-context_mit.o
gssd-context_heimdal.o gssd-context_spkm3.o gssd-gss_util.o
gssd-gss_oids.o gssd-err_util.o gssd-gssd.o gssd-gssd_main_loop.o
gssd-gssd_proc.o gssd-krb5_util.o -Wl,-rpath -Wl,/opt/lib -L/opt/lib
-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -ldl
gssd-context_mit.o: In function `serialize_krb5_ctx':
/usr/src/nfs-utils-1.0.10/utils/gssd/context_mit.c:538: undefined
reference to `gss_export_lucid_sec_context'
/usr/src/nfs-utils-1.0.10/utils/gssd/context_mit.c:575: undefined
reference to `gss_free_lucid_sec_context'
gssd-gssd.o: In function `main':
/usr/src/nfs-utils-1.0.10/utils/gssd/gssd.c:141: undefined reference to
`authgss_set_debug_level'
gssd-gssd_proc.o: In function `create_auth_rpc_client':
/usr/src/nfs-utils-1.0.10/utils/gssd/gssd_proc.c:604: undefined
reference to `rpcsecgss_clntudp_bufcreate'
/usr/src/nfs-utils-1.0.10/utils/gssd/gssd_proc.c:628: undefined
reference to `authgss_create_default'
/usr/src/nfs-utils-1.0.10/utils/gssd/gssd_proc.c:590: undefined
reference to `rpcsecgss_clnttcp_create'
/usr/src/nfs-utils-1.0.10/utils/gssd/gssd_proc.c:612: undefined
reference to `rpcsecgss_clnt_spcreateerror'
gssd-gssd_proc.o: In function `handle_spkm3_upcall':
/usr/src/nfs-utils-1.0.10/utils/gssd/gssd_proc.c:800: undefined
reference to `authgss_get_private_data'
gssd-gssd_proc.o: In function `handle_krb5_upcall':
/usr/src/nfs-utils-1.0.10/utils/gssd/gssd_proc.c:738: undefined
reference to `authgss_get_private_data'
/usr/src/nfs-utils-1.0.10/utils/gssd/gssd_proc.c:758: undefined
reference to `authgss_free_private_data'
gssd-krb5_util.o: In function `limit_krb5_enctypes':
/usr/src/nfs-utils-1.0.10/utils/gssd/krb5_util.c:910: undefined
reference to `gss_set_allowable_enctypes'
collect2: ld returned 1 exit status
make[2]: *** [gssd] Error 1
make[2]: Leaving directory `/usr/src/nfs-utils-1.0.10/utils/gssd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/nfs-utils-1.0.10/utils'
make: *** [all-recursive] Error

I think I'll return to krb5-1.4.x and try again. I did not apply any
lucid spkm3 patches as I was under the impression that they are optional
and apply to the kernel anyway.
Thank you for your time and help.

Michael





More information about the NFSv4 mailing list