Project

General

Profile

Bug #4190

Update to Net-SNMP 5.4.1.2

Added by Ken Mays almost 7 years ago. Updated almost 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
OI-Userland
Target version:
-
Start date:
2013-10-08
Due date:
2013-10-31
% Done:

100%

Estimated time:
8.00 h
Difficulty:
Bite-size
Tags:
snmp


Files

011.Makefile.in.patch (4.8 KB) 011.Makefile.in.patch Alexander Pyhalov, 2013-10-18 11:20 AM

Related issues

Related to OpenIndiana Distribution - Bug #3707: snmpnetstat brokenClosed2013-04-10

Actions
Related to OpenIndiana Distribution - Bug #1078: illumos-gate build issues on oi_151Resolved2011-05-29

Actions
Related to OpenIndiana Distribution - Feature #4686: Bump NET-SNMP to 5.7.2.1Closed2014-03-13

Actions

History

#1

Updated by Ken Mays almost 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:
,5.11-0.151.1.8:20130721T124543Z
,5.11-0.151.1.8:20130721T124543Z
,5.11-0.151.1.8:20130721T124550Z
,5.11-0.151.1.8:20130721T124550Z

#2

Updated by Alexander Pyhalov almost 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

#3

Updated by Alexander Pyhalov almost 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...

#4

Updated by Andrew Stormont almost 7 years ago

Make sure you don't break things for people building illumos with studio: (see #2245)

#5

Updated by Ken Mays almost 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.

#6

Updated by Alexander Pyhalov almost 7 years ago

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).

#7

Updated by Andrew Stormont almost 7 years ago

You should be fixing your version of (lib)perl. It should not contain a reference to 'main'.

#8

Updated by Alexander Pyhalov almost 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?>

#9

Updated by Ken Mays almost 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:
,5.11-0.151.1.8.1:20131019T155830Z
,5.11-0.151.1.8.1:20131019T155826Z
,5.11-0.151.1.8.1:20131019T155826Z
,5.11-0.151.1.8.1:20131019T142454Z
,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.

#10

Updated by Ken Mays almost 7 years ago

  • Status changed from New to Resolved

Also available in: Atom PDF