From owner-freebsd-ports@FreeBSD.ORG Fri May 7 14:52:47 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 586D3106566C for ; Fri, 7 May 2010 14:52:47 +0000 (UTC) (envelope-from smcafee@collaborativefusion.com) Received: from mx00.pub.collaborativefusion.com (mx00.pub.collaborativefusion.com [206.210.89.199]) by mx1.freebsd.org (Postfix) with ESMTP id 240968FC12 for ; Fri, 7 May 2010 14:52:46 +0000 (UTC) Received: from nightbird.ws.pitbpa0.priv.collaborativefusion.com (nightbird.ws.pitbpa0.priv.collaborativefusion.com [192.168.2.163]) (AUTH: LOGIN smcafee, SSL: TLSv1/SSLv3,256bits,AES256-SHA) by wingspan with esmtp; Fri, 07 May 2010 10:52:46 -0400 id 0003F403.000000004BE4293E.00004E9E Message-ID: <4BE4293D.3030408@collaborativefusion.com> Date: Fri, 07 May 2010 10:52:45 -0400 From: Sean McAfee User-Agent: Thunderbird 2.0.0.23 (X11/20100205) MIME-Version: 1.0 To: =?ISO-8859-1?Q?Olivier_Cochard-Labb=E9?= References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-ports-mailinglist Subject: Re: Building net-mgmt/net-snmp fails X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 May 2010 14:52:47 -0000 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