From: SourceForge.net <no...@so...> - 2004-01-31 03:29:51
|
Bugs item #842124, was opened at 2003-11-14 09:18 Message generated for change (Comment added) made by slif You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=842124&group_id=12694 Category: configure Group: None >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Compilation Error in MS VC++ on net-snmp-5.1.pre3 Initial Comment: Lots of error generated when compile net-snmp-5.1.pre3 on MS VC++ v6. The platform is on windows 2000. -------------------Configuration: libsnmp - Win32 Release-------------------- Compiling... asn1.c ..\..\include\net-snmp/library/data_list.h(39) : error C2054: expected '(' to follow 'inline' ..\..\include\net-snmp/library/data_list.h(40) : error C2085: 'netsnmp_create_data_list' : not in formal parameter list ..\..\include\net-snmp/library/data_list.h(42) : error C2085: 'netsnmp_data_list_add_node' : not in formal parameter list ..\..\include\net-snmp/library/data_list.h(46) : error C2085: 'netsnmp_data_list_add_data' : not in formal parameter list ..\..\include\net-snmp/library/data_list.h(48) : error C2085: 'netsnmp_get_list_data' : not in formal parameter list ..\..\include\net-snmp/library/data_list.h(49) : error C2085: 'netsnmp_free_list_data' : not in formal parameter list ..\..\include\net-snmp/library/data_list.h(50) : error C2085: 'netsnmp_free_all_list_data' : not in formal parameter list ..\..\include\net-snmp/library/data_list.h(52) : error C2085: 'netsnmp_remove_list_node' : not in formal parameter list ..\..\include\net-snmp/library/data_list.h(53) : error C2061: syntax error : identifier 'inline' ..\..\include\net-snmp/library/container.h(260) : error C2370: 'inline' : redefinition; different storage class ..\..\include\net-snmp/library/data_list.h(39) : see declaration of 'inline' ..\..\include\net-snmp/library/container.h(260) : error C2054: expected '(' to follow 'inline' ..\..\include\net-snmp/library/container.h(261) : error C2085: 'CONTAINER_INSERT' : not in formal parameter list ..\..\include\net-snmp/library/container.h(261) : error C2143: syntax error : missing ';' before '{' ..\..\include\net-snmp/library/container.h(283) : error C2370: 'inline' : redefinition; different storage class ..\..\include\net-snmp/library/data_list.h(39) : see declaration of 'inline' ..\..\include\net-snmp/library/container.h(283) : error C2054: expected '(' to follow 'inline' ..\..\include\net-snmp/library/container.h(284) : error C2085: 'CONTAINER_REMOVE' : not in formal parameter list ..\..\include\net-snmp/library/container.h(284) : error C2143: syntax error : missing ';' before '{' ..\..\include\net-snmp/library/container.h(305) : error C2370: 'inline' : redefinition; different storage class ..\..\include\net-snmp/library/data_list.h(39) : see declaration of 'inline' ..\..\include\net-snmp/library/container.h(305) : error C2054: expected '(' to follow 'inline' ..\..\include\net-snmp/library/container.h(306) : error C2085: 'CONTAINER_FREE' : not in formal parameter list ..\..\include\net-snmp/library/container.h(306) : error C2143: syntax error : missing ';' before '{' callback.c ..\..\include\net-snmp/library/data_list.h(39) : error C2054: expected '(' to follow 'inline' ..\..\include\net-snmp/library/data_list.h(40) : error C2085: 'netsnmp_create_data_list' : not in formal parameter list ..\..\include\net-snmp/library/data_list.h(42) : error C2085: 'netsnmp_data_list_add_node' : not in formal parameter list ..\..\include\net-snmp/library/data_list.h(46) : error C2085: 'netsnmp_data_list_add_data' : not in formal parameter list ..\..\include\net-snmp/library/data_list.h(48) : error C2085: 'netsnmp_get_list_data' : not in formal parameter list ..\..\include\net-snmp/library/data_list.h(49) : error C2085: 'netsnmp_free_list_data' : not in formal parameter list ..\..\include\net-snmp/library/data_list.h(50) : error C2085: 'netsnmp_free_all_list_data' : not in formal parameter list ..\..\include\net-snmp/library/data_list.h(52) : error C2085: 'netsnmp_remove_list_node' : not in formal parameter list ..\..\include\net-snmp/library/data_list.h(53) : error C2061: syntax error : identifier 'inline' ..\..\include\net-snmp/library/container.h(260) : error C2370: 'inline' : redefinition; different storage class ..\..\include\net-snmp/library/data_list.h(39) : see declaration of 'inline' ..\..\include\net-snmp/library/container.h(260) : error C2054: expected '(' to follow 'inline' ..\..\include\net-snmp/library/container.h(261) : error C2085: 'CONTAINER_INSERT' : not in formal parameter list ..\..\include\net-snmp/library/container.h(261) : error C2143: syntax error : missing ';' before '{' ..\..\include\net-snmp/library/container.h(283) : error C2370: 'inline' : redefinition; different storage class ..\..\include\net-snmp/library/data_list.h(39) : see declaration of 'inline' ..\..\include\net-snmp/library/container.h(283) : error C2054: expected '(' to follow 'inline' ..\..\include\net-snmp/library/container.h(284) : error C2085: 'CONTAINER_REMOVE' : not in formal parameter list ..\..\include\net-snmp/library/container.h(284) : error C2143: syntax error : missing ';' before '{' ..\..\include\net-snmp/library/container.h(305) : error C2370: 'inline' : redefinition; different storage class ..\..\include\net-snmp/library/data_list.h(39) : see declaration of 'inline' ..\..\include\net-snmp/library/container.h(305) : error C2054: expected '(' to follow 'inline' ..\..\include\net-snmp/library/container.h(306) : error C2085: 'CONTAINER_FREE' : not in formal parameter list ..\..\include\net-snmp/library/container.h(306) : error C2143: syntax error : missing ';' before '{' check_varbind.c ..\..\include\net-snmp/library/data_list.h(39) : error C2054: expected '(' to follow 'inline' ..\..\include\net-snmp/library/data_list.h(40) : error C2085: 'netsnmp_create_data_list' : not in formal parameter list ..\..\include\net-snmp/library/data_list.h(42) : error C2085: 'netsnmp_data_list_add_node' : not in formal parameter list ..\..\include\net-snmp/library/data_list.h(46) : error C2085: 'netsnmp_data_list_add_data' : not in formal parameter list ..\..\include\net-snmp/library/data_list.h(48) : error C2085: 'netsnmp_get_list_data' : not in formal parameter list ..\..\include\net-snmp/library/data_list.h(49) : error C2085: 'netsnmp_free_list_data' : not in formal parameter list ..\..\include\net-snmp/library/data_list.h(50) : error C2085: 'netsnmp_free_all_list_data' : not in formal parameter list ..\..\include\net-snmp/library/data_list.h(52) : error C2085: 'netsnmp_remove_list_node' : not in formal parameter list ..\..\include\net-snmp/library/data_list.h(53) : error C2061: syntax error : identifier 'inline' ..\..\include\net-snmp/library/container.h(260) : error C2370: 'inline' : redefinition; different storage class ..\..\include\net-snmp/library/data_list.h(39) : see declaration of 'inline' ..\..\include\net-snmp/library/container.h(260) : error C2054: expected '(' to follow 'inline' ..\..\include\net-snmp/library/container.h(261) : error C2085: 'CONTAINER_INSERT' : not in formal parameter list ..\..\include\net-snmp/library/container.h(261) : error C2143: syntax error : missing ';' before '{' ..\..\include\net-snmp/library/container.h(283) : error C2370: 'inline' : redefinition; different storage class ..\..\include\net-snmp/library/data_list.h(39) : see declaration of 'inline' ..\..\include\net-snmp/library/container.h(283) : error C2054: expected '(' to follow 'inline' ..\..\include\net-snmp/library/container.h(284) : error C2085: 'CONTAINER_REMOVE' : not in formal parameter list ..\..\include\net-snmp/library/container.h(284) : error C2143: syntax error : missing ';' before '{' ..\..\include\net-snmp/library/container.h(305) : error C2370: 'inline' : redefinition; different storage class ..\..\include\net-snmp/library/data_list.h(39) : see declaration of 'inline' ..\..\include\net-snmp/library/container.h(305) : error C2054: expected '(' to follow 'inline' ..\..\include\net-snmp/library/container.h(306) : error C2085: 'CONTAINER_FREE' : not in formal parameter list ..\..\include\net-snmp/library/container.h(306) : error C2143: syntax error : missing ';' before '{' E:\Temp\net-snmp-5.1.pre3\snmplib\check_varbind.c (8) : error C2054: expected '(' to follow 'inline' E:\Temp\net-snmp-5.1.pre3\snmplib\check_varbind.c (9) : error C2082: redefinition of formal parameter 'netsnmp_check_vb_type' E:\Temp\net-snmp-5.1.pre3\snmplib\check_varbind.c (9) : error C2143: syntax error : missing ';' before '{' E:\Temp\net-snmp-5.1.pre3\snmplib\check_varbind.c (23) : error C2054: expected '(' to follow 'inline' E:\Temp\net-snmp-5.1.pre3\snmplib\check_varbind.c (24) : error C2082: redefinition of formal parameter 'netsnmp_check_vb_size' E:\Temp\net-snmp-5.1.pre3\snmplib\check_varbind.c (24) : error C2143: syntax error : missing ';' before '{' E:\Temp\net-snmp-5.1.pre3\snmplib\check_varbind.c (38) : error C2054: expected '(' to follow 'inline' E:\Temp\net-snmp-5.1.pre3\snmplib\check_varbind.c (40) : error C2082: redefinition of formal parameter 'netsnmp_check_vb_size_range' E:\Temp\net-snmp-5.1.pre3\snmplib\check_varbind.c (40) : error C2143: syntax error : missing ';' before '{' E:\Temp\net-snmp-5.1.pre3\snmplib\check_varbind.c (54) : error C2054: expected '(' to follow 'inline' E:\Temp\net-snmp-5.1.pre3\snmplib\check_varbind.c (56) : error C2082: redefinition of formal parameter 'netsnmp_check_vb_type_and_size' E:\Temp\net-snmp-5.1.pre3\snmplib\check_varbind.c (56) : error C2143: syntax error : missing ';' before '{' E:\Temp\net-snmp-5.1.pre3\snmplib\check_varbind.c (71) : error C2054: expected '(' to follow 'inline' E:\Temp\net-snmp-5.1.pre3\snmplib\check_varbind.c (72) : error C2082: redefinition of formal parameter 'netsnmp_check_vb_int_range' E:\Temp\net-snmp-5.1.pre3\snmplib\check_varbind.c (72) : error C2143: syntax error : missing ';' before '{' E:\Temp\net-snmp-5.1.pre3\snmplib\check_varbind.c (103) : error C2054: expected '(' to follow 'inline' E:\Temp\net-snmp-5.1.pre3\snmplib\check_varbind.c (104) : error C2082: redefinition of formal parameter 'netsnmp_check_vb_rowstatus_value' E:\Temp\net-snmp-5.1.pre3\snmplib\check_varbind.c (104) : error C2143: syntax error : missing ';' before '{' container.c ..\..\include\net-snmp/library/data_list.h(39) : error C2054: expected '(' to follow 'inline' ..\..\include\net-snmp/library/data_list.h(40) : error C2085: 'netsnmp_create_data_list' : not in formal parameter list ..\..\include\net-snmp/library/data_list.h(42) : error C2085: 'netsnmp_data_list_add_node' : not in formal parameter list ..\..\include\net-snmp/library/data_list.h(46) : error C2085: 'netsnmp_data_list_add_data' : not in formal parameter list ..\..\include\net-snmp/library/data_list.h(48) : error C2085: 'netsnmp_get_list_data' : not in formal parameter list ..\..\include\net-snmp/library/data_list.h(49) : error C2085: 'netsnmp_free_list_data' : not in formal parameter list ..\..\include\net-snmp/library/data_list.h(50) : error C2085: 'netsnmp_free_all_list_data' : not in formal parameter list ..\..\include\net-snmp/library/data_list.h(52) : error C2085: 'netsnmp_remove_list_node' : not in formal parameter list ..\..\include\net-snmp/library/data_list.h(53) : error C2061: syntax error : identifier 'inline' ..\..\include\net-snmp/library/container.h(260) : error C2370: 'inline' : redefinition; different storage class ..\..\include\net-snmp/library/data_list.h(39) : see declaration of 'inline' ..\..\include\net-snmp/library/container.h(260) : error C2054: expected '(' to follow 'inline' ..\..\include\net-snmp/library/container.h(261) : error C2085: 'CONTAINER_INSERT' : not in formal parameter list ..\..\include\net-snmp/library/container.h(261) : error C2143: syntax error : missing ';' before '{' ..\..\include\net-snmp/library/container.h(283) : error C2370: 'inline' : redefinition; different storage class ..\..\include\net-snmp/library/data_list.h(39) : see declaration of 'inline' ..\..\include\net-snmp/library/container.h(283) : error C2054: expected '(' to follow 'inline' ..\..\include\net-snmp/library/container.h(284) : error C2085: 'CONTAINER_REMOVE' : not in formal parameter list ..\..\include\net-snmp/library/container.h(284) : error C2143: syntax error : missing ';' before '{' ..\..\include\net-snmp/library/container.h(305) : error C2370: 'inline' : redefinition; different storage class ..\..\include\net-snmp/library/data_list.h(39) : see declaration of 'inline' ..\..\include\net-snmp/library/container.h(305) : error C2054: expected '(' to follow 'inline' ..\..\include\net-snmp/library/container.h(306) : error C2085: 'CONTAINER_FREE' : not in formal parameter list ..\..\include\net-snmp/library/container.h(306) : error C2143: syntax error : missing ';' before '{' E:\Temp\net-snmp-5.1.pre3\snmplib\container.c(31) : warning C4090: 'function' : different 'const' qualifiers E:\Temp\net-snmp-5.1.pre3\snmplib\container.c(31) : warning C4022: 'free' : pointer mismatch for actual parameter 1 E:\Temp\net-snmp-5.1.pre3\snmplib\container.c(84) : warning C4013: 'CONTAINER_FREE' undefined; assuming extern returning int E:\Temp\net-snmp-5.1.pre3\snmplib\container.c(106) : warning C4013: 'CONTAINER_INSERT' undefined; assuming extern returning int container_binary_array.c ..\..\include\net-snmp/library/data_list.h(39) : error C2054: expected '(' to follow 'inline' ..\..\include\net-snmp/library/data_list.h(40) : error C2085: 'netsnmp_create_data_list' : not in formal parameter list ..\..\include\net-snmp/library/data_list.h(42) : error C2085: 'netsnmp_data_list_add_node' : not in formal parameter list ..\..\include\net-snmp/library/data_list.h(46) : error C2085: 'netsnmp_data_list_add_data' : not in formal parameter list ..\..\include\net-snmp/library/data_list.h(48) : error C2085: 'netsnmp_get_list_data' : not in formal parameter list ..\..\include\net-snmp/library/data_list.h(49) : error C2085: 'netsnmp_free_list_data' : not in formal parameter list ..\..\include\net-snmp/library/data_list.h(50) : error C2085: 'netsnmp_free_all_list_data' : not in formal parameter list ..\..\include\net-snmp/library/data_list.h(52) : error C2085: 'netsnmp_remove_list_node' : not in formal parameter list ..\..\include\net-snmp/library/data_list.h(53) : error C2061: syntax error : identifier 'inline' ..\..\include\net-snmp/library/container.h(260) : error C2370: 'inline' : redefinition; different storage class ..\..\include\net-snmp/library/data_list.h(39) : see declaration of 'inline' ..\..\include\net-snmp/library/container.h(260) : error C2054: expected '(' to follow 'inline' ..\..\include\net-snmp/library/container.h(261) : error C2085: 'CONTAINER_INSERT' : not in formal parameter list ..\..\include\net-snmp/library/container.h(261) : error C2143: syntax error : missing ';' before '{' ..\..\include\net-snmp/library/container.h(283) : error C2370: 'inline' : redefinition; different storage class ..\..\include\net-snmp/library/data_list.h(39) : see declaration of 'inline' ..\..\include\net-snmp/library/container.h(283) : error C2054: expected '(' to follow 'inline' ..\..\include\net-snmp/library/container.h(284) : error C2085: 'CONTAINER_REMOVE' : not in formal parameter list ..\..\include\net-snmp/library/container.h(284) : error C2143: syntax error : missing ';' before '{' ..\..\include\net-snmp/library/container.h(305) : error C2370: 'inline' : redefinition; different storage class ..\..\include\net-snmp/library/data_list.h(39) : see declaration of 'inline' ..\..\include\net-snmp/library/container.h(305) : error C2054: expected '(' to follow 'inline' ..\..\include\net-snmp/library/container.h(306) : error C2085: 'CONTAINER_FREE' : not in formal parameter list ..\..\include\net-snmp/library/container.h(306) : error C2143: syntax error : missing ';' before '{' E:\Temp\net-snmp-5.1.pre3 \snmplib\container_binary_array.c(290) : warning C4018: '!=' : signed/unsigned mismatch container_list_ssll.c ..\..\include\net-snmp/library/data_list.h(39) : error C2054: expected '(' to follow 'inline' ..\..\include\net-snmp/library/data_list.h(40) : error C2085: 'netsnmp_create_data_list' : not in formal parameter list ..\..\include\net-snmp/library/data_list.h(42) : error C2085: 'netsnmp_data_list_add_node' : not in formal parameter list ..\..\include\net-snmp/library/data_list.h(46) : error C2085: 'netsnmp_data_list_add_data' : not in formal parameter list ..\..\include\net-snmp/library/data_list.h(48) : error C2085: 'netsnmp_get_list_data' : not in formal parameter list ..\..\include\net-snmp/library/data_list.h(49) : error C2085: 'netsnmp_free_list_data' : not in formal parameter list ..\..\include\net-snmp/library/data_list.h(50) : error C2085: 'netsnmp_free_all_list_data' : not in formal parameter list ..\..\include\net-snmp/library/data_list.h(52) : error C2085: 'netsnmp_remove_list_node' : not in formal parameter list ..\..\include\net-snmp/library/data_list.h(53) : error C2061: syntax error : identifier 'inline' ..\..\include\net-snmp/library/container.h(260) : error C2370: 'inline' : redefinition; different storage class ..\..\include\net-snmp/library/data_list.h(39) : see declaration of 'inline' ..\..\include\net-snmp/library/container.h(260) : error C2054: expected '(' to follow 'inline' ..\..\include\net-snmp/library/container.h(261) : error C2085: 'CONTAINER_INSERT' : not in formal parameter list ..\..\include\net-snmp/library/container.h(261) : error C2143: syntax error : missing ';' before '{' ..\..\include\net-snmp/library/container.h(283) : error C2370: 'inline' : redefinition; different storage class ..\..\include\net-snmp/library/data_list.h(39) : see declaration of 'inline' ..\..\include\net-snmp/library/container.h(283) : error C2054: expected '(' to follow 'inline' ..\..\include\net-snmp/library/container.h(284) : error C2085: 'CONTAINER_REMOVE' : not in formal parameter list ..\..\include\net-snmp/library/container.h(284) : error C2143: syntax error : missing ';' before '{' ..\..\include\net-snmp/library/container.h(305) : error C2370: 'inline' : redefinition; different storage class ..\..\include\net-snmp/library/data_list.h(39) : see declaration of 'inline' ..\..\include\net-snmp/library/container.h(305) : error C2054: expected '(' to follow 'inline' ..\..\include\net-snmp/library/container.h(306) : error C2085: 'CONTAINER_FREE' : not in formal parameter list ..\..\include\net-snmp/library/container.h(306) : error C2143: syntax error : missing ';' before '{' E:\Temp\net-snmp-5.1.pre3\snmplib\container_list_ssll.c (63) : warning C4090: 'return' : different 'const' qualifiers E:\Temp\net-snmp-5.1.pre3\snmplib\container_list_ssll.c (189) : warning C4090: 'function' : different 'const' qualifiers E:\Temp\net-snmp-5.1.pre3\snmplib\container_list_ssll.c (189) : warning C4022: 'f' : pointer mismatch for actual parameter 1 container_null.c cl.exe terminated at user request. Tool execution canceled by user. ---------------------------------------------------------------------- Comment By: Michael J. Slifcak (slif) Date: 2004-01-30 05:49 Message: Logged In: YES user_id=88697 Thanks for the bug report! We've fixed the problem in the 5.1.x code branch and the main development tree, so it should be fixed in future releases of the net-snmp package. ---------------------------------------------------------------------- Comment By: Alex Burger (alex_b) Date: 2003-11-17 08:35 Message: Logged In: YES user_id=85836 This has been fixed in the 5.1 release version. win32/net-snmp/net-snmp-config.h contains this fix: /* Define as `__inline' if that's what the C compiler calls it, or to nothing if it is not supported. */ #define inline __inline ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=842124&group_id=12694 |