From 1182d33b3bb4e76fbc3f7def3e33993d7c9df32c Mon Sep 17 00:00:00 2001 From: Ramin Najjarbashi Date: Sun, 8 Nov 2020 13:43:39 +0330 Subject: [PATCH 1/2] Fixed `xfsm_header_fields` error /usr/bin/ld: xfsm.o:/root/FlowBlaze-master/SW-FB/xfsm.h:88: multiple definition of `xfsm_header_fields'; loader.o:/root/FlowBlaze-master/SW-FB/xfsm.h:88: first defined here /usr/bin/ld: pkt-parser.o:/root/FlowBlaze-master/SW-FB/xfsm.h:88: multiple definition of `xfsm_header_fields'; loader.o:/root/FlowBlaze-master/SW-FB/xfsm.h:88: first defined here /usr/bin/ld: flowblaze.o:/root/FlowBlaze-master/SW-FB/xfsm.h:88: multiple definition of `xfsm_header_fields'; loader.o:/root/FlowBlaze-master/SW-FB/xfsm.h:88: first defined here --- SW-FB/xfsm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SW-FB/xfsm.h b/SW-FB/xfsm.h index 51369bc..1be1f1c 100644 --- a/SW-FB/xfsm.h +++ b/SW-FB/xfsm.h @@ -78,7 +78,7 @@ typedef enum { #define NUM_HDR_FIELDS 28 -const struct xfsm_hdr_fields { +extern const struct xfsm_hdr_fields { hdr_fields type; const char *name; size_t len; From 6bbbbae0feba8cdd0731d4876907f4b81ca7218e Mon Sep 17 00:00:00 2001 From: Ramin Najjarbashi Date: Sun, 8 Nov 2020 14:00:21 +0330 Subject: [PATCH 2/2] Fix and update pom file Base on : https://stackoverflow.com/questions/52502189/java-11-package-javax-xml-bind-does-not-exist --- XL-toolchain/pom.xml | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/XL-toolchain/pom.xml b/XL-toolchain/pom.xml index cb7e6af..0f46f8e 100644 --- a/XL-toolchain/pom.xml +++ b/XL-toolchain/pom.xml @@ -77,11 +77,21 @@ org.projectlombok lombok 1.18.2 - - - com.fasterxml.jackson.core - jackson-databind - 2.9.6 - + + + javax.xml.bind + jaxb-api + 2.3.0 + + + com.sun.xml.bind + jaxb-core + 2.3.0 + + + com.sun.xml.bind + jaxb-impl + 2.3.0 + - \ No newline at end of file +