Subject: pkg/19417: net/wget package fails to build
To: None <>
From: None <>
List: netbsd-bugs
Date: 12/16/2002 20:53:19
>Number:         19417
>Category:       pkg
>Synopsis:       wget build fails (libiconv related)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 16 11:54:01 PST 2002
>Originator:     Eric Jacoboni
>Release:        NetBSD 1.6K
System: NetBSD 1.6K NetBSD 1.6K (TITINE-$Revision: 1.532 $) #4: Thu Dec 12 20:50:26 CET 2002 i386
Architecture: i386
Machine: i386
On my box, a simple 'make' in net/wget fails because it don't find libiconv.

# make
checking for includes... found
checking for RSA_new in -lcrypto... no
checking for SSL_new in -lssl... no
ERROR: Failed to find OpenSSL libraries.
*** Error code 2

Looking at config.log shows it's a problem retated to libiconf :

cc -o conftest -O2 -I/usr/local/include -I/usr/include
-I/usr/local/include -Wl, -R/usr/local/lib conftest.c -L/usr/lib
-L/usr/local/lib -lssl /usr/local/lib/li
/usr/local/lib/ -lc -Wl,--rpath -Wl,/usr/local/lib
-Wl,--rpa th -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/lib
ld: cannot find -liconv
configure: failed program was:
#line 7390 "configure"
#include "confdefs.h" 
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */ 
char SSL_new();

Adding .include "../../converters/libiconv/" in the
Makefile solves the problem

As i frequently encounters problems with libiconv and as some packages
refuse to build on my system since a loooong time (qt3-libs, ptl,
etc.), i wonder if this problem is related to this particular port or
with my own system...

See above
For a quick and dirty fix, see above