NetBSD Problem Report #31493

From www@netbsd.org  Thu Oct  6 11:31:44 2005
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id 086E263B850; Thu,  6 Oct 2005 11:31:44 +0000 (UTC)
Message-Id: <20051006113144.086E263B850@narn.netbsd.org>
Date: Thu,  6 Oct 2005 11:31:44 +0000 (UTC)
From: neil.hoggarth@physiol.ox.ac.uk
Reply-To: neil.hoggarth@physiol.ox.ac.uk
To: gnats-bugs@netbsd.org
Subject: mit-krb5-1.4.2nb2 fails to build with bison-2.1
X-Send-Pr-Version: www-1.0

>Number:         31493
>Category:       pkg
>Synopsis:       mit-krb5-1.4.2nb2 fails to build with bison-2.1
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    jlam
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 06 11:32:00 +0000 2005
>Closed-Date:    Fri May 05 09:26:52 +0000 2006
>Last-Modified:  Fri May 05 09:26:52 +0000 2006
>Originator:     Neil Hoggarth
>Release:        Solaris 9
>Organization:
Laboratory of Physiology, Oxford University
>Environment:
SunOS saros 5.9 Generic_118558-10 sun4u sparc SUNW,Ultra-30

>Description:
I'm attempting to build package mit-krb5-1.4.2nb2 on Solaris. The compilation process makes use of bison as a yacc replacement, but for input file "foo.y" bison produces an output file "foo.tab.c" rather than the traditional yacc fixed filename "y.tab.c". The mit-krb5 build seems to expect the traditional yacc fixed filename behaviour. Output from failed build:

/usr/pkg/bin/bison  getdate.y
getdate.y: conflicts: 4 shift/reduce
mv y.tab.c getdate.c
mv: cannot access y.tab.c
*** Error code 2

Stop.
bmake: stopped in /export/scratch/pkgsrc/security/mit-krb5/work/krb5-1.4.2/src/kadmin/cli


There is a second instance of the problem with ftpcmd.y in pkgsrc/security/mit-krb5/work/krb5-1.4.2/src/appl/gssftp/ftpd.


>How-To-Repeat:
Install bison-2.1 from pkgsrc.

cd /usr/pkgsrc/security/mit-krb5
bmake ALLOW_VULNERABLE_PACKAGES=1


(there is an unresolved information-disclosure vulnerability affecting the telnet client included in v1.4.2nb2, but it is better than the package version which I'm running currently, which has a DoS and remote-code-execution vulnerabilities in addition to the information-disclosure problem!).

>Fix:
I worked around by cd-ing into the appropriate work directories, making the appropriate objects by hand, then returning to the package's top level and restarting the make.

cd work/krb5-1.4.2/src/kadmin/cli
mv getdate.tab.c getdate.c
make getdate.o
cd -

According to the documentation, to get traditional yacc behaviour out of bison, one is supposed to run "bison -y", "bison --yacc".


>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->jlam
Responsible-Changed-By: reed@netbsd.org
Responsible-Changed-When: Thu, 06 Oct 2005 16:12:50 +0000
Responsible-Changed-Why:
Assigned to maintainer.


From: "Johnny C. Lam" <jlam@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/31493 CVS commit: pkgsrc/mk/tools
Date: Thu, 22 Dec 2005 18:55:42 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	jlam
 Date:		Thu Dec 22 18:55:41 UTC 2005

 Modified Files:
 	pkgsrc/mk/tools: replace.mk

 Log Message:
 If bison is used, always pass YACC="bison -y".  This should fix
 PR pkg/31493, where YACC="bison" was wrongly being passed to the
 configure script.


 To generate a diff of this commit:
 cvs rdiff -r1.144 -r1.145 pkgsrc/mk/tools/replace.mk

 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: jlam@netbsd.org
State-Changed-When: Thu, 22 Dec 2005 23:58:28 +0000
State-Changed-Why:
This should be fixed in a recent commit to the tools framework that ensures
that YACC="bison -y" if bison is used.  Please let me know if this fixes
the build problem for you.  Thanks!


From: Neil Hoggarth <neil.hoggarth@physiol.ox.ac.uk>
To: gnats-bugs@netbsd.org
Cc: jlam@netbsd.org, pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org
Subject: Re: pkg/31493 (mit-krb5-1.4.2nb2 fails to build with bison-2.1)
Date: Tue, 3 Jan 2006 15:30:01 +0000 (GMT)

 On Thu, 22 Dec 2005, jlam@netbsd.org wrote:

 > This should be fixed in a recent commit to the tools framework that ensures
 > that YACC="bison -y" if bison is used.  Please let me know if this fixes
 > the build problem for you.  Thanks!

 I can confirm that, with a newly updated pkgsrc tree, security/mit-krb5 
 now builds cleanly. No sign of any Yacc problems. Thanks for the fix.

 Regards,
 -- 
 Neil Hoggarth                                Departmental Computing Manager
 <neil.hoggarth@physiol.ox.ac.uk>                   Laboratory of Physiology
 http://www.physiol.ox.ac.uk/~njh/                  University of Oxford, UK

State-Changed-From-To: feedback->closed
State-Changed-By: wiz@netbsd.org
State-Changed-When: Fri, 05 May 2006 09:26:52 +0000
State-Changed-Why:
Feedback provided, problem fixed.


>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.