Problems compiling HEAD from CVS

Juergen Hasch Hasch at
Sun Jan 6 04:42:03 GMT 2002

Hello Mats,

Am Sonntag, 6. Januar 2002 13:08 schrieb Mats olsson:
> Hi everyone
> I have been tryng to install 3.0 alpha from CVS accordingly to the
> The box is a debian 2.2 installed from cd with the debian 2.2.17 default
> kernel.
> I downloaded and installed openldap with ./configure make make depend make
> install
> after that i downloaded and install MIT Kerberos with ./configure
> make make check make install
> finally i tried to compile and install samba with ./configure, checked the
> include/config.h for have_ldap and have_krb5. They there both defined. I
> ran make and i compiles with a few warnings until it tries to link smbd
> then it fails with the following messages
> /usr/local/lib/libkrb5.a(init_ctx.o): In function
> `krb5_set_default_in_tkt_ktypes':
> init_ctx.o(.text+0x43a): undefined reference to `valid_enctype'
> /usr/local/lib/libkrb5.a(init_ctx.o): In function `get_profile_etype_list':
> init_ctx.o(.text+0x6c2): undefined reference to `krb5_string_to_enctype'
> /usr/local/lib/libkrb5.a(init_ctx.o): In function
> `krb5_set_default_tgs_ktypes':
> init_ctx.o(.text+0x7da): undefined reference to `valid_enctype'
> /usr/local/lib/libkrb5.a(decrypt_tk.o): In function
> `krb5_decrypt_tkt_part': decrypt_tk.o(.text+0x12): undefined reference to
> `valid_enctype'
> /usr/local/lib/libkrb5.a(gc_frm_kdc.o): In function
> `krb5_get_cred_from_kdc_opt':
> gc_frm_kdc.o(.text+0x55f): undefined reference to `valid_enctype'
> gc_frm_kdc.o(.text+0x838): undefined reference to `valid_enctype'
> gc_frm_kdc.o(.text+0xb69): undefined reference to `valid_enctype'
> /usr/local/lib/libkrb5.a(send_tgs.o)(.text+0x3ca): more undefined
> references to `valid_enctype' follow
> /usr/local/lib/libkrb5.a(ktf_g_ent.o): In function `krb5_ktfile_get_entry':
> ktf_g_ent.o(.text+0x9e): undefined reference to `krb5_c_enctype_compare'
> collect2: ld returned 1 exit status
> make: *** [bin/smbd] Error 1

I had the same problems here, using SuSe 7.3.
After playing with the LIBS line in the Makefile I got Samba to link.
This is my new LIBS line:
LIBS=-lacl -lresolv -lcups -lnsl -ldl -lcrypt -lcom_err -lgssapi_krb5 -lkrb5 
-lk5crypto -llber -lldap -lpam -lpopt

Take a look if you also have libgssapi_krb5.


More information about the samba-technical mailing list