Re: Problem with python bindings and cygwin

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 20/12/2007, Jack G Atkinson Jr <[email protected]> wrote:
>  parse-mibs: Scanning directory
> /home/.snmp/mibs:/usr/local/share/snmp/mibs
>  parse-mibs: cannot open MIB directory
> /home/.snmp/mibs:/usr/local/snmp/mibs

Could you please try applying the attached patch,
re-run configure, and recompile.   Does this help
the situation at all?

[Note to self - see also Bug #1823381]

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
cygwin-mibdir-path.patch (text/x-patch, 1.5 KB)
Index: configure.in
===================================================================
--- configure.in	(revision 16758)
+++ configure.in	(working copy)
@@ -1328,7 +1328,11 @@
 AC_SUBST(SNMPSHAREPATH)
 
 if test "x$NETSNMP_DEFAULT_MIBDIRS" = "x"; then
-  NETSNMP_DEFAULT_MIBDIRS="\$HOME/.snmp/mibs:$SNMPSHAREPATH/mibs"
+  if test "x$PARTIALTARGETOS" = "xmingw32" -o "x$PARTIALTARGETOS" = "xmingw32msvc" -o "x$PARTIALTARGETOS" = "xcygwin"; then
+    NETSNMP_DEFAULT_MIBDIRS="$SNMPSHAREPATH/mibs"
+  else
+    NETSNMP_DEFAULT_MIBDIRS="\$HOME/.snmp/mibs:$SNMPSHAREPATH/mibs"
+  fi
   AC_DEFINE_UNQUOTED(NETSNMP_DEFAULT_MIBDIRS,"$NETSNMP_DEFAULT_MIBDIRS")
 fi
 AC_SUBST(NETSNMP_DEFAULT_MIBDIRS)
Index: configure
===================================================================
--- configure	(revision 16758)
+++ configure	(working copy)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in Revision: 16737 .
+# From configure.in Revision: 16741 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.61 for Net-SNMP 5.5.dev.
 #
@@ -22300,7 +22300,11 @@
 
 
 if test "x$NETSNMP_DEFAULT_MIBDIRS" = "x"; then
-  NETSNMP_DEFAULT_MIBDIRS="\$HOME/.snmp/mibs:$SNMPSHAREPATH/mibs"
+  if test "x$PARTIALTARGETOS" = "xmingw32" -o "x$PARTIALTARGETOS" = "xmingw32msvc" -o "x$PARTIALTARGETOS" = "xcygwin"; then
+    NETSNMP_DEFAULT_MIBDIRS="$SNMPSHAREPATH/mibs"
+  else
+    NETSNMP_DEFAULT_MIBDIRS="\$HOME/.snmp/mibs:$SNMPSHAREPATH/mibs"
+  fi
   cat >>confdefs.h <<_ACEOF
 #define NETSNMP_DEFAULT_MIBDIRS "$NETSNMP_DEFAULT_MIBDIRS"
 _ACEOF
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.