Problem compiling krb5 1.2.6

Derek Atkins warlord at MIT.EDU
Tue Oct 1 19:34:00 EDT 2002


Add -lresolv (you need it with -lhesiod)

-derek

Pierre <pierre at epinetworx.com> writes:

> Hi,
> 
> I try to compile krb5-1.2.6 on my GNU/Linux system with gcc-3.2
> there was no problem with the configure, but for the make I got this :
> 
> [...]
> making all in lib/kadm5/unit-test...
> gmake[3]: Entering directory `/tmp/krb5-1.2.6/src/lib/kadm5/unit-test'
> gcc -L../../../lib -Wl,-rpath -Wl,/usr/local/lib -o randkey-test
> randkey-test.o \
> 	-lkadm5srv -lhesiod  -lkdb5 ../../../lib/libdb.a -lgssrpc
> -ldyn -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err
> ../../../lib/libdb.a(hash.o): In function `__kdb2_hash_open':
> hash.o(.text+0x3a4): the use of `tmpnam' is dangerous, better use
> `mkstemp'
> /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libhesiod.a(hesiod.o):
> In function `get_txt_records':
> hesiod.o(.text+0x89d): undefined reference to `__res_mkquery'
> hesiod.o(.text+0x8c5): undefined reference to `__res_send'
> hesiod.o(.text+0x925): undefined reference to `__dn_skipname'
> hesiod.o(.text+0x9ee): undefined reference to `__dn_skipname'
> collect2: ld returned 1 exit status
> gmake[3]: *** [randkey-test] Error 1
> gmake[3]: Leaving directory `/tmp/krb5-1.2.6/src/lib/kadm5/unit-test'
> gmake[2]: *** [all-recurse] Error 1
> gmake[2]: Leaving directory `/tmp/krb5-1.2.6/src/lib/kadm5'
> gmake[1]: *** [all-recurse] Error 1
> gmake[1]: Leaving directory `/tmp/krb5-1.2.6/src/lib'
> gmake: *** [all-recurse] Error 1
> 
> 
> It would be great if you could help me with this !
> 
> Best regards,
> 
> Pierre.
> _______________________________________________
> krbdev mailing list             krbdev at mit.edu
> http://mailman.mit.edu/mailman/listinfo/krbdev

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available



More information about the krbdev mailing list