pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/39635: stunnel won't compile



The following reply was made to PR pkg/39635; it has been noted by GNATS.

From: Adrian Portelli <adrianp%stindustries.net@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/39635: stunnel won't compile
Date: Mon, 29 Sep 2008 15:01:09 +0100

 smb%cs.columbia.edu@localhost wrote:
 >> Number:         39635
 >> Category:       pkg
 >> Synopsis:       stunnel won't compile; missing libwrap
 >> Confidential:   no
 >> Severity:       serious
 >> Priority:       high
 >> Responsible:    pkg-manager
 >> State:          open
 >> Class:          sw-bug
 >> Submitter-Id:   net
 >> Arrival-Date:   Sat Sep 27 15:05:00 +0000 2008
 >> Originator:     Steven M. Bellovin
 >> Release:        NetBSD 4.0_STABLE
 >> Organization:
 >      
 >> Environment:
 >      
 >      
 > System: NetBSD juniata.machshav.com 4.0_STABLE NetBSD 4.0_STABLE (EMU-DOMU) 
 > #3: Sat May 24 18:11:32 GMT 2008 
 > smb%juniata.machshav.com@localhost:/usr/msrc/BUILD/obj/sys/arch/i386/compile/EMU-DOMU
 >  i386
 > Architecture: i386
 > Machine: i386
 >> Description:
 >      security/stunnel won't compile because it needs -lwrap:
 > 
 >      libwrap.o: In function `auth_libwrap':
 >      libwrap.c:(.text+0x38): undefined reference to `request_init'
 >      libwrap.c:(.text+0x41): undefined reference to `sock_host'
 >      libwrap.c:(.text+0x49): undefined reference to `hosts_access'
 > 
 >      I've seen this on amd64-current and i386-4.0.
 >> How-To-Repeat:
 >      cd /usr/pkgsrc/security/stunnel && make
 >> Fix:
 >      There are two work-arounds.  First, use mk.conf to disable the
 >      libwrap option if you don't need it.  Second, the following patch
 >      works on NetBSD but perhaps not on other platforms; besides,
 >      it's a bad patch to put into pkgsrc:
 > 
 >      --- configure   2008-05-18 07:46:08.000000000 -0400
 >      +++ /tmp/configure      2008-09-26 22:44:02.000000000 -0400
 >      @@ -23452,6 +23452,7 @@
 >                       cat >>confdefs.h <<\_ACEOF
 >       #define HAVE_LIBWRAP 1
 >       _ACEOF
 >      +LIBS="-lwrap $LIBS"
 
 This is how Gentoo fixed it as well but it would have thought that the
 tcp_wrappers/buildlink3.mk would have taken care of this.  If I bump
 stunnel to 4.26 locally it folds at the same point on OpenSolaris so I
 don't _think_ this is a NetBSD specific issue.
 
 adrian.
 


Home | Main Index | Thread Index | Old Index