Subject: pkg/23811: security/libgcrypt can't find libiconv
To: None <>
From: None <>
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
>Originator:     David Griffith
>Release:        1.6.1
NetBSD zaphod 1.6.1 NetBSD 1.6.1 (GENERIC) #0: Tue Apr  8 12:05:52 UTC 2003 i386

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/ /usr/pkg/lib/ -liconv -lc /usr/pkg/lib/ -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.

See above.
Add the following line to security/libcrypt/Makefile right before the final .include:

.include "../../converters/libiconv/"

Please tell me if this is the correct way to fix problems like this.