NetBSD Problem Report #46289

From www@NetBSD.org  Tue Apr  3 14:39:01 2012
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 9DAE163CD2A
	for <gnats-bugs@gnats.NetBSD.org>; Tue,  3 Apr 2012 14:39:01 +0000 (UTC)
Message-Id: <20120403143900.F1B7963BEE1@www.NetBSD.org>
Date: Tue,  3 Apr 2012 14:39:00 +0000 (UTC)
From: joern.clausen@uni-bielefeld.de
Reply-To: joern.clausen@uni-bielefeld.de
To: gnats-bugs@NetBSD.org
Subject: sysutils/cdrtools depends on libiconv
X-Send-Pr-Version: www-1.0

>Number:         46289
>Category:       pkg
>Synopsis:       sysutils/cdrtools depends on libiconv
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    solaris-pkg-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 03 14:40:03 +0000 2012
>Closed-Date:    Wed Apr 04 08:06:28 +0000 2012
>Last-Modified:  Wed Apr 04 08:10:04 +0000 2012
>Originator:     Jörn Clausen
>Release:        
>Organization:
University of Bielefeld
>Environment:
>Description:
sysutils/cdrtools contains a dependency on libiconv:

        ==> LINKING "OBJ/i386-sunos5-gcc/mkisofs"
Undefined                       first referenced
 symbol                             in file
libiconv_close                      ../libs/i386-sunos5-gcc/libsiconv.a(sic_nls.o)
libiconv_open                       ../libs/i386-sunos5-gcc/libsiconv.a(sic_nls.o)
libiconv                            OBJ/i386-sunos5-gcc/joliet.o
ld: fatal: Symbol referencing errors. No output written to OBJ/i386-sunos5-gcc/mkisofs

Why did this go unnoticed? I received this error when compiling my packages on Solaris 10 with a stand-alone GCC 4.7.0 (with enhanced rpath handling). My binaries created with lang/gcc34 also use this library:

$ ldd /usr/pkgsrc/20110926/bin/mkisofs
[...]
        libiconv.so.2 =>         /usr/pkgsrc/20110926/lib/libiconv.so.2
[...]

but didn't mind the missing dependency during build.
>How-To-Repeat:

>Fix:
--- Makefile    2012/04/03 14:14:19     1.1
+++ Makefile    2012/04/03 14:21:36
@@ -140,5 +140,6 @@
        ${INSTALL_DATA} ${WRKSRC}/cdrecord/cdrecord.dfl \
                ${DESTDIR}${PREFIX}/share/examples/cdrtools/cdrecord

+.include "../../converters/libiconv/buildlink3.mk"
 .include "../../mk/oss.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Tue, 03 Apr 2012 15:44:47 +0000
Responsible-Changed-Why:
Solaris pkgsrc PR.

This problem doesn't appear on NetBSD for me:
/usr/pkg/bin/mkisofs:
        -lutil.7 => /usr/lib/libutil.so.7
        -lgcc_s.1 => /usr/lib/libgcc_s.so.1
        -lc.12 => /usr/lib/libc.so.12
        -lintl.1 => /usr/lib/libintl.so.1

perhaps because iconv is not in /usr?


From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/46289 (sysutils/cdrtools depends on libiconv)
Date: Wed, 04 Apr 2012 12:11:23 +0900

 On Wed, 04 Apr 2012 00:44:48 +0900, <wiz@netbsd.org> wrote:

 > This problem doesn't appear on NetBSD for me:
 > /usr/pkg/bin/mkisofs:
 >         -lutil.7 => /usr/lib/libutil.so.7
 >         -lgcc_s.1 => /usr/lib/libgcc_s.so.1
 >         -lc.12 => /usr/lib/libc.so.12
 >         -lintl.1 => /usr/lib/libintl.so.1
 >
 > perhaps because iconv is not in /usr?

 Why not buildlinked with devel/gettext-lib?

 -- 
 OBATA Akio / obache@NetBSD.org

From: =?ISO-8859-1?Q?J=F6rn_Clausen?= <joern.clausen@uni-bielefeld.de>
To: gnats-bugs@NetBSD.org
Cc: OBATA Akio <obache@NetBSD.org>, solaris-pkg-people@NetBSD.org,
 gnats-admin@NetBSD.org, pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/46289 (sysutils/cdrtools depends on libiconv)
Date: Wed, 04 Apr 2012 09:00:25 +0200

 >   Why not buildlinked with devel/gettext-lib?

 Because I saw iconv related errors and didn't use my head???

 Of course adding a dependency to devel/gettext-lib is the correct fix 
 (just checked), and not only on Solaris (checked on NetBSD 5.1/i386, 
 same libraries referenced as before).

 -- 
   Jörn Clausen                             joern.clausen@uni-bielefeld.de
   Hochschulrechenzentrum                 http://www.uni-bielefeld.de/hrz/
   Universität Bielefeld

State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Wed, 04 Apr 2012 08:06:28 +0000
State-Changed-Why:
gettext-lib dependency added, thanks for the report & testing!


From: "Thomas Klausner" <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/46289 CVS commit: pkgsrc/sysutils/cdrtools
Date: Wed, 4 Apr 2012 08:06:16 +0000

 Module Name:	pkgsrc
 Committed By:	wiz
 Date:		Wed Apr  4 08:06:16 UTC 2012

 Modified Files:
 	pkgsrc/sysutils/cdrtools: Makefile

 Log Message:
 Add gettext-lib dependency for PR pkg/46289. Bump PKGREVISION.
 Thanks obache@ for the hint!


 To generate a diff of this commit:
 cvs rdiff -u -r1.86 -r1.87 pkgsrc/sysutils/cdrtools/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.