NetBSD Problem Report #27292

Received: (qmail 14239 invoked by uid 605); 18 Oct 2004 18:12:16 -0000
Message-Id: <20041018181214.579042521E9@narn.netbsd.org>
Date: Mon, 18 Oct 2004 18:12:14 +0000 (UTC)
From: pocek@post.pl
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: pocek@post.pl
To: gnats-bugs@gnats.NetBSD.org
Subject: security/libgcrypt cannot find -lintl when building
X-Send-Pr-Version: www-1.0

>Number:         27292
>Category:       pkg
>Synopsis:       security/libgcrypt cannot find -lintl when building
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    ben
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 18 18:13:00 +0000 2004
>Closed-Date:    Thu Oct 21 22:21:25 +0000 2004
>Last-Modified:  Fri Oct 22 21:34:44 +0000 2004
>Originator:     Krzysztof Kotlenga
>Release:        
>Organization:
>Environment:
FreeBSD k6-2.site 5.2.1-RELEASE-p9 FreeBSD 5.2.1-RELEASE-p9 #0: Sat Jul  3 20:52:49 CEST 2004     root@k6-2.site:/usr/obj/usr/src/sys/SR  i386
>Description:
Building package security/libgcrypt under FreeBSD with the latest pkgsrc (Mon Oct 18 18:49 CEST 2004) fails with the following errors:

gcc -I/usr/pkgsrc/security/libgcrypt/work/.buildlink/include -O2 -Wall -Wl,-R/usr/pkg/lib -o .lib
s/prime prime.o  -L/usr/pkgsrc/security/libgcrypt/work/.buildlink/lib ../src/.libs/libgcrypt.so /
usr/pkgsrc/security/libgcrypt/work/.buildlink/lib/libgpg-error.so -lintl -liconv -Wl,--rpath -Wl,
/usr/pkg/lib -Wl,--rpath -Wl,/usr/pkgsrc/security/libgcrypt/work/.buildlink/lib
/usr/bin/ld: cannot find -lintl
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/security/libgcrypt/work/libgcrypt-1.2.0/tests
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/security/libgcrypt/work/libgcrypt-1.2.0
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/security/libgcrypt/work/libgcrypt-1.2.0
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/security/libgcrypt
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/security/libgcrypt

>How-To-Repeat:
cd /usr/pkgsrc/security/libgcrypt
bmake
>Fix:

>Release-Note:
>Audit-Trail:

From: Ben Collver <ben@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/27292 CVS commit: pkgsrc/security/libgcrypt
Date: Tue, 19 Oct 2004 03:24:38 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	ben
 Date:		Tue Oct 19 03:24:38 UTC 2004

 Modified Files:
 	pkgsrc/security/libgcrypt: Makefile

 Log Message:
 Add dependency on gettext-lib to provide libintl for platforms that do
 not have it built in.  May address PR#27292.


 To generate a diff of this commit:
 cvs rdiff -r1.21 -r1.22 pkgsrc/security/libgcrypt/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

Responsible-Changed-From-To: pkg-manager->ben 
Responsible-Changed-By: ben 
Responsible-Changed-When: Tue Oct 19 03:25:26 UTC 2004 
Responsible-Changed-Why:  
I'll handle this one. 
State-Changed-From-To: open->feedback 
State-Changed-By: ben 
State-Changed-When: Tue Oct 19 03:25:46 UTC 2004 
State-Changed-Why:  
I added a dependency on gettext-lib, please cvs update security/libgcrypt 
and verify whether this fixes the build on FreeBSD.  Thank you! 

From: Krzysztof Kotlenga <pocek@post.pl>
To: gnats-bugs@gnats.netbsd.org
Cc:  
Subject: Re: pkg/27292
Date: Tue, 19 Oct 2004 09:35:14 +0200

 > Synopsis: security/libgcrypt cannot find -lintl when building
 > 
 > State-Changed-From-To: open->feedback
 > State-Changed-By: ben
 > State-Changed-When: Tue Oct 19 03:25:46 UTC 2004
 > State-Changed-Why: 
 > I added a dependency on gettext-lib, please cvs update security/libgcrypt
 > and verify whether this fixes the build on FreeBSD.  Thank you!

 It fixes building in security/libgcrypt but packages that depend on it, eg.
 textproc/libxslt fail with the same error. Shouldn't that dependency be
 added to a buildlink3.mk file too? Regards.

From: Ben Collver <ben@NetBSD.org>
To: Krzysztof Kotlenga <pocek@post.pl>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/27292
Date: Tue, 19 Oct 2004 06:32:39 -0700

 On Tue, Oct 19, 2004 at 08:02:08AM -0000, Krzysztof Kotlenga wrote:
 >  It fixes building in security/libgcrypt but packages that depend on it, eg.
 >  textproc/libxslt fail with the same error. Shouldn't that dependency be
 >  added to a buildlink3.mk file too? Regards.

 I think this is the sort of thing handled by ELF and by libtool.  The
 dependency should show up if you:
 	grep dependency_libs PREFIX/lib/libgcrypt.la
 	ldd PREFIX/lib/libgcrypt.so

 Are these missing a dependency on libintl?  Thanks.
State-Changed-From-To: feedback->closed 
State-Changed-By: ben 
State-Changed-When: Thu Oct 21 22:20:59 UTC 2004 
State-Changed-Why:  
Problem resolved and verified by PR submitter.  Thank you for this PR! 

From: Ben Collver <ben@NetBSD.org>
To: Krzysztof Kotlenga <pocek@post.pl>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/27292
Date: Tue, 19 Oct 2004 06:32:39 -0700

 On Tue, Oct 19, 2004 at 08:02:08AM -0000, Krzysztof Kotlenga wrote:
 >  It fixes building in security/libgcrypt but packages that depend on it, eg.
 >  textproc/libxslt fail with the same error. Shouldn't that dependency be
 >  added to a buildlink3.mk file too? Regards.

 I think this is the sort of thing handled by ELF and by libtool.  The
 dependency should show up if you:
 	grep dependency_libs PREFIX/lib/libgcrypt.la
 	ldd PREFIX/lib/libgcrypt.so

 Are these missing a dependency on libintl?  Thanks.

From: Ben Collver <ben@NetBSD.org>
To: Krzysztof Kotlenga <pocek@post.pl>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/27292
Date: Wed, 20 Oct 2004 07:14:45 -0700

 On Tue, Oct 19, 2004 at 08:02:08AM -0000, Krzysztof Kotlenga wrote:
 >  It fixes building in security/libgcrypt but packages that depend on it, eg.
 >  textproc/libxslt fail with the same error. Shouldn't that dependency be
 >  added to a buildlink3.mk file too? Regards.

 It turns out that I added the dependency in the wrong place.  libgcrypt
 never uses gettext-lib directly, this is a dependency of libgpg-error.

 Please cvs update security/libgpg-error, and verify whether libgcrypt
 and libxslt build on FreeBSD.

 Thank you!

 Ben
>Unformatted:
 >Quarter:        
 >Keywords:       
 >Date-Required:  

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.