Subject: Re: net/net-snmp build failure on darwin
To: Mark E. Perkins <perkinsm@bway.net>
From: Adrian Portelli <adrianp@stindustries.net>
List: tech-pkg
Date: 10/08/2004 16:48:09
Just to update I can build it without any issue from pkgsrc updated a 
few minutes ago.  I updated to libtool-base-1.5.10nb1 before doing the 
build.

HTH,

adrian.


Mark E. Perkins wrote:

> 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
> 
>