Hello, On Thursday, January 30th, 2025 at 12:59 PM, Mark Wielaard <m...@klomp.org> wrote:
> Hi, > > On Thu, Jan 30, 2025 at 12:05:59AM +0000, parona wrote: > > > While building elfutils on musl with different features enabled I > > hit this. > > > > Curiously this also affects glibc if you explicitly build without > > optimizations. > > > 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.