Wireshark-users: [Wireshark-users] dragonflyBSD compiling failing from trunk
From: jungle Boogie <jungleboogie0@xxxxxxxxx>
Date: Sun, 22 May 2016 18:19:13 -0700
Hi All,

Trying to build wireshark on my dragonflyBSD laptop with this dragonfly:
DragonFly 4.5-DEVELOPMENT DragonFly v4.5.0.972.g240f0-DEVELOPMENT
I'm on this commit:
http://gitweb.dragonflybsd.org/dragonfly.git/commit/240f0ad6e4174ffec8892758ad94f744ef8a4970

In other words, very recent.

I cloned the wireshark repo from github, ./autogen.sh and proceeded to
configure:
./configure --without-qt

That works:
The Wireshark package has been configured with the following options:
                       GLib version : v2.46.2
                    Build wireshark : no
                Build wireshark-gtk : yes (with GTK+ v3.18.8)
                       Build tshark : yes
                      Build tfshark : no
                     Build capinfos : yes
                      Build captype : yes
                      Build editcap : yes
                      Build dumpcap : yes
                     Build mergecap : yes
                   Build reordercap : yes
                    Build text2pcap : yes
                      Build randpkt : yes
                       Build dftest : yes
                     Build rawshark : yes
                  Build androiddump : yes
                      Build sshdump : no
                    Build ciscodump : no
                  Build randpktdump : yes
                        Build echld : no

   Save files as pcap-ng by default : yes
  Install dumpcap with capabilities : no
             Install dumpcap setuid : no
                  Use dumpcap group : (none)
                        Use plugins : yes
       Use external capture sources : yes
                    Use Lua library : yes
                Build Qt RTP player : no
              Build GTK+ RTP player : no
             Build profile binaries : no
                   Use pcap library : yes
                   Use zlib library : yes
               Use kerberos library : yes (MIT)
                 Use c-ares library : no (name resolution will be disabled)
                Use SMI MIB library : no
             Use GNU gcrypt library : yes
             Use SSL crypto library : no
                 Use GnuTLS library : yes
     Use POSIX capabilities library : no
                  Use GeoIP library : no
                 Use libssh library : no
            Have ssh_userauth_agent : no
                     Use nl library : no
              Use SBC codec library : no



Then comes to the make:
% gmake
  PERL     version.h
version.h unchanged.
gmake  all-recursive
gmake[1]: Entering directory '/home/user/bin/wireshark'
Making all in tools
gmake[2]: Entering directory '/home/user/bin/wireshark/tools'
Making all in lemon
gmake[3]: Entering directory '/home/user/bin/wireshark/tools/lemon'
gmake[3]: Nothing to be done for 'all'.
gmake[3]: Leaving directory '/home/user/bin/wireshark/tools/lemon'
gmake[3]: Entering directory '/home/user/bin/wireshark/tools'
  SED      setuid-root.pl
gmake[3]: Leaving directory '/home/user/bin/wireshark/tools'
gmake[2]: Leaving directory '/home/user/bin/wireshark/tools'
Making all in wsutil
gmake[2]: Entering directory '/home/user/bin/wireshark/wsutil'
  CC       interface.lo
interface.c: In function 'local_interfaces_to_list':
interface.c:57:24: error: dereferencing pointer to incomplete type
'struct sockaddr'
  family = ifa->ifa_addr->sa_family;
                        ^
interface.c:62:11: error: 'AF_INET' undeclared (first use in this function)
      case AF_INET:
           ^
interface.c:62:11: note: each undeclared identifier is reported only
once for each function it appears in
interface.c:65:27: error: dereferencing pointer to incomplete type
'struct sockaddr_in'
       ws_inet_ntop4(&addr4->sin_addr, ip, sizeof(ip));
                           ^
interface.c:69:11: error: 'AF_INET6' undeclared (first use in this function)
      case AF_INET6:
           ^
interface.c:72:27: error: dereferencing pointer to incomplete type
'struct sockaddr_in6'
       ws_inet_ntop6(&addr6->sin6_addr, ip, sizeof(ip));
                           ^
Makefile:1000: recipe for target 'interface.lo' failed
gmake[2]: *** [interface.lo] Error 1
gmake[2]: Leaving directory '/home/user/bin/wireshark/wsutil'
Makefile:3262: recipe for target 'all-recursive' failed
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory '/home/user/bin/wireshark'
Makefile:1785: recipe for target 'all' failed
gmake: *** [all] Error 2


What's causing this and what can I do correct it?

Thanks,
sean



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