NetBSD Problem Report #18156

Received: (qmail 29122 invoked by uid 605); 3 Sep 2002 15:18:14 -0000
Message-Id: <200209031518.g83FIBw02918@lyssa.zhadum.de>
Date: Tue, 3 Sep 2002 17:18:11 +0200 (CEST)
From: Matthias Scheler <tron@colwyn.zhadum.de>
Sender: gnats-bugs-owner@netbsd.org
Reply-To: tron@colwyn.zhadum.de
To: gnats-bugs@gnats.netbsd.org
Subject: buildlink2 wrapper scripts cause major build problems
X-Send-Pr-Version: 3.95

>Number:         18156
>Category:       pkg
>Synopsis:       buildlink2 wrapper scripts cause major build problems
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    jlam
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 03 15:19:00 +0000 2002
>Closed-Date:    Wed Sep 04 09:08:51 +0000 2002
>Last-Modified:  Mon Sep 09 15:16:28 +0000 2002
>Originator:     
>Release:        NetBSD 1.6G 2002-09-03 package sources
>Organization:
Matthias Scheler                                  http://scheler.de/~matthias/
>Environment:
System: NetBSD lyssa.zhadum.de 1.6G NetBSD 1.6G (LYSSA) #0: Tue Sep 3 11:48:21 CEST 2002 tron@lyssa.zhadum.de:/src/sys/compile/LYSSA i386
Architecture: i386
Machine: i386
>Description:
The "configure" script of "mutt" invokes "gcc" like this:

configure:7953: gcc -o conftest -Wall -pedantic -I/usr/pkg/include -O2 -I/usr/pkg/include   -I/usr/pkg/include -I/usr/pkg/include -I$(top_srcdir)/intl -L/usr/pkg/lib -L/usr/pkg/lib  -s -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -L/usr/pkg/lib conftest.c -lsocket -lnsl  -L/usr/pkgsrc/mail/mutt/work/.buildlink/lib -Wl,-R/usr/pkg/lib -lintl 1>&5

This call is of course bogus because "-I$(top_srcdir)/intl" wasn't replaced
properly. But before "buildlink2" was added to "pkgsrc" this worked
nevertheless because "gcc" just ignored the bougs "-I" argument. With
"buildlink2" however the wrapper shell script for "gcc" fails:

top_srcdir: not found

As the result the "configure" script makes many incorrect assumptions e.g.
that "wctype.h" is missing.

>How-To-Repeat:
cd /usr/pkgsrc/mail/mutt
make configure

>Fix:
Add proper quoting to the buildlink2 wrapper scripts.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->jlam 
Responsible-Changed-By: tron 
Responsible-Changed-When: Tue Sep 3 08:49:23 PDT 2002 
Responsible-Changed-Why:  
Johnny is the expert for the "buildlink2" framework. 
State-Changed-From-To: open->feedback 
State-Changed-By: jlam 
State-Changed-When: Tue Sep 3 14:46:33 PDT 2002 
State-Changed-Why:  
From the commit log for pkgsrc/mk/buildlink2/post-cache: 

---------------------------- 
revision 1.3 
date: 2002/09/03 21:36:18;  author: jlam;  state: Exp;  lines: +2 -2 
Add a missing shell wildcard which was causing the expression to not 
catch arguments with symbols that are special to the shell.  This should 
fix pkg/18156 by Matthias Scheler. 
---------------------------- 

Could you please update your pkgsrc and try to build mutt again?  I was 
able to configure and build successfully on my NetBSD-1.6_RC2/i386 machine 
and the config.log file didn't show the errors that you'd mentioned in the 
PR. 

Thanks, 

-- Johnny Lam <jlam@netbsd.org> 

From: Matthias Scheler <tron@zhadum.de>
To: jlam@netbsd.org
Cc: NetBSD GNATS <gnats-bugs@gnats.netbsd.org>
Subject: Re: pkg/18156
Date: Wed, 4 Sep 2002 10:39:36 +0200

 On Tue, Sep 03, 2002 at 09:48:49PM -0000, Johnny C. Lam wrote:
 > State-Changed-From-To: open->feedback
 > State-Changed-By: jlam
 > State-Changed-When: Tue Sep 3 14:46:33 PDT 2002
 > State-Changed-Why: 
 > >From the commit log for pkgsrc/mk/buildlink2/post-cache:
 > 
 > ----------------------------
 > revision 1.3
 > date: 2002/09/03 21:36:18;  author: jlam;  state: Exp;  lines: +2 -2
 > Add a missing shell wildcard which was causing the expression to not
 > catch arguments with symbols that are special to the shell.  This should
 > fix pkg/18156 by Matthias Scheler.
 > ----------------------------
 > 
 > Could you please update your pkgsrc and try to build mutt again?  I was
 > able to configure and build successfully on my NetBSD-1.6_RC2/i386 machine
 > and the config.log file didn't show the errors that you'd mentioned in the
 > PR.

 It now builds without any problems under Solaris 9 for me, too. Please
 close the PR.

 	Thanks a lot

 -- 
 Matthias Scheler                                  http://scheler.de/~matthias/
State-Changed-From-To: feedback->closed 
State-Changed-By: jlam 
State-Changed-When: Wed Sep 4 02:08:25 PDT 2002 
State-Changed-Why:  
PR author confirms that the bug is fixed.  Thanks for the PR! 

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