Re: libbsd tests not linking
On Sun, Jul 24, 2022, 7:55 AM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > On 24/07/2022 00:31, Joel Sherrill wrote: > > 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) > > Sorry, I forgot to push the fix. It should work now. > Thanks. This will let me remove the hack I did to keep compiling. I think I have a case where confdef.h needs bintime which implies bsd stuff is visible but isn't. I'll get back to you on that. --joel > > -- > embedded brains GmbH > Herr Sebastian HUBER > Dornierstr. 4 > 82178 Puchheim > Germany > email: sebastian.hu...@embedded-brains.de > phone: +49-89-18 94 741 - 16 > fax: +49-89-18 94 741 - 08 > > Registergericht: Amtsgericht München > Registernummer: HRB 157899 > Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler > Unsere Datenschutzerklärung finden Sie hier: > https://embedded-brains.de/datenschutzerklaerung/ > ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel
Re: libbsd tests not linking
On 24/07/2022 00:31, Joel Sherrill wrote: 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) Sorry, I forgot to push the fix. It should work now. -- embedded brains GmbH Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: sebastian.hu...@embedded-brains.de phone: +49-89-18 94 741 - 16 fax: +49-89-18 94 741 - 08 Registergericht: Amtsgericht München Registernummer: HRB 157899 Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler Unsere Datenschutzerklärung finden Sie hier: https://embedded-brains.de/datenschutzerklaerung/ ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel
libbsd tests not linking
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 ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel