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] Cookbook to make ubuntu 16.04 bot on buildbot

From: Remy Leone <remy.leone@xxxxxxxx>
Date: Wed, 05 Jul 2017 07:41:47 +0000
Hello,

I've prepared a little archive to reproduce my issue:

install ansible-container prior to this:
python -m pip install ansible-container
then you can run:
ansible-container --debug build --roles-path ansible/roles

You have to have docker installed to prepare the docker image.
For info this is the error logs that I get:

        "Unable to open ./.svn/entries",
        "ar: `u' modifier ignored since `D' is the default (see `U')",
        "ar: `u' modifier ignored since `D' is the default (see `U')",
        "k12text.c: In function 'yy_get_next_buffer':",
        "k12text.c:1711:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]",
        "  if ((int) (yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {",
        "                                               ^",
        "ascend_scanner.c: In function 'yy_get_next_buffer':",
        "ascend_scanner.c:2502:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]",
        "  if ((int) (yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {",
        "                                               ^",
        "ar: `u' modifier ignored since `D' is the default (see `U')",
        "ar: `u' modifier ignored since `D' is the default (see `U')",
        "ar: `u' modifier ignored since `D' is the default (see `U')",
        "ar: `u' modifier ignored since `D' is the default (see `U')",
        "scanner.c: In function 'yy_get_next_buffer':",
        "scanner.c:1703:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]",
        "  if ((int) (yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {",
        "                                               ^",
        "ar: `u' modifier ignored since `D' is the default (see `U')",
        "ar: `u' modifier ignored since `D' is the default (see `U')",
        "ar: `u' modifier ignored since `D' is the default (see `U')",
        "ar: `u' modifier ignored since `D' is the default (see `U')",
        "ar: `u' modifier ignored since `D' is the default (see `U')",
        "ar: `u' modifier ignored since `D' is the default (see `U')",
        "ar: `u' modifier ignored since `D' is the default (see `U')",
        "diam_dict.c: In function 'yy_get_next_buffer':",
        "diam_dict.c:2330:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]",
        "  if ((int) (yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {",
        "                                               ^",
        "dtd_parse.c: In function 'yy_get_next_buffer':",
        "dtd_parse.c:1681:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]",
        "  if ((int) (yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {",
        "                                               ^",
        "dtd_preparse.c: In function 'yy_get_next_buffer':",
        "dtd_preparse.c:1368:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]",
        "  if ((int) (yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {",
        "                                               ^",
        "uat_load.c: In function 'yy_get_next_buffer':",
        "uat_load.c:1458:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]",
        "  if ((int) (yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {",
        "                                               ^",
        "radius_dict.c: In function 'yy_get_next_buffer':",
        "radius_dict.c:2240:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]",
        "  if ((int) (yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {",
        "                                               ^",
        "ar: `u' modifier ignored since `D' is the default (see `U')",
        "ar: `u' modifier ignored since `D' is the default (see `U')",
        "ar: `u' modifier ignored since `D' is the default (see `U')",
        "In file included from 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 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",
        " ^",
        "cc1: all warnings being treated as errors",
        "make[2]: *** [libcaputils_a-iface_monitor.o] Error 1",
        "make[2]: *** Waiting for unfinished jobs....",
        "make[1]: *** [all-recursive] Error 1",
        "make: *** [all] Error 2"


Best regards

Rémy

Le mer. 5 juil. 2017 à 00:16, Guy Harris <guy@xxxxxxxxxxxx> a écrit :
On Jul 4, 2017, at 6:55 AM, Remy Leone <remy.leone@xxxxxxxx> wrote:

> I would like to know if there is a script/cookbook documented somewhere where I can see the exact set of commands that are launched to make a ubuntu buildbot slave?

I would like to know what the exact set of commands were that you used to construct your machine, and to do the build?  My Ubuntu 16.04 virtual machine has no problem building the current tip of the master branch, with both autoconf ("./configure --with-gtk; make") and CMake ("mkdir build; cd build; cmake ..; make").  I didn't run tools/debian-setup.sh in its entirety, as a huge amount of what it installed was stuff for docbook, which I didn't need, but I manually installed most of the packages that appeared relevant, including libnl3.
___________________________________________________________________________
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@xxxxxxxxxxxxx?subject=unsubscribe