Repository navigation
mrpeach: fix GCC 14 build - #371495
mrpeach: fix GCC 14 build#371495
Conversation
There was a problem hiding this comment.
Instead of ignoring cause of the error, we can just replace error with perror. The error function used here doesn't seem to be imported from the header file <error.h> for GLIBC. So perror will be fine.
A simple but careful substituteInPlace will suffice. Make sure to only replace error() calls and not touch pd_error()
|
perror only takes a single argument, so it will be slightly more complicated. |
|
My apologies, replacing function in source file is not a solution, and should be avoided. That does more damage than we think. Simply ignoring the error isn't a good solution either, this just means CC couldn't find the required function, which can lead to undefined behaviour. Another thing I can think of is that, sometimes we forget that a specific version of a app can only be compatible with a version of a dependency, in which case this is I remember being on a similar situation with I inspected the source of celt and turned out 0.7 was the most appropriate. And it fixed the build. TLDR: my point is that are we perhaps using a different version of a dependency or missing a dependency? |
|
It is in puredata, behind an ifdef /* keep this in the Pd app for binary extern compatibility but don't
include in libpd because it conflicts with the posix pd_error(0, ) function. */
#ifdef PD_INTERNAL
EXTERN void error(const char *fmt, ...)
{
char buf[MAXPDSTRING];
va_list ap;
t_int arg[8];
int i;
va_start(ap, fmt);
vsnprintf(buf, MAXPDSTRING-1, fmt, ap);
va_end(ap);
strcat(buf, "\n");
doerror(NULL, buf);
}
#endif |
cf99831 to
84490ac
Compare
|
Turns out |
|
JohnRTitor
left a comment
There was a problem hiding this comment.
cyclone build failure is unrelated to this PR.

Related #370862
ref. #356812
Things done