Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Mar 2013 05:49:53 GMT
From:      "Eugene M. Zheganin" <eugene@zhegan.in>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/176678: net-mgmt/net-snmp: cannot build on 10.0-CURRENT
Message-ID:  <201303060549.r265nr6I036689@red.freebsd.org>
Resent-Message-ID: <201303060600.r26601GL099173@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         176678
>Category:       ports
>Synopsis:       net-mgmt/net-snmp: cannot build on 10.0-CURRENT
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 06 06:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Eugene M. Zheganin
>Release:        10.0-CURRENT
>Organization:
Vivat-Retail LLC
>Environment:
FreeBSD taiga 10.0-CURRENT FreeBSD 10.0-CURRENT #1 r247150M: Mon Mar  4 17:57:07 YEKT 2013     emz@taiga:/usr/obj/usr/src/sys/TAIGADBG  amd64
>Description:
Cannot build net-mgmt/net-snmp on recent 10.0-CURRENT.

I got:

making all in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.7.2/agent/helpers
making all in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.7.2/agent/mibgroup
/bin/sh ../libtool --mode=link cc -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -pipe -g -Ufreebsd10 -Dfreebsd10=freebsd10  -DAPPLLIB_EXP="/usr/local/lib/perl5/5.12.4/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include  -I/usr/local/lib/perl5/5.12.4/mach/CORE -o snmpd snmpd.lo -L/usr/lib -lm -lkvm -ldevstat libnetsnmpagent.la libnetsnmpmibs.la ../snmplib/libnetsnmp.la -lelf -lssp_nonshared -Wl,-R/usr/local/lib/perl5/5.12.4/mach/CORE 
libtool: link: cc -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -pipe -g -Ufreebsd10 -Dfreebsd10=freebsd10 -DAPPLLIB_EXP=/usr/local/lib/perl5/5.12.4/BSDPAN -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -I/usr/local/lib/perl5/5.12.4/mach/CORE -o .libs/snmpd .libs/snmpd.o -Wl,-R/usr/local/lib/perl5/5.12.4/mach/CORE  -L/usr/lib ./.libs/libnetsnmpagent.so -L/usr/local/lib -L/usr/local/lib/perl5/5.12.4/mach/CORE ./.libs/libnetsnmpmibs.so /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.7.2/agent/.libs/libnetsnmpagent.so -lwrap /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.7.2/snmplib/.libs/libnetsnmp.so -lperl -lcrypt -lutil ../snmplib/.libs/libnetsnmp.so -lm -lkvm -ldevstat -lcrypto -lelf -lssp_nonshared  -Wl,-rpath -Wl,/usr/local/lib
./.libs/libnetsnmpagent.so: undefined reference to `netsnmp_subtree_change_prev'
./.libs/libnetsnmpagent.so: undefined reference to `netsnmp_table_dataset_delete_data'
./.libs/libnetsnmpagent.so: undefined reference to `netsnmp_subtree_change_next'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** [snmpd] Error code 1

Stop in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.7.2/agent.


This happens because these symbols are marked as 'U' in agent_registry.o and subsequent libnetsnmpagent.so.30 for some reason. However, I'm able to build net-mgmt/net-snmp on old 10.0-CURRENT (r239937), and these symbols are marked in these files as 'T' as they should be. I have no idea why this happens. Both ports tree on these machines are identical.

I'm able to build net-snmp from sources though.
>How-To-Repeat:
Get a recent -CURRENT, install net-mgmt/net-snmp.
>Fix:
Build net-snmp from sources.

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303060549.r265nr6I036689>