ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] Commits 13dc91f5b or 9fbd4e6fc: addr_resolv.c fail to compil

From: Uli Heilmeier <zeugs@xxxxxxxxxxxx>
Date: Mon, 25 Apr 2016 16:25:38 +0200
I've pushed a commit to Gerrit: https://code.wireshark.org/review/15106
Hope this is ok to fix this issue.

Quoting Uli Heilmeier <zeugs@xxxxxxxxxxxx>:

Hi list,

my build system has failed to compile current master branch since commits 13dc91f5b or 9fbd4e6fc.

The error is:
---
In file included from /usr/lib/i386-linux-gnu/glib-2.0/include/glibconfig.h:9:0,
                 from /usr/include/glib-2.0/glib/gtypes.h:32,
                 from /usr/include/glib-2.0/glib/galloca.h:32,
                 from /usr/include/glib-2.0/glib.h:30,
                 from addr_resolv.c:93:
addr_resolv.c: In function 'host_name_lookup_init':
addr_resolv.c:2659:14: error: 'async_dns_queue_head' undeclared (first use in this function)
     g_assert(async_dns_queue_head == NULL);
              ^
addr_resolv.c:2659:14: note: each undeclared identifier is reported only once for each function it appears in
---

c-ares is not available on my system:
---
Use c-ares library : no (name resolution will be disabled)
---

In addr_resolv.c:2659 async_dns_queue_head is called without a preliminary '#ifdef HAVE_C_ARES' statement

Any ideas to fix it?

Cheers
Uli