[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:38:12 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
Resolution: | Keywords: sonoma
Port: gawk |
---------------------------+--------------------
Comment (by barracuda156):
After adding the missing header, it fails with
{{{
In file included from gawkmisc.c:38:
posix/gawkmisc.c: In function 'os_disable_aslr':
posix/gawkmisc.c:363:60: error: passing argument 2 of
'_NSGetExecutablePath' from incompatible pointer type [-Wincompatible-
pointer-types]
363 | n = _NSGetExecutablePath(fullpath, &size);
| ^~~~~
| |
| size_t
* {aka long unsigned int *}
In file included from posix/gawkmisc.c:39:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/mach-o/dyld.h:105:54:
note: expected 'uint32_t *' {aka 'unsigned int *'} but argument is of type
'size_t *' {aka 'long unsigned int *'}
105 | extern int _NSGetExecutablePath(char* buf, uint32_t* bufsize)
__OSX_AVAILABLE_STARTING(__MAC_10_2, __IPHONE_2_0);
| ~~~~~~~~~~^~~~~~~
make[2]: *** [gawkmisc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
}}}
--
Ticket URL: <https://trac.macports.org/ticket/72587#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list