cc -DBINTOPKGLIBEXECDIR='"'../libexec/c-lightning'"' -Wall -Wundef -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wold-style-definition -Werror -Wno-error=maybe-uninitialized -std=gnu11 -g -fstack-protector -Og -I ccan -I external/libwally-core/include/ -I external/libwally-core/src/secp256k1/include/ -I external/jsmn/ -I external/libbacktrace/ -I external/libbacktrace-build -I . -I/usr/local/include -DSHACHAIN_BITS=48 -DJSMN_PARENT_LINKS -DCOMPAT_V052=1 -DCOMPAT_V060=1 -DCOMPAT_V061=1 -DCOMPAT_V062=1 -DCOMPAT_V070=1 -DBINTOPKGLIBEXECDIR='"'../libexec/c-lightning'"' -c -o lightningd/test/run-invoice-select-inchan.o lightningd/test/run-invoice-select-inchan.c
In file included from ./lightningd/jsonrpc.h:5:0,
from ./lightningd/plugin.h:6,
from ./lightningd/lightningd.h:10,
from ./common/wireaddr.h:6,
from ./connectd/gen_connect_wire.h:11,
from lightningd/test/../channel.c:5,
from lightningd/test/run-invoice-select-inchan.c:1:
ccan/ccan/autodata/autodata.h:83:36: error: redefinition of ‘autodata_json_command_1159’
#define AUTODATA_VAR__(name, line) autodata_##name##_##line
^
ccan/ccan/autodata/autodata.h:84:35: note: in expansion of macro ‘AUTODATA_VAR__’
#define AUTODATA_VAR_(name, line) AUTODATA_VAR__(name, line)
^~~~~~~~~~~~~~
ccan/ccan/autodata/autodata.h:46:2: note: in expansion of macro ‘AUTODATA_VAR_’
AUTODATA_VAR_(name, __LINE__) = (ptr);
^~~~~~~~~~~~~
lightningd/test/../peer_control.c:1159:1: note: in expansion of macro ‘AUTODATA’
AUTODATA(json_command, &listpeers_command);
^~~~~~~~
ccan/ccan/autodata/autodata.h:83:36: note: previous definition of ‘autodata_json_command_1159’ was here
#define AUTODATA_VAR__(name, line) autodata_##name##_##line
^
ccan/ccan/autodata/autodata.h:84:35: note: in expansion of macro ‘AUTODATA_VAR__’
#define AUTODATA_VAR_(name, line) AUTODATA_VAR__(name, line)
^~~~~~~~~~~~~~
ccan/ccan/autodata/autodata.h:46:2: note: in expansion of macro ‘AUTODATA_VAR_’
AUTODATA_VAR_(name, __LINE__) = (ptr);
^~~~~~~~~~~~~
lightningd/test/../invoice.c:1159:1: note: in expansion of macro ‘AUTODATA’
AUTODATA(json_command, &decodepay_command);
^~~~~~~~
<builtin>: recipe for target 'lightningd/test/run-invoice-select-inchan.o' failed
make: *** [lightningd/test/run-invoice-select-inchan.o] Error 1
rm external/libwally-core/src/secp256k1/libsecp256k1.la
Even after (Ubuntu 18.04)
make clean,./configure,make, same error message