ports/119974: net-mgmt/net-snmp problem on SPARC-64

Catalin Miclaus catalin at starcomms.com
Fri Jan 25 11:50:01 UTC 2008


>Number:         119974
>Category:       ports
>Synopsis:       net-mgmt/net-snmp problem on SPARC-64
>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:   Fri Jan 25 11:50:00 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Catalin Miclaus
>Release:        6.2
>Organization:
Starcomms Ltd.
>Environment:
FreeBSD xxx.xxx.xxx 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 23:30:59 UTC 2007     root at s-dallas.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  sparc64
>Description:
Upgrading net-snmp on sparc-64 platform from ports is failing.
For ports I'm using cvsup targeting current so ports are updated properly.
For sources I'm using original one from FreeBSD 6.2-p0.
I had read /usr/ports/UPDATES but only one issue was related to net-snmp and it was not about this.
Upgrade of net-snmp was schedule due to vulnerability warning issued by FreeBSD security team.
I have posted also on mailing list but w/o luck.

I was following below procedure to upgrade:

csup -z -L2 /root/ports-supfile (which is targeting cvsup3.uk.freebsd.org)

cd /usr/ports/net-mgmt/net-snmp
[root at xxxxx net-snmp]# cat distinfo
MD5 (net-snmp-5.3.2.tar.gz) = 978b9c5e26a36806945761b8ad0a0ecb
SHA256 (net-snmp-5.3.2.tar.gz) = 8171e0592b8c7e5dbb4009a44843c9b7f3b089f4685555578a0f3eeb849d49e7
SIZE (net-snmp-5.3.2.tar.gz) = 4320436

pkg_delete net-snmp....

make install clean (here I tried also with make install "WITH_PERL=yes" but same result)

After install finish in snmpd.log following errors appear when trying to start snmpd:

[root at xxxxxx ]# /usr/local/etc/rc.d/snmpd start
Starting snmpd.
[root at xxxxxx ]#
[root at xxxxxx ]# tail -f /var/log/snmpd.log
error on subcontainer '' insert (-1)
error on subcontainer '' insert (-1)
error on subcontainer '' insert (-1)
error on subcontainer '' insert (-1)
error on subcontainer '' insert (-1)
[root at xxxxxx ]#

The process is refusing to start.

[root at xxxxxx ]# ps aux |grep snmpd
[root at xxxxxx ]#

In /etc/rc.conf I have tried below settings:

[root at xxxxxx ]# grep snmp /etc/rc.conf
snmpd_enable="YES"
snmpd_flags="-a"
snmpd_pidfile="/var/run/snmpd.pid"
snmpd_conffile="/usr/local/etc/snmpd.conf"
[root at xxxxxx ]#

or:

[root at xxxxxx ]# grep snmp /etc/rc.conf
snmpd_enable="YES"
[root at xxxxxx ]#

but w/o luck.
This is my snmpd.conf file and permissions:

[root at xxxxxx ]# more /usr/local/etc/snmpd.conf
rocommunity public x.x.x.x
[root at xxxxxx ]#
[root at xxxxxx ]# ls /usr/local/etc/snmpd.conf
-rw-r--r--  1 root  wheel  138 Jan 24 21:53 /usr/local/etc/snmpd.conf
[root at xxxxxx ]#

Let me know if output of snmpd with '-D ALL' flag is needed (around 1MB  ).
>How-To-Repeat:
[root at xxxxxx ]# cd /usr/ports/net-mgmt/net-snmp
[root at xxxxxx ]# make deinstall && make install clean
[root at xxxxxx ]# tail -f /var/log/snmpd.log
error on subcontainer '' insert (-1)
error on subcontainer '' insert (-1)
error on subcontainer '' insert (-1)
error on subcontainer '' insert (-1)
error on subcontainer '' insert (-1)
[root at xxxxxx ]# ps aux |grep snmpd
[root at xxxxxx ]#
>Fix:


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



More information about the freebsd-ports-bugs mailing list