Opened 3 months ago

Closed 3 months ago

#70444 closed defect (fixed)

bind9 @9.20.0 needs C11 atomics fix

Reported by: snowflake (Dave Evans) Owned by: danielluke (Daniel J. Luke)
Priority: Normal Milestone:
Component: ports Version: 2.9.99
Keywords: Cc:
Port: bind9

Description

The system compiler on this old version of macOS is not up to the job any more.

Here's the first error:

netmgr/netmgr.c:2396:10: error: address argument to atomic operation must be a pointer to non-const _Atomic type ('const isc_refcount_t *' (aka 'const _Atomic(uint_fast32_t) *') invalid)
        REQUIRE(VALID_NMHANDLE(handle));
        ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
netmgr/netmgr-int.h:243:3: note: expanded from macro 'VALID_NMHANDLE'
         atomic_load(&(t)->references) > 0)

I build it successfully with configure.compiler=macports-clang-16

sudo port clean bind9
sudo port -s upgrade bind9 configure.compiler=macports-clang-16

Change History (4)

comment:1 Changed 3 months ago by snowflake (Dave Evans)

It builds OK with macports-clang-17 as well.

comment:2 Changed 3 months ago by jmroot (Joshua Root)

Summary: bind9 @9.20.0 on macOS 10.11.6 needs a more recent compilerbind9 @9.20.0 needs C11 atomics fix

comment:3 Changed 3 months ago by danielluke (Daniel J. Luke)

I’m likely going to need to have someone with access to one of these older machines help with this (perhaps we can blacklist older compilers or update the previous atomics patch….)

comment:4 Changed 3 months ago by jmroot (Joshua Root)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.