Rocky Linux sys_nerr, sys_errlist deprecation

Arian Cabrera acabrera@ciq.com
Mon Feb 3 20:49:34 GMT 2025


Thanks for your response Sam,

I am using the binutils-devel binary (binutils-devel   x86_64
      2.35.2-54.el9) which ships the libiberty library.

I tried adding config.h but instead got this error:

test.c:4:10: fatal error: config.h: No such file or directory
    4 | #include <config.h>
      |          ^~~~~~~~~~
compilation terminated.

Arian Cabrera

*Customer Support Engineer*

*P* 510 9880618 #558 | *E* acabrera@ciq.com  | *W* ciq.com



On Mon, Feb 3, 2025 at 3:41 PM Sam James <sam@gentoo.org> wrote:

> Arian Cabrera <acabrera@ciq.com> writes:
>
> > To whom it may concern,
> >
> > I wanted to raise a question, regarding binutils-devel shipping
> libiberty library with deprecated functions (sys_nerr,
> > sys_errlist) causing the following errors in Rocky Linux versions using
> glibbc 2.32 and up.
>
> Note that libiberty isn't really supposed to be a public library at all,
> it's really intended to be used statically linked within a project like
> binutils or gcc.
>
> >
> > Why the following doesn't work, if binutils ships liberty specifically
> for this? Correct?
> > Any workaround? If the workaround is to change code and move away from
> using liberty, could you please explain the reason
> > why?
>
> I suspect it's because the libiberty config.h isn't being included so it
> doesn't know it needs to define the fallbacks.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/binutils/attachments/20250203/7d42c325/attachment.htm>


More information about the Binutils mailing list