problemslinking Zlib

Nils Hölscher nilhoel1 at gmail.com
Wed Jul 10 11:33:09 UTC 2019


Hi,

I am currently trying to add the fdt-shell commands to my application but
rtems zlib won't link with -lz added to gcc.

My Output is as follows:
"""
(576) /home/nils/development/rtems/5/bin/arm-rtems5-gcc -qrtems
-B/home/nils/development/rtems/5/arm-rtems5/lib/
-B/home/nils/development/rtems/5/arm-rtems5/beagleboneblack/lib/ --specs
bsp_specs -mcpu=cortex-a8 -mcpu=cortex-a8 -ffunction-sections
-ffunction-sections -fdata-sections -fdata-sections -Wl,--gc-sections
main.c.2.o init.c.2.o pruss-shell.c.2.o ti/prussdrv.c.1.o
-o/home/nils/development/rtems-pru/build/arm-rtems5-beagleboneblack/pru.exe
-Wl,-Bstatic -Wl,-Bdynamic
-L/home/nils/development/rtems/rtems-libbsd/arm-rtems5/beagleboneblack/lib
-lbsd *-lz* -lm -ldebugger

/home/nils/development/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld:
/home/nils/development/rtems/5/arm-rtems5/beagleboneblack/lib/librtemscpu.a(rtems-fdt.o):
in function `rtems_fdt_load':
/home/nils/development/src/rtems/c/src/../../cpukit/libmisc/rtems-fdt/rtems-fdt.c:555:
undefined reference to `z_inflateInit_'
/home/nils/development/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld:
/home/nils/development/src/rtems/c/src/../../cpukit/libmisc/rtems-fdt/rtems-fdt.c:557:
undefined reference to `z_inflateReset2'
/home/nils/development/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld:
/home/nils/development/src/rtems/c/src/../../cpukit/libmisc/rtems-fdt/rtems-fdt.c:559:
undefined reference to `z_inflate'
/home/nils/development/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld:
/home/nils/development/src/rtems/c/src/../../cpukit/libmisc/rtems-fdt/rtems-fdt.c:561:
undefined reference to `z_inflateEnd'
collect2: error: ld returned 1 exit status
"""

Has anyone an idea why this won't build?

Best,
Nils Hölscher
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20190710/e18c0208/attachment.html>


More information about the devel mailing list