Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Sep 2023 12:27:56 +0900
From:      Tatsuki Makino <tatsuki_makino@hotmail.com>
To:        "freebsd-ports@FreeBSD.org" <freebsd-ports@freebsd.org>
Subject:   www/chromium: 117.0.5938.62 build failed in 12.4-STABLE
Message-ID:  <SI2PR01MB5036E736D08CC8D365F9EB5DFAF6A@SI2PR01MB5036.apcprd01.prod.exchangelabs.com>

next in thread | raw e-mail | index | archive | help
Hello.

As the subject says, chromium-117.0.5938.62 fails to build in 12.4-STABLE.
The compilation of net/dns/address_info.cc fails, but I know the cause, so I will write a brief description.

../../net/dns/address_info.cc:81:47: error: use of undeclared identifier 'EAI_NO
DATA'
    if (os_error != EAI_NONAME && os_error != EAI_NODATA)

1 error generated.

The definition of EAI_NODATA is in /usr/include/netdb.h.
net/dns/address_info.cc successfully includes netdb.h.
In 13.x, EAI_NODATA is ready to use if __BSD_VISIBLE is defined.
However, in 12.x, it is enclosed in #if 0, so it has to be defined separately.

So www/chromium/files/patch-net_dns_address__info.cc needs to be fixed a bit.
For example, like this? (not tested)

-#elif BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_FREEBSD)
+#elif BUILDFLAG(IS_POSIX) && __FreeBSD__ >= 13

Regards.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?SI2PR01MB5036E736D08CC8D365F9EB5DFAF6A>