linking error in rtems_record_server.c but bsp is configured with --disable-networking

Juan Solano jsm at jsolano.com
Fri Apr 30 20:37:05 UTC 2021


Hi all,

I am learning my way around RTEMS, developing a BSP for Xilinx Zynq, using RTEMS 5. I configure with --disable-networking but I have a linking error when building the BSP, a networking function in librtemscpu.a  is compiled in, should this be happening? There are missing references to socket, bind, listen and accept.

Any ideas?
Juan. 

$HOME/dev_rtems/src/rtems/configure --prefix=$HOME/dev_rtems/tools/5 --target=arm-rtems5 --enable-rtemsbsp=xilinx_zynq_u_plus_zcu102  --enable-posix --disable-networking --disable-tests --enable-maintainer-mode


....



arm-rtems5-gcc  -march=armv7-r -mthumb -mtune=cortex-r5 -g -O0 -Wall -Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -B./../../lib/libbsp/arm/xilinx-zynq-r5 -B/home/juan/dev_rtems/src/rtems/bsps/arm/xilinx-zynq-r5/start -specs bsp_specs -qrtems -L./../../cpukit -L/home/juan/dev_rtems/src/rtems/bsps/arm/shared/start -Wl,--wrap=printf -Wl,--wrap=puts -Wl,--wrap=putchar -Wl,--gc-sections -o record02.exe record02/record02-init.o ./../../cpukit/librtemscpu.a ./../../cpukit/libz.a ./../../lib/libbsp/arm/xilinx-zynq-r5/librtemsbsp.a ./../../cpukit/librtemscpu.a ./../../cpukit/librtemstest.a 
/mnt/data3/shared_vmware_directories/projects/j______PR20_02_RTEMS/dev_rtems/tools/5/bin/../lib/gcc/arm-rtems5/7.5.0/../../../../arm-rtems5/bin/ld: ./../../cpukit/librtemscpu.a(record-server.o): in function `rtems_record_server':
/home/juan/dev_rtems/src/rtems/c/src/../../cpukit/libtrace/record/record-server.c:324: undefined reference to `socket'
/mnt/data3/shared_vmware_directories/projects/j______PR20_02_RTEMS/dev_rtems/tools/5/bin/../lib/gcc/arm-rtems5/7.5.0/../../../../arm-rtems5/bin/ld: /home/juan/dev_rtems/src/rtems/c/src/../../cpukit/libtrace/record/record-server.c:334: undefined reference to `bind'
/mnt/data3/shared_vmware_directories/projects/j______PR20_02_RTEMS/dev_rtems/tools/5/bin/../lib/gcc/arm-rtems5/7.5.0/../../../../arm-rtems5/bin/ld: /home/juan/dev_rtems/src/rtems/c/src/../../cpukit/libtrace/record/record-server.c:339: undefined reference to `listen'
/mnt/data3/shared_vmware_directories/projects/j______PR20_02_RTEMS/dev_rtems/tools/5/bin/../lib/gcc/arm-rtems5/7.5.0/../../../../arm-rtems5/bin/ld: /home/juan/dev_rtems/src/rtems/c/src/../../cpukit/libtrace/record/record-server.c:349: undefined reference to `accept'
collect2: error: ld returned 1 exit status





More information about the devel mailing list