#66615 closed defect (fixed)

expat @2.5.0: Configuration logfiles contain indications of -Wimplicit-function-declaration

Reported by: d-lamb (Derek Lamb) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: Cc:
Port: expat

Description

$ sudo port -s install gcc12
<snip>

--->  Fetching distfiles for expat
--->  Attempting to fetch expat-2.5.0.tar.bz2 from https://distfiles.macports.org/expat
--->  Verifying checksums for expat
--->  Extracting expat
--->  Configuring expat
Warning: Configuration logfiles contain indications of -Wimplicit-function-declaration; check that features were not accidentally disabled:
  getrandom: found in expat-2.5.0/config.log
--->  Building expat
--->  Staging expat into destroot                        
--->  Installing expat @2.5.0_0                          
--->  Activating expat @2.5.0_0
--->  Cleaning expat

<snip>

Note the -s flag to install gcc12 from source.

See WimplicitFunctionDeclaration.

I had just upgrade from macOS Monterey to Ventura 13.1, and had reinstalled MacPorts, and was reinstalling ports.

Change History (3)

comment:1 Changed 23 months ago by jmroot (Joshua Root)

Owner: set to ryandesign
Status: newassigned

comment:2 Changed 22 months ago by ryandesign (Ryan Carsten Schmidt)

From what I can tell, getrandom is a glibc function. macOS doesn't use glibc and doesn't have this function, so this function should be added to the global exclusion lists. It's not specific to expat or any other port.

comment:3 Changed 18 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed
Summary: expat-2.5.0: Configuration logfiles contain indications of -Wimplicit-function-declarationexpat @2.5.0: Configuration logfiles contain indications of -Wimplicit-function-declaration

getrandom was added to the global exclusion lists for macOS 12 and earlier in [bbc42740d3373c6eaec9588d9234015e89ece24f/macports-ports] and added to the macOS 13 list in [b27358ac795c0db8a8ee27ed482190ca5e5a52f4/macports-ports].

Note: See TracTickets for help on using tickets.