Date: Fri, 07 May 2010 10:52:45 -0400 From: Sean McAfee <smcafee@collaborativefusion.com> To: =?ISO-8859-1?Q?Olivier_Cochard-Labb=E9?= <olivier@freenas.org> Cc: freebsd-ports-mailinglist <freebsd-ports@freebsd.org> Subject: Re: Building net-mgmt/net-snmp fails Message-ID: <4BE4293D.3030408@collaborativefusion.com> In-Reply-To: <x2h3131aa531005061431vfe41e5dt701392f483785c5d@mail.gmail.com> References: <x2h3131aa531005061431vfe41e5dt701392f483785c5d@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Olivier Cochard-Labbé wrote: > Hi all, > > since some days, I can't compile net-snmp on my FreeBSD 8-Stable using > the default make value. > > I've got this error message: > > net-snmp-5.4.2.1/agent/.libs/libnetsnmpagent.so -lwrap -lkvm /usr/ports/net-mgmt > /net-snmp/work/net-snmp-5.4.2.1/snmplib/.libs/libnetsnmp.so -ldevstat > ../snmplib/.libs/libnetsnmp.so -lcrypto -lelf -lssp_nonshared > -Wl,--rpath -Wl,/usr/local/lib > ./.libs/libnetsnmpmibs.so: undefined reference to `exp' > > Does anyone meet the same problem ? On 8.0p2 amd64, I actually get: host/hr_system.c: In function 'var_hrsys': host/hr_system.c:290: warning: passing argument 4 of 'sysctl' from incompatible pointer type host/hr_system.c: In function 'count_users': host/hr_system.c:617: error: 'struct utmpx' has no member named 'ut_name' But if I change: .endfor .if ${OSVERSION} >= 900007 ${REINPLACE_CMD} -e 's!utmp_p->ut_name!utmp_p->ut_user!' ${WRKSRC}/agent/mibgroup/host/hr_system.c .endif to ".if ${OSVERSION} >= 800076" I then get similar errors to yours: ./.libs/libnetsnmpmibs.so: undefined reference to `setutxent' ./.libs/libnetsnmpmibs.so: undefined reference to `endutxent' ./.libs/libnetsnmpmibs.so: undefined reference to `getutxent' ./.libs/libnetsnmpmibs.so: undefined reference to `exp' I just started looking into this, I'm going to try the library chase that Boris mentioned, but may not be able to get to it for a couple of days. -- Sean McAfee Senior Systems Engineer
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BE4293D.3030408>