[MacPorts] #44265: objc @3.2.8 Build Error
MacPorts
noreply at macports.org
Mon Jul 26 19:22:01 UTC 2021
#44265: objc @3.2.8 Build Error
--------------------------+----------------------
Reporter: zorgatone@… | Owner: (none)
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.3.1
Resolution: | Keywords:
Port: objc |
--------------------------+----------------------
Comment (by cooljeanius):
I'm getting a different error now; there's now a `-Werror=implicit-
function-declaration` problem before it even gets to the Objective C error
listed originally:
{{{
/usr/bin/gcc -DNDEBUG -c -o lex.o lex.c
lex.yy.c:2881:1: error: implicitly declaring library function 'exit' with
type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-
declaration]
exit(2);
^
lex.yy.c:2881:1: note: include the header <stdlib.h> or explicitly provide
a declaration for 'exit'
lex.yy.c:2944:14: error: implicitly declaring library function 'malloc'
with type 'void *(unsigned long)' [-Werror,-Wimplicit-function-
declaration]
return(void*)malloc(size);
^
lex.yy.c:2944:14: note: include the header <stdlib.h> or explicitly
provide a declaration for 'malloc'
lex.yy.c:2962:14: error: implicitly declaring library function 'realloc'
with type 'void *(void *, unsigned long)' [-Werror,-Wimplicit-function-
declaration]
return(void*)realloc((char*)ptr,size);
^
lex.yy.c:2962:14: note: include the header <stdlib.h> or explicitly
provide a declaration for 'realloc'
lex.yy.c:2972:1: error: implicit declaration of function 'free' is invalid
in C99 [-Werror,-Wimplicit-function-declaration]
free(ptr);
^
4 errors generated.
make: *** [lex.o] Error 1
}}}
--
Ticket URL: <https://trac.macports.org/ticket/44265#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list