Subject: Re: net/net-snmp build failure on darwin
To: Mark E. Perkins <perkinsm@bway.net>
From: Adam Ciarcinski <adam@albedo.art.pl>
List: tech-pkg
Date: 10/08/2004 15:23:52
Very strange, I've just checked it couple days ago and it built
without any problems on 10.3.5.

I'm going to update pkgsrc on my Mac, and test it again. :)

Cheers,
Adam


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