Hi:

New to mutt and to this list--please let me know
if I make mistakes.

My question: is the following due to a configuration problem
on my system, or is it a problem with the mutt build?

The command line
$ ./configure --enable-imap --with-gss=~/tmp/krb5_compile/krb5-1.2.1/src
fails with "GSSAPI support not found."  In config.log I see:

configure:4303: gcc -o conftest -g -O2  -I/usr/include/ncurses 
-I/home/leon/tmp/krb5_compile/krb5-1.2.1/src/include  
-L/home/leon/tmp/krb5_compile/krb5-1.2.1/src/lib conftest.c -lgssapi_krb5 -lkrb5 
-lk5crypto -lcom_err  1>&5
/home/leon/tmp/krb5_compile/krb5-1.2.1/src/lib/libkrb5.a(hst_realm.o): In function 
`krb5_try_realm_txt_rr':
hst_realm.o(.text+0x12a): undefined reference to `res_search'
hst_realm.o(.text+0x1de): undefined reference to `dn_expand'
hst_realm.o(.text+0x27a): undefined reference to `dn_expand'
/home/leon/tmp/krb5_compile/krb5-1.2.1/src/lib/libkrb5.a(locate_kdc.o): In function 
`krb5_locate_srv_dns':
locate_kdc.o(.text+0x8c2): undefined reference to `res_search'
locate_kdc.o(.text+0x96b): undefined reference to `dn_expand'
locate_kdc.o(.text+0x9fa): undefined reference to `dn_expand'
locate_kdc.o(.text+0xc57): undefined reference to `dn_expand'

I was able to work around this by making the following change:

$ diff ~/tmp/configure.original configure
4289c4289
< LIBS="-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err $LIBS"
---
> LIBS="-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv $LIBS"

I then run make, which fails at the end; I make another change:

$ diff ~/tmp/Makefile.original Makefile
88c88
< MUTTLIBS =  -lncurses -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err
---
> MUTTLIBS =  -lncurses -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv

and run "make" again, successfully.  (Great software--thanks!)
The result is:

$ mutt -version
Mutt 1.2.4i (2000-07-07)

System: Linux 2.2.14-5.0 [using ncurses 4.0]
Compile options:
-DOMAIN
-DEBUG
-HOMESPOOL  +USE_SETGID  +USE_DOTLOCK  +USE_FCNTL  -USE_FLOCK
+USE_IMAP  +USE_GSS  +USE_SSL  -USE_POP  -HAVE_REGCOMP  +USE_GNU_REGEX  
+HAVE_COLOR  +HAVE_PGP  -BUFFY_SIZE -EXACT_ADDRESS  +ENABLE_NLS
SENDMAIL="/usr/sbin/sendmail"
MAILPATH="/var/spool/mail"
SHAREDIR="/usr/local/share/mutt"
SYSCONFDIR="/usr/local/etc"
ISPELL="/usr/bin/ispell"

(I also had ssl and regex turned on for the actual build.)

Reply via email to