Subject: pkg/23811: security/libgcrypt can't find libiconv
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <dgriffi@cs.csubak.edu>
List: netbsd-bugs
Date: 12/21/2003 02:27:43
>Number:         23811
>Category:       pkg
>Synopsis:       security/libgcrypt can't find libiconv
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 21 02:28:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     David Griffith
>Release:        1.6.1
>Organization:
>Environment:
NetBSD zaphod 1.6.1 NetBSD 1.6.1 (GENERIC) #0: Tue Apr  8 12:05:52 UTC 2003     autobuild@tgm.daemon.org:/autobuild/netbsd-1-6/i386/OBJ/autobuild/netbsd-1-6/src/sys/arch/i386/compile/GENERIC i386

>Description:
When trying to build or rebuild security/libcrypt or anything that requires it, the compile fails with a complaint that libiconv cannot be found.  For example:

cc -I/usr/pkg/include -O2 -I/usr/pkg/include -Wall -Wl,-R/usr/pkg/lib -o .libs/prime prime.o  -L/usr/pkg/lib ../src/.libs/libgcrypt.so /usr/pkg/lib/libintl.so -liconv -lc /usr/pkg/lib/libgpg-error.so -lintl -Wl,--rpath -Wl,/usr/pkg/lib
ld: cannot find -liconv
*** Error code 1

I discovered the problem while updating the local install of security/gnutls.

>How-To-Repeat:
See above.
>Fix:
Add the following line to security/libcrypt/Makefile right before the final .include:

.include "../../converters/libiconv/buildlink2.mk"

Please tell me if this is the correct way to fix problems like this.
>Release-Note:
>Audit-Trail:
>Unformatted: