On Thu, Jan 30, 2025 at 11:05:20AM +0000, parona wrote: > > Could you show the configure/build flags and the error the compiler > > gives? I think the patch is correct, but I have trouble replicating > > the issue. > > export CFLAGS="-O0 -pipe" > autoreconf -fi > ./configure --enable-stacktrace --enable-maintainer-mode > make > > stacktrace.c: In function ‘main’: > stacktrace.c:1410:10: error: implicit declaration of function ‘setlocale’ > [-Wimplicit-function-declaration] > 1410 | (void) setlocale (LC_ALL, ""); > | ^~~~~~~~~ > GEN libar.manifest > stacktrace.c:1410:21: error: ‘LC_ALL’ undeclared (first use in this function) > 1410 | (void) setlocale (LC_ALL, ""); > | ^~~~~~ > stacktrace.c:1410:21: note: each undeclared identifier is reported only once > for each function it appears in > > This occurs on musl without any special CFLAGS.
Ah, how embarrassing I forgot that stacktrace is still experimental and needs a configure flag to enable it. Doh. Yes, this is obviously the correct thing to do. Pushed. Thanks, Mark