building net-SNMP for Windows 10 in minGW32

Mark Christiansen <[email protected]>
Newsgroups gmane.network.net-snmp.devel
Message-ID <CABbGQ1dGmzsXGk8mNidHDm5KKgoGQiN0zvsfthyGzt8K+VDCDw@mail.gmail.com>
Please help. I am having trouble building net-SNMP 5.8 on Windows 10 in
mingw32. Is there some other things I need to install?

After running configure I have the following:

---------------------------------------------------------
            Net-SNMP configuration summary:
---------------------------------------------------------
  SNMP Versions Supported:    1 2c 3
  Building for:               mingw32
  Net-SNMP Version:           5.8
  Network transport support:  Callback Alias TCP UDP TCPIPv6 UDPIPv6
IPv4Base SocketBase TCPBase UDPIPv4Base UDPBase IPv6Base
  SNMPv3 Security Modules:     usm
  Agent MIB code:            agentx default_modules disman/event-mib
examples/example winExtDLL =>  agentx/master agentx/subagent snmpv3mibs
mibII ucd_snmp notification notification-log-mib target agent_mibs agentx
disman/event disman/schedule utilities disman/event
util_funcs/header_generic
  MYSQL Trap Logging:         unavailable
  Embedded Perl support:      disabled
  SNMP Perl modules:          disabled
  SNMP Python modules:        disabled
  Crypto support from:        internal
  Authentication support:     MD5 SHA1
  Encryption support:         DES AES
  Local DNSSEC validation:    disabled
---------------------------------------------------------

I'm using: gcc.exe (MinGW.org GCC-6.3.0-1) 6.3.0

I get the following errors when I run make after running configure:

$ make
gcc -E -Iinclude -I./include -I./agent/mibgroup -I. -I. -DDONT_INC_STRUCTS
-DBINDIR=c:/usr/bin -x c ./sedscript.in | egrep '^s[/#]' | sed
's/REMOVEME//g;s# */#/#g;s/ *#/#/g;s#/ *#/#g;s/# g/#g/;' > sedscript
echo 's/VERSIONINFO/5.8/g' >> sedscript
echo 's#DATADIR#c:/usr/share#g' >> sedscript
echo 's#LIBDIR#c:/usr/lib#g' >> sedscript
echo 's#BINDIR#c:/usr/bin#g' >> sedscript
echo 's#PERSISTENT_DIRECTORY#/var/net-snmp#g' >> sedscript
echo 's#SYSCONFDIR#c:/usr/etc#g' >> sedscript
/bin/sed -f sedscript ./EXAMPLE.conf.def > EXAMPLE.conf
making all in /home/markw/net-snmp-code/snmplib
make[1]: Entering directory `/home/markw/net-snmp-code/snmplib'
/bin/sh ../libtool  --mode=compile gcc -I../include -I.
 -I../snmplib -D_WIN32_WINNT=0x0501 -DWIN32 -DVC_EXTRALEAN
-DWIN32_LEAN_AND_MEAN -D_GNU_SOURCE -D_ALL_SOURCE -D_THREAD_SAFE
-D__EXTENSIONS__  -g -O2 -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing
-DNETSNMP_REMOVE_U64 -g -O2 -Umingw32 -Dmingw32=mingw32  -Wall -Wextra
-Wstrict-prototypes -Wwrite-strings -Wcast-qual -Wlogical-op
-Wno-format-truncation -Wno-missing-field-initializers -Wno-sign-compare
-Wno-unused-parameter -Wno-type-limits -c -o snmp_client.lo snmp_client.c
libtool: compile:  gcc -I../include -I. -I../snmplib -D_WIN32_WINNT=0x0501
-DWIN32 -DVC_EXTRALEAN -DWIN32_LEAN_AND_MEAN -D_GNU_SOURCE -D_ALL_SOURCE
-D_THREAD_SAFE -D__EXTENSIONS__ -g -O2 -DNETSNMP_ENABLE_IPV6
-fno-strict-aliasing -DNETSNMP_REMOVE_U64 -g -O2 -Umingw32
-Dmingw32=mingw32 -Wall -Wextra -Wstrict-prototypes -Wwrite-strings
-Wcast-qual -Wlogical-op -Wno-format-truncation
-Wno-missing-field-initializers -Wno-sign-compare -Wno-unused-parameter
-Wno-type-limits -c snmp_client.c  -DDLL_EXPORT -DPIC -o .libs/snmp_client.o
In file included from snmp_client.c:94:0:
../include/net-snmp/types.h:68:15: error: conflicting types for 'socklen_t'
 typedef u_int socklen_t;
               ^~~~~~~~~
In file included from ../include/net-snmp/system/mingw32.h:30:0,
                 from ../include/net-snmp/net-snmp-config.h:2170,
                 from snmp_client.c:47:
c:\mingw\include\ws2tcpip.h:272:13: note: previous declaration of
'socklen_t' was here
 typedef int socklen_t;
             ^~~~~~~~~
In file included from snmp_client.c:94:0:
../include/net-snmp/types.h:321:33: error: expected ':', ',', ';', '}' or
'__attribute__' before 'NETSNMP_ATTRIBUTE_DEPRECATED'
     u_short         remote_port NETSNMP_ATTRIBUTE_DEPRECATED;
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
snmp_client.c: In function 'snmp_pdu_create':
snmp_client.c:131:27: warning: implicit declaration of function 'calloc'
[-Wimplicit-function-declaration]
     pdu = (netsnmp_pdu *) calloc(1, sizeof(netsnmp_pdu));
                           ^~~~~~
snmp_client.c:131:27: warning: incompatible implicit declaration of
built-in function 'calloc'
snmp_client.c:131:27: note: include '<stdlib.h>' or provide a declaration
of 'calloc'
snmp_client.c: In function 'snmp_synch_input':
snmp_client.c:190:20: error: 'netsnmp_session {aka struct snmp_session}'
has no member named 's_snmp_errno'
             session->s_snmp_errno = rpt_type;
                    ^~
snmp_client.c:198:20: error: 'netsnmp_session {aka struct snmp_session}'
has no member named 's_snmp_errno'
             session->s_snmp_errno = SNMPERR_SUCCESS;
                    ^~
snmp_client.c:203:20: error: 'netsnmp_session {aka struct snmp_session}'
has no member named 's_snmp_errno'
             session->s_snmp_errno = SNMPERR_PROTOCOL;
                    ^~
snmp_client.c:213:16: error: 'netsnmp_session {aka struct snmp_session}'
has no member named 's_snmp_errno'
         session->s_snmp_errno = SNMPERR_TIMEOUT;
                ^~
snmp_client.c:222:20: error: 'netsnmp_session {aka struct snmp_session}'
has no member named 's_snmp_errno'
             session->s_snmp_errno = SNMPERR_GENERR;
                    ^~
snmp_client.c:228:16: error: 'netsnmp_session {aka struct snmp_session}'
has no member named 's_snmp_errno'
         session->s_snmp_errno = SNMPERR_ABORT;
                ^~
In file included from ../include/net-snmp/output_api.h:60:0,
                 from ../include/net-snmp/library/snmp_client.h:32,
                 from ../include/net-snmp/varbind_api.h:102,
                 from ../include/net-snmp/library/snmp_api.h:33,
                 from ../include/net-snmp/definitions.h:23,
                 from ../include/net-snmp/types.h:438,
                 from snmp_client.c:94:
snmp_client.c:232:54: error: 'netsnmp_session {aka struct snmp_session}'
has no member named 's_snmp_errno'
                                state->status, session->s_snmp_errno));
                                                      ^
../include/net-snmp/library/snmp_debug.h:166:52: note: in definition of
macro '__DBGMSGTL'
 #define __DBGMSGTL(x)    __DBGTRACE, debugmsgtoken x, debugmsg x
                                                    ^
snmp_client.c:231:5: note: in expansion of macro 'DEBUGMSGTL'
     DEBUGMSGTL(("snmp_synch", "status = %d errno = %d\n",
     ^~~~~~~~~~
snmp_client.c:232:54: error: 'netsnmp_session {aka struct snmp_session}'
has no member named 's_snmp_errno'
                                state->status, session->s_snmp_errno));
                                                      ^
../include/net-snmp/library/snmp_debug.h:166:64: note: in definition of
macro '__DBGMSGTL'
 #define __DBGMSGTL(x)    __DBGTRACE, debugmsgtoken x, debugmsg x
                                                                ^
snmp_client.c:231:5: note: in expansion of macro 'DEBUGMSGTL'
     DEBUGMSGTL(("snmp_synch", "status = %d errno = %d\n",
     ^~~~~~~~~~
../include/net-snmp/library/snmp_debug.h:166:53: warning: left-hand operand
of comma expression has no effect [-Wunused-value]
 #define __DBGMSGTL(x)    __DBGTRACE, debugmsgtoken x, debugmsg x
                                                     ^
../include/net-snmp/output_api.h:66:47: note: in expansion of macro
'__DBGMSGTL'
 #define DEBUGMSGTL(x)      do {if (_DBG_IF_) {__DBGMSGTL(x);} }while(0)
                                               ^~~~~~~~~~
snmp_client.c:231:5: note: in expansion of macro 'DEBUGMSGTL'
     DEBUGMSGTL(("snmp_synch", "status = %d errno = %d\n",
     ^~~~~~~~~~
snmp_client.c: In function 'snmp_clone_var':
snmp_client.c:276:49: warning: implicit declaration of function 'malloc'
[-Wimplicit-function-declaration]
                 newvar->val.string = (u_char *) malloc(var->val_len);
                                                 ^~~~~~
snmp_client.c:276:49: warning: incompatible implicit declaration of
built-in function 'malloc'
snmp_client.c:276:49: note: include '<stdlib.h>' or provide a declaration
of 'malloc'
snmp_client.c: In function 'snmp_clone_mem':
snmp_client.c:307:19: warning: incompatible implicit declaration of
built-in function 'malloc'
         *dstPtr = malloc(len + 1);
                   ^~~~~~
snmp_client.c:307:19: note: include '<stdlib.h>' or provide a declaration
of 'malloc'
snmp_client.c: In function 'snmp_reset_var_buffers':
snmp_client.c:332:17: warning: implicit declaration of function 'free'
[-Wimplicit-function-declaration]
                 free(var->name);
                 ^~~~
snmp_client.c:332:17: warning: incompatible implicit declaration of
built-in function 'free'
snmp_client.c:332:17: note: include '<stdlib.h>' or provide a declaration
of 'free'
snmp_client.c:338:17: warning: incompatible implicit declaration of
built-in function 'free'
                 free(var->val.string);
                 ^~~~
snmp_client.c:338:17: note: include '<stdlib.h>' or provide a declaration
of 'free'
snmp_client.c: In function '_clone_pdu_header':
snmp_client.c:366:30: warning: incompatible implicit declaration of
built-in function 'malloc'
     newpdu = (netsnmp_pdu *) malloc(sizeof(netsnmp_pdu));
                              ^~~~~~
snmp_client.c:366:30: note: include '<stdlib.h>' or provide a declaration
of 'malloc'
snmp_client.c: In function '_copy_varlist':
snmp_client.c:456:13: warning: incompatible implicit declaration of
built-in function 'malloc'
             malloc(sizeof(netsnmp_variable_list));
             ^~~~~~
snmp_client.c:456:13: note: include '<stdlib.h>' or provide a declaration
of 'malloc'
snmp_client.c:459:17: warning: incompatible implicit declaration of
built-in function 'free'
                 free((char *) newvar);
                 ^~~~
snmp_client.c:459:17: note: include '<stdlib.h>' or provide a declaration
of 'free'
snmp_client.c: In function 'snmp_set_var_objid':
snmp_client.c:699:9: warning: incompatible implicit declaration of built-in
function 'free'
         free(vp->name);
         ^~~~
snmp_client.c:699:9: note: include '<stdlib.h>' or provide a declaration of
'free'
snmp_client.c:708:28: warning: incompatible implicit declaration of
built-in function 'malloc'
         vp->name = (oid *) malloc(len);
                            ^~~~~~
snmp_client.c:708:28: note: include '<stdlib.h>' or provide a declaration
of 'malloc'
snmp_client.c: In function 'snmp_set_var_value':
snmp_client.c:815:9: warning: incompatible implicit declaration of built-in
function 'free'
         free(vars->val.string);
         ^~~~
snmp_client.c:815:9: note: include '<stdlib.h>' or provide a declaration of
'free'
snmp_client.c:874:42: error: 'intmax_t' undeclared (first use in this
function)
         else if (vars->val_len == sizeof(intmax_t)){
                                          ^~~~~~~~
snmp_client.c:874:42: note: each undeclared identifier is reported only
once for each function it appears in
snmp_client.c:875:19: error: unknown type name 'uintmax_t'
             const uintmax_t *val_uintmax_t
                   ^~~~~~~~~
snmp_client.c:876:26: error: unknown type name 'uintmax_t'
                 = (const uintmax_t *) value;
                          ^~~~~~~~~
snmp_client.c:918:39: warning: incompatible implicit declaration of
built-in function 'malloc'
             vars->val.objid = (oid *) malloc(vars->val_len);
                                       ^~~~~~
snmp_client.c:918:39: note: include '<stdlib.h>' or provide a declaration
of 'malloc'
snmp_client.c:938:43: warning: incompatible implicit declaration of
built-in function 'malloc'
             vars->val.string = (u_char *) malloc(vars->val_len + 1);
                                           ^~~~~~
snmp_client.c:938:43: note: include '<stdlib.h>' or provide a declaration
of 'malloc'
snmp_client.c: In function 'snmp_synch_response_cb':
snmp_client.c:1045:15: error: 'netsnmp_session {aka struct snmp_session}'
has no member named 'callback'
     cbsav = ss->callback;
               ^~
snmp_client.c:1046:18: error: 'netsnmp_session {aka struct snmp_session}'
has no member named 'callback_magic'
     cbmagsav = ss->callback_magic;
                  ^~
snmp_client.c:1047:7: error: 'netsnmp_session {aka struct snmp_session}'
has no member named 'callback'
     ss->callback = pcb;
       ^~
snmp_client.c:1048:7: error: 'netsnmp_session {aka struct snmp_session}'
has no member named 'callback_magic'
     ss->callback_magic = (void *) state;
       ^~
In file included from snmp_client.c:105:0:
../include/net-snmp/library/large_fd_set.h:82:49: error: 'fd_set {aka
struct fd_set}' has no member named 'fds_bits'
 #define NETSNMP_FD_MASK_SIZE sizeof(((fd_set*)0)->fds_bits[0])
                                                 ^
../include/net-snmp/library/large_fd_set.h:85:39: note: in expansion of
macro 'NETSNMP_FD_MASK_SIZE'
 #define NETSNMP_BITS_PER_FD_MASK (8 * NETSNMP_FD_MASK_SIZE)
                                       ^~~~~~~~~~~~~~~~~~~~
../include/net-snmp/library/large_fd_set.h:89:16: note: in expansion of
macro 'NETSNMP_BITS_PER_FD_MASK'
     (setsize + NETSNMP_BITS_PER_FD_MASK - 1) / NETSNMP_BITS_PER_FD_MASK
                ^~~~~~~~~~~~~~~~~~~~~~~~
../include/net-snmp/library/large_fd_set.h:97:24: note: in expansion of
macro 'NETSNMP_FD_SET_ELEM_COUNT'
                        NETSNMP_FD_SET_ELEM_COUNT((setsize) - FD_SETSIZE) \
                        ^~~~~~~~~~~~~~~~~~~~~~~~~
../include/net-snmp/library/large_fd_set.h:104:16: note: in expansion of
macro 'NETSNMP_FD_SET_BYTES'
                NETSNMP_FD_SET_BYTES((fdset)->lfs_setsize));     \
                ^~~~~~~~~~~~~~~~~~~~
snmp_client.c:1061:9: note: in expansion of macro 'NETSNMP_LARGE_FD_ZERO'
         NETSNMP_LARGE_FD_ZERO(&fdset);
         ^~~~~~~~~~~~~~~~~~~~~
../include/net-snmp/library/large_fd_set.h:82:49: error: 'fd_set {aka
struct fd_set}' has no member named 'fds_bits'
 #define NETSNMP_FD_MASK_SIZE sizeof(((fd_set*)0)->fds_bits[0])
                                                 ^
../include/net-snmp/library/large_fd_set.h:85:39: note: in expansion of
macro 'NETSNMP_FD_MASK_SIZE'
 #define NETSNMP_BITS_PER_FD_MASK (8 * NETSNMP_FD_MASK_SIZE)
                                       ^~~~~~~~~~~~~~~~~~~~
../include/net-snmp/library/large_fd_set.h:89:48: note: in expansion of
macro 'NETSNMP_BITS_PER_FD_MASK'
     (setsize + NETSNMP_BITS_PER_FD_MASK - 1) / NETSNMP_BITS_PER_FD_MASK
                                                ^~~~~~~~~~~~~~~~~~~~~~~~
../include/net-snmp/library/large_fd_set.h:97:24: note: in expansion of
macro 'NETSNMP_FD_SET_ELEM_COUNT'
                        NETSNMP_FD_SET_ELEM_COUNT((setsize) - FD_SETSIZE) \
                        ^~~~~~~~~~~~~~~~~~~~~~~~~
../include/net-snmp/library/large_fd_set.h:104:16: note: in expansion of
macro 'NETSNMP_FD_SET_BYTES'
                NETSNMP_FD_SET_BYTES((fdset)->lfs_setsize));     \
                ^~~~~~~~~~~~~~~~~~~~
snmp_client.c:1061:9: note: in expansion of macro 'NETSNMP_LARGE_FD_ZERO'
         NETSNMP_LARGE_FD_ZERO(&fdset);
         ^~~~~~~~~~~~~~~~~~~~~
../include/net-snmp/library/large_fd_set.h:82:49: error: 'fd_set {aka
struct fd_set}' has no member named 'fds_bits'
 #define NETSNMP_FD_MASK_SIZE sizeof(((fd_set*)0)->fds_bits[0])
                                                 ^
../include/net-snmp/library/large_fd_set.h:98:26: note: in expansion of
macro 'NETSNMP_FD_MASK_SIZE'
                        * NETSNMP_FD_MASK_SIZE : 0))
                          ^~~~~~~~~~~~~~~~~~~~
../include/net-snmp/library/large_fd_set.h:104:16: note: in expansion of
macro 'NETSNMP_FD_SET_BYTES'
                NETSNMP_FD_SET_BYTES((fdset)->lfs_setsize));     \
                ^~~~~~~~~~~~~~~~~~~~
snmp_client.c:1061:9: note: in expansion of macro 'NETSNMP_LARGE_FD_ZERO'
         NETSNMP_LARGE_FD_ZERO(&fdset);
         ^~~~~~~~~~~~~~~~~~~~~
snmp_client.c:1100:37: error: 'netsnmp_session {aka struct snmp_session}'
has no member named 'myvoid'
             cb = (void (*)(void))(ss->myvoid);
                                     ^~
snmp_client.c:1106:7: error: 'netsnmp_session {aka struct snmp_session}'
has no member named 'callback'
     ss->callback = cbsav;
       ^~
snmp_client.c:1107:7: error: 'netsnmp_session {aka struct snmp_session}'
has no member named 'callback_magic'
     ss->callback_magic = cbmagsav;
       ^~
snmp_client.c: In function 'snmp_sess_synch_response':
snmp_client.c:1139:15: error: 'netsnmp_session {aka struct snmp_session}'
has no member named 'callback'
     cbsav = ss->callback;
               ^~
snmp_client.c:1140:18: error: 'netsnmp_session {aka struct snmp_session}'
has no member named 'callback_magic'
     cbmagsav = ss->callback_magic;
                  ^~
snmp_client.c:1141:7: error: 'netsnmp_session {aka struct snmp_session}'
has no member named 'callback'
     ss->callback = snmp_synch_input;
       ^~
snmp_client.c:1142:7: error: 'netsnmp_session {aka struct snmp_session}'
has no member named 'callback_magic'
     ss->callback_magic = (void *) state;
       ^~
In file included from snmp_client.c:105:0:
../include/net-snmp/library/large_fd_set.h:82:49: error: 'fd_set {aka
struct fd_set}' has no member named 'fds_bits'
 #define NETSNMP_FD_MASK_SIZE sizeof(((fd_set*)0)->fds_bits[0])
                                                 ^
../include/net-snmp/library/large_fd_set.h:85:39: note: in expansion of
macro 'NETSNMP_FD_MASK_SIZE'
 #define NETSNMP_BITS_PER_FD_MASK (8 * NETSNMP_FD_MASK_SIZE)
                                       ^~~~~~~~~~~~~~~~~~~~
../include/net-snmp/library/large_fd_set.h:89:16: note: in expansion of
macro 'NETSNMP_BITS_PER_FD_MASK'
     (setsize + NETSNMP_BITS_PER_FD_MASK - 1) / NETSNMP_BITS_PER_FD_MASK
                ^~~~~~~~~~~~~~~~~~~~~~~~
../include/net-snmp/library/large_fd_set.h:97:24: note: in expansion of
macro 'NETSNMP_FD_SET_ELEM_COUNT'
                        NETSNMP_FD_SET_ELEM_COUNT((setsize) - FD_SETSIZE) \
                        ^~~~~~~~~~~~~~~~~~~~~~~~~
../include/net-snmp/library/large_fd_set.h:104:16: note: in expansion of
macro 'NETSNMP_FD_SET_BYTES'
                NETSNMP_FD_SET_BYTES((fdset)->lfs_setsize));     \
                ^~~~~~~~~~~~~~~~~~~~
snmp_client.c:1155:9: note: in expansion of macro 'NETSNMP_LARGE_FD_ZERO'
         NETSNMP_LARGE_FD_ZERO(&fdset);
         ^~~~~~~~~~~~~~~~~~~~~
../include/net-snmp/library/large_fd_set.h:82:49: error: 'fd_set {aka
struct fd_set}' has no member named 'fds_bits'
 #define NETSNMP_FD_MASK_SIZE sizeof(((fd_set*)0)->fds_bits[0])
                                                 ^
../include/net-snmp/library/large_fd_set.h:85:39: note: in expansion of
macro 'NETSNMP_FD_MASK_SIZE'
 #define NETSNMP_BITS_PER_FD_MASK (8 * NETSNMP_FD_MASK_SIZE)
                                       ^~~~~~~~~~~~~~~~~~~~
../include/net-snmp/library/large_fd_set.h:89:48: note: in expansion of
macro 'NETSNMP_BITS_PER_FD_MASK'
     (setsize + NETSNMP_BITS_PER_FD_MASK - 1) / NETSNMP_BITS_PER_FD_MASK
                                                ^~~~~~~~~~~~~~~~~~~~~~~~
../include/net-snmp/library/large_fd_set.h:97:24: note: in expansion of
macro 'NETSNMP_FD_SET_ELEM_COUNT'
                        NETSNMP_FD_SET_ELEM_COUNT((setsize) - FD_SETSIZE) \
                        ^~~~~~~~~~~~~~~~~~~~~~~~~
../include/net-snmp/library/large_fd_set.h:104:16: note: in expansion of
macro 'NETSNMP_FD_SET_BYTES'
                NETSNMP_FD_SET_BYTES((fdset)->lfs_setsize));     \
                ^~~~~~~~~~~~~~~~~~~~
snmp_client.c:1155:9: note: in expansion of macro 'NETSNMP_LARGE_FD_ZERO'
         NETSNMP_LARGE_FD_ZERO(&fdset);
         ^~~~~~~~~~~~~~~~~~~~~
../include/net-snmp/library/large_fd_set.h:82:49: error: 'fd_set {aka
struct fd_set}' has no member named 'fds_bits'
 #define NETSNMP_FD_MASK_SIZE sizeof(((fd_set*)0)->fds_bits[0])
                                                 ^
../include/net-snmp/library/large_fd_set.h:98:26: note: in expansion of
macro 'NETSNMP_FD_MASK_SIZE'
                        * NETSNMP_FD_MASK_SIZE : 0))
                          ^~~~~~~~~~~~~~~~~~~~
../include/net-snmp/library/large_fd_set.h:104:16: note: in expansion of
macro 'NETSNMP_FD_SET_BYTES'
                NETSNMP_FD_SET_BYTES((fdset)->lfs_setsize));     \
                ^~~~~~~~~~~~~~~~~~~~
snmp_client.c:1155:9: note: in expansion of macro 'NETSNMP_LARGE_FD_ZERO'
         NETSNMP_LARGE_FD_ZERO(&fdset);
         ^~~~~~~~~~~~~~~~~~~~~
snmp_client.c:1192:7: error: 'netsnmp_session {aka struct snmp_session}'
has no member named 'callback'
     ss->callback = cbsav;
       ^~
snmp_client.c:1193:7: error: 'netsnmp_session {aka struct snmp_session}'
has no member named 'callback_magic'
     ss->callback_magic = cbmagsav;
       ^~
snmp_client.c: In function '_row_status_state_activate':
snmp_client.c:1593:5: error: unknown type name 'int32_t'
     int32_t                rc, val = RS_ACTIVE;
     ^~~~~~~
snmp_client.c: In function '_row_status_state_single_value_createAndWait':
snmp_client.c:1739:5: error: unknown type name 'int32_t'
     int32_t                rc, val = RS_CREATEANDWAIT;
     ^~~~~~~
snmp_client.c: At top level:
cc1.exe: warning: unrecognized command line option '-Wno-format-truncation'
make[1]: *** [snmp_client.lo] Error 1
make[1]: Leaving directory `/home/markw/net-snmp-code/snmplib'
make: *** [subdirs] Error 1

_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
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.