Adding support for Ubuntu 17.10... 47/58447/1
authorDeepak S <deepak.s@linux.intel.com>
Tue, 12 Jun 2018 15:37:59 +0000 (21:07 +0530)
committerDeepak S <deepak.s@linux.intel.com>
Tue, 12 Jun 2018 15:38:10 +0000 (21:08 +0530)
Change-Id: I9a9da79cb4ccb245ccb38b50b561da51a40a359d
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
VNFs/vACL/Makefile
VNFs/vACL/pipeline/pipeline_acl.h
VNFs/vCGNAPT/Makefile
VNFs/vCGNAPT/pipeline/pipeline_cgnapt.h
VNFs/vFW/Makefile
VNFs/vFW/pipeline/pipeline_vfw.h
common/vnf_common/rest_api.c
tools/vnf_build.sh

index 0995f90..bf1502a 100644 (file)
@@ -66,7 +66,7 @@ CFLAGS += -I$(VNF_CORE)/common/VIL/gateway
 TOP = $(RTE_SDK)/../civetweb
 CFLAGS += -I$(TOP)/include $(COPT) -DUSE_WEBSOCKET -DUSE_IPV6 -DUSE_SSL_DH=1
 CFLAGS += -DREST_API_SUPPORT
-LDFLAGS +=  -ljson -lcrypto -lssl
+LDFLAGS +=  -ljson-c -lcrypto -lssl
 LDFLAGS += -L$(RTE_SDK)/../civetweb/ -lcivetweb
 
 # all source are stored in SRCS-y
index 93b92c4..a0ff84d 100644 (file)
@@ -29,7 +29,7 @@
 #include "pipeline.h"
 #include "pipeline_acl_be.h"
 #include <civetweb.h>
-#include <json/json.h>
+#include <json-c/json.h>
 
 /* ACL IPV4 and IPV6 enable flags for debugging (Default both on) */
 extern int acl_ipv4_enabled;
index 41cacfb..82efa76 100644 (file)
@@ -68,7 +68,7 @@ CFLAGS += -I$(VNF_CORE)/common/VIL/gateway
 TOP = $(RTE_SDK)/../civetweb
 CFLAGS += -I$(TOP)/include $(COPT) -DUSE_WEBSOCKET -DUSE_IPV6 -DUSE_SSL_DH=1
 CFLAGS += -DREST_API_SUPPORT
-LDFLAGS +=  -ljson -lcrypto -lssl
+LDFLAGS +=  -ljson-c -lcrypto -lssl
 LDFLAGS += -L$(RTE_SDK)/../civetweb/ -lcivetweb
 
 # all source are stored in SRCS-y
index 6497de2..d61273f 100644 (file)
@@ -29,7 +29,7 @@
 #include "pipeline.h"
 #include "pipeline_cgnapt_common.h"
 #include <civetweb.h>
-#include <json/json.h>
+#include <json-c/json.h>
 
 /**
  * Add NAPT rule to the NAPT rule table.
index b011eca..80dd91a 100644 (file)
@@ -68,7 +68,7 @@ CFLAGS += -I$(VNF_CORE)/common/VIL/gateway
 
 TOP = $(RTE_SDK)/../civetweb
 CFLAGS += -I$(TOP)/include $(COPT) -DUSE_WEBSOCKET -DUSE_IPV6 -DUSE_SSL_DH=1 -DREST_API_SUPPORT=1
-LDFLAGS +=  -ljson -lcrypto -lssl
+LDFLAGS +=  -ljson-c -lcrypto -lssl
 LDFLAGS += -L$(RTE_SDK)/../civetweb/ -lcivetweb
 
 # all source are stored in SRCS-y
index 96e7ad3..7cfc95c 100644 (file)
@@ -31,7 +31,7 @@
 #include "pipeline_vfw_be.h"
 
 #include <civetweb.h>
-#include <json/json.h>
+#include <json-c/json.h>
 
 /* VFW IPV4 and IPV6 enable flags for debugging (Default both on) */
 extern int vfw_ipv4_enabled;
index 9cfbe88..8efd773 100644 (file)
@@ -52,7 +52,7 @@
 #include "pipeline_arpicmp.h"
 
 #include <civetweb.h>
-#include <json/json.h>
+#include <json-c/json.h>
 #include "app.h"
 #include "lib_arp.h"
 #include "interface.h"
index 0a085a6..d1bb898 100755 (executable)
@@ -179,8 +179,7 @@ install_libs()
        sudo apt-get update
        sudo apt-get -y install build-essential linux-headers-$(uname -r) git unzip libpcap0.8-dev gcc \
                make libc6 libc6-dev g++-multilib libzmq3-dev libcurl4-openssl-dev net-tools wget gcc unzip \
-                libpcap-dev libncurses-dev libedit-dev pciutils liblua5.2-dev libncursesw5-dev libjson0 \
-               libjson0-dev libssl-dev
+                libpcap-dev libncurses-dev libedit-dev pciutils liblua5.2-dev libncursesw5-dev libjson-c-dev libssl-dev
        touch .download
 }