From 68395096f0513c2ae2ff3ff8f08b560471d9e91e Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 11 Sep 2020 18:04:45 +0200 Subject: [PATCH] Fix compilation with gcc-10.2.0 /bin/sh ../libtool --tag=CC --mode=link gcc -I. -I./xtalk/include -Wall -g -O2 -lusb-1.0 -o astribank_tool astribank_tool-astribank_tool.o libastribank.la -lpthread -lm libtool: link: gcc -I. -I./xtalk/include -Wall -g -O2 -o astribank_tool astribank_tool-astribank_tool.o ./.libs/libastribank.a -lusb-1.0 -lpthread -lm /usr/bin/ld: ./.libs/libastribank.a(libxtalk_la-xtalk_sync.o):/space/home/laforge/projects/git/dahdi-tools/xpp/xtalk/xtalk_sync.c:63: multiple definition of `members'; ./.libs/libastribank.a(libastribank_la-mpptalk.o):/space/home/laforge/projects/git/dahdi-tools/xpp/mpptalk.c:240: first defined here Change-Id: I1d6f46874f74e1dfc70cabf7c4a8b8cdae9af4fa --- xpp/xtalk/xtalk_sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xpp/xtalk/xtalk_sync.c b/xpp/xtalk/xtalk_sync.c index 18a5cad..e1630b2 100644 --- a/xpp/xtalk/xtalk_sync.c +++ b/xpp/xtalk/xtalk_sync.c @@ -60,7 +60,7 @@ union XTALK_PDATA(XTALK) { MEMBER(XTALK, ACK); MEMBER(XTALK, PROTO_GET); MEMBER(XTALK, PROTO_GET_REPLY); -} PACKED members; +} PACKED _members; const struct xtalk_protocol xtalk_sync_proto = { .name = "XTALK-SYNC",