Subject: pkg/19417: net/wget package fails to build
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jaco@scrogneugneu.org>
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
>Closed-Date:
>Last-Modified:
>Originator:     Eric Jacoboni
>Release:        NetBSD 1.6K
>Organization:
None
>Environment:
System: NetBSD titine.scrogneugneu.org 1.6K NetBSD 1.6K (TITINE-$Revision: 1.532 $) #4: Thu Dec 12 20:50:26 CET 2002 root@titine.scrogneugneu.org:/usr/src.cvsup/obj/sys/arch/i386/compile/TITINE i386
Architecture: i386
Machine: i386
>Description:
On my box, a simple 'make' in net/wget fails because it don't find libiconv.

# make
[bla...]
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 bintl.so
/usr/local/lib/libiconv.so -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/buildlink2.mk" 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...

>How-To-Repeat:
See above
>Fix:
For a quick and dirty fix, see above
>Release-Note:
>Audit-Trail:
>Unformatted: