[MacPorts] #72587: gawk fails to build with gcc14 on Sonoma: gawkmisc.c: error: implicit declaration of function '_NSGetExecutablePath' [-Wimplicit-function-declaration]
MacPorts
noreply at macports.org
Sat Jun 7 22:30:25 UTC 2025
#72587: gawk fails to build with gcc14 on Sonoma: gawkmisc.c: error: implicit
declaration of function '_NSGetExecutablePath' [-Wimplicit-function-
declaration]
--------------------------+--------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.10.7
Keywords: sonoma | Port: gawk
--------------------------+--------------------
{{{
ccache /opt/local/bin/gcc-mp-14
-DDEFPATH='".:/opt/local/share/awk"'
-DDEFLIBPATH="\"/opt/local/lib/gawk\"" -DSHLIBEXT="\"so"\" -DHAVE_CONFIG_H
-DGAWK -DLOCALEDIR='"/opt/local/share/locale"' -I"./support" -I.
-I/opt/local/include
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -pipe -Os
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch arm64
-DNDEBUG -pipe -Os
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch arm64
-DNDEBUG -MT gawkmisc.o -MD -MP -MF $depbase.Tpo -c -o gawkmisc.o
gawkmisc.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo int_array.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
ccache /opt/local/bin/gcc-mp-14
-DDEFPATH='".:/opt/local/share/awk"'
-DDEFLIBPATH="\"/opt/local/lib/gawk\"" -DSHLIBEXT="\"so"\" -DHAVE_CONFIG_H
-DGAWK -DLOCALEDIR='"/opt/local/share/locale"' -I"./support" -I.
-I/opt/local/include
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -pipe -Os
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch arm64
-DNDEBUG -pipe -Os
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch arm64
-DNDEBUG -MT int_array.o -MD -MP -MF $depbase.Tpo -c -o int_array.o
int_array.c &&\
mv -f $depbase.Tpo $depbase.Po
In file included from gawkmisc.c:38:
posix/gawkmisc.c: In function 'os_disable_aslr':
posix/gawkmisc.c:359:29: error: implicit declaration of function
'_NSGetExecutablePath' [-Wimplicit-function-declaration]
359 | n = _NSGetExecutablePath(fullpath, &size);
| ^~~~~~~~~~~~~~~~~~~~
depbase=`echo io.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
ccache /opt/local/bin/gcc-mp-14
-DDEFPATH='".:/opt/local/share/awk"'
-DDEFLIBPATH="\"/opt/local/lib/gawk\"" -DSHLIBEXT="\"so"\" -DHAVE_CONFIG_H
-DGAWK -DLOCALEDIR='"/opt/local/share/locale"' -I"./support" -I.
-I/opt/local/include
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -pipe -Os
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch arm64
-DNDEBUG -pipe -Os
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch arm64
-DNDEBUG -MT io.o -MD -MP -MF $depbase.Tpo -c -o io.o io.c &&\
mv -f $depbase.Tpo $depbase.Po
make[2]: *** [gawkmisc.o] Error 1
}}}
--
Ticket URL: <https://trac.macports.org/ticket/72587>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list