> zlib is a basic library, present in every system. Maybe every Linux system but what about, say, Windows, Mac, FreeBSD etc.?
> Also Jimtcl has optional dependency from zlib I presume that option is not "enabled" for OpenOCD - by default or at all? When I build openocd I get this - I presume that jimtcl is built in/statically linked but there's no dependency on zlib: ``` ldd openocd linux-vdso.so.1 (0x00007ffcba6b1000) libusb-1.0.so.0 => /lib/x86_64-linux-gnu/libusb-1.0.so.0 (0x00007fd366095000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fd365f46000) libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007fd365f41000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fd365f3b000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fd365d49000) libudev.so.1 => /lib/x86_64-linux-gnu/libudev.so.1 (0x00007fd365d1c000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fd365cf7000) /lib64/ld-linux-x86-64.so.2 (0x00007fd3664ef000) ``` In case it matters that's on Zorin OS Lite 16.2 64-bit (Ubuntu 20.04 LTS derivative) and with the following debug adapters enabled: ``` The following debug adapters are available: 1: parport 2: dummy 3: ftdi 4: usb_blaster 5: esp_usb_jtag 6: jtag_vpi 7: ft232r 8: amt_jtagaccel 9: gw16012 10: presto 11: usbprog 12: openjtag 13: jlink 14: vsllink 15: rlink 16: ulink 17: arm-jtag-ew 18: buspirate 19: remote_bitbang 20: hla 21: osbdm 22: opendous 23: sysfsgpio 24: aice 25: cmsis-dap 26: kitprog 27: xds110 28: st-link ``` I also checked the xPack OpenOCD because Liviu Ionescu also builds/bundles dependent libs and I don't see zlib there either: https://xpack.github.io/dev-tools/openocd/