Subject: pkg/15631: upgrade to UCD-SNMP-4.3.2 prevents pchar-1.4 from linking
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mlelstv@serpens.de>
List: netbsd-bugs
Date: 02/16/2002 11:59:47
>Number:         15631
>Category:       pkg
>Synopsis:       upgrade to UCD-SNMP-4.3.2 prevents pchar-1.4 from linking
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 16 03:00:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Michael van Elst
>Release:        NetBSD 1.5.1
>Organization:
none
>Environment:
	
System: NetBSD pepew 1.5.3_ALPHA NetBSD 1.5.3_ALPHA (PEPEW) #2: Sun Jan 27 01:56:25 MET 2002 src@pepew:/amd/fud.1st.de/d/0/src/sys/arch/i386/compile/PEPEW i386


>Description:
The UCD-SNMP package was recently upgrade to version 4.3.2 due to
some security problems.

The net/pchar package depends on ucd-snmp but fails to link:

c++ main.o  Kendall.o  Pctest.o PctestIpv4.o PctestIpv4File.o PctestIpv4Udp.o Pc
testIpv4Raw.o PctestIpv4Tcp.o PctestIpv4Icmp.o  ResultTable.o  TestRecord.o  ver
sion.o PctestIpv6.o PctestIpv6File.o PctestIpv6Icmp.o PctestIpv6Tcp.o  PctestIpv
6Udp.o GetIfInfo.o -L/usr/pkg/lib  -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lm -o pcha
r
GetIfInfo.o: In function `snmp_parse_oid(char *, unsigned long *, unsigned int *
)':
GetIfInfo.o(.text+0x15): undefined reference to `read_objid'
GetIfInfo.o(.text+0x29): undefined reference to `get_node'
GetIfInfo.o: In function `GetIfInfo::GetIfInfo(void *, Pctest *)':
GetIfInfo.o(.text+0xfb): undefined reference to `snmp_sess_init'
GetIfInfo.o(.text+0x105): undefined reference to `init_snmp'
GetIfInfo.o(.text+0x11a): undefined reference to `ds_get_int'
GetIfInfo.o(.text+0x1cd): undefined reference to `snmp_open'
GetIfInfo.o(.text+0x1eb): undefined reference to `snmp_sess_perror'
GetIfInfo.o(.text+0x1f8): undefined reference to `snmp_pdu_create'
GetIfInfo.o(.text+0x255): undefined reference to `snmp_close'
GetIfInfo.o(.text+0x26b): undefined reference to `snmp_add_null_var'
GetIfInfo.o(.text+0x298): undefined reference to `snmp_synch_response'
GetIfInfo.o(.text+0x3f0): undefined reference to `snmp_free_pdu'
GetIfInfo.o(.text+0x404): undefined reference to `snmp_pdu_create'
GetIfInfo.o(.text+0x452): undefined reference to `snmp_add_null_var'
GetIfInfo.o(.text+0x46f): undefined reference to `snmp_synch_response'
GetIfInfo.o(.text+0x525): undefined reference to `snmp_free_pdu'
GetIfInfo.o(.text+0x534): undefined reference to `snmp_close'

pchar is originally not linked against libsnmp, I guess that the
headers of ucd-snmp-4.3.2 pull in some functions that used to
be macros.


>How-To-Repeat:

upgrade net/ucd-snmp to 4.3.2 and try to install net/pchar

>Fix:

When the linking fails, you can modify the work/pchar-1.4/Makefile
to include the snmp and ssl libraries.

originally:
LIBS=-lm

modified:
LIBS=-lsnmp -lssl -lm

pchar will link and run.

>Release-Note:
>Audit-Trail:
>Unformatted: