Skip to content

Fail to compile on FreeBSD 14 and FreeBSD 15 #389

Description

@dgeo

I open a different issue as this is another problem :)

note: I tried with FreeBSD 14.3, 14.4 and 15.0 and it failed here:

--- src/network/socket.lo ---
In file included from /wrkdirs/usr/ports/devel/pecl-openswoole/work-php85/openswoole-26.2.0/src/network/socket.cc:17:
In file included from /wrkdirs/usr/ports/devel/pecl-openswoole/work-php85/openswoole-26.2.0/include/openswoole_socket.h:24:
/usr/include/netinet/ip6.h:76:4: error: unknown type name 'u_int32_t'
   76 |                         u_int32_t ip6_un1_flow; /* 20 bits of flow-ID */
      |                         ^
/usr/include/netinet/ip6.h:77:4: error: unknown type name 'u_int16_t'
   77 |                         u_int16_t ip6_un1_plen; /* payload length */
      |                         ^
/usr/include/netinet/ip6.h:78:4: error: unknown type name 'u_int8_t'
   78 |                         u_int8_t  ip6_un1_nxt;  /* next header */
      |                         ^
/usr/include/netinet/ip6.h:79:4: error: unknown type name 'u_int8_t'
   79 |                         u_int8_t  ip6_un1_hlim; /* hop limit */
      |                         ^
/usr/include/netinet/ip6.h:81:3: error: unknown type name 'u_int8_t'
   81 |                 u_int8_t ip6_un2_vfc;   /* 4 bits version, top 4 bits class */
      |                 ^
/usr/include/netinet/ip6.h:119:2: error: unknown type name 'u_int8_t'
  119 |         u_int8_t ip6e_nxt;
      |         ^
/usr/include/netinet/ip6.h:120:2: error: unknown type name 'u_int8_t'
  120 |         u_int8_t ip6e_len;
      |         ^
/usr/include/netinet/ip6.h:126:2: error: unknown type name 'u_int8_t'
  126 |         u_int8_t ip6h_nxt;      /* next header */
      |         ^
/usr/include/netinet/ip6.h:127:2: error: unknown type name 'u_int8_t'
  127 |         u_int8_t ip6h_len;      /* length in units of 8 octets */
      |         ^
/usr/include/netinet/ip6.h:134:2: error: unknown type name 'u_int8_t'
  134 |         u_int8_t ip6d_nxt;      /* next header */
      |         ^
/usr/include/netinet/ip6.h:135:2: error: unknown type name 'u_int8_t'
  135 |         u_int8_t ip6d_len;      /* length in units of 8 octets */
      |         ^
/usr/include/netinet/ip6.h:168:2: error: unknown type name 'u_int8_t'
  168 |         u_int8_t ip6o_type;
      |         ^
/usr/include/netinet/ip6.h:169:2: error: unknown type name 'u_int8_t'
  169 |         u_int8_t ip6o_len;
      |         ^
/usr/include/netinet/ip6.h:174:2: error: unknown type name 'u_int8_t'
  174 |         u_int8_t ip6oj_type;
      |         ^
/usr/include/netinet/ip6.h:175:2: error: unknown type name 'u_int8_t'
  175 |         u_int8_t ip6oj_len;
      |         ^
/usr/include/netinet/ip6.h:176:2: error: unknown type name 'u_int8_t'
  176 |         u_int8_t ip6oj_jumbo_len[4];
      |         ^
/usr/include/netinet/ip6.h:182:2: error: unknown type name 'u_int8_t'
  182 |         u_int8_t ip6on_type;
      |         ^
/usr/include/netinet/ip6.h:183:2: error: unknown type name 'u_int8_t'
  183 |         u_int8_t ip6on_len;
      |         ^
/usr/include/netinet/ip6.h:184:2: error: unknown type name 'u_int8_t'
  184 |         u_int8_t ip6on_src_nsap_len;
      |         ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
*** [src/network/socket.lo] Error code 1

Originally posted by @dgeo in #233

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions