This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: REENTRANT_SYSCALLS_PROVIDED?


On Mi, Sep 12, 2018 at 01:10:59 +0200, Josef Wolf wrote:

> [ ... ]
> /m/a/local/crossgcc/bin/../lib64/gcc/m68k-unknown-elf/8.2.0/../../../../m68k-unknown-elf/bin/ld:
> /m/a/local/crossgcc/bin/../lib64/gcc/m68k-unknown-elf/8.2.0/../../../../m68k-unknown-elf/lib/mcpu32/libc.a(lib_a-makebuf.o):
> in function `__swhatbuf_r':
> /var/tmp/builds/crossgcc/src/newlib-3.0.0.20180802/newlib/libc/stdio/makebuf.c:96:
> undefined reference to `fstat'

The problem is that the calls to fstat_r() in makebuf.c are not guarded by the
REENTRANT_SYSCALLS_PROVIDED define.

What would be the correct way to guard this?

-- 
Josef Wolf
jw@raven.inka.de


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]