kerberos 1.3.1 and sudo

Andrew Hall halla3 at corp.earthlink.net
Tue Feb 3 13:55:30 EST 2004


Greetings,

This might be a little OT and if it is I apologize.  I am attempting to
compile kerberos and sudo on RedHat 8 and gcc 3.2.  Kerberos compiles
fine, and I install to a tmp DESTDIR.  I then point sudo's configure at
the newly installed kerberos libs and I get the following error with two
different versions of sudo (latest: 1.6.7p5 and 1.6.3): 

gcc -o sudo check.o getspwuid.o goodpath.o fileops.o find_path.o
interfaces.o logging.o parse.o sudo.o sudo_setenv.o tgetpass.o
sudo_auth.o  kerb5.o passwd.o sudo.tab.o lex.yy.o alloc.o defaults.o 
-L/home/user/usr/local/lib  -lcrypt -lkrb5 -lk5crypto -lcom_err   
/home/user/usr/local/lib/libkrb5.a(cc_file.o): In function
`krb5_fcc_generate_new':
/home/user/krb5-1.3.1/src/lib/krb5/ccache/cc_file.c:2063: the use of
`mktemp' is dangerous, better use `mkstemp'
/home/user/usr/local/lib/libkrb5.a(hst_realm.o): In function
`krb5_try_realm_txt_rr':
/home/user/krb5-1.3.1/src/lib/krb5/os/hst_realm.c:146: undefined
reference to `__res_search'
/home/user/krb5-1.3.1/src/lib/krb5/os/hst_realm.c:171: undefined
reference to `__dn_expand'
/home/user/krb5-1.3.1/src/lib/krb5/os/hst_realm.c:186: undefined
reference to `__dn_expand'
/home/user/usr/local/lib/libkrb5.a(locate_kdc.o): In function
`krb5int_make_srv_query_realm':
/home/user/krb5-1.3.1/src/lib/krb5/os/locate_kdc.c:585: undefined
reference to `__res_search'
/home/user/krb5-1.3.1/src/lib/krb5/os/locate_kdc.c:613: undefined
reference to `__dn_expand'
/home/user/krb5-1.3.1/src/lib/krb5/os/locate_kdc.c:641: undefined
reference to `__dn_expand'
/home/user/krb5-1.3.1/src/lib/krb5/os/locate_kdc.c:675: undefined
reference to `__dn_expand'
collect2: ld returned 1 exit status
make: *** [sudo] Error 1


The reason I post here is that I get the same error with both versions
of sudo, so I figured I start here.  Does anyone have an idea as to what
I am doing wrong? 

Thanks.  

Drew




More information about the Kerberos mailing list