Re: Net-SNMP 5.7.2.rc1

Bart Van Assche <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 08/16/12 17:15, Wes Hardaker wrote:
> 
> Net-SNMP 5.7.2.rc1 is now available for testing (and actually, ahem, it
> has been for a number of days now).  Please give it a whirl and let us
> know how it works on your system.
> 
>   http://www.net-snmp.org/download.html
> 
> If you have patches to suggest before the final release, please post
> them to http://www.net-snmp.org/patches/

The MinGW, Cygwin and MSVC DLL build are broken. The patch below should
fix all three these issues:

--- a/agent/mibgroup/ucd-snmp/logmatch.c
+++ b/agent/mibgroup/ucd-snmp/logmatch.c
@@ -648,4 +648,11 @@ init_logmatch(void)

 }

+#else /* HAVE_REGEX_H */
+
+void
+init_logmatch(void)
+{
+}
+
 #endif /* HAVE_REGEX_H */
diff --git a/agent/mibgroup/ucd-snmp/proc.c b/agent/mibgroup/ucd-snmp/proc.c
index 14de8da..d87b5f3 100644
--- a/agent/mibgroup/ucd-snmp/proc.c
+++ b/agent/mibgroup/ucd-snmp/proc.c
@@ -61,7 +61,6 @@
 #endif
 #include "util_funcs.h"
 #include "kernel.h"
-#include <unistd.h>

 static struct myproc *get_proc_instance(struct myproc *, oid);
 struct myproc  *procwatch = NULL;
@@ -394,7 +393,7 @@ sh_count_myprocs(struct myproc *proc)
     if (proc == NULL)
         return 0;

-#if HAVE_PCRE_H
+#if defined(USING_HOST_DATA_ACCESS_SWRUN_MODULE) && defined(HAVE_PCRE_H)
     if (proc->regexp != NULL)
       return sh_count_procs_by_regex(proc->name, proc->regexp);
 #endif
diff --git a/include/net-snmp/library/snmp_alarm.h
b/include/net-snmp/library/snmp_alarm.h
index cbf9fe3..d1bcbfa 100644
--- a/include/net-snmp/library/snmp_alarm.h
+++ b/include/net-snmp/library/snmp_alarm.h
@@ -44,6 +44,7 @@ extern          "C" {
                                            unsigned int flags,
                                            SNMPAlarmCallback * cb,
                                            void *cd);
+    NETSNMP_IMPORT
     int             snmp_alarm_reset(unsigned int clientreg);




------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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
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.