Re: Net-SNMP-5.9 Error when compiling with Visual Studio 2005

2020-12-12 Thread Bart Van Assche
On 12/11/20 1:05 AM, Christophe CASSIGNOL wrote:
> Thank you for your reply.
> 
> I did what you asked.
> I downloaded the perl-5.31.10 and recompiled it with my VS2005.
> 
> Then I tried again to compile Net-SNMP (I used the latest version from
> GitHub) and I have the same errors (without the warning).
> 
> I have attached the configure.out, make.out, and net-snmp-config.h files.

Hi Christophe,

Thanks for having shared the output of the make command (make.out).
Although I do not have access to a system with VS2005, I have identified
and checked in a candidate fix on the v5.9 and master branches. Please
download the latest copy of the v5.9 branch and retest.

Thanks,

Bart.



___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Net-SNMP-5.9 Error when compiling with Visual Studio 2005

2020-12-11 Thread Christophe CASSIGNOL

Hello Bart,

Thank you for your reply.

I did what you asked.
I downloaded the perl-5.31.10 and recompiled it with my VS2005.

Then I tried again to compile Net-SNMP (I used the latest version from 
GitHub) and I have the same errors (without the warning).


I have attached the configure.out, make.out, and net-snmp-config.h files.

Thanks for your help.

On 11/12/2020 04:32, Bart Van Assche wrote:

On 12/10/20 2:51 AM, Christophe CASSIGNOL wrote:

Hi everyone,

I am trying to compile the latest Net-SNMP-5.9 with Visual Studio 2005
but I have an error :

snmpUDPBaseDomain.c
..\..\snmplib\transports\snmpUDPBaseDomain.c(540) : error C2143: syntax
error : missing ';' before 'type'
[ ... ]

Any ideas ?

With Net-SNMP-5.8, I don't have this error.

Hi Christophe,

Thank you for having attached the make.out file. In that file I see the
following:

cl : Command line warning D9002 : ignoring unknown option '-s'
cl : Command line warning D9002 : ignoring unknown option '-fwrapv'
cl : Command line warning D9002 : ignoring unknown option
'-fno-strict-aliasing'
cl : Command line warning D9002 : ignoring unknown option '-mms-bitfields'

Does this mean that the Net-SNMP code is built with Visual Studio, that
the Perl extensions have been enabled and that the Perl interpreter has
been built with gcc? That combination is not supported. I recommend to
download the Perl source code, build it with Visual Studio and next
build Net-SNMP with Visual Studio. A script for downloading and building
Perl is available in ci/perl.bat.

Additionally, please use the latest version of the v5.9 branch instead
of the v5.9 release
(https://github.com/net-snmp/net-snmp/tree/V5-9-patches).

Thanks,

Bart.


cd libagent
nmake /nologo all
cl.exe /I.. /I..\..\include /I..\..\agent\mibgroup /D 
NETSNMP_REMOVE_U64 /D VC_EXTRALEAN /D WIN32 /D _CONSOLE /D 
_CRT_NONSTDC_NO_WARNINGS /D _CRT_SECURE_NO_WARNINGS /D _MBCS /D 
_WIN32_WINNT=0x /D _WINSOCK_DEPRECATED_NO_WARNINGS /D WIN32_LEAN_AND_MEAN 
/EHsc /FD /FR.\release\ /Fd.\release\libagent.pdb /Fo.\release\ /I 
D:\Sources\AES\openssl-1.1.1i\include  -nologo -GF -W3 -MD -DWIN32 -D_CONSOLE 
-DNO_STRICT -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE  
-DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS  
-I"C:\Perl\5.31.10\lib\CORE"  /c /W3 /Zi /nologo /MD  /D NDEBUG /O2 
..\..\agent\agent_handler.c ..\..\agent\agent_index.c 
..\..\agent\agent_read_config.c ..\..\agent\agent_registry.c 
..\..\agent\agent_sysORTable.c ..\..\agent\agent_trap.c ..\..\agent\kernel.c 
..\..\agent\snmp_agent.c ..\..\agent\snmp_vars.c 
agent_handler.c
agent_index.c
agent_read_config.c
agent_registry.c
agent_sysORTable.c
agent_trap.c
kernel.c
snmp_agent.c
snmp_vars.c
D:\Sources\AES\net-snmp-5.9\win32\agent_module_inits.h(3) : warning C4013: 
'init_iquery' undefined; assuming extern returning int
Generating Code...
cl.exe /I.. /I..\..\include /I..\..\agent\mibgroup /D 
NETSNMP_REMOVE_U64 /D VC_EXTRALEAN /D WIN32 /D _CONSOLE /D 
_CRT_NONSTDC_NO_WARNINGS /D _CRT_SECURE_NO_WARNINGS /D _MBCS /D 
_WIN32_WINNT=0x /D _WINSOCK_DEPRECATED_NO_WARNINGS /D WIN32_LEAN_AND_MEAN 
/EHsc /FD /FR.\release\ /Fd.\release\libagent.pdb /Fo.\release\ /I 
D:\Sources\AES\openssl-1.1.1i\include  -nologo -GF -W3 -MD -DWIN32 -D_CONSOLE 
-DNO_STRICT -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE  
-DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS  
-I"C:\Perl\5.31.10\lib\CORE"  /c /W3 /Zi /nologo /MD  /D NDEBUG /O2 
..\..\agent\helpers\all_helpers.c ..\..\agent\helpers\baby_steps.c 
..\..\agent\helpers\bulk_to_next.c ..\..\agent\helpers\cache_handler.c 
..\..\agent\helpers\debug_handler.c ..\..\agent\helpers\instance.c 
..\..\agent\helpers\mode_end_call.c ..\..\agent\helpers\multiplexer.c 
..\..\agent\helpers\null.c ..\..\agent\helpers\old_api.c 
..\..\agent\helpers\read_only.c ..\..\agent\helpers\row_merge.c 
..\..\agent\helpers\scalar.c ..\..\agent\helpers\scalar_group.c 
..\..\agent\helpers\serialize.c ..\..\agent\helpers\snmp_get_statistic.c 
..\..\agent\helpers\stash_cache.c ..\..\agent\helpers\stash_to_next.c 
..\..\agent\helpers\table.c ..\..\agent\helpers\table_array.c 
..\..\agent\helpers\table_container.c ..\..\agent\helpers\table_data.c 
..\..\agent\helpers\table_dataset.c ..\..\agent\helpers\table_iterator.c 
..\..\agent\helpers\table_tdata.c ..\..\agent\helpers\watcher.c 
all_helpers.c
baby_steps.c
bulk_to_next.c
cache_handler.c
debug_handler.c
instance.c
mode_end_call.c
multiplexer.c
null.c
old_api.c
read_only.c
row_merge.c
scalar.c
scalar_group.c
serialize.c
snmp_get_statistic.c
stash_cache.c
stash_to_next.c
table.c
table_array.c
Generating Code...
Compiling...
table_container.c
table_data.c
table_dataset.c
table_iterator.c
table_tdata.c
watcher.c
Generating Code...
link.exe -lib /nologo /out:"..\lib\.\release\netsnmpagent.lib" 
/libpath:D:\Sources\AES\openssl-1.1.1i\lib\Release_Shared /MANIFEST:EMBED  
".\release\agent_handler.obj"  

Re: Net-SNMP-5.9 Error when compiling with Visual Studio 2005

2020-12-10 Thread Bart Van Assche
On 12/10/20 2:51 AM, Christophe CASSIGNOL wrote:
> Hi everyone,
> 
> I am trying to compile the latest Net-SNMP-5.9 with Visual Studio 2005
> but I have an error :
> 
> snmpUDPBaseDomain.c
> ..\..\snmplib\transports\snmpUDPBaseDomain.c(540) : error C2143: syntax
> error : missing ';' before 'type'
> [ ... ]
> 
> Any ideas ?
> 
> With Net-SNMP-5.8, I don't have this error.

Hi Christophe,

Thank you for having attached the make.out file. In that file I see the
following:

cl : Command line warning D9002 : ignoring unknown option '-s'
cl : Command line warning D9002 : ignoring unknown option '-fwrapv'
cl : Command line warning D9002 : ignoring unknown option
'-fno-strict-aliasing'
cl : Command line warning D9002 : ignoring unknown option '-mms-bitfields'

Does this mean that the Net-SNMP code is built with Visual Studio, that
the Perl extensions have been enabled and that the Perl interpreter has
been built with gcc? That combination is not supported. I recommend to
download the Perl source code, build it with Visual Studio and next
build Net-SNMP with Visual Studio. A script for downloading and building
Perl is available in ci/perl.bat.

Additionally, please use the latest version of the v5.9 branch instead
of the v5.9 release
(https://github.com/net-snmp/net-snmp/tree/V5-9-patches).

Thanks,

Bart.


___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users