Compilation under Ubuntu 20.10 fails with the following errors:
/usr/bin/ld: build/common.o:/home/marco/git/flexprop/spin2cpp/frontends/common.c:40: multiple definition of allparse'; /tmp/ccauqf0s.o:/home/marco/git/flexprop/spin2cpp/spin2cpp.c:38: first defined here /usr/bin/ld: build/common.o:/home/marco/git/flexprop/spin2cpp/frontends/common.c:88: multiple definition ofgl_progname'; /tmp/ccKTEd6u.o:/home/marco/git/flexprop/spin2cpp/cmdline.c:39: first defined here
The attached simple patch defines the duplicated variables as extern and seems to fix the problem, but maybe a better definition fix should be more appropriate.
Compilation under Ubuntu 20.10 fails with the following errors:
/usr/bin/ld: build/common.o:/home/marco/git/flexprop/spin2cpp/frontends/common.c:40: multiple definition of
allparse'; /tmp/ccauqf0s.o:/home/marco/git/flexprop/spin2cpp/spin2cpp.c:38: first defined here /usr/bin/ld: build/common.o:/home/marco/git/flexprop/spin2cpp/frontends/common.c:88: multiple definition of
gl_progname'; /tmp/ccKTEd6u.o:/home/marco/git/flexprop/spin2cpp/cmdline.c:39: first defined hereThe attached simple patch defines the duplicated variables as extern and seems to fix the problem, but maybe a better definition fix should be more appropriate.
compile.patch.txt