Revision history [back]
Compile Error with Visual Studio 15
Kind of following instructions from the website
https://www.wireshark.org/docs/wsdg_h...
I was able to install packages and figure out the build procedure. The command line threw a bunch of errors without the ability to narrow in on the cause. I used the IDE and found a fault occurred in compiling ascend.c file.
Git SHA1: db68ece98074436f45622b12e2e6a8dfa5cd3bb1
Everything else seems to be okay with the compile.
Specifically around this bit of code...any ideas that could help?
Lines 401 - 440 of ascend.c
ifdef YYSTACK_ALLOC /* Pacify GCC's `empty if-body' warning. */
define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
ifndef YYSTACK_ALLOC_MAXIMUM
/* The OS might guarantee only one guard page at the bottom of the stack, and a page size can be as small as 4096 bytes. So we cannot safely invoke alloca (N) if N exceeds 4096. Use a slightly smaller number to allow for a few compiler-allocated temporary stack slots. / define YYSTACK_ALLOC_MAXIMUM 4032 / reasonable circa 2006 */
endif
else
define YYSTACK_ALLOC YYMALLOC
define YYSTACK_FREE YYFREE
ifndef YYSTACK_ALLOC_MAXIMUM
define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM endif
if (defined __cplusplus && ! defined _STDLIB_H \ && ! ((defined YYMALLOC || defined malloc) \ && (defined YYFREE || defined free)))
include /* INFRINGES ON USER NAME SPACE */
ifndef _STDLIB_H
define _STDLIB_H 1
endif
endif
ifndef YYMALLOC
define YYMALLOC malloc
if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER)
????? warning treated as error - no 'object' file generated ????
void malloc (YYSIZE_T); / INFRINGES ON USER NAME SPACE */
endif
endif
ifndef YYFREE
define YYFREE free
if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER)
void free (void ); / INFRINGES ON USER NAME SPACE */
endif
endif
endif
endif /* ! defined yyoverflow || YYERROR_VERBOSE */
Compile Error with Visual Studio 15
Kind of following instructions from the website
https://www.wireshark.org/docs/wsdg_h...
I was able to install packages and figure out the build procedure. The command line threw a bunch of errors without the ability to narrow in on the cause. I used the IDE and found a fault occurred in compiling ascend.c file.
Git SHA1: db68ece98074436f45622b12e2e6a8dfa5cd3bb1
Everything else seems to be okay with the compile.
Specifically around this bit of code...any ideas that could help?
Lines 401 - 440 of ascend.c
ifdef YYSTACK_ALLOC /* Pacify GCC's `empty if-body' warning. */
define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
ifndef YYSTACK_ALLOC_MAXIMUM
/* The OS might guarantee only one guard page at the bottom of the stack, and a page size can be as small as 4096 bytes. So we cannot safely invoke alloca (N) if N exceeds 4096. Use a slightly smaller number to allow for a few compiler-allocated temporary stack slots. / define YYSTACK_ALLOC_MAXIMUM 4032 / reasonable circa 2006 */
endif
else
define YYSTACK_ALLOC YYMALLOC
define YYSTACK_FREE YYFREE
ifndef YYSTACK_ALLOC_MAXIMUM
define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM endif
if (defined __cplusplus && ! defined _STDLIB_H \ && ! ((defined YYMALLOC || defined malloc) \ && (defined YYFREE || defined free)))
include /* INFRINGES ON USER NAME SPACE */
ifndef _STDLIB_H
define _STDLIB_H 1
endif
endif
ifndef YYMALLOC
define YYMALLOC malloc
if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER)
????? warning treated as error - no 'object' file generated ????
void malloc (YYSIZE_T); / INFRINGES ON USER NAME SPACE */
endif
endif
ifndef YYFREE
define YYFREE free
if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER)
void free (void ); / INFRINGES ON USER NAME SPACE */
endif
endif
endif
endif /* ! defined yyoverflow || YYERROR_VERBOSE */
Compile Error with Visual Studio 15
Kind of following instructions from the website
https://www.wireshark.org/docs/wsdg_h...
I was able to install packages and figure out the build procedure. The command line threw a bunch of errors without the ability to narrow in on the cause. I used the IDE and found a fault occurred in compiling ascend.c file.
Git SHA1: db68ece98074436f45622b12e2e6a8dfa5cd3bb1
Everything else seems to be okay with the compile.
Specifically around this bit of code...any ideas that could help?
Lines 401 - 440 of ascend.c
define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
ifndef YYSTACK_ALLOC_MAXIMUM
/* The OS might guarantee only one guard page at the bottom of the stack, and a page size can be as small as 4096 bytes. So we cannot safely invoke alloca (N) if N exceeds 4096. Use a slightly smaller number to allow for a few compiler-allocated temporary stack slots. / define YYSTACK_ALLOC_MAXIMUM 4032 / reasonable circa 2006 */
endif
else
define YYSTACK_ALLOC YYMALLOC
define YYSTACK_FREE YYFREE
ifndef YYSTACK_ALLOC_MAXIMUM
define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM endif
if (defined __cplusplus && ! defined _STDLIB_H \ && ! ((defined YYMALLOC || defined malloc) \ && (defined YYFREE || defined free)))
include /* INFRINGES ON USER NAME SPACE */
ifndef _STDLIB_H
define _STDLIB_H 1
endif
endif
ifndef YYMALLOC
define YYMALLOC malloc
if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER)
????? warning treated as error - no 'object' file generated ????
void malloc (YYSIZE_T); / INFRINGES ON USER NAME SPACE */
endif
endif
ifndef YYFREE
define YYFREE free
if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER)
void free (void ); / INFRINGES ON USER NAME SPACE */
endif
endif
endif
endif /* ! defined yyoverflow || YYERROR_VERBOSE */