From owner-freebsd-ports@FreeBSD.ORG Tue Jun 22 11:55:22 2010 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E64FC106566B for ; Tue, 22 Jun 2010 11:55:22 +0000 (UTC) (envelope-from pol@leissner.se) Received: from mailgate.leissner.se (mailgate.leissner.se [212.3.1.210]) by mx1.freebsd.org (Postfix) with ESMTP id 8BE068FC12 for ; Tue, 22 Jun 2010 11:55:22 +0000 (UTC) Received: from mailgate.leissner.se (localhost [127.0.0.1]) by mailgate.leissner.se (8.14.4/8.14.4) with ESMTP id o5MBtKoY025934 for ; Tue, 22 Jun 2010 13:55:20 +0200 (CEST) (envelope-from pol@leissner.se) Received: (from uucp@localhost) by mailgate.leissner.se (8.14.4/8.14.4/Submit) id o5MBtKuQ025933 for ; Tue, 22 Jun 2010 13:55:20 +0200 (CEST) (envelope-from pol@leissner.se) Received: from UNKNOWN(192.168.111.3), claiming to be "[192.168.111.3]" via SMTP by mailgate.leissner.se, id smtpdzqIO0a; Tue Jun 22 13:55:11 2010 From: Peter Olsson To: ports@freebsd.org Content-Type: text/plain; charset="UTF-8" Date: Tue, 22 Jun 2010 13:55:11 +0200 Message-ID: <1277207711.2795.76.camel@tower> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit Cc: Subject: net-snmp unusable after upgrade to 5.5 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: Tue, 22 Jun 2010 11:55:23 -0000 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