Subject: pkg/29955: mail/fetchmail fails to configure on NetBSD 2.0 with Kerberos V
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <j+nbsd@2005.salmi.ch>
List: pkgsrc-bugs
Date: 04/12/2005 09:36:00
>Number:         29955
>Category:       pkg
>Synopsis:       mail/fetchmail fails to configure on NetBSD 2.0 with Kerberos V
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 12 09:36:00 +0000 2005
>Originator:     Jukka Salmi
>Release:        NetBSD 2.0_STABLE
>Environment:
System: NetBSD bart.stasoft.ch 2.0_STABLE NetBSD 2.0_STABLE (GENERIC) #0: Fri Apr 8 00:46:00 CEST 2005 build@bart.stasoft.ch:/build/nbsd/i386/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
Using current pkgsrc, building mail/fetchmail with Kerberos V support fails
on NetBSD 2.0 systems. It works fine with NetBSD current.
>How-To-Repeat:
$ cd pkgsrc/mail/fetchmail
$ make show-options
available: gssapi inet6 kerberos kerberos4 ssl
default: canna curses esound gif gssapi inet6 kerberos sasl sj3 ssl ssl wnn4 x11
enabled: gssapi inet6 kerberos ssl
$ make configure
[...]
checking for krb5_init_context in -lkrb5... no
configure: error: Kerberos 5 libraries not found
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/mail/fetchmail
===> /build/pkg/mail/fetchmail/work/.configure_done [fetchmail-6.2.5nb4] ===> 
===> /build/pkg/mail/fetchmail/work/.configure_done [fetchmail-6.2.5nb4] ===> There was an error during the ``configure'' phase.
===> /build/pkg/mail/fetchmail/work/.configure_done [fetchmail-6.2.5nb4] ===> Please investigate the following for more information:
===> /build/pkg/mail/fetchmail/work/.configure_done [fetchmail-6.2.5nb4] ===>      * config.log
===> /build/pkg/mail/fetchmail/work/.configure_done [fetchmail-6.2.5nb4] ===>      * /build/pkg/mail/fetchmail/work/.work.log
===> /build/pkg/mail/fetchmail/work/.configure_done [fetchmail-6.2.5nb4] ===> 
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/mail/fetchmail

.../work/fetchmail-6.2.5/config.log reveals:

configure:14314: checking for krb5_init_context in -lkrb5
configure:14344: cc -o conftest -O2 -I/usr/include/krb5 -I/usr/include   -I/usr/include/krb5 -I/usr/include  -O2 -I/usr/include/krb5 -I/usr/include -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib conftest.c -lkrb5  -L/usr/lib -lasn1 -lroken -lcom_err -ldes -lcrypt  -lintl -lintl >&5
/usr/lib/libkrb5.so: undefined reference to `RAND_write_file'
/usr/lib/libkrb5.so: undefined reference to `DES_set_odd_parity'
/usr/lib/libkrb5.so: undefined reference to `RAND_add'
/usr/lib/libkrb5.so: undefined reference to `SHA1_Init'
/usr/lib/libkrb5.so: undefined reference to `DES_cbc_cksum'
/usr/lib/libkrb5.so: undefined reference to `RAND_egd_bytes'
/usr/lib/libkrb5.so: undefined reference to `RC4_set_key'
/usr/lib/libkrb5.so: undefined reference to `SHA1_Update'
[...]
>Fix:
The fix to PR 26170 added code to the configure script to make Kerberos V
work on NetBSD, but this code is only used if --with-kerberos5=yes was
specified, and options.mk sets --with-kerberos5=${KRB5BASE}.
All it needs to fix this is probably a small modification to patch-ae. I'll
send a diff in a minute.