[PATCH 0/2] GCC errors when building C++ Applications with libbsd

Markus Moessner kho237115 at gmx.de
Mon Sep 26 17:28:36 UTC 2022


Am 26.09.2022 um 18:58 schrieb Markus Moessner:
>
>>>
>>> The second one is triggered by the function getrusage in rtemsbsd/include/bsd/sys/ressource.h.
>>> There is a another declaration in include/sys/ressource.h provided with the toolchain.
>>> Now, one has C Linkage the other one C++ Linkage which leads to a conflict. I ve simply made the one in libbsd invisible to the C++ compiler.
>
>> This is a bug in Newlib (newlib/libc/include/sys/resource.h). This file
>> needs the C++ extern "C" stuff.
>
>
> Okay, I ll re-submit the first patch. On the second one, are you submitting it to newlib or do you expect me to do that?
>
>
>
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel

I´ve submitted the patch to newlib.


More information about the devel mailing list