Subject: Re: 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 13:50:21
On 10/8/04 12:57, I wrote:

> 
> hmmmm.... I just updated pkgsrc but still ran into the same errors. I 
> had already updated to libtool-base-1.5.10nb1 before my first 
> attempt/error, so that's not the problem....
> 
> It occurs to me that the last I built net-snmp successfully was probably 
> before updating to Apple's XCode 1.5, so I'm gzipping up my disk image 
> so I can try it on a machine with an older XCode (1.1, I think). We'll 
> see what happens.
> 
> Mark

net/net-snmp build dies the same way on a PB that has XCode 1.1, so that 
isn't my problem.

Does anyone reading this thread know where the undefined symbols *should* 
be coming from? To recap, the errors are included again below.

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