Adding Openat in RTEMS-Libbsd

Eshan Dhawan eshandhawan51 at gmail.com
Fri Jul 24 19:31:26 UTC 2020


Hello everyone,
I tried adding openat to libbsd from freebsd. Got error in not defined
_libc_interposing__
Where is that defined or needs to be added from freebsd.

link to github repo :
https://github.com/eshandhawan51/rtems-libbsd/tree/file_tests
added file openat.c in freebsd/lib/libc/sys

log:
 eshan at EDs-pc  ~/development/rtems/kernel/rtems-libbsd   file_tests ● 
./waf
Waf: Entering directory
`/home/eshan/development/rtems/kernel/rtems-libbsd/build/arm-rtems5-xilinx_zynq_a9_qemu-default'
[ 188/1949] Compiling freebsd/lib/libc/sys/openat.c
[1825/1949] Linking
build/arm-rtems5-xilinx_zynq_a9_qemu-default/at_functions.exe
[1910/1949] Linking
build/arm-rtems5-xilinx_zynq_a9_qemu-default/termios01.exe
[1914/1949] Linking
build/arm-rtems5-xilinx_zynq_a9_qemu-default/termios02.exe
[1918/1949] Linking
build/arm-rtems5-xilinx_zynq_a9_qemu-default/termios03.exe
[1922/1949] Linking
build/arm-rtems5-xilinx_zynq_a9_qemu-default/termios04.exe
[1927/1949] Linking
build/arm-rtems5-xilinx_zynq_a9_qemu-default/termios05.exe
[1931/1949] Linking
build/arm-rtems5-xilinx_zynq_a9_qemu-default/termios06.exe
[1932/1949] Linking
build/arm-rtems5-xilinx_zynq_a9_qemu-default/thread01.exe
[1942/1949] Linking
build/arm-rtems5-xilinx_zynq_a9_qemu-default/timeout01.exe
/home/eshan/development/rtems/5/lib/gcc/arm-rtems5/7.5.0/../../../../arm-rtems5/bin/ld:
./libbsd.a(openat.c.11.o): in function `openat':
/home/eshan/development/rtems/kernel/rtems-libbsd/build/arm-rtems5-xilinx_zynq_a9_qemu-default/../../freebsd/lib/libc/sys/openat.c:61:
undefined reference to `__libc_interposing'
/home/eshan/development/rtems/5/lib/gcc/arm-rtems5/7.5.0/../../../../arm-rtems5/bin/ld:
/home/eshan/development/rtems/kernel/rtems-libbsd/build/arm-rtems5-xilinx_zynq_a9_qemu-default/../../freebsd/lib/libc/sys/openat.c:61:
undefined reference to `__libc_interposing'
/home/eshan/development/rtems/5/lib/gcc/arm-rtems5/7.5.0/../../../../arm-rtems5/bin/ld:
/home/eshan/development/rtems/kernel/rtems-libbsd/build/arm-rtems5-xilinx_zynq_a9_qemu-default/at_functions.exe:
hidden symbol `__libc_interposing' isn't defined
/home/eshan/development/rtems/5/lib/gcc/arm-rtems5/7.5.0/../../../../arm-rtems5/bin/ld:
final link failed: bad value
collect2: error: ld returned 1 exit status

Waf: Leaving directory
`/home/eshan/development/rtems/kernel/rtems-libbsd/build/arm-rtems5-xilinx_zynq_a9_qemu-default'
Build failed

-- 
Thanks
- Eshan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20200725/f2915522/attachment-0001.html>


More information about the devel mailing list