Subject: pkg/26952: mail/fetchmail build fails if KERBEROS option is defined.
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <mikawa@terra.dti.ne.jp>
List: pkgsrc-bugs
Date: 09/15/2004 05:56:43
>Number: 26952
>Category: pkg
>Synopsis: mail/fetchmail build fails if KERBEROS option is defined.
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Sep 15 05:57:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Masanori Mikawa
>Release: NetBSD-2.0G
>Organization:
>Environment:
NetBSD raven 2.0G NetBSD 2.0G (RAVEN) #3: Tue Aug 24 01:54:00 JST 2004 root@raven:/a/usr.obj/sys/arch/i386/compile/RAVEN i386
>Description:
I tried making fetchmail-6.2.5nb2 that confirmed the KERBEROS option.
But it failed at linking libraries.
>How-To-Repeat:
# make KERBEROS=
[ ... ]
gcc -L/usr/lib -O2 -I/usr/include -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib rcfile_y.o rcfile_l.o socket.o getpass.o pop2.o pop3.o imap.o etrn.o odmr.o fetchmail.o idle.o env.o options.o daemon.o driver.o transact.o sink.o rfc822.o smtp.o xmalloc.o uid.o mxget.o md5ify.o cram.o kerberos.o gssapi.o opie.o rpa.o interface.o netrc.o base64.o report.o unmime.o conf.o checkalias.o smbdes.o smbencrypt.o smbmd4.o smbutil.o ipv6-connect.o lock.o -lcrypt -lintl -lintl -lkrb -ldes -lssl -lcrypto -lintl -lfl -o fetchmail
/usr/lib/libkrb.so: undefined reference to `net_write'
/usr/lib/libkrb.so: undefined reference to `init_error_table'
/usr/lib/libkrb.so: undefined reference to `rk_dns_free_data'
/usr/lib/libkrb.so: undefined reference to `base64_encode'
/usr/lib/libkrb.so: undefined reference to `rk_dns_lookup'
/usr/lib/libkrb.so: undefined reference to `net_read'
/usr/lib/libkrb.so: undefined reference to `initialize_error_table_r'
*** Error code 1
Stop.
make: stopped in /a/usr.tmp/mail/fetchmail/work.raven/fetchmail-6.2.5
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/mail/fetchmail
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/mail/fetchmail
#
>Fix:
--- pkgsrc/mail/fetchmail/Makefile.orig 2004-09-15 14:15:59.000000000 +0900
+++ pkgsrc/mail/fetchmail/Makefile
@@ -38,7 +38,7 @@ post-extract:
.endif
.if defined(REPLACE_KERBEROS_LIBS)
-post-configure:
+pre-configure:
cd ${WRKSRC} && \
for F in configure.in configure; do \
${SED} -e "s/-lkrb -ldes/-lkrb -ldes -lcom_err -lroken/" \
>Release-Note:
>Audit-Trail:
>Unformatted: