Source: netopeer2 Version: 1.1.39-1+b1 Severity: serious Tags: ftbfs Justification: fails to build from source (but built successfully in the past)
netopeer2 fails to build from source: | | ^~ | [ 55%] Building C object cli/CMakeFiles/netopeer2-cli.dir/linenoise/linenoise.c.o | /<<PKGBUILDDIR>>/cli/commands.c:466:58: error: invalid use of undefined type ‘struct nc_reply_error’ | 466 | fprintf(output, "\tSID: %s\n", error->err[i].sid); | | ^~ | /<<PKGBUILDDIR>>/cli/commands.c:468:34: error: invalid use of undefined type ‘struct nc_reply_error’ | 468 | for (j = 0; j < error->err[i].attr_count; ++j) { | | ^~ | /<<PKGBUILDDIR>>/cli/commands.c:469:69: error: invalid use of undefined type ‘struct nc_reply_error’ | 469 | fprintf(output, "\tbad-attr #%d: %s\n", j + 1, error->err[i].attr[j]); | | ^~ | cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/cli && /usr/bin/cc -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/cli -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_MKSTEMPS -Wall -Wextra -std=gnu99 -MD -MT cli/CMakeFiles/netopeer2-cli.dir/linenoise/linenoise.c.o -MF CMakeFiles/netopeer2-cli.dir/linenoise/linenoise.c.o.d -o CMakeFiles/netopeer2-cli.dir/linenoise/linenoise.c.o -c /<<PKGBUILDDIR>>/cli/linenoise/linenoise.c | /<<PKGBUILDDIR>>/cli/commands.c:471:34: error: invalid use of undefined type ‘struct nc_reply_error’ | 471 | for (j = 0; j < error->err[i].elem_count; ++j) { | | ^~ | /<<PKGBUILDDIR>>/cli/commands.c:472:69: error: invalid use of undefined type ‘struct nc_reply_error’ | 472 | fprintf(output, "\tbad-elem #%d: %s\n", j + 1, error->err[i].elem[j]); | | ^~ | /<<PKGBUILDDIR>>/cli/commands.c:474:34: error: invalid use of undefined type ‘struct nc_reply_error’ | 474 | for (j = 0; j < error->err[i].ns_count; ++j) { | | ^~ | /<<PKGBUILDDIR>>/cli/commands.c:475:69: error: invalid use of undefined type ‘struct nc_reply_error’ | 475 | fprintf(output, "\tbad-ns #%d: %s\n", j + 1, error->err[i].ns[j]); | | ^~ | /<<PKGBUILDDIR>>/cli/commands.c:477:34: error: invalid use of undefined type ‘struct nc_reply_error’ | 477 | for (j = 0; j < error->err[i].other_count; ++j) { | | ^~ | /<<PKGBUILDDIR>>/cli/commands.c:478:44: error: invalid use of undefined type ‘struct nc_reply_error’ | 478 | lyxml_print_mem(&str, error->err[i].other[j], 0); | | ^~ | /<<PKGBUILDDIR>>/cli/commands.c: In function ‘cmd_version’: | /<<PKGBUILDDIR>>/cli/commands.c:2586:47: warning: macro "__DATE__" might prevent reproducible builds [-Wdate-time] | 2586 | fprintf(stdout, "Compile time: %s, %s\n", __DATE__, __TIME__); | | ^~~~~~~~ | /<<PKGBUILDDIR>>/cli/commands.c:2586:57: warning: macro "__TIME__" might prevent reproducible builds [-Wdate-time] | 2586 | fprintf(stdout, "Compile time: %s, %s\n", __DATE__, __TIME__); | | ^~~~~~~~ | /<<PKGBUILDDIR>>/cli/commands.c: In function ‘cmd_subscribe’: | /<<PKGBUILDDIR>>/cli/commands.c:4522:25: warning: implicit declaration of function ‘nc_time2datetime’ [-Wimplicit-function-declaration] | 4522 | start = nc_time2datetime(t, NULL, NULL); | | ^~~~~~~~~~~~~~~~ | /<<PKGBUILDDIR>>/cli/commands.c:4522:23: warning: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] | 4522 | start = nc_time2datetime(t, NULL, NULL); | | ^ | /<<PKGBUILDDIR>>/cli/commands.c:4524:22: warning: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] | 4524 | stop = nc_time2datetime(t, NULL, NULL); | | ^ | /<<PKGBUILDDIR>>/cli/commands.c:4602:47: warning: passing argument 2 of ‘nc_recv_notif_dispatch’ from incompatible pointer type [-Wincompatible-pointer-types] | 4602 | ret = nc_recv_notif_dispatch(session, cli_ntf_clb); | | ^~~~~~~~~~~ | | | | | void (*)(struct nc_session *, const struct nc_notif *) | In file included from /usr/include/nc_client.h:32, | from /<<PKGBUILDDIR>>/cli/commands.c:32: | /usr/include/libnetconf2/session_client.h:598:16: note: expected ‘void (*)(struct nc_session *, const struct lyd_node *, const struct lyd_node *)’ but argument is of type ‘void (*)(struct nc_session *, const struct nc_notif *)’ | 598 | void (*notif_clb)(struct nc_session *session, const struct lyd_node *envp, const struct lyd_node *op)); | | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | /<<PKGBUILDDIR>>/cli/commands.c: In function ‘cmd_knownhosts’: | /<<PKGBUILDDIR>>/cli/commands.c:1374:5: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] | 1374 | asprintf(&kh_file, "%s/.ssh/known_hosts", pwd->pw_dir); | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | /<<PKGBUILDDIR>>/cli/commands.c:1506:9: warning: ignoring return value of ‘ftruncate’ declared with attribute ‘warn_unused_result’ [-Wunused-result] | 1506 | ftruncate(fileno(file), written); | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | /<<PKGBUILDDIR>>/cli/commands.c: In function ‘cmd_cert’: | /<<PKGBUILDDIR>>/cli/commands.c:1908:17: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] | 1908 | asprintf(&path, "%s/%s", trusted_dir, d->d_name); | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | /<<PKGBUILDDIR>>/cli/commands.c: In function ‘cmd_crl’: | /<<PKGBUILDDIR>>/cli/commands.c:2180:17: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] | 2180 | asprintf(&path, "%s/%s", crl_dir, d->d_name); | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | /<<PKGBUILDDIR>>/cli/commands.c: In function ‘cmd_connect_listen_tls’: | /<<PKGBUILDDIR>>/cli/commands.c:2339:13: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] | 2339 | asprintf(&cert, "%s", optarg); | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | /<<PKGBUILDDIR>>/cli/commands.c:2342:13: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] | 2342 | asprintf(&key, "%s", optarg); | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | /<<PKGBUILDDIR>>/cli/commands.c: In function ‘trim_top_elem’: | /<<PKGBUILDDIR>>/cli/commands.c:637:9: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] | 637 | asprintf(&buf, "</%.*s:%s>", pref_len, prefix, top_elem); | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | /<<PKGBUILDDIR>>/cli/commands.c:639:9: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] | 639 | asprintf(&buf, "</%s>", top_elem); | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | /<<PKGBUILDDIR>>/cli/commands.c: In function ‘cmd_getdata’: | /<<PKGBUILDDIR>>/cli/commands.c:4865:13: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] | 4865 | asprintf(&origin[origin_count], "ietf-origin:%s", optarg); | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | make[3]: *** [cli/CMakeFiles/netopeer2-cli.dir/build.make:93: cli/CMakeFiles/netopeer2-cli.dir/commands.c.o] Error 1 | make[3]: *** Waiting for unfinished jobs.... | make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu' | make[2]: *** [CMakeFiles/Makefile2:258: cli/CMakeFiles/netopeer2-cli.dir/all] Error 2 | make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu' | make[1]: *** [Makefile:139: all] Error 2 | make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu' | dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j4 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2 | make: *** [debian/rules:18: build-arch] Error 25 | dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2 The full build log can be found there: https://buildd.debian.org/fetch.php?pkg=netopeer2&arch=amd64&ver=1.1.39-1%2Bb1&stamp=1637099048&raw=0