RSB PC BSP packages fail on building curl (libbsd related)

Joel Sherrill joel at rtems.org
Thu May 21 22:41:01 UTC 2020


Hi

Appears to be something with the probe for gethostbyname. It fails with
this:

configure:19546: i386-rtems5-gcc -o conftest -qrtems
-B/home/joel/rtems-cron-5/rtems-source-builder/rtems/build/tmp/sb-1001-staging/i386-rtems5/lib/
-B/home/joel/rtems-cron-5/rtems-source-builder/rtems/build/tmp/sb-1001-staging/i386-rtems5/pc686/lib/
--specs bsp_specs -mtune=pentiumpro -march=pentium -O2 -ffunction-sections
-fdata-sections -Werror-implicit-function-declaration -Wno-system-headers
-isystem
/home/joel/rtems-cron-5/rtems-source-builder/rtems/build/tmp/sb-1001-staging/i386-rtems5/pc686/lib/include
-L/home/joel/rtems-cron-5/rtems-source-builder/rtems/build/tmp/sb-1001-staging/i386-rtems5/pc686/lib
-mtune=pentiumpro -march=pentium
 -L/home/joel/rtems-cron-5/rtems-source-builder/rtems/build/tmp/sb-1001/ftp/curl/home/joel/rtems-cron-5/tools/5/lib
conftest.c -lbsd -lm -lz -lrtemsdefaultconfig >&5
/home/joel/rtems-cron-5/rtems-source-builder/rtems/build/tmp/sb-1001-staging/bin/../lib/gcc/i386-rtems5/7.5.0/../../../../i386-rtems5/bin/ld:
/home/joel/rtems-cron-5/rtems-source-builder/rtems/build/tmp/sb-1001-staging/i386-rtems5/pc686/lib/libbsd.a(rtems-bsd-init-dhcp.c.18.o):/home/joel/rtems-cron-5/rtems-source-builder/rtems/build/rtems-libbsd-vd38dbbe18e5315bf69a7c3916d71ef3838d4c20d-x86_64-linux-gnu-1/rtems-libbsd-d38dbbe18e5315bf69a7c3916d71ef3838d4c20d/build/i386-rtems5-pc686-default/../../rtemsbsd/include/bsp/nexus-devices.h:157:
undefined reference to `_bsd_lem_pcimodule_sys_init'
/home/joel/rtems-cron-5/rtems-source-builder/rtems/build/tmp/sb-1001-staging/bin/../lib/gcc/i386-rtems5/7.5.0/../../../../i386-rtems5/bin/ld:
/home/joel/rtems-cron-5/rtems-source-builder/rtems/build/tmp/sb-1001-staging/i386-rtems5/pc686/lib/libbsd.a(iflib.c.18.o):
in function `iflib_pseudo_register':
/home/joel/rtems-cron-5/rtems-source-builder/rtems/build/rtems-libbsd-vd38dbbe18e5315bf69a7c3916d71ef3838d4c20d-x86_64-linux-gnu-1/rtems-libbsd-d38dbbe18e5315bf69a7c3916d71ef3838d4c20d/build/i386-rtems5-pc686-default/../../freebsd/sys/net/iflib.c:4804:
undefined reference to `iflib_gen_mac'
/home/joel/rtems-cron-5/rtems-source-builder/rtems/build/tmp/sb-1001-staging/bin/../lib/gcc/i386-rtems5/7.5.0/../../../../i386-rtems5/bin/ld:
/home/joel/rtems-cron-5/rtems-source-builder/rtems/build/tmp/sb-1001-staging/i386-rtems5/pc686/lib/libbsd.a(iflib.c.18.o):(.rodata.iflib_pseudo_methods+0x4):
undefined reference to `noop_attach'
/home/joel/rtems-cron-5/rtems-source-builder/rtems/build/tmp/sb-1001-staging/bin/../lib/gcc/i386-rtems5/7.5.0/../../../../i386-rtems5/bin/ld:
/home/joel/rtems-cron-5/rtems-source-builder/rtems/build/tmp/sb-1001-staging/i386-rtems5/pc686/lib/libbsd.a(iflib.c.18.o):(.rodata.iflib_pseudo_methods+0xc):
undefined reference to `iflib_pseudo_detach'
collect2: error: ld returned 1 exit status

What needs to be fixed in libbsd to correct this?

Filed as https://devel.rtems.org/ticket/3985#ticket

--joel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20200521/a2421e3b/attachment.html>


More information about the devel mailing list