net-snmp windows XP build problems

"John Stacey" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <F4CBBC7A9FFD47B09348AE3CAF6ADF34@johns1>
Environment:

Windows XP Pro SP3

MSVS 2005

Microsoft Windows Software Development Kit (SDK) for Windows 7 and .NET
Framework 3.5 Service Pack 1

 

Included Build Logs:

With and without SDK selection

 

ActivePerl version 5.10.1 rel 1007

 

Perl build selections:

 

OpenSSL          No

SDK                 Yes

 

Path                 c:/usr

Install                Yes

 

Perl                  Yes

Install Perl         Yes

 

Quiet                Yes

Debug               No

 

IPV6                 No

WinEXT             No

 

Link                  Dynamic

Dev Files           Yes

 

Included Build Logs:

All

 

 

Windows binary installer works and runs.

 

MSVS 2005 - builds the DLL, does not build the applications.

 

Perl build completes but the agent does not run - this seems to be a
msvcr80.dll dependency issue (missing manifest?)

 

 

My requirement is to provide snmp communication to 5 winXP computers on a
private network. Each PC needs to be able to load an equipment specific
MIB(s) and have the ability to SET, GET and utilize traps and informs. The
PCs each run a C application (not C++) that will contain the agent code.

 

My impression is that I need compiled source that includes embedded perl to
obtain this functionality. Is this a correct assumption?

 

If so, does this in fact really work on a windows PC and which build
environment should I pursue based on my requirements? 

John Stacey
IES Systems, Inc.
464 Lisbon St.
PO Box 89
Canfield, OH 44406
PH: 330-533-6683 ext 131
FAX: 330-533-7293
MSVC2005-libsdll-buildlog.txt (text/plain, 16.2 KB)
------ Rebuild All started: Project: netsnmpmibs, Configuration: Release Win32 ------
Deleting intermediate and output files for project 'netsnmpmibs', configuration 'Release|Win32'
Compiling...
setSerialNo.c
smux.c
..\..\agent\mibgroup\smux\smux.c(705) : warning C4018: '>' : signed/unsigned mismatch
..\..\agent\mibgroup\smux\smux.c(1392) : warning C4018: '>' : signed/unsigned mismatch
util_funcs.c
override.c
mib_modules.c
..\mib_module_inits.h(45) : warning C4013: 'init_snmpNotifyFilterTable' undefined; assuming extern returning int
header_complex.c
iquery.c
execute.c
nsTransactionTable.c
nsModuleTable.c
nsLogging.c
nsDebug.c
nsCache.c
extend.c
..\..\agent\mibgroup\agent\extend.c(1161) : warning C4018: '>' : signed/unsigned mismatch
subagent.c
protocol.c
..\..\agent\mibgroup\agentx\protocol.c(1346) : warning C4101: 'int_offset' : unreferenced local variable
master_admin.c
master.c
client.c
agentx_config.c
Generating Code...
Compiling...
target_counters.c
target.c
snmpTargetParamsEntry.c
snmpTargetAddrEntry.c
snmpNotifyTable.c
snmpNotifyFilterTable_interface.c
snmpNotifyFilterTable_data_access.c
..\..\agent\mibgroup\snmp-notification-mib\snmpNotifyFilterTable\snmpNotifyFilterTable_data_access.c(519) : warning C4018: '<' : signed/unsigned mismatch
..\..\agent\mibgroup\snmp-notification-mib\snmpNotifyFilterTable\snmpNotifyFilterTable_data_access.c(538) : warning C4018: '<' : signed/unsigned mismatch
snmpNotifyFilterTable.c
snmpNotifyFilterProfileTable.c
usmUser.c
usmStats.c
usmConf.c
snmpMPDStats.c
snmpEngine.c
versioninfo.c
proxy.c
proc.c
pass_persist.c
pass.c
loadave.c
Generating Code...
Compiling...
file.c
extensible.c
errormib.c
dlmod.c
ucdDemoPublic.c
example.c
mteTriggerThresholdTable.c
mteTriggerTable.c
mteTriggerExistenceTable.c
mteTriggerDeltaTable.c
mteTriggerBooleanTable.c
mteObjectsTable.c
mteEventTable.c
mteEventNotificationTable.c
vacm_vars.c
vacm_conf.c
vacm_context.c
system_mib.c
sysORTable.c
snmp_mib.c
Generating Code...
Creating library...
Build log was saved at "file://c:\net-snmp\win32\netsnmpmibs\Release\BuildLog.htm"
netsnmpmibs - 0 error(s), 7 warning(s)
------ Rebuild All started: Project: libsnmp_dll, Configuration: Release Win32 ------
Deleting intermediate and output files for project 'libsnmp_dll', configuration 'Release|Win32'
Compiling...
fd_event_manager.c
winpipe.c
vacm.c
..\..\snmplib\vacm.c(459) : warning C4018: '>=' : signed/unsigned mismatch
..\..\snmplib\vacm.c(551) : warning C4018: '>=' : signed/unsigned mismatch
..\..\snmplib\vacm.c(599) : warning C4018: '>=' : signed/unsigned mismatch
ucd_compat.c
strtok_r.c
tools.c
system.c
..\..\snmplib\system.c(458) : warning C4244: '=' : conversion from '__time64_t' to 'long', possible loss of data
strlcpy.c
snmpv3.c
snmpusm.c
snmpUDPIPv6Domain.c
snmpUDPDomain.c
..\..\include\net-snmp/types.h(59) : warning C4142: benign redefinition of type
snmpTCPIPv6Domain.c
snmpTCPDomain.c
..\..\include\net-snmp/types.h(59) : warning C4142: benign redefinition of type
snmpCallbackDomain.c
snmp_service.c
snmp_version.c
snmp_transport.c
snmp_secmod.c
snmp_parse_args.c
Generating Code...
Compiling...
snmp_logging.c
snmp_enum.c
snmp_debug.c
snmp_client.c
..\..\snmplib\snmp_client.c(597) : warning C4018: '>' : signed/unsigned mismatch
snmp_auth.c
snmp_api.c
snmp_alarm.c
snmp.c
snmp-tc.c
scapi.c
..\..\snmplib\scapi.c(422) : warning C4018: '<' : signed/unsigned mismatch
read_config.c
parse.c
oid_stash.c
mt_support.c
mib.c
md5.c
lcd_time.c
..\..\snmplib\lcd_time.c(140) : warning C4244: '=' : conversion from 'time_t' to 'u_int', possible loss of data
..\..\snmplib\lcd_time.c(151) : warning C4244: '+=' : conversion from 'time_t' to 'u_int', possible loss of data
..\..\snmplib\lcd_time.c(236) : warning C4244: '=' : conversion from 'time_t' to 'u_int', possible loss of data
..\..\snmplib\lcd_time.c(247) : warning C4244: '+=' : conversion from 'time_t' to 'u_int', possible loss of data
keytools.c
int64.c
inet_pton.c
..\..\include\net-snmp/types.h(59) : warning C4142: benign redefinition of type
Generating Code...
c:\net-snmp\snmplib\mib.c(3389) : warning C4715: 'sprint_realloc_value' : not all control paths return a value
Compiling...
inet_ntop.c
..\..\include\net-snmp/types.h(59) : warning C4142: benign redefinition of type
getopt.c
default_store.c
data_list.c
container_null.c
container_list_ssll.c
container_iterator.c
container_binary_array.c
container.c
cmu_compat.c
check_varbind.c
..\..\snmplib\check_varbind.c(61) : warning C4018: '<' : signed/unsigned mismatch
..\..\snmplib\check_varbind.c(61) : warning C4018: '>' : signed/unsigned mismatch
callback.c
asn1.c
Generating Code...
Linking...
.\libsnmp.def(4) : warning LNK4017: DESCRIPTION statement not supported for the target platform; ignored
   Creating library .\../lib/release/netsnmp.lib and object .\../lib/release/netsnmp.exp
system.obj : warning LNK4049: locally defined symbol _netsnmp_free imported
vacm.obj : warning LNK4049: locally defined symbol _netsnmp_free imported
snmpTCPDomain.obj : warning LNK4049: locally defined symbol _netsnmp_free imported
snmpUDPDomain.obj : warning LNK4049: locally defined symbol _netsnmp_free imported
snmpusm.obj : warning LNK4049: locally defined symbol _netsnmp_free imported
snmpv3.obj : warning LNK4049: locally defined symbol _netsnmp_free imported
snmp_secmod.obj : warning LNK4049: locally defined symbol _netsnmp_free imported
snmp_transport.obj : warning LNK4049: locally defined symbol _netsnmp_free imported
snmp_service.obj : warning LNK4049: locally defined symbol _netsnmp_free imported
snmpCallbackDomain.obj : warning LNK4049: locally defined symbol _netsnmp_free imported
snmp_debug.obj : warning LNK4049: locally defined symbol _netsnmp_free imported
snmp_enum.obj : warning LNK4049: locally defined symbol _netsnmp_free imported
snmp_logging.obj : warning LNK4217: locally defined symbol _netsnmp_free imported in function _snmp_log_perror
snmp_parse_args.obj : warning LNK4217: locally defined symbol _netsnmp_free imported in function _snmp_parse_args
snmp.obj : warning LNK4049: locally defined symbol _netsnmp_free imported
snmp_alarm.obj : warning LNK4049: locally defined symbol _netsnmp_free imported
snmp_api.obj : warning LNK4049: locally defined symbol _netsnmp_free imported
snmp_client.obj : warning LNK4049: locally defined symbol _netsnmp_free imported
mib.obj : warning LNK4217: locally defined symbol _netsnmp_free imported in function _handle_mibdirs_conf
oid_stash.obj : warning LNK4049: locally defined symbol _netsnmp_free imported
parse.obj : warning LNK4049: locally defined symbol _netsnmp_free imported
read_config.obj : warning LNK4217: locally defined symbol _netsnmp_free imported in function _read_config_read_octet_string
default_store.obj : warning LNK4049: locally defined symbol _netsnmp_free imported
keytools.obj : warning LNK4049: locally defined symbol _netsnmp_free imported
lcd_time.obj : warning LNK4049: locally defined symbol _netsnmp_free imported
md5.obj : warning LNK4049: locally defined symbol _netsnmp_free imported
container_iterator.obj : warning LNK4049: locally defined symbol _netsnmp_free imported
container_list_ssll.obj : warning LNK4049: locally defined symbol _netsnmp_free imported
container_null.obj : warning LNK4049: locally defined symbol _netsnmp_free imported
data_list.obj : warning LNK4049: locally defined symbol _netsnmp_free imported
asn1.obj : warning LNK4217: locally defined symbol _netsnmp_free imported in function _asn_realloc_rbuild_string
callback.obj : warning LNK4049: locally defined symbol _netsnmp_free imported
container.obj : warning LNK4049: locally defined symbol _netsnmp_free imported
container_binary_array.obj : warning LNK4049: locally defined symbol _netsnmp_free imported
snmpusm.obj : warning LNK4049: locally defined symbol _netsnmp_malloc imported
snmpv3.obj : warning LNK4049: locally defined symbol _netsnmp_malloc imported
system.obj : warning LNK4049: locally defined symbol _netsnmp_malloc imported
snmp_service.obj : warning LNK4049: locally defined symbol _netsnmp_malloc imported
snmpCallbackDomain.obj : warning LNK4049: locally defined symbol _netsnmp_malloc imported
snmpTCPDomain.obj : warning LNK4049: locally defined symbol _netsnmp_malloc imported
snmpUDPDomain.obj : warning LNK4049: locally defined symbol _netsnmp_malloc imported
snmp_client.obj : warning LNK4049: locally defined symbol _netsnmp_malloc imported
snmp_logging.obj : warning LNK4217: locally defined symbol _netsnmp_malloc imported in function _snmp_log_options
snmp_parse_args.obj : warning LNK4049: locally defined symbol _netsnmp_malloc imported
snmp_transport.obj : warning LNK4049: locally defined symbol _netsnmp_malloc imported
parse.obj : warning LNK4049: locally defined symbol _netsnmp_malloc imported
read_config.obj : warning LNK4217: locally defined symbol _netsnmp_malloc imported in function _read_config_read_octet_string
snmp.obj : warning LNK4049: locally defined symbol _netsnmp_malloc imported
snmp_api.obj : warning LNK4049: locally defined symbol _netsnmp_malloc imported
asn1.obj : warning LNK4217: locally defined symbol _netsnmp_malloc imported in function _asn_realloc_rbuild_string
container_binary_array.obj : warning LNK4049: locally defined symbol _netsnmp_malloc imported
keytools.obj : warning LNK4049: locally defined symbol _netsnmp_malloc imported
mib.obj : warning LNK4049: locally defined symbol _netsnmp_malloc imported
snmpusm.obj : warning LNK4217: locally defined symbol _netsnmp_calloc imported in function _usm_set_salt
vacm.obj : warning LNK4217: locally defined symbol _netsnmp_calloc imported in function _netsnmp_view_get
snmp_service.obj : warning LNK4049: locally defined symbol _netsnmp_calloc imported
snmpCallbackDomain.obj : warning LNK4217: locally defined symbol _netsnmp_calloc imported in function _netsnmp_callback_send
snmpTCPDomain.obj : warning LNK4049: locally defined symbol _netsnmp_calloc imported
snmpUDPDomain.obj : warning LNK4049: locally defined symbol _netsnmp_calloc imported
snmp_enum.obj : warning LNK4049: locally defined symbol _netsnmp_calloc imported
snmp_logging.obj : warning LNK4049: locally defined symbol _netsnmp_calloc imported
snmp_secmod.obj : warning LNK4049: locally defined symbol _netsnmp_calloc imported
snmp_transport.obj : warning LNK4217: locally defined symbol _netsnmp_calloc imported in function _find_tdomain
read_config.obj : warning LNK4217: locally defined symbol _netsnmp_calloc imported in function _get_configuration_directory
snmp_alarm.obj : warning LNK4049: locally defined symbol _netsnmp_calloc imported
snmp_api.obj : warning LNK4049: locally defined symbol _netsnmp_calloc imported
snmp_client.obj : warning LNK4049: locally defined symbol _netsnmp_calloc imported
lcd_time.obj : warning LNK4049: locally defined symbol _netsnmp_calloc imported
mib.obj : warning LNK4217: locally defined symbol _netsnmp_calloc imported in function _sprint_realloc_octet_string
oid_stash.obj : warning LNK4217: locally defined symbol _netsnmp_calloc imported in function _netsnmp_oid_stash_free
parse.obj : warning LNK4049: locally defined symbol _netsnmp_calloc imported
container_list_ssll.obj : warning LNK4049: locally defined symbol _netsnmp_calloc imported
container_null.obj : warning LNK4049: locally defined symbol _netsnmp_calloc imported
data_list.obj : warning LNK4217: locally defined symbol _netsnmp_calloc imported in function _netsnmp_save_all_data
default_store.obj : warning LNK4049: locally defined symbol _netsnmp_calloc imported
callback.obj : warning LNK4217: locally defined symbol _netsnmp_calloc imported in function _netsnmp_register_callback
container.obj : warning LNK4049: locally defined symbol _netsnmp_calloc imported
container_binary_array.obj : warning LNK4217: locally defined symbol _netsnmp_calloc imported in function _netsnmp_binary_array_insert
container_iterator.obj : warning LNK4049: locally defined symbol _netsnmp_calloc imported
snmpusm.obj : warning LNK4049: locally defined symbol _netsnmp_strdup imported
snmpv3.obj : warning LNK4217: locally defined symbol _netsnmp_strdup imported in function _snmpv3_privtype_conf
system.obj : warning LNK4049: locally defined symbol _netsnmp_strdup imported
vacm.obj : warning LNK4049: locally defined symbol _netsnmp_strdup imported
snmp_service.obj : warning LNK4049: locally defined symbol _netsnmp_strdup imported
snmpCallbackDomain.obj : warning LNK4049: locally defined symbol _netsnmp_strdup imported
snmpTCPDomain.obj : warning LNK4217: locally defined symbol _netsnmp_strdup imported in function _netsnmp_tcp_accept
snmpUDPDomain.obj : warning LNK4217: locally defined symbol _netsnmp_strdup imported in function __sock_buffer_maximize
snmp_enum.obj : warning LNK4049: locally defined symbol _netsnmp_strdup imported
snmp_logging.obj : warning LNK4049: locally defined symbol _netsnmp_strdup imported
snmp_parse_args.obj : warning LNK4217: locally defined symbol _netsnmp_strdup imported in function _snmp_parse_args_descriptions
snmp_secmod.obj : warning LNK4049: locally defined symbol _netsnmp_strdup imported
parse.obj : warning LNK4049: locally defined symbol _netsnmp_strdup imported
read_config.obj : warning LNK4049: locally defined symbol _netsnmp_strdup imported
snmp_api.obj : warning LNK4049: locally defined symbol _netsnmp_strdup imported
snmp_debug.obj : warning LNK4049: locally defined symbol _netsnmp_strdup imported
container.obj : warning LNK4217: locally defined symbol _netsnmp_strdup imported in function _netsnmp_container_register_with_compare
data_list.obj : warning LNK4049: locally defined symbol _netsnmp_strdup imported
default_store.obj : warning LNK4217: locally defined symbol _netsnmp_strdup imported in function _netsnmp_ds_set_string
mib.obj : warning LNK4049: locally defined symbol _netsnmp_strdup imported
mib.obj : warning LNK4217: locally defined symbol _netsnmp_realloc imported in function _parse_hints_add_result_octet
snmp_api.obj : warning LNK4049: locally defined symbol _netsnmp_realloc imported
system.obj : warning LNK4049: locally defined symbol _netsnmp_realloc imported
Embedding manifest...
Build log was saved at "file://c:\net-snmp\win32\libsnmp_dll\Release\BuildLog.htm"
libsnmp_dll - 0 error(s), 120 warning(s)
------ Rebuild All started: Project: libhelpers, Configuration: Release Win32 ------
Deleting intermediate and output files for project 'libhelpers', configuration 'Release|Win32'
Compiling...
all_helpers.c
watcher.c
table_iterator.c
table_dataset.c
table_tdata.c
table_data.c
table_container.c
..\..\agent\helpers\table_container.c(182) : warning C4244: '=' : conversion from 'long' to 'char', possible loss of data
table_array.c
table.c
stash_to_next.c
stash_cache.c
serialize.c
scalar_group.c
scalar.c
row_merge.c
read_only.c
old_api.c
null.c
multiplexer.c
mode_end_call.c
Generating Code...
Compiling...
instance.c
debug_handler.c
cache_handler.c
bulk_to_next.c
baby_steps.c
Generating Code...
Creating library...
Build log was saved at "file://c:\net-snmp\win32\libhelpers\Release\BuildLog.htm"
libhelpers - 0 error(s), 1 warning(s)
------ Rebuild All started: Project: libagent, Configuration: Release Win32 ------
Deleting intermediate and output files for project 'libagent', configuration 'Release|Win32'
Compiling...
agent_handler.c
snmp_vars.c
..\agent_module_inits.h(3) : warning C4013: 'init_iquery' undefined; assuming extern returning int
snmp_agent.c
agent_trap.c
..\..\agent\agent_trap.c(1104) : warning C4101: 'sinkport' : unreferenced local variable
..\..\agent\agent_trap.c(1127) : warning C4101: 'sinkport' : unreferenced local variable
agent_registry.c
..\..\agent\agent_registry.c(982) : warning C4018: '<=' : signed/unsigned mismatch
agent_read_config.c
agent_index.c
Generating Code...
Creating library...
Build log was saved at "file://c:\net-snmp\win32\libagent\Release\BuildLog.htm"
libagent - 0 error(s), 4 warning(s)
------ Rebuild All started: Project: libnetsnmptrapd, Configuration: Release Win32 ------
Deleting intermediate and output files for project 'libnetsnmptrapd', configuration 'Release|Win32'
Compiling...
snmptrapd.c
snmptrapd_auth.c
snmptrapd_log.c
..\..\apps\snmptrapd_log.c(875) : warning C4133: 'function' : incompatible types - from 'u_char *' to 'const oid *'
..\..\apps\snmptrapd_log.c(1105) : warning C4018: '<' : signed/unsigned mismatch
snmptrapd_handlers.c
Generating Code...
Creating library...
Build log was saved at "file://c:\net-snmp\win32\libnetsnmptrapd\Release\BuildLog.htm"
libnetsnmptrapd - 0 error(s), 2 warning(s)
========== Rebuild All: 5 succeeded, 0 failed, 0 skipped ==========
MSVC2005-win32-buildlog.txt (text/plain, 283.9 KB) - not displayed
MSVC2005-win32sdk-buildlog.txt (text/plain, 286.4 KB) - not displayed
clean.out (application/octet-stream, 12.7 KB) - not displayed
configure.out (application/octet-stream, 1.2 KB) - not displayed
make.out (application/octet-stream, 366.7 KB) - not displayed
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.