NetBSD Problem Report #37999
From jwise@draga.com Mon Feb 11 14:54:32 2008
Return-Path: <jwise@draga.com>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id 4721E63BA67
for <gnats-bugs@gnats.NetBSD.org>; Mon, 11 Feb 2008 14:54:32 +0000 (UTC)
Message-Id: <200802111454.m1BEsPug003362@himring.draga.com>
Date: Mon, 11 Feb 2008 09:54:25 -0500 (EST)
From: jwise@draga.com
Reply-To: jwise@draga.com
To: gnats-bugs@gnats.NetBSD.org
Subject: pkgsrc-current's security/sudo does not build on the 3.0.3 branch
X-Send-Pr-Version: 3.95
>Number: 37999
>Category: pkg
>Synopsis: pkgsrc-current's security/sudo does not build on the 3.0.3 branch
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Feb 11 14:55:00 +0000 2008
>Closed-Date: Wed May 21 17:06:39 +0000 2008
>Last-Modified: Wed May 21 17:06:39 +0000 2008
>Originator: Jim Wise
>Release: NetBSD 3.0.3_PATCH (January 3 sources)
>Organization:
Jim Wise
jwise@draga.com
>Environment:
System: NetBSD himring.draga.com 3.0.3_PATCH NetBSD 3.0.3_PATCH (HIMRING2-1.661.2.8.2.1) #15: Thu Jan 3 03:30:30 EST 2008 root@himring.draga.com:/home/NetBSD-3/build/obj/i386/sys/arch/i386/compile/HIMRING2 i386
Architecture: i386
Machine: i386
>Description:
security/sudo cannot be built on the 3.0.3 branch due to two symbols which
are present in <krb5/krb5-protos.h>, but not defined in libkrb5.
>How-To-Repeat:
$ uname -srp
NetBSD 3.0.3_PATCH i386
$ pwd
/usr/pkgsrc/security/sudo
$ make
[...]
cc -o sudo check.o env.o getspwuid.o gettime.o goodpath.o fileops.o
find_path.o interfaces.o logging.o parse.o set_perms.o sudo.o sudo_edit.o
tgetpass.o zero_bytes.o sudo_auth.o kerb5.o passwd.o sudo.tab.o lex.yy.o
alloc.o defaults.o memrchr.o -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib
-lutil -L/usr/lib -lkrb5 -lasn1 -ldes -lroken -lcrypto -lcom_err -lcrypt
kerb5.o(.text+0x1b6): In function `kerb5_verify':
: undefined reference to `krb5_get_init_creds_opt_alloc'
kerb5.o(.text+0x294): In function `kerb5_verify':
: undefined reference to `krb5_get_init_creds_opt_free'
*** Error code 1
>Fix:
Not sure. Use of these symbols does not seem to be governed by a
preprocessor define, and I'm not sure what the proper replacement is (or
whether this is a heimdal build issue).
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->taca
Responsible-Changed-By: obache@narn.netbsd.org
Responsible-Changed-When: Mon, 11 Feb 2008 15:15:18 +0000
Responsible-Changed-Why:
taca did recent updates.
From: Takahiro Kambe <taca@back-street.net>
To: gnats-bugs@NetBSD.org, obache@NetBSD.org
Cc:
Subject: Re: pkg/37999 (pkgsrc-current's security/sudo does not build on
the 3.0.3 branch)
Date: Tue, 12 Feb 2008 00:34:21 +0900 (JST)
In message <20080211151521.2095F63BAF6@narn.NetBSD.org>
on Mon, 11 Feb 2008 15:15:21 +0000 (UTC),
obache@NetBSD.org wrote:
> Responsible-Changed-From-To: pkg-manager->taca
> Responsible-Changed-By: obache@narn.netbsd.org
> Responsible-Changed-When: Mon, 11 Feb 2008 15:15:18 +0000
> Responsible-Changed-Why:
> taca did recent updates.
I don't have NetBSD 3.0.3 just now and I don't have enough time to
spend fixing it in these months. :-(
--
Takahiro Kambe <taca@NetBSD.org>/<taca@back-street.net>
Responsible-Changed-From-To: taca->pkg-manager
Responsible-Changed-By: obache@narn.netbsd.org
Responsible-Changed-When: Mon, 11 Feb 2008 15:40:42 +0000
Responsible-Changed-Why:
taca is busy. rest.
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/37999: pkgsrc-current's security/sudo does not build on the 3.0.3 branch
Date: Sun, 24 Feb 2008 01:19:28 +0900
On Mon, 11 Feb 2008 23:55:01 +0900, <jwise@draga.com> wrote:
> cc -o sudo check.o env.o getspwuid.o gettime.o goodpath.o fileops.o
> find_path.o interfaces.o logging.o parse.o set_perms.o sudo.o sudo_edit.o
> tgetpass.o zero_bytes.o sudo_auth.o kerb5.o passwd.o sudo.tab.o lex.yy.o
> alloc.o defaults.o memrchr.o -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib
> -lutil -L/usr/lib -lkrb5 -lasn1 -ldes -lroken -lcrypto -lcom_err -lcrypt
> kerb5.o(.text+0x1b6): In function `kerb5_verify':
> : undefined reference to `krb5_get_init_creds_opt_alloc'
> kerb5.o(.text+0x294): In function `kerb5_verify':
> : undefined reference to `krb5_get_init_creds_opt_free'
> *** Error code 1
>
>
>> Fix:
> Not sure. Use of these symbols does not seem to be governed by a
> preprocessor define, and I'm not sure what the proper replacement is (or
> whether this is a heimdal build issue).
Yes.
But if function "krb5_verify_user" exists, those functions should no be used,
and NetBSD 3.0.3 have function krb5_verify_user.
It seems that configure script is something wrong and
skip some tests by error.
checking for syslog... yes
checking for getprogname... yes
test: no: unexpected operator
checking for krb5-config... yes
checking whether we are using Heimdal... yes
test: yes: unexpected operator
checking for library containing crypt... -lcrypt
checking for log file location... /var/log/sudo.log
checking for timestamp file location... /var/run/sudo
--
"Of course I love NetBSD":-)
OBATA Akio / obache@NetBSD.org
From: Takahiro Kambe <taca@back-street.net>
To: gnats-bugs@NetBSD.org, jwise@draga.com
Cc:
Subject: Re: pkg/37999: pkgsrc-current's security/sudo does not build on
the 3.0.3 branch
Date: Sun, 09 Mar 2008 14:48:55 +0900 (JST)
I've got some time.
In message <20080211145501.0EC5F63BAF6@narn.NetBSD.org>
on Mon, 11 Feb 2008 14:55:01 +0000 (UTC),
jwise@draga.com wrote:
> >Environment:
> System: NetBSD himring.draga.com 3.0.3_PATCH NetBSD 3.0.3_PATCH (HIMRING2-1.661.2.8.2.1) #15: Thu Jan 3 03:30:30 EST 2008 root@himring.draga.com:/home/NetBSD-3/build/obj/i386/sys/arch/i386/compile/HIMRING2 i386
> Architecture: i386
> Machine: i386
> >Description:
> security/sudo cannot be built on the 3.0.3 branch due to two symbols which
> are present in <krb5/krb5-protos.h>, but not defined in libkrb5.
This problem isn't 3.0.3 branch specific but NetBSD current has the
same problem.
kerb5.o: In function `kerb5_verify':
kerb5.c:(.text+0x77): undefined reference to `krb5_get_init_creds_opt_alloc'
kerb5.c:(.text+0xb4): undefined reference to `krb5_get_init_creds_opt_free'
*** Error code 1
sudo asuumes newer version of kerberos (heimdal) which has these
krb5_get_init_creds_opt_alloc() and krb5_get_init_creds_opt_free().
It could be solved by making sudo depends on security/heimdal or ask
sudo's developper to support older heimdal release.
--
Takahiro Kambe <taca@back-street.net>
From: Takahiro Kambe <taca@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/37999 CVS commit: pkgsrc/security/sudo
Date: Tue, 11 Mar 2008 15:52:51 +0000 (UTC)
Module Name: pkgsrc
Committed By: taca
Date: Tue Mar 11 15:52:51 UTC 2008
Modified Files:
pkgsrc/security/sudo: Makefile distinfo options.mk
pkgsrc/security/sudo/patches: patch-aa patch-af patch-ag
Added Files:
pkgsrc/security/sudo/patches: patch-ai
Log Message:
Update sudo package to 1.6.9p14.
pkgsrc changes:
- Explict to depends security/heimdal package when kerberos option is
specified. PR pkg/37999 should be fixed.
Change:
646) Sudo will now set the nproc resource limit to unlimited on Linux
systems to work around Linux's setuid() resource limit semantics.
On PAM systems the resource limits will be reset by pam_limits.so
before the command is executed.
647) SELinux support that can be used to implement role based access
control (RBAC). A role and (optional) type may be specified
in sudoers or on the command line. These are then used in the
security context that the command is run as.
648) Fixed a Kerberos 5 compilation problem with MIT Kerberos.
Sudo 1.6.9p13 released.
649) Fixed an invalid assumption in the PAM conversation function
introduced in version 1.6.9p9. The conversation function may
be called for non-password reading purposes as well.
650) Fixed freeing an uninitialized pointer in -l mode, introduced in
version 1.6.9p13.
651) Check /etc/sudoers after LDAP even if the user was found in LDAP.
This allows Defaults options in /etc/sudoers to take effect.
652) Add missing checks for enforcing mode in SELinux RBAC mode.
Sudo 1.6.9p14 released.
To generate a diff of this commit:
cvs rdiff -r1.108 -r1.109 pkgsrc/security/sudo/Makefile
cvs rdiff -r1.52 -r1.53 pkgsrc/security/sudo/distinfo
cvs rdiff -r1.14 -r1.15 pkgsrc/security/sudo/options.mk
cvs rdiff -r1.17 -r1.18 pkgsrc/security/sudo/patches/patch-aa
cvs rdiff -r1.19 -r1.20 pkgsrc/security/sudo/patches/patch-af
cvs rdiff -r1.11 -r1.12 pkgsrc/security/sudo/patches/patch-ag
cvs rdiff -r0 -r1.4 pkgsrc/security/sudo/patches/patch-ai
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->feedback
State-Changed-By: taca@NetBSD.org
State-Changed-When: Tue, 11 Mar 2008 15:58:21 +0000
State-Changed-Why:
Dose updated sudo package solve your problem?
State-Changed-From-To: feedback->closed
State-Changed-By: jwise@NetBSD.org
State-Changed-When: Wed, 21 May 2008 17:06:39 +0000
State-Changed-Why:
This does indeed fix the problem. Thanks.
>Unformatted:
(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.