see the result of qpkg -l : [..] /usr/bin/snmpinform -> /var/tmp/portage/net-snmp-5.0.2a/image//usr/bin/snmptrap
All fixed in net-snmp-5.0.2a-r1, if you could confirm that and close the bug report I'd appreciate it. Thanks for bringing this to our attention.
This Bug isn't fixed in "net-snmp-5.0.2a-r1.ebuild". emerge fails due a configure error: | checking for security modules to use... | configure: error: No such security module: "usm / snmp"usm.c / snmp"usm.h | | !!! ERROR: The ebuild did not complete successfully. | !!! Function src_compile, Line -195, Exitcode 1 | !!! bad ./configure | | !!! emerge aborting on | /usr/portage/net-analyzer/net-snmp/net-snmp-5.0.2a-r1.ebuild . As I changed | use kerberos && myconf="${myconf} --with-security-modules=\"usm ksm\"" to | use kerberos && myconf=${myconf} --with-security-modules="usm ksm" in net-snmp-5.0.2a-r1.ebuild it worked for me. Chris
Just a follow up, does the latest version (net-snmp-5.0.6) work okay?
No, sorry. I still get the same error message. | >>> md5 ;-) net-snmp-5.0.6.tar.gz | >>> Unpacking source... | >>> Unpacking net-snmp-5.0.6.tar.gz to /var/tmp/portage/net-snmp-5.0.6/work | patching file agent/snmp_agent.c | patching file apps/snmptrapd.c | >>> Source unpacked. | ssl | ipv6 | kerberos | configure: warning: ksm": invalid host type | creating cache ./config.cache | using default enterprise.net-snmp | using default enterprise sysOID NET-SNMP-MIB::netSnmpAgentOIDs... | using default notifications NET-SNMP-MIB::netSnmpNotifications [...] | checking target system type... Invalid configuration `ksm"': | machine `ksm"' not recognized | | checking build system type... config.sub: missing argument | Try `config.sub --help' for more information. | | checking for system include file... net-snmp/system/generic.h | checking for machine-type include file... net-snmp/machine/generic.h | checking for gcc... /usr/bin/gcc | checking for additional cpp flags... -x c | checking ipv6 stack type... linux-glibc, yes, using libc | checking whether we have to build PIC code... no | checking for and configuring transport modules to use... | Callback Unix TCP UDP TCPIPv6 UDPIPv6. | checking for security modules to use... | configure: error: No such security module: "usm / snmp"usm.c / snmp"usm.h | | !!! ERROR: net-analyzer/net-snmp-5.0.6 failed. | !!! Function econf, Line 273, Exitcode 1 | !!! econf failed
Went with the obvious but ugly solution. Try rsyncing and then emerging it again. Should be good now.
Looks good. The ebuild works now. But there are still some error messages while unpacking and configure: | /usr/sbin/ebuild.sh: line 28: r: command not found | /usr/sbin/ebuild.sh: line 29: r: command not found (there a two needless "r" in the ebuild) | /usr/sbin/ebuild.sh: line 40: --with-security-modules=usm ksm: | command not found (a problem with ""?)
Okay, the last 2 times I said I fixed it, it still wasn't fixed. :( Lets try this again. Poked through the configure script and --disable-ipv6 seems to imply --with-out-transports="TCPIPv6 UDPIPv6". So we can eliminate that set of double qutoes. Secondly with kerberos, the best (but dirty) solution is to edit the configure script to accomplish the same result. Watching the configure output shows that usm and ksm modules are enabled, but it fails to compile on my box. I don't know anything about kerberos, so we might need to get someone else to look at that aspect. Give it a try and tell me what you see.
I see no errors in the ebuild anymore. (I canceled emerging after successfully configuring so I can't say whether it really compiles without errors or not. Maybe I try this later.)
If I understand the original problem correctly, it should be fixed in the latest 5.0.9-r1 ebuild. Please give that a try.