Subject: Re: pkg/29880
To: None <,,>
From: Neil Hoggarth <>
List: pkgsrc-bugs
Date: 04/05/2005 09:15:02
The following reply was made to PR pkg/29880; it has been noted by GNATS.

From: Neil Hoggarth <>
Subject: Re: pkg/29880
Date: Tue, 5 Apr 2005 10:14:13 +0100 (BST)

 Some additional information regarding pkg/29880 (pkgsrc/net-snmp fails 
 to build on Solaris):
 I've observecd the same problem on Solaris 9.
 Looking at "work/net-snmp-5.2.1/config.log" suggests that the configure 
 tests for the -lwrap fail because the linker finds but there 
 are a large number of unresolved symbols referenced in that file. These 
 symbols all look to be socket API related.
 The problem seems to be that tcp_wrappers-7.6.1nb3 has a link-time 
 dependency on -lsocket in Solaris, but the net-snmp-5.2.1 package 
 doesn't use that library.
 By way of a workaround I added "LDFLAGS.SunOS+= -lsocket" to the 
 net-snmp-5.2.1 Makefile and I was then able to compile and install the 
 net-snmp package.
 I'm not sure whether that is a "proper" fix, or whether underlying 
 problem is actually with the way the tcp_wrappers pkg is built / linked 
 on Solaris, or possibly there is a Solaris specific problem with the 
 upstream net-snmp-5.2.1 release (the build problem in pkgsrc seems to 
 have been triggered by the change from v5.1.2 to v5.2.1)?
 Neil Hoggarth                                Departmental Computing Manager
 <>                   Laboratory of Physiology                  University of Oxford, UK