Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 658964 - net-analyzer/net-snmp-5.7.3_p3 : ./.../libnetsnmpmibs.so: undefined reference to headerGetEntry
Summary: net-analyzer/net-snmp-5.7.3_p3 : ./.../libnetsnmpmibs.so: undefined reference...
Status: CONFIRMED
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:
Depends on:
Blocks:
 
Reported: 2018-06-24 14:32 UTC by Toralf Förster
Modified: 2018-09-27 09:55 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,15.17 KB, text/plain)
2018-06-24 14:32 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,50.21 KB, text/plain)
2018-06-24 14:32 UTC, Toralf Förster
Details
environment (environment,168.83 KB, text/plain)
2018-06-24 14:32 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,12.09 KB, application/x-bzip)
2018-06-24 14:32 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,50.30 KB, application/x-bzip)
2018-06-24 14:32 UTC, Toralf Förster
Details
net-analyzer:net-snmp-5.7.3_p3:20180624-142009.log (net-analyzer:net-snmp-5.7.3_p3:20180624-142009.log,235.73 KB, text/plain)
2018-06-24 14:32 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,51.63 KB, application/x-bzip)
2018-06-24 14:32 UTC, Toralf Förster
Details
Replaced all headerGetEntry references (rpm-4.14.patch,4.22 KB, patch)
2018-07-04 11:31 UTC, Martin Regner
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2018-06-24 14:32:27 UTC
libtool: link: x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -O2 -pipe -march=native -Ulinux -Dlinux=linux -o .libs/snmpd .libs/snmpd.o -Wl,-O1 -Wl,--as-needed  ./.libs/libnetsnmpagent.so ./.libs/libnetsnmpmibs.so /var/tmp/portage/net-analyzer/net-snmp-5.7.3_p3/work/net-snmp-5.7.3/agent/.libs/libnetsnmpagent.so -lwrap /var/tmp/portage/net-analyzer/net-snmp-5.7.3_p3/work/net-snmp-5.7.3/snmplib/.libs/libnetsnmp.so -ldl -lrpm -lrpmio ../snmplib/.libs/libnetsnmp.so -lcrypto -lm
./.libs/libnetsnmpmibs.so: undefined reference to `headerGetEntry'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:1003: snmpd] Error 1
make[1]: Leaving directory '/var/tmp/portage/net-analyzer/net-snmp-5.7.3_p3/work/net-snmp-5.7.3/agent'

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-no-multilib_libressl_20180623-161201

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.5
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby23 (with Rubygems) *



emerge -qpv net-analyzer/net-snmp
[ebuild  N    ] net-analyzer/net-snmp-5.7.3_p3  USE="bzip2 ipv6 libressl rpm ssl tcpd zlib -X -doc -elf -lm_sensors -mfd-rewrites -minimal -mysql -netlink -pci -perl -python (-selinux) -smux -ucd-compat" PYTHON_TARGETS="python2_7"
Comment 1 Toralf Förster gentoo-dev 2018-06-24 14:32:30 UTC
Created attachment 537040 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-06-24 14:32:33 UTC
Created attachment 537042 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2018-06-24 14:32:36 UTC
Created attachment 537044 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2018-06-24 14:32:39 UTC
Created attachment 537046 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2018-06-24 14:32:42 UTC
Created attachment 537048 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-06-24 14:32:44 UTC
Created attachment 537050 [details]
net-analyzer:net-snmp-5.7.3_p3:20180624-142009.log
Comment 7 Toralf Förster gentoo-dev 2018-06-24 14:32:48 UTC
Created attachment 537052 [details]
temp.tbz2
Comment 8 Martin Regner 2018-07-04 10:14:54 UTC
I have the same Problem. This comes because in app-arch/rpm-4.14.0 they removed the support for deprecated functions like headerGetEntry ( http://rpm.org/wiki/Releases/4.14.0.html ).

My first solution is to remove the rpm use flag for this package though i don't know which impact this will have.

# rpm api changed headerGetEntry must be replaced by headerGet
=net-analyzer/net-snmp-5.7.3_p3 -rpm

I'll try to create a patch that replaces the old headerGetEntry by headerGet calls, but this must be solved upstream i think.
Comment 9 Martin Regner 2018-07-04 11:31:43 UTC
Created attachment 538296 [details, diff]
Replaced all headerGetEntry references

Replaced all headerGetEntry references by headerGet according to the change.log and the headerGet doc. This compiles, BUT i don't have any test to verify this works as desired.
Comment 10 Martin Regner 2018-07-04 11:38:35 UTC
Don't use my patch, i found on on upstream which works differently. I'll test it.
Comment 11 Martin Regner 2018-07-04 11:47:39 UTC
I found this patch

https://sourceforge.net/p/net-snmp/patches/1344/attachment/net-snmp-5.7.3-modern-rpm-api.patch

and it compiles. 

According to the comments here https://sourceforge.net/p/net-snmp/patches/1344/ this is fixed upstream in the next version, though i can't find it in the current git sources.
Comment 12 Stijn Tintel 2018-09-27 09:55:16 UTC
(In reply to Martin Regner from comment #11)
> I found this patch
> 
> https://sourceforge.net/p/net-snmp/patches/1344/attachment/net-snmp-5.7.3-
> modern-rpm-api.patch
> 
> and it compiles. 

Works for me as well, thanks!