Wireshark mailing list archives

Re: Build failures with ascend.c


From: Guy Harris <guy () alum mit edu>
Date: Mon, 19 Feb 2018 01:54:24 -0800

On Feb 19, 2018, at 12:26 AM, Jungle Boogie <jungleboogie0 () gmail com> wrote:

I can't build wireshark from master src because of this:
CC       toshiba.lo
 CC       visual.lo
 CC       vms.lo
 CC       vwr.lo
 CC       wtap.lo
 CC       wtap_opttypes.lo
 CC       ascend.lo
ascend.c: In function 'ascendparse':
ascend.c:38:20: error: declaration of 'ascendlval' shadows a global declaration [-Werror=shadow]                      
                                                              
#define yylval     ascendlval
                   ^
ascend.c:670:14: note: in expansion of macro 'yylval'
    YYSTYPE  yylval;
             ^
In file included from ./ascend.y:150:0:
ascend.h:25:16: note: shadowed declaration is here
extern YYSTYPE ascendlval;
               ^
cc1: all warnings being treated as errors
Makefile:936: recipe for target 'ascend.lo' failed
make[3]: *** [ascend.lo] Error 1

What version of Flex do you have?

I've seen similar issues when building libpcap on at least some BSDs, but not when building it on some versions of 
Linux distributions or on macOS.
___________________________________________________________________________
Sent via:    Wireshark-users mailing list <wireshark-users () wireshark org>
Archives:    https://www.wireshark.org/lists/wireshark-users
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-users
             mailto:wireshark-users-request () wireshark org?subject=unsubscribe

Current thread: