From owner-freebsd-net@freebsd.org Wed Feb 22 12:26:06 2017 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7D37ACE9D6F for ; Wed, 22 Feb 2017 12:26:06 +0000 (UTC) (envelope-from massimiliano.gualtieri@gmail.com) Received: from mail-wm0-x236.google.com (mail-wm0-x236.google.com [IPv6:2a00:1450:400c:c09::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 070A0CC6 for ; Wed, 22 Feb 2017 12:26:06 +0000 (UTC) (envelope-from massimiliano.gualtieri@gmail.com) Received: by mail-wm0-x236.google.com with SMTP id v186so138912218wmd.0 for ; Wed, 22 Feb 2017 04:26:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=XlBoTB/6Ht0pz4F4UX3k6KMQLIVhG3DlcGsffMpitD8=; b=i2rcc7gjguaV8mPTgnEa1kkv8hi+9AFrkdwtdskO+CiXnbG+r1cVUiMaYfz3mQqTht DkUld9KpDQ2tCOMXyJaDJpJEezMLD3umqOQt/Q7FUea2v2FtWKG6HkQr7IIoE/L6/WGq fIoIbLxsXoaGJv4o7x90cAAHdzfKLByVa2J3S+xPvFps09rUvOUzjjYofz6NhWXIHw/1 idmGYzwLqHpY3zCswfRHUd2FqIffN/JFli+qhkcSel7otJ9VsTpoAW5nBNy/3K2llime CjhPDQaJj21tx/jT44bZEh74qPY54Lb2n8F0pXPCfHObp6pC0OkvArFUhb1Tr7oEhagw zMxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=XlBoTB/6Ht0pz4F4UX3k6KMQLIVhG3DlcGsffMpitD8=; b=HgeumbNRQ9qgIGIAH6swHnPVIYJsqo3XR212OR/14ee49fUXmJZXQceQqy22T31uok yYjadCJ4BRdDt1h19JsVGClWtAkEh3b19JbL1DHTP0UdLsNzvkmlxT/DeoQ0heNWtRmQ /0CmUqQnOWsq5howsDrzIS5tQUECkqzBZGx30oKOj9tR2yAZZGud0iYcHUyKl8D0drlj sQQaejXan3LlOZTR7Dyi+9DVKcWTtTGx4z30bRGjKLh/xevH54qJcGjoZ5HKW1oAcgUM 1+Xx9I84YLf3cJYyPMOY9MOfb7LZdbCmtjLlw4RG7ywXTn66xZe0YlIBo9O0x0GX8+GY Vv+w== X-Gm-Message-State: AMke39k62wxHtIyOSxuf1OB4oOystgEgv2rsY4N98amHgy0mFeTh9EEJmBORlK+amYlexF5XW89zq0Cu0lHjvw== X-Received: by 10.28.95.4 with SMTP id t4mr2302353wmb.87.1487766364322; Wed, 22 Feb 2017 04:26:04 -0800 (PST) MIME-Version: 1.0 Received: by 10.28.28.195 with HTTP; Wed, 22 Feb 2017 04:26:03 -0800 (PST) From: Massimiliano Gualtieri Date: Wed, 22 Feb 2017 13:26:03 +0100 Message-ID: Subject: OVS and LXC with OpenLisp Control Plane To: freebsd-net@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Feb 2017 12:26:06 -0000 Hi, i would like to install OpenLisp control plane on a linux container and attach to OVS. When i run the command *make -f Makefile_linux *in the source directory i get this error: *cc */*.c ./*.c -o opencp -L/usr/local/lib/ -lexpat -lpthread -g -O2 -DHAVE_IPV6 -DLINUX* *thr_pool/thr_pool.c: In function 'worker_thread':* *thr_pool/thr_pool.c:92:5: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]* * pthread_cleanup_push(worker_cleanup, pool);* * ^* *thr_pool/thr_pool.c:137:13: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]* * pthread_cleanup_push(job_cleanup, pool);* * ^* *thr_pool/thr_pool.c: In function 'thr_pool_wait':* *thr_pool/thr_pool.c:290:5: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]* * pthread_cleanup_push(pthread_mutex_unlock, &pool->pool_mutex);* * ^* *thr_pool/thr_pool.c: In function 'thr_pool_destroy':* *thr_pool/thr_pool.c:305:5: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]* * pthread_cleanup_push(pthread_mutex_unlock, &pool->pool_mutex);* * ^* *./cli.c:154:17: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]* * .reply_add = cli_reply_add,\* * ^* *./cli.c:154:17: note: (near initialization for 'cli_fct.reply_add')* *./cli.c:155:24: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]* * .reply_add_record = cli_reply_add_record, \* * ^* *./cli.c:155:24: note: (near initialization for 'cli_fct.reply_add_record')* *./cli.c:156:25: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]* * .reply_add_locator = cli_reply_add_locator,\* * ^* *./cli.c:156:25: note: (near initialization for 'cli_fct.reply_add_locator')* *./cli.c:157:19: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]* * .reply_error = cli_reply_error, \* * ^* *./cli.c:157:19: note: (near initialization for 'cli_fct.reply_error')* *./cli.c:158:23: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]* * .reply_terminate = cli_reply_terminate, \* * ^* *./cli.c:158:23: note: (near initialization for 'cli_fct.reply_terminate')* *./cli.c:159:25: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]* * .request_terminate = cli_request_terminate, \* * ^* *./cli.c:159:25: note: (near initialization for 'cli_fct.request_terminate')* *./cli.c:160:23: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]* * .request_get_eid = cli_request_get_eid , \* * ^* *./cli.c:160:23: note: (near initialization for 'cli_fct.request_get_eid')* *./cli.c:161:25: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]* * .request_get_nonce = cli_request_get_nonce* * ^* *./cli.c:161:25: note: (near initialization for 'cli_fct.request_get_nonce')* *./cli.c: In function 'cli_start_communication':* *./cli.c:189:28: warning: passing argument 1 of 'generic_process_request' makes pointer from integer without a cast [-Wint-conversion]* * generic_process_request(rid, &cli_fct);* * ^* *In file included from ./cli.c:2:0:* *./lib.h:229:5: note: expected 'void *' but argument is of type 'uint32_t {aka unsigned int}'* * int generic_process_request(void *data, struct communication_fct *fct);* * ^* *In file included from /usr/include/x86_64-linux-gnu/sys/socket.h:38:0,* * from /usr/include/netinet/in.h:23,* * from /usr/include/netdb.h:27,* * from ./lib.h:10,* * from ./udp.c:1:* *./udp.c: In function 'udp_get_pk':* *./udp.c:1823:33: error: invalid application of 'sizeof' to incomplete type 'struct in6_pktinfo'* * char ctrdata[CMSG_SPACE(sizeof(struct in6_pktinfo))];* * ^* *./udp.c:1827:22: error: field 'pkif6' has incomplete type* * struct in6_pktinfo pkif6;* * ^* *Makefile_linux:24: recipe for target 'all' failed* *make: *** [all] Error 1* How can i solve this problem? Thanks PS. I want to do this: * +----LXC----+ * *|** OpenLisp |* * | CP | ** +-----------+ ** | ** +--[lxcbr0]--+ ** | | **RLOC ------[lisp0] OVS1 [eth0]--------- EID ** | | ** +------------+ *