Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 5882 - net-snmp badly installed
Summary: net-snmp badly installed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Kyle Manna (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-01 19:23 UTC by Marc 'huz' REYNES
Modified: 2003-09-19 14:59 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc 'huz' REYNES 2002-08-01 19:23:57 UTC
see the result of qpkg -l : 
[..]
/usr/bin/snmpinform -> /var/tmp/portage/net-snmp-5.0.2a/image//usr/bin/snmptrap
Comment 1 Kyle Manna (RETIRED) gentoo-dev 2002-08-04 16:00:06 UTC
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.
Comment 2 Christoph Probst 2002-08-15 21:54:31 UTC
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
Comment 3 Kyle Manna (RETIRED) gentoo-dev 2003-04-25 11:19:28 UTC
Just a follow up, does the latest version (net-snmp-5.0.6) work okay?
Comment 4 Christoph Probst 2003-04-26 12:06:42 UTC
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
Comment 5 Kyle Manna (RETIRED) gentoo-dev 2003-04-30 22:30:01 UTC
Went with the obvious but ugly solution.  Try rsyncing and then emerging it again.  Should be good now.
Comment 6 Christoph Probst 2003-05-01 06:52:15 UTC
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 ""?)
Comment 7 Kyle Manna (RETIRED) gentoo-dev 2003-05-03 00:21:29 UTC
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.
Comment 8 Christoph Probst 2003-05-04 14:50:08 UTC
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.)
Comment 9 Max Kalika (RETIRED) gentoo-dev 2003-09-19 14:59:02 UTC
If I understand the original problem correctly, it should be fixed in the 
latest 5.0.9-r1 ebuild. Please give that a try.