Hi
I having troubles building current Pd on macOS catalina. This is how I run configure:
./configure --enable-jack --disable-jack-framework --disable-locales
And here is where the building stops:
~~~ x_file.c:1062:13: error: implicitly declaring library function 'snprintf' with type 'int (char *, unsigned long, const char *, ...)' [-Werror,-Wimplicit-function-declaration] snprintf(destfile, MAXPDSTRING, "%s/%s", destination, filename); ^ x_file.c:1062:13: note: include the header <stdio.h> or explicitly provide a declaration for 'snprintf' ~~~
The stdio.h _is_ declared in x_file.c, so I do not really understand what the problem is.
Thanks, Roman
Am 1. Oktober 2021 12:31:16 MESZ schrieb Roman Haefeli reduzent@gmail.com:
Hi
I having troubles building current Pd on macOS catalina. This is how I run configure:
./configure --enable-jack --disable-jack-framework --disable-locales
And here is where the building stops:
x_file.c:1062:13: error: implicitly declaring library function 'snprintf' with type 'int (char *, unsigned long, const char *, ...)' [-Werror,-Wimplicit-function-declaration] snprintf(destfile, MAXPDSTRING, "%s/%s", destination, filename);
that's fixed in 'devel' (I forgot the PR/issue that reported this, but there's one)
mfg.sfg.jfd IOhannes
On Fri, 2021-10-01 at 12:58 +0200, IOhannes m zmölnig wrote:
Am 1. Oktober 2021 12:31:16 MESZ schrieb Roman Haefeli
And here is where the building stops:
x_file.c:1062:13: error: implicitly declaring library function 'snprintf' with type 'int (char *, unsigned long, const char *, ...)' [-Werror,-Wimplicit-function-declaration] snprintf(destfile, MAXPDSTRING, "%s/%s", destination, filename);
that's fixed in 'devel' (I forgot the PR/issue that reported this, but there's one)
Thanks for the hint. I found the fix in: https://github.com/pure-data/pure-data/pull/1361 Specifically: https://github.com/pure-data/pure-data/pull/1361/commits/58a6690921fa39eafd3...
Apparently, it hasn't made it into 'develop' yet.
Roman