Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] Problem while compiling wireshark master

From: Alexis La Goutte <alexis.lagoutte@xxxxxxxxx>
Date: Mon, 24 Jul 2017 10:01:17 +0200


On Mon, Jul 24, 2017 at 9:48 AM, Roland Knall <rknall@xxxxxxxxx> wrote:
Hi

This is not an issue with wireshark code, but rather with the version of flex used by the compiler. See https://github.com/westes/flex/commit/8c098febc9a599397921e9b6938b7fb85e38cc7e for a commit fixing this issue, but so far Ubuntu does not ship the right version of flex to fix the warning. 
It is no the warning the problem
but the final error
"In file included from /tmp/wireshark-master/caputils/iface_monitor.c:55:0:",
        "/_usr/include/net/if.h:129:0: error: \"IFNAMSIZ\" redefined [-Werror]",
        " # define IFNAMSIZ IF_NAMESIZE",
        " ",
        "In file included from /usr/include/libnl3/netlink/netlink.h:24:0,",
        "                 from /usr/include/libnl3/netlink/msg.h:15,",
        "                 from /tmp/wireshark-master/caputils/iface_monitor.c:40:",
        "/usr/include/libnl3/netlink/netlink-compat.h:21:0: note: this is the location of the previous definition",
        " #define IFNAMSIZ 16",

 

cheers
Roland

On Wed, Jul 5, 2017 at 4:44 AM, Guy Harris <guy@xxxxxxxxxxxx> wrote:
On Jul 4, 2017, at 5:19 AM, Pascal Quantin <pascal.quantin@xxxxxxxxx> wrote:

> Guy, do you remember because of which libnl version you moved net/if.h inclusion after libnl ones in 592a0fcf04c3f7f9f23476525877763303a1a87d?
> Should we include net/if.h first when compiling with libnl3 to cope with this (newly introduced?) redefinition?

It compiles just fine, as is, with libnl3 on my Ubuntu 16.04 VM.

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request@wireshark.org?subject=unsubscribe


___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request@wireshark.org?subject=unsubscribe