Date: Tue, 22 Jun 2010 13:55:11 +0200 From: Peter Olsson <pol@leissner.se> To: ports@freebsd.org Subject: net-snmp unusable after upgrade to 5.5 Message-ID: <1277207711.2795.76.camel@tower>
next in thread | raw e-mail | index | archive | help
Hello! Yesterday I upgraded net-snmp in about ten servers. After the upgrade net-snmp doesn't accept connections (in FreeBSD 7.3) or won't even start (in FreeBSD 6.4). FreeBSD 7.3-RELEASE =================== net-snmp upgraded to 5.5 with portmaster using source. All configuration unchanged. $ cat /var/db/ports/net-snmp/options # This file is auto-generated by 'make config'. # No user-servicable parts inside! # Options for net-snmp-5.4.2.1_6 _OPTIONS_READ=net-snmp-5.4.2.1_6 WITH_IPV6=true WITHOUT_MFD_REWRITES=true WITH_PERL=true WITH_PERL_EMBEDDED=true WITHOUT_TKMIB=true WITH_DUMMY=true WITHOUT_DMALLOC=true $ cat /var/log/snmpd.log NET-SNMP version 5.5 Connection from UDP: [x.x.x.x]:57497->[0.0.0.0] REFUSED Connection from UDP: [x.x.x.x]:57497->[0.0.0.0] REFUSED Connection from UDP: [x.x.x.x]:57497->[0.0.0.0] REFUSED $ grep snmp /etc/hosts.allow snmpd : x.x.x.x : allow $ cat /usr/local/share/snmp/snmpd.conf syslocation "xxx" rocommunity xxx x.x.x.x $ ps auxwww|grep snmp root 69517 0,0 0,5 9416 4772 ?? S 1:26pm 0:01,04 /usr/local/sbin/snmpd -c /usr/local/share/snmp/snmpd.conf -p /var/run/snmpd.pid -a This worked fine with previous versions of net-snmp. (I added snmpd_conffile to rc.conf as a test today, previously I didn't use that parameter.) FreeBSD 6.4-RELEASE-p9 ====================== net-snmp upgraded to 5.5 with portmaster using source. All configuration unchanged. $ cat /var/db/ports/net-snmp/options # This file is auto-generated by 'make config'. # No user-servicable parts inside! # Options for net-snmp-5.4.2.1_5 _OPTIONS_READ=net-snmp-5.4.2.1_5 WITH_IPV6=true WITHOUT_MFD_REWRITES=true WITH_PERL=true WITH_PERL_EMBEDDED=true WITHOUT_TKMIB=true WITH_DUMMY=true WITHOUT_DMALLOC=true $ /usr/local/etc/rc.d/snmpd start Starting snmpd. /libexec/ld-elf.so.1: Shared object "libperl.so" not found, required by "libnetsnmphelpers.so.20" $ ldd /usr/local/lib/libnetsnmphelpers.so.20 /usr/local/lib/libnetsnmphelpers.so.20: libnetsnmpagent.so.20 => /usr/local/lib/libnetsnmpagent.so.20 (0x28182000) libwrap.so.4 => /usr/lib/libwrap.so.4 (0x281c1000) libperl.so => not found (0x0) libcrypt.so.3 => /lib/libcrypt.so.3 (0x281c8000) libutil.so.5 => /lib/libutil.so.5 (0x281e0000) libnetsnmp.so.20 => /usr/local/lib/libnetsnmp.so.20 (0x281ec000) libcrypto.so.4 => /lib/libcrypto.so.4 (0x28291000) libm.so.4 => /lib/libm.so.4 (0x28384000) libkvm.so.3 => /lib/libkvm.so.3 (0x2839a000) libdevstat.so.5 => /lib/libdevstat.so.5 (0x283a1000) libperl.so => /usr/local/lib/perl5/5.8.9/mach/CORE/libperl.so (0x283a6000) $ l /usr/local/lib/perl5/5.8.9/mach/CORE/libperl.so -r-xr-xr-x 1 root wheel 1161691 22 Jun 11:25 /usr/local/lib/perl5/5.8.9/mach/CORE/libperl.so $ file /usr/local/lib/perl5/5.8.9/mach/CORE/libperl.so /usr/local/lib/perl5/5.8.9/mach/CORE/libperl.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (FreeBSD), dynamically linked, not stripped I tried rebuilding all ports in one of the 6.4 servers, and then reboot, but that didn't help. Here is the port list from this 6.4 server: aespipe-v2.3.e = up-to-date with port ca_root_nss-3.12.4 = up-to-date with port curl-7.20.1 = up-to-date with port gettext-0.18_1 = up-to-date with port gnupg-2.0.15 = up-to-date with port libassuan-2.0.0 = up-to-date with port libgcrypt-1.4.5 = up-to-date with port libgpg-error-1.7_1 = up-to-date with port libiconv-1.13.1_1 = up-to-date with port libksba-1.0.7 = up-to-date with port libol-0.3.18 = up-to-date with port nbsmtp-1.00 = up-to-date with port net-snmp-5.5 = up-to-date with port perl-5.8.9_3 = up-to-date with port portmaster-2.32 = up-to-date with port pth-2.0.7 = up-to-date with port sendmail-8.14.4_2 = up-to-date with port sudo-1.7.2.7 = up-to-date with port syslog-ng-1.6.12_1 = up-to-date with port yafic-1.2.2 = up-to-date with port I have searched the list archives back through March, but find nothing relevant there or with Google. Thanks! -- Peter Olsson pol@leissner.se
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1277207711.2795.76.camel>