[Bug 266982] www/firefox: 106.0,2 fails to build on FreeBSD 12.3-STABLE

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 12 Oct 2022 01:55:02 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266982

            Bug ID: 266982
           Summary: www/firefox: 106.0,2 fails to build on FreeBSD
                    12.3-STABLE
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: gecko@FreeBSD.org
          Reporter: russo@bogodyn.org
          Assignee: gecko@FreeBSD.org
             Flags: maintainer-feedback?(gecko@FreeBSD.org)

FreeBSD xxx.org 12.3-STABLE FreeBSD 12.3-STABLE stable/12-n234844-5746abf94eb
GENERIC  amd64

Trying to build Firefox, get an error that clearly suggests that sys/types.h is
not included somewhere it needs to be before netinet/ip.h is included:

In file included from
/usr/ports/www/firefox/work/firefox-106.0/third_party/libw
ebrtc/rtc_base/ip_address.cc:20:
/usr/include/netinet/ip.h:53:2: error: unknown type name 'u_char'; did you mean
'char'?
        u_char  ip_hl:4,                /* header length */
        ^
/usr/include/netinet/ip.h:60:2: error: unknown type name 'u_char'; did you mean
'char'?
        u_char  ip_tos;                 /* type of service */
        ^

(lots more of these).

Line 20 of the file in question is the include of ip.h:
#ifndef __native_client__
#include <netinet/ip.h>
#endif

-- 
You are receiving this mail because:
You are the assignee for the bug.