bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem building free.c with musl libc


From: Bruno Haible
Subject: Re: Problem building free.c with musl libc
Date: Wed, 10 Jul 2024 01:58:52 +0200

Hi Reuben,

Reuben Thomas wrote:
> Please see this issue report for the 'mmv' project, which I maintain:
> 
> https://github.com/rrthomas/mmv/issues/23

Since you did not give a "How to reproduce" recipe, I am forced to do
guesswork. Building the 'free' module on Alpine Linux works fine, for
years already.

checking whether free is known to preserve errno... no

is correct.

The error

free.c: In function 'rpl_free':
free.c:44:3: error: implicit declaration of function 'free' 
[-Wimplicit-function-declaration[https://gcc.gnu.org/onlinedocs/gcc-14.1.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration]]
   44 |   free (p);
      |   ^~~~

looks like something fiddled with the -I options.

The next error

../config.h:1375:9: warning: "free" redefined
 1375 | #define free GC_free
      |         ^~~~

looks like the package is doing something weird w.r.t. Boehm GC.

Bruno






reply via email to

[Prev in Thread] Current Thread [Next in Thread]