NetBSD Problem Report #26952

Received: (qmail 8633 invoked by uid 605); 15 Sep 2004 05:56:45 -0000
Message-Id: <20040915055643.0519D2520EB@new-www.isc.netbsd.org>
Date: Wed, 15 Sep 2004 05:56:43 +0000 (UTC)
From: mikawa@terra.dti.ne.jp
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: mikawa@terra.dti.ne.jp
To: gnats-bugs@gnats.NetBSD.org
Subject: mail/fetchmail build fails if KERBEROS option is defined.
X-Send-Pr-Version: www-1.0

>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:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 15 05:57:00 +0000 2004
>Closed-Date:    Wed Sep 15 07:43:22 +0000 2004
>Last-Modified:  Wed Sep 15 07:44:00 +0000 2004
>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:
State-Changed-From-To: open->closed 
State-Changed-By: wiz 
State-Changed-When: Wed Sep 15 07:43:18 UTC 2004 
State-Changed-Why:  
Fixed, thanks! 

From: Thomas Klausner <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/26952 CVS commit: pkgsrc/mail/fetchmail
Date: Wed, 15 Sep 2004 07:43:01 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	wiz
 Date:		Wed Sep 15 07:43:01 UTC 2004

 Modified Files:
 	pkgsrc/mail/fetchmail: Makefile

 Log Message:
 It's better to fix the configure script in pre-configure than in
 post-configure.

 From Masanori Mikawa in PR 26952.


 To generate a diff of this commit:
 cvs rdiff -r1.146 -r1.147 pkgsrc/mail/fetchmail/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.