_dinsdale

building conman on freebsd

Sep 28th, 2017
55
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. russellh@prescott:~/Git/lua-conmanorg% gmake
  2. /bin/sh: lua: not found
  3. /bin/sh: lua: not found
  4. cc -I /usr/local/include/lua53 -fPIC -shared -o lib/net.so src/net.c
  5. src/net.c:84:23: error: field has incomplete type 'struct sockaddr_in'
  6. struct sockaddr_in sin;
  7. ^
  8. src/net.c:84:10: note: forward declaration of 'struct sockaddr_in'
  9. struct sockaddr_in sin;
  10. ^
  11. src/net.c:85:23: error: field has incomplete type 'struct sockaddr_in6'
  12. struct sockaddr_in6 sin6;
  13. ^
  14. src/net.c:85:10: note: forward declaration of 'struct sockaddr_in6'
  15. struct sockaddr_in6 sin6;
  16. ^
  17. src/net.c:267:27: error: invalid application of 'sizeof' to an incomplete type 'struct sockaddr_in'
  18. case AF_INET: return sizeof(struct sockaddr_in);
  19. ^ ~~~~~~~~~~~~~~~~~~~~
  20. src/net.c:84:10: note: forward declaration of 'struct sockaddr_in'
  21. struct sockaddr_in sin;
  22. ^
  23. src/net.c:268:27: error: invalid application of 'sizeof' to an incomplete type 'struct sockaddr_in6'
  24. case AF_INET6: return sizeof(struct sockaddr_in6);
  25. ^ ~~~~~~~~~~~~~~~~~~~~~
  26. src/net.c:85:10: note: forward declaration of 'struct sockaddr_in6'
  27. struct sockaddr_in6 sin6;
  28. ^
  29. src/net.c:523:16: error: use of undeclared identifier 'IPPROTO_TCP'
  30. if (proto == IPPROTO_TCP)
  31. ^
  32. src/net.c:525:21: error: use of undeclared identifier 'IPPROTO_UDP'
  33. else if (proto == IPPROTO_UDP)
  34. ^
  35. src/net.c:724:19: error: use of undeclared identifier 'IPPROTO_TCP'
  36. if (protocol == IPPROTO_TCP)
  37. ^
  38. src/net.c:726:24: error: use of undeclared identifier 'IPPROTO_UDP'
  39. else if (protocol == IPPROTO_UDP)
  40. ^
  41. src/net.c:768:16: error: use of undeclared identifier 'IPPROTO_TCP'
  42. protocol = IPPROTO_TCP;
  43. ^
  44. src/net.c:844:17: error: use of undeclared identifier 'IPPROTO_TCP'
  45. if ((proto == IPPROTO_TCP) || (proto == IPPROTO_UDP))
  46. ^
  47. src/net.c:844:43: error: use of undeclared identifier 'IPPROTO_UDP'
  48. if ((proto == IPPROTO_TCP) || (proto == IPPROTO_UDP))
  49. ^
  50. src/net.c:895:17: error: use of undeclared identifier 'IPPROTO_TCP'
  51. if ((proto == IPPROTO_TCP) || (proto == IPPROTO_UDP))
  52. ^
  53. src/net.c:895:43: error: use of undeclared identifier 'IPPROTO_UDP'
  54. if ((proto == IPPROTO_TCP) || (proto == IPPROTO_UDP))
  55. ^
  56. src/net.c:1011:27: error: use of undeclared identifier 'IPPROTO_TCP'
  57. { "maxsegment" , IPPROTO_TCP , 0 , TCP_MAXSEG , SOPT_INT , true , true } ,
  58. ^
  59. src/net.c:1012:27: error: use of undeclared identifier 'IPPROTO_TCP'
  60. { "nodelay" , IPPROTO_TCP , 0 , TCP_NODELAY , SOPT_FLAG , true , true } ,
  61. ^
  62. src/net.c:1067:38: error: invalid application of 'sizeof' to an incomplete type 'const struct sockoptions []'
  63. value = bsearch(tkey,m_sockoptions,MAX_SOPTS,sizeof(struct sockoptions),sopt_compare);
  64. ^~~~~~~~~
  65. src/net.c:1040:32: note: expanded from macro 'MAX_SOPTS'
  66. #define MAX_SOPTS (sizeof(m_sockoptions) / sizeof(struct sockoptions))
  67. ^~~~~~~~~~~~~~~
  68. src/net.c:1137:14: warning: implicit declaration of function 'ioctl' is invalid in C99 [-Wimplicit-function-declaration]
  69. if (ioctl(sock->fh,value->level,&ivalue) < 0)
  70. ^
  71. src/net.c:1166:38: error: invalid application of 'sizeof' to an incomplete type 'const struct sockoptions []'
  72. value = bsearch(tkey,m_sockoptions,MAX_SOPTS,sizeof(struct sockoptions),sopt_compare);
  73. ^~~~~~~~~
  74. src/net.c:1040:32: note: expanded from macro 'MAX_SOPTS'
  75. #define MAX_SOPTS (sizeof(m_sockoptions) / sizeof(struct sockoptions))
  76. ^~~~~~~~~~~~~~~
  77. src/net.c:1345:9: warning: implicit declaration of function 'IN_MULTICAST' is invalid in C99 [-Wimplicit-function-declaration]
  78. if (IN_MULTICAST(ntohl(addr->sin.sin_addr.s_addr)))
  79. ^
  80. src/net.c:1348:22: error: variable has incomplete type 'struct ip_mreq'
  81. struct ip_mreq mreq;
  82. ^
  83. src/net.c:1348:14: note: forward declaration of 'struct ip_mreq'
  84. struct ip_mreq mreq;
  85. ^
  86. src/net.c:1350:31: error: use of undeclared identifier 'IPPROTO_IP'
  87. if (setsockopt(sock->fh,IPPROTO_IP,IP_MULTICAST_LOOP,&on,1) < 0)
  88. ^
  89. fatal error: too many errors emitted, stopping now [-ferror-limit=]
  90. 2 warnings and 20 errors generated.
  91. gmake: *** [Makefile:85: lib/net.so] Error 1
RAW Paste Data