On 2/22/17 12:59 PM, Massimiliano Gualtieri wrote:
> 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?
It looks like the above build logs are from OpenLISP. You should ask for
help on an OpenLISP communication channel (mailing list, Github issues,
etc.)
-Lori
>
> Thanks
>
> PS. I want to do this:
> /+----LXC----+ ////|//*OpenLisp* |/
> /| *CP* | //+-----------+ //| //+--[lxcbr0]--+ //| | //*RLOC* ------[lisp0]
> *OVS1* [eth0]--------- *EID* //| | //+------------+ /
>
>
>
>
>
> _______________________________________________
> discuss mailing list
> [email protected]
> https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
_______________________________________________
discuss mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss