Opened 5 years ago

Closed 5 years ago

#59713 closed defect (fixed)

grpc @1.22.0: error: field has incomplete type 'struct sockaddr'

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc:
Port: grpc

Description

grpc fails to build on 10.6:

/usr/include/net/if.h:265:19: error: field has incomplete type 'struct sockaddr'
                struct  sockaddr ifru_addr;
                                 ^
/usr/include/net/if.h:265:10: note: forward declaration of 'sockaddr'
                struct  sockaddr ifru_addr;
                        ^
/usr/include/net/if.h:266:19: error: field has incomplete type 'struct sockaddr'
                struct  sockaddr ifru_dstaddr;
                                 ^
/usr/include/net/if.h:265:10: note: forward declaration of 'sockaddr'
                struct  sockaddr ifru_addr;
                        ^
/usr/include/net/if.h:267:19: error: field has incomplete type 'struct sockaddr'
                struct  sockaddr ifru_broadaddr;
                                 ^
/usr/include/net/if.h:265:10: note: forward declaration of 'sockaddr'
                struct  sockaddr ifru_addr;
                        ^
/usr/include/net/if.h:308:18: error: field has incomplete type 'struct sockaddr'
        struct  sockaddr ifra_addr;
                         ^
/usr/include/net/if.h:265:10: note: forward declaration of 'sockaddr'
                struct  sockaddr ifru_addr;
                        ^
/usr/include/net/if.h:309:18: error: field has incomplete type 'struct sockaddr'
        struct  sockaddr ifra_broadaddr;
                         ^
/usr/include/net/if.h:265:10: note: forward declaration of 'sockaddr'
                struct  sockaddr ifru_addr;
                        ^
/usr/include/net/if.h:310:18: error: field has incomplete type 'struct sockaddr'
        struct  sockaddr ifra_mask;
                         ^
/usr/include/net/if.h:265:10: note: forward declaration of 'sockaddr'
                struct  sockaddr ifru_addr;
                        ^
/usr/include/net/if.h:393:26: error: field has incomplete type 'struct sockaddr_storage'
        struct sockaddr_storage addr;   /* in/out */
                                ^
/usr/include/net/if.h:393:9: note: forward declaration of 'sockaddr_storage'
        struct sockaddr_storage addr;   /* in/out */
               ^
/usr/include/net/if.h:394:26: error: field has incomplete type 'struct sockaddr_storage'
        struct sockaddr_storage dstaddr; /* out */
                                ^
/usr/include/net/if.h:393:9: note: forward declaration of 'sockaddr_storage'
        struct sockaddr_storage addr;   /* in/out */
               ^

Change History (1)

comment:1 Changed 5 years ago by jmroot (Joshua Root)

Owner: set to jmroot
Resolution: fixed
Status: newclosed

In 34841ed3f3b1cdc677faa9f3edf2c00eab7320f6/macports-ports (master):

grpc: add extra includes for if_nametoindex

Closes: #59713

Note: See TracTickets for help on using tickets.