Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 532876 - net-analyzer/net-snmp-5.7.3_pre5-r2 USE=perl - /usr/lib/perl5/vendor_perl/5.16.3/i686-linux-thread-multi/auto/NetSNMP/agent/agent.so: undefined symbol: agent_check_and_process at /usr/lib/perl5/5.16.3/i686-linux-thread-multi/DynaLoader.pm line 190.
Summary: net-analyzer/net-snmp-5.7.3_pre5-r2 USE=perl - /usr/lib/perl5/vendor_perl/5.1...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Netmon Herd
URL:
Whiteboard:
Keywords: PATCH
Depends on: 536460
Blocks:
  Show dependency tree
 
Reported: 2014-12-17 17:18 UTC by JY
Modified: 2016-11-08 16:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
bugged build log (build_old.log,394.49 KB, text/plain)
2014-12-18 10:34 UTC, JY
Details
proposed ebuild patch (net-snmp_proposed.patch,484 bytes, patch)
2014-12-18 10:34 UTC, JY
Details | Diff
patched build log (build_new.log,404.07 KB, text/plain)
2014-12-18 10:36 UTC, JY
Details

Note You need to log in before you can comment on or make changes to this bug.
Description JY 2014-12-17 17:18:53 UTC
NetSNMP::Agent or NetSNMP::default_store fails to load if compiled with -jxx in MAKEOPTS


Can't load '/usr/lib/perl5/vendor_perl/5.16.3/i686-linux-thread-multi/auto/NetSNMP/agent/agent.so' for module NetSNMP::agent: /usr/lib/perl5/vendor_perl/5.16.3/i686-linux-thread-multi/auto/NetSNMP/agent/agent.so: undefined symbol: agent_check_and_process at /usr/lib/perl5/5.16.3/i686-linux-thread-multi/DynaLoader.pm line 190. 

Or 

Can't load '/usr/lib/perl5/vendor_perl/5.16.3/i686-linux-thread-multi/auto/NetSNMP/default_store/default_store.so' for module NetSNMP::default_store: /usr/lib/perl5/vendor_perl/5.16.3/i686-linux-thread-multi/auto/NetSNMP/default_store/default_store.so: undefined symbol: netsnmp_ds_get_boolean at /usr/lib/perl5/5.16.3/i686-linux-thread-multi/DynaLoader.pm line 190. 


https://bugs.alpinelinux.org/issues/1263 describes and should (hopefully) solves the problem



Reproducible: Sometimes




Portage 2.2.7 (hardened/linux/x86, gcc-4.7.3, glibc-2.18-r2, 3.17.1-gentoo i686)
=================================================================
System uname: Linux-3.17.1-gentoo-i686-Intel-R-_Xeon-R-_CPU_E5-2690_v2_@_3.00GHz-with-gentoo-2.2
KiB Mem:   132058656 total,   4316396 free
KiB Swap:  134217724 total, 134049500 free
Timestamp of tree: Fri, 14 Feb 2014 00:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p53-r1::mcs
dev-lang/python:          2.7.7::mcs, 3.3.5-r2::mcs
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.11.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.18-r2::mcs
Repositories: gentoo logicielsprojet kernel mco mcs
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-mtune=nocona -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-mtune=nocona -O2 -pipe"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=10"
FFLAGS="-march=i686 -O2 -pipe"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j35"
PKGDIR="/var/local_packages" 
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch usersandbox usersync xattr"
FFLAGS="-march=i686 -O2 -pipe"
2 -pipe"
USE="acl bzip2 chroot cli cracklib crypt cxx dri hardened iconv ipv6 keyscrub mbox minimal mmx modules nptl openmp pax_kernel pcre pic readline session sse sse2 sse3 ssl ssse3 static static-libs symlink threads unicode urandom x86 xtpax zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 intel mach64 mga nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa via vmware nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-12-17 22:53:56 UTC
1) Please post your `emerge -vpq dev-lang/perl net-analyzer/net-snmp' output in a comment.
2) Please attach the entire net-analyzer/net-snmp build log to this bug report.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-12-17 22:54:29 UTC
3) Explain why you're still on dev-lang/perl-5.16.3.
Comment 3 JY 2014-12-18 10:30:23 UTC
(In reply to Jeroen Roovers from comment #1)
> 1) Please post your `emerge -vpq dev-lang/perl net-analyzer/net-snmp' output
> in a comment.
> 2) Please attach the entire net-analyzer/net-snmp build log to this bug
> report.

1)

USE="perl" emerge -vpq dev-lang/perl net-analyzer/net-snmp
 * Last emerge --sync was Fri Feb 14 00:40:01 2014.
[ebuild   R   ] dev-lang/perl-5.16.3  USE="ithreads -berkdb -debug -doc -gdbm" 
[ebuild  N    ] net-analyzer/net-snmp-5.7.3_pre5-r2  USE="bzip2 ipv6 minimal perl ssl zlib -X -doc -elf -lm_sensors -mfd-rewrites -mysql -netlink -pci -python -rpm (-selinux) -tcpd -ucd-compat" PYTHON_SINGLE_TARGET="python2_7 -python2_6" PYTHON_TARGETS="python2_7 -python2_6" 

3) Embedded system maintenance
Comment 4 JY 2014-12-18 10:34:01 UTC
Created attachment 391910 [details]
bugged build log

build log with USE="perl" ebuild net-snmp-5.7.3_pre5-r2.ebuild manifest clean compile
Comment 5 JY 2014-12-18 10:34:43 UTC
Created attachment 391912 [details, diff]
proposed ebuild patch
Comment 6 JY 2014-12-18 10:36:05 UTC
Created attachment 391914 [details]
patched build log

now links with libnetsnmp.so

$ ldd /var/tmp/portage/net-analyzer/net-snmp-5.7.3_pre5-r2/work/net-snmp-5.7.3.pre5/perl/blib/arch/auto/NetSNMP/agent/agent.so
        libnetsnmpagent.so.30 => not found
        libnetsnmp.so.30 => not found
        libc.so.6 => /lib/libc.so.6 (0xf7594000)
        /lib/ld-linux.so.2 (0xf7753000)
Comment 7 JY 2016-11-08 16:46:24 UTC
Probably related to https://bugs.gentoo.org/show_bug.cgi?id=536460