libbsd tests not linking

Joel Sherrill joel.sherrill at gmail.com
Sat Jul 23 22:31:24 UTC 2022


Hi

I have updated tools. rtems, and am building libbsd for arm/zynq qemu. The
build fails with this:

Binary file
build/arm-rtems6-xilinx_zynq_a9_qemu-default/freebsd/lib/libc/stdio/fgetln.c.12.o
matches
Binary file build/arm-rtems6-xilinx_zynq_a9_qemu-default/libbsd.a matches
b.log:/home/joel/rtems-work/rtems-libbsd/build/arm-rtems6-xilinx_zynq_a9_qemu-default/../../freebsd/lib/libc/stdio/fgetln.c:150:
undefined reference to `__getreent'

Looks like it is coming from here.

freebsd/lib/libc/stdio/local.h:#define __srefill(_x)
__srefill_r(__getreent(), _x)

I guess this macro needs updating to whatever the current correct thing is
to do it. But I am not confident what that would be.

Thanks.

--joel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20220723/fd11899a/attachment.htm>


More information about the devel mailing list