Subject: net/net-snmp build failure on darwin
To: None <tech-pkg@netbsd.org>
From: Mark E. Perkins <perkinsm@bway.net>
List: tech-pkg
Date: 10/08/2004 08:50:17
I'm trying to update net/ethereal, which requires net/net-snmp, and I get 
the errors shown below during the net-snmp build. Problem is that I can't 
find where the undefined symbols should actually be defined.

I have a (semi-urgent) need for ethereal, so was hoping someone has a quick 
fix for this.

This is Darwin 7.5.0 / MacOS X 10.3.5, pkgsrc updated yesterday (6 Oct).

Any clues?

Thanks,
Mark

---------------

  gcc -I../include -I.. -I./.. -I./../snmplib -I. -I./mibgroup -Imibgroup 
-no-cpp-precomp 
-I/Volumes/NetBSD/pkgsrc/net/net-snmp/work/.buildlink/include -O2 -Ddarwin 
-c snmpd.c -o snmpd.o >/dev/null 2>&1
/bin/sh ../libtool --mode=link gcc -O2 -I/usr/include 
-I/Volumes/NetBSD/pkg/include -Ddarwin -o snmpd snmpd.lo  -L/usr/lib 
-L/Volumes/NetBSD/pkg/lib libnetsnmpagent.la  libnetsnmpmibs.la 
helpers/libnetsnmphelpers.la  -lwrap ../snmplib/libnetsnmp.la -ldl -lkvm 
-lz -lcrypto -lm
gcc -O2 -I/Volumes/NetBSD/pkgsrc/net/net-snmp/work/.buildlink/include 
-Ddarwin -o .libs/snmpd .libs/snmpd.o 
-L/Volumes/NetBSD/pkgsrc/net/net-snmp/work/.buildlink/lib 
./.libs/libnetsnmpagent.dylib ./.libs/libnetsnmpmibs.dylib 
helpers/.libs/libnetsnmphelpers.dylib -lwrap 
../snmplib/.libs/libnetsnmp.dylib -ldl -lkvm -lz -lcrypto -lm
ld: Undefined symbols:
_get_address
_get_in_address
*** Error code 1

Stop.
bmake: stopped in /Volumes/NetBSD/pkgsrc/net/net-snmp/work/net-snmp-5.1.2/agent
*** Error code 1

Stop.
bmake: stopped in /Volumes/NetBSD/pkgsrc/net/net-snmp/work/net-snmp-5.1.2
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/net/net-snmp
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/net/net-snmp