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"
Created attachment 537040 [details] emerge-info.txt
Created attachment 537042 [details] emerge-history.txt
Created attachment 537044 [details] environment
Created attachment 537046 [details] etc.portage.tbz2
Created attachment 537048 [details] logs.tbz2
Created attachment 537050 [details] net-analyzer:net-snmp-5.7.3_p3:20180624-142009.log
Created attachment 537052 [details] temp.tbz2
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.
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.
Don't use my patch, i found on on upstream which works differently. I'll test it.
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.
(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!