Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 62751 - ./configure SNMP check failed for emerge net-analyzer/mbrowse
Summary: ./configure SNMP check failed for emerge net-analyzer/mbrowse
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-03 13:58 UTC by kevin brown
Modified: 2004-09-04 16:36 UTC (History)
0 users

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 kevin brown 2004-09-03 13:58:51 UTC
This is an upstream bug, that could be patched in the ebuild, or we could wait for the uptream fix.  

I am seeing this behavior:

[...]
> configure:4707: error: `VersionInfo' undeclared (first use in this function)
> configure:4707: error: (Each undeclared identifier is reported only once
> configure:4707: error: for each function it appears in.)
> configure:4739: $? = 1
> configure: program exited with status 1
> configure: failed program was:
> | #line 4658 "configure"
[...] 
> |           #ifdef HAVE_NETSNMP
> | 	    version2 = strdup( NetSnmpVersionInfo );
> |           #else
> |             version2 = strdup( VersionInfo);
> |           #endif
> |       }
[...]
> configure:4780: error: SNMP checks failed

And have applied this patch


http://www.kill-9.org/pipermail/mbrowse/2004-June/000056.html

--------------090806030802010508050304
Content-Type: text/plain;
 name="mbrowse-conf.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="mbrowse-conf.diff"

--- mbrowse-0.3.1/configure	2003-03-12 11:37:41.000000000 -0500
+++ mbrowse-0.3.1-mine/configure	2004-04-09 06:04:49.000000000 -0400
@@ -4699,7 +4699,7 @@
           }
 
           #ifdef HAVE_NETSNMP
-	    version2 = strdup( NetSnmpVersionInfo );
+	    version2 = strdup( "5.1" );
           #else
             version2 = strdup( VersionInfo);
           #endif

--------------090806030802010508050304--

Reproducible: Always
Steps to Reproduce:
emerge mbrowse
Actual Results:  
./configure (called in the ebuild script) failed

Expected Results:  
success
Comment 1 Jon Hood (RETIRED) gentoo-dev 2004-09-04 16:36:11 UTC
this patch should also let it compile with gcc-3.4, now applied in portage; thanks =]

diff -Naur mbrowse-0.3.1.vanilla/configure mbrowse-0.3.1/configure
--- mbrowse-0.3.1.vanilla/configure     2003-03-12 10:37:41.000000000 -0600
+++ mbrowse-0.3.1/configure     2004-09-04 18:29:43.771221872 -0500
@@ -4699,7 +4699,7 @@
           }

           #ifdef HAVE_NETSNMP
-           version2 = strdup( NetSnmpVersionInfo );
+           version2 = strdup( netsnmp_get_version() );
           #else
             version2 = strdup( VersionInfo);
           #endif
diff -Naur mbrowse-0.3.1.vanilla/src/snmpstuff.c mbrowse-0.3.1/src/snmpstuff.c
--- mbrowse-0.3.1.vanilla/src/snmpstuff.c       2002-06-21 06:45:18.000000000 -0500
+++ mbrowse-0.3.1/src/snmpstuff.c       2004-09-04 18:30:35.136413176 -0500
@@ -360,6 +360,7 @@
       case TYPE_NETADDR:
       case TYPE_OTHER:
       default:
+       {}
     }
   }
   if (type == 0) {