_dinsdale icon

building conman on freebsd

_dinsdale | PRO | 09/29/17 04:39:35 AM UTC | 0 ⭐ | 611 👁️ | Never ⏰ | []
text |

10 KB

|

None

|

0 👍

/

0 👎

russellh@prescott:~/Git/lua-conmanorg% gmake                                                                                                                                                                                                 
/bin/sh: lua: not found                                                                                                                                                                                                                      
/bin/sh: lua: not found                                                                                                                                                                                                                      
cc  -I /usr/local/include/lua53  -fPIC -shared -o lib/net.so src/net.c                                                                                                                                                                       
src/net.c:84:23: error: field has incomplete type 'struct sockaddr_in'                                                                                                                                                                       
  struct sockaddr_in  sin;
                      ^
src/net.c:84:10: note: forward declaration of 'struct sockaddr_in'                                                                                                                                                                           
  struct sockaddr_in  sin;
         ^
src/net.c:85:23: error: field has incomplete type 'struct sockaddr_in6'                                                                                                                                                                      
  struct sockaddr_in6 sin6;
                      ^
src/net.c:85:10: note: forward declaration of 'struct sockaddr_in6'                                                                                                                                                                          
  struct sockaddr_in6 sin6;
         ^
src/net.c:267:27: error: invalid application of 'sizeof' to an incomplete type 'struct sockaddr_in'                                                                                                                                          
    case AF_INET:  return sizeof(struct sockaddr_in);
                          ^     ~~~~~~~~~~~~~~~~~~~~
src/net.c:84:10: note: forward declaration of 'struct sockaddr_in'                                                                                                                                                                           
  struct sockaddr_in  sin;
         ^
src/net.c:268:27: error: invalid application of 'sizeof' to an incomplete type 'struct sockaddr_in6'                                                                                                                                         
    case AF_INET6: return sizeof(struct sockaddr_in6);
                          ^     ~~~~~~~~~~~~~~~~~~~~~
src/net.c:85:10: note: forward declaration of 'struct sockaddr_in6'                                                                                                                                                                          
  struct sockaddr_in6 sin6;
         ^
src/net.c:523:16: error: use of undeclared identifier 'IPPROTO_TCP'                                                                                                                                                                          
  if (proto == IPPROTO_TCP)
               ^
src/net.c:525:21: error: use of undeclared identifier 'IPPROTO_UDP'                                                                                                                                                                          
  else if (proto == IPPROTO_UDP)
                    ^
src/net.c:724:19: error: use of undeclared identifier 'IPPROTO_TCP'                                                                                                                                                                          
  if (protocol == IPPROTO_TCP)
                  ^
src/net.c:726:24: error: use of undeclared identifier 'IPPROTO_UDP'                                                                                                                                                                          
  else if (protocol == IPPROTO_UDP)
                       ^
src/net.c:768:16: error: use of undeclared identifier 'IPPROTO_TCP'                                                                                                                                                                          
    protocol = IPPROTO_TCP;
               ^
src/net.c:844:17: error: use of undeclared identifier 'IPPROTO_TCP'                                                                                                                                                                          
  if ((proto == IPPROTO_TCP) || (proto == IPPROTO_UDP))
                ^
src/net.c:844:43: error: use of undeclared identifier 'IPPROTO_UDP'                                                                                                                                                                          
  if ((proto == IPPROTO_TCP) || (proto == IPPROTO_UDP))
                                          ^
src/net.c:895:17: error: use of undeclared identifier 'IPPROTO_TCP'                                                                                                                                                                          
  if ((proto == IPPROTO_TCP) || (proto == IPPROTO_UDP))
                ^
src/net.c:895:43: error: use of undeclared identifier 'IPPROTO_UDP'                                                                                                                                                                          
  if ((proto == IPPROTO_TCP) || (proto == IPPROTO_UDP))
                                          ^
src/net.c:1011:27: error: use of undeclared identifier 'IPPROTO_TCP'                                                                                                                                                                         
  { "maxsegment"        , IPPROTO_TCP   , 0             , TCP_MAXSEG            , SOPT_INT      , true , true  } ,
                          ^
src/net.c:1012:27: error: use of undeclared identifier 'IPPROTO_TCP'                                                                                                                                                                         
  { "nodelay"           , IPPROTO_TCP   , 0             , TCP_NODELAY           , SOPT_FLAG     , true , true  } ,
                          ^
src/net.c:1067:38: error: invalid application of 'sizeof' to an incomplete type 'const struct sockoptions []'                                                                                                                                
  value = bsearch(tkey,m_sockoptions,MAX_SOPTS,sizeof(struct sockoptions),sopt_compare);
                                     ^~~~~~~~~
src/net.c:1040:32: note: expanded from macro 'MAX_SOPTS'                                                                                                                                                                                     
#define MAX_SOPTS       (sizeof(m_sockoptions) / sizeof(struct sockoptions))
                               ^~~~~~~~~~~~~~~
src/net.c:1137:14: warning: implicit declaration of function 'ioctl' is invalid in C99 [-Wimplicit-function-declaration]                                                                                                                     
         if (ioctl(sock->fh,value->level,&ivalue) < 0)
             ^
src/net.c:1166:38: error: invalid application of 'sizeof' to an incomplete type 'const struct sockoptions []'                                                                                                                                
  value = bsearch(tkey,m_sockoptions,MAX_SOPTS,sizeof(struct sockoptions),sopt_compare);
                                     ^~~~~~~~~
src/net.c:1040:32: note: expanded from macro 'MAX_SOPTS'                                                                                                                                                                                     
#define MAX_SOPTS       (sizeof(m_sockoptions) / sizeof(struct sockoptions))
                               ^~~~~~~~~~~~~~~
src/net.c:1345:9: warning: implicit declaration of function 'IN_MULTICAST' is invalid in C99 [-Wimplicit-function-declaration]                                                                                                               
    if (IN_MULTICAST(ntohl(addr->sin.sin_addr.s_addr)))
        ^
src/net.c:1348:22: error: variable has incomplete type 'struct ip_mreq'                                                                                                                                                                      
      struct ip_mreq mreq;
                     ^
src/net.c:1348:14: note: forward declaration of 'struct ip_mreq'                                                                                                                                                                             
      struct ip_mreq mreq;
             ^
src/net.c:1350:31: error: use of undeclared identifier 'IPPROTO_IP'                                                                                                                                                                          
      if (setsockopt(sock->fh,IPPROTO_IP,IP_MULTICAST_LOOP,&on,1) < 0)
                              ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]                                                                                                                                                                          
2 warnings and 20 errors generated.
gmake: *** [Makefile:85: lib/net.so] Error 1

Comments