<div dir="ltr"><div>Hi,</div><div><br></div><div>I am currently trying to add the fdt-shell commands to my application but rtems zlib won't link with -lz added to gcc.</div><div><br></div><div>My Output is as follows:</div><div>"""</div><div>(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 <b>-lz</b> -lm -ldebugger <br></div><div><br></div><div>/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':<br>/home/nils/development/src/rtems/c/src/../../cpukit/libmisc/rtems-fdt/rtems-fdt.c:555: undefined reference to `z_inflateInit_'<br>/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'<br>/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'<br>/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'<br>collect2: error: ld returned 1 exit status</div><div>"""</div><div><br></div><div>Has anyone an idea why this won't build?</div><div><br></div><div>Best,</div><div>Nils Hölscher<br></div></div>