NetBSD Problem Report #43188
From ginsbach@netbsd.org Wed Apr 21 13:14:07 2010
Return-Path: <ginsbach@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 2BD8A63B873
for <gnats-bugs@gnats.NetBSD.org>; Wed, 21 Apr 2010 13:14:07 +0000 (UTC)
Message-Id: <20100421131406.CE1C163B181@mail.netbsd.org>
Date: Wed, 21 Apr 2010 13:14:06 +0000 (UTC)
From: ginsbach@NetBSD.org
Reply-To: ginsbach@NetBSD.org
To: gnats-bugs@gnats.NetBSD.org
Subject: nbpatch does not link on IRIX
X-Send-Pr-Version: 3.95
>Number: 43188
>Category: pkg
>Synopsis: nbpatch does not link on IRIX
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: joerg
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Apr 21 13:15:00 +0000 2010
>Closed-Date: Sun May 02 22:34:42 +0000 2010
>Last-Modified: Sun May 02 22:35:01 +0000 2010
>Originator: Brian Ginsbach
>Release: pkgsrc-2009Q4
>Organization:
NetBSD
>Environment:
System: IRIX pkgtest 6.5 01080747 IP32
>Description:
The nbpatch utility fails to link on IRIX.
===> Building for nbpatch-20091021
gcc -L/usr/pkgsrc/devel/nbpatch/work/libnbcompat -Wl,-R/usr/pkg/lib -o nbpatch patch.o pch.o inp.o util.o backupfile.o mkpath.o -lnbcompat
ld32: ERROR 33: Unresolved text symbol "basename" -- 1st referenced by pch.o.
Use linker option -v to see when and which objects, archives and dsos are loaded.
ld32: ERROR 33: Unresolved text symbol "dirname" -- 1st referenced by inp.o.
Use linker option -v to see when and which objects, archives and dsos are loaded.
ld32: INFO 152: Output file removed because of error.
collect2: ld returned 2 exit status
IRIX has basename() and dirname() functions but they require linking
with an additional library (-lgen).
>How-To-Repeat:
Attempt to compile nbpatch on an IRIX system.
>Fix:
Adding LIBS.IRIX += -lgen to the Makefile fixes the problem for IRIX.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->joerg
Responsible-Changed-By: gls@NetBSD.org
Responsible-Changed-When: Wed, 21 Apr 2010 16:36:25 +0000
Responsible-Changed-Why:
Over to maintainer
From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/43188: nbpatch does not link on IRIX
Date: Wed, 21 Apr 2010 20:04:11 +0200
On Wed, Apr 21, 2010 at 01:15:00PM +0000, ginsbach@NetBSD.org wrote:
> >Fix:
> Adding LIBS.IRIX += -lgen to the Makefile fixes the problem for IRIX.
Fine with me.
Joerg
State-Changed-From-To: open->closed
State-Changed-By: joerg@NetBSD.org
State-Changed-When: Sun, 02 May 2010 22:34:42 +0000
State-Changed-Why:
Committed.
From: Joerg Sonnenberger <joerg@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/43188 CVS commit: pkgsrc/devel/nbpatch
Date: Sun, 2 May 2010 22:33:27 +0000
Module Name: pkgsrc
Committed By: joerg
Date: Sun May 2 22:33:27 UTC 2010
Modified Files:
pkgsrc/devel/nbpatch: Makefile
Log Message:
From PR 43188: basename(3) and dirname(3) are in libgen on IRIX
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 pkgsrc/devel/nbpatch/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>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.