[MacPorts] #74279: tree-puzzle @5.2: error: call to undeclared library function 'memcpy'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
MacPorts
noreply at macports.org
Sat Aug 1 00:22:58 UTC 2026
#74279: tree-puzzle @5.2: error: call to undeclared library function 'memcpy'; ISO
C99 and later do not support implicit function declarations [-Wimplicit-
function-declaration]
-------------------------+-------------------------
Reporter: cooljeanius | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.12.5
Keywords: | Port: tree-puzzle
-------------------------+-------------------------
{{{
/usr/bin/clang -c primes-lcg64.c
lcg64.c:578:27: warning: adding 'int' to a string does not append to the
string [-Wstring-plus-int]
578 | printf("\n%s\n", GENTYPE+2);
| ~~~~~~~^~
lcg64.c:578:27: note: use array indexing to silence this warning
578 | printf("\n%s\n", GENTYPE+2);
| ^
| & [ ]
primes-lcg64.c:75:5: error: call to undeclared library function 'memcpy'
with type 'void *(void *, const void *, unsigned long)'; ISO C99 and later
do not support implicit function declarations [-Wimplicit-function-
declaration]
75 | memcpy(prime_array,prime_list+offset,need*sizeof(unsigned
int));
| ^
primes-lcg64.c:75:5: note: include the header <string.h> or explicitly
provide a declaration for 'memcpy'
1 error generated.
make[3]: *** [primes-lcg64.o] Error 1
make[3]: *** Waiting for unfinished jobs....
1 warning generated.
make[3]: Leaving directory `/opt/local/var/macports/build/tree-puzzle-
0c4a1249/work/tree-puzzle-5.2/src/sprng'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/tree-puzzle-
0c4a1249/work/tree-puzzle-5.2/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/opt/local/var/macports/build/tree-puzzle-
0c4a1249/work/tree-puzzle-5.2/src'
make: *** [all-recursive] Error 1
make: Leaving directory `/opt/local/var/macports/build/tree-puzzle-
0c4a1249/work/tree-puzzle-5.2'
Command failed: cd "/opt/local/var/macports/build/tree-puzzle-
0c4a1249/work/tree-puzzle-5.2" && /usr/bin/make -j16 -w all
Exit code: 2
Error: Failed to build tree-puzzle: command execution failed
DEBUG: Error code: CHILDSTATUS 56000 2
}}}
I'm on x86_64 Tahoe.
--
Ticket URL: <https://trac.macports.org/ticket/74279>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list