Wireshark-users: Re: [Wireshark-users] dragonflyBSD compiling failing from trunk

From: jungle Boogie <jungleboogie0@xxxxxxxxx>
Date: Sun, 22 May 2016 20:51:26 -0700
On 22 May 2016 at 19:24, Guy Harris <guy@xxxxxxxxxxxx> wrote:
> On May 22, 2016, at 7:10 PM, Guy Harris <guy@xxxxxxxxxxxx> wrote:
>
>> It looks as if OS X's <arpa/inet.h> include <netinet/in.h>, but DragonFly BSD's <arpa/inet.h> doesn't.  Presumably the Linuxes on which we build also have <arpa/inet.h> including something that eventually causes <netinet/in.h> to be included, and whatever is necessary happens on Windows with MSVC's header files as well.
>>
>> But it's a bug to rely on that, so I've checked in a change to explicitly include <netinet/in.h>.
>
> And it might be necessary to explicitly include <sys/socket.h> as well, so I've checked in *another* change to do so.  Do "git pull"s until you have a version of wsutil/interface.c that includes both <sys/socket.h> and <netinet/in.h>.

That gets me further but still fails:

 CC       ws_version_info.lo
  CC       libwiretap_generated_la-ascend.lo
ascend.c: In function 'ascendparse':
ascend.c:38:20: warning: declaration of 'ascendlval' shadows a global
declaration [-Wshadow]
 #define yylval     ascendlval
                    ^
ascend.c:684:14: note: in expansion of macro 'yylval'
     YYSTYPE  yylval;
              ^
In file included from ./ascend.y:163:0:
ascend.h:25:16: note: shadowed declaration is here
 extern YYSTYPE ascendlval;
                ^
./ascend.y:227:3: error: 'parser_state' undeclared (first use in this function)
   parser_state->wirelen += $11;
   ^
./ascend.y:227:3: note: each undeclared identifier is reported only
once for each function it appears in
Makefile:1008: recipe for target 'libwiretap_generated_la-ascend.lo' failed
gmake[3]: *** [libwiretap_generated_la-ascend.lo] Error 1
gmake[3]: Leaving directory '/home/user/bin/wireshark/wiretap'
Makefile:826: recipe for target 'all' failed
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory '/home/user/bin/wireshark/wiretap'
Makefile:3259: recipe for target 'all-recursive' failed
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory '/home/user/bin/wireshark'
Makefile:1782: recipe for target 'all' failed
gmake: *** [all] Error 2



-- 
-------
inum: 883510009027723
sip: jungleboogie@xxxxxxxxxxxx
xmpp: jungle-boogie@xxxxxx