Bug #4190
Update to Net-SNMP 5.4.1.2
100%
Description
Update to Net-SNMP 5.4.1.2 using patches from upstream:
Patches: https://hg.openindiana.org/upstream/oracle/userland-gate/file/59aeb82a4f4c/components/net-snmp
File: http://ftp.ntua.gr/mirror/net-snmp/OldFiles/net-snmp-5.4.x/5.4.1/net-snmp-5.4.1.2.tar.gz
Affects:
system/management/snmp/net-snmp@5.4.1,5.11-0.151.1.8:20130721T124543Z
system/management/snmp/net-snmp@5.4.1,5.11-0.151.1.8:20130305T141625Z
Files
Related issues
Updated by Ken Mays over 7 years ago
Ref: http://www.net-snmp.org/docs/README.solaris.html
Test functionality of the Net-SNMP 5.4.1 package builds on oi_151a7 and higher.
Packages affected:
service/fault-management@0.5.11,5.11-0.151.1.8:20130721T124543Z
system/management/snmp/net-snmp@5.4.1,5.11-0.151.1.8:20130721T124543Z
system/management/snmp/net-snmp/addons@5.4.1,5.11-0.151.1.8:20130721T124550Z
system/management/snmp/net-snmp/documentation@5.4.1,5.11-0.151.1.8:20130721T124550Z
Updated by Alexander Pyhalov over 7 years ago
The following packages depend on net-snmp in OpenIndiana /hipster:
PACKAGE
pkg:/auto_install - metapackage
pkg:/developer/opensolaris/osnet - metapackage
pkg:/metapackages/build-essential - metapackage
pkg:/metapackages/gui-install - metapackage
!! pkg:/print/filter/hplip - should be enabled in oi-userland !!
pkg:/redistributable - metapackage
pkg:/server_install - metapackage
pkg:/service/fault-management - can be rebult (needs testing)
pkg:/service/fault-management/snmp-notify - can be rebult (needs testing)
pkg:/service/hal - can be rebult (needs testing)
pkg:/slim_install - metapackage
pkg:/SUNWnet-snmp-core - net-snmp itself
pkg:/system/management/snmp/net-snmp/addons - part of the component
pkg:/web/php-52 - should be obsoleted
Updated by Alexander Pyhalov over 7 years ago
There are 30 patches for net-snmp 5.4.1 in userland gate. We need to check which of them are necessary in later versions...
Updated by Andrew Stormont over 7 years ago
Make sure you don't break things for people building illumos with studio: (see #2245)
Updated by Ken Mays over 7 years ago
NOTE: Ensure to link library dependencies - libsocket and libnsl, with libnetsnmp.
Ref: https://github.com/OpenIndiana/oi-userland/tree/oi/hipster/components/net-snmp/patches
All 30 upstream patches passed with Net-SNMP 5.4.1.2.
Change Makefile to use source from Net-SNMP 5.4.1.2 (see above link) as it includes a security fix versus the original 5.4.1 release.
Updated by Alexander Pyhalov over 7 years ago
- File 011.Makefile.in.patch 011.Makefile.in.patch added
The following patch can be used to enable embedded Perl in net-snmp (the goal is to pass -fstack-protector to libtool while linking libs and apps). However, after enabling perl causes libnetsnmpagent to depend on libperl. This leads to the following issue during illumos (libfmd) compilation
/opt/gcc/4.4.4/bin/gcc -fident -finline -fno-inline-functions -fno-builtin -fno-asm -fdiagnostics-show-option -nodefaultlibs -D__sun -o libfmd_snmp.so.1 -shared -hlibfmd_snmp.so .1 -Wl,-ztext -Wl,-zdefs -Wl,-Bdirect -Wl,-M../common/mapfile-vers -Wl,-M/export/home/alp/srcs/oi-userland/components/illumos/illumos-gate/illumos-gate/usr/src/common/mapfiles/com mon/map.pagealign -Wl,-M/export/home/alp/srcs/oi-userland/components/illumos/illumos-gate/illumos-gate/usr/src/common/mapfiles/common/map.noexdata -R/usr/lib/fm pics/debug_subr.o pics/init.o pics/module.o pics/problem.o pics/resource.o pics/scheme.o -L/export/home/alp/srcs/oi-userland/components/illumos/illumos-gate/illumos-gate/proto/root_i386/lib -L/expo rt/home/alp/srcs/oi-userland/components/illumos/illumos-gate/illumos-gate/proto/root_i386/usr/lib -L/export/home/alp/srcs/oi-userland/components/illumos/illumos-gate/illumos-gate/ proto/root_i386/usr/lib/fm -lfmd_adm -luutil -lnvpair -ltopo -lnetsnmp -lnetsnmphelpers -lnetsnmpagent -lc Undefined first referenced symbol in file main /usr/perl5/5.16/lib/i86pc-solaris-64int/CORE/libperl.so ld: fatal: symbol referencing errors. No output written to libfmd_snmp.so.1 collect2: ld returned 1 exit status
So, for now embedded perl support is explicitly disabled (this doesn't influence perl modules from net-snmp package, which are provided as earlier).
Updated by Andrew Stormont over 7 years ago
You should be fixing your version of (lib)perl. It should not contain a reference to 'main'.
Updated by Alexander Pyhalov over 7 years ago
Fixed perl.
One note: for embedded perl support to work in net-snmp "file path=etc/net-snmp/snmp/snmp_perl.pl" should be included in net-snmp-base.p5m.
Illumos can be compiled now. But mail_msg has the following noice when built with GCC:
==== Check ELF runtime attributes ==== usr/lib/fm/libfmd_snmp.so.1: unreferenced object=/export/home/alp/srcs/oi-userland/components/illumos/illumos-gate/illumos-gate/proto/root_i386/lib/libdl.so.1; unused dependency of /usr/perl5/5.16/lib/i86pc-solaris-64int/CORE/libperl.so <remove lib or -zignore?> usr/lib/fm/libfmd_snmp.so.1: unused object=/export/home/alp/srcs/oi-userland/components/illumos/illumos-gate/illumos-gate/proto/root_i386/lib/libdl.so.1 <remove lib or -zignore?> usr/lib/fm/notify/snmp-notify: unreferenced object=/export/home/alp/srcs/oi-userland/components/illumos/illumos-gate/illumos-gate/proto/root_i386/lib/libdl.so.1; unused dependency of /usr/perl5/5.16/lib/i86pc-solaris-64int/CORE/libperl.so <remove lib or -zignore?> usr/lib/fm/notify/snmp-notify: unused object=/export/home/alp/srcs/oi-userland/components/illumos/illumos-gate/illumos-gate/proto/root_i386/lib/libdl.so.1 <remove lib or -zignore?>
And with Studio:
==== Check ELF runtime attributes ==== usr/lib/fm/libfmd_snmp.so.1: unused search path=/usr/perl5/5.16/lib/i86pc-solaris-64int/CORE (RUNPATH/RPATH from file /usr/lib/libnetsnmphelpers.so.15) <remove search path?> usr/lib/fm/libfmd_snmp.so.1: unreferenced object=/export/home/alp/srcs/illumos-gate/proto/root_i386/lib/libdl.so.1; unused dependency of /usr/perl5/5.16/lib/i86pc-solaris-64int/CORE/libperl.so <remove lib or -zignore?> usr/lib/fm/libfmd_snmp.so.1: unused object=/export/home/alp/srcs/illumos-gate/proto/root_i386/lib/libdl.so.1 <remove lib or -zignore?> usr/lib/fm/notify/snmp-notify: unused search path=/usr/perl5/5.16/lib/i86pc-solaris-64int/CORE (RUNPATH/RPATH from file /usr/lib/libnetsnmphelpers.so.15) <remove search path?> usr/lib/fm/notify/snmp-notify: unreferenced object=/export/home/alp/srcs/illumos-gate/proto/root_i386/lib/libdl.so.1; unused dependency of /usr/perl5/5.16/lib/i86pc-solaris-64int/CORE/libperl.so <remove lib or -zignore?> usr/lib/fm/notify/snmp-notify: unused object=/export/home/alp/srcs/illumos-gate/proto/root_i386/lib/libdl.so.1 <remove lib or -zignore?>
Updated by Ken Mays over 7 years ago
- Due date set to 2013-10-31
- % Done changed from 0 to 100
- Estimated time set to 8.00 h
New tested packages:
system/management/snmp/net-snmp@5.4.1.2,5.11-0.151.1.8.1:20131019T155830Z
system/management/snmp/net-snmp/addons@5.4.1.2,5.11-0.151.1.8.1:20131019T155826Z
system/management/snmp/net-snmp/documentation@5.4.1.2,5.11-0.151.1.8.1:20131019T155826Z
service/fault-management@0.5.11,5.11-0.151.1.8.1:20131019T142454Z
library/python-2/net-snmp-26@5.4.1.2,5.11-0.151.1.8.1:20131019T155829Z
I reviewed the packages. No major issues. This resolved #3707. Closing ticket as packages are now in /hipster repo and passes basic testing.