Overview
| Artifact ID: | 841b4e1ae9b8a017469beb394b75e5fc27d77c344b9288a569992061726e41b7 |
|---|---|
| Ticket: | fc65ff1b663fd16e7582c34164acbd670514deed
zipfs mkimg fails for statically built tclsh |
| User & Date: | griffin on 2021-08-30 17:45:45 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
When using a tclsh or wish built with --disabled-shared, the [zipfs mkimg] command fails to create an image correctly. Instead, it simply writes out a new zip archive. $ /home/brian/tcl_core/usr_default/bin/tclsh8.7 test.tcl zipfs mkimg myApp.bin /home/brian/tcl_core/bugs/myApp /home/brian/tcl_core/bugs/myApp {} ---- image file type ---- file myApp.bin myApp.bin: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=c5b14647e79dbaf01f67f4eea390f610eef1043e, for GNU/Linux 3.2.0, with debug_info, not stripped ---- Shared libraries? ---- ldd myApp.bin linux-vdso.so.1 (0x00007fff89bb9000) libtcl8.7.so => /home/brian/tcl_core/usr_default/lib/libtcl8.7.so (0x00007f1fbe997000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f1fbe78f000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f1fbe789000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f1fbe76d000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f1fbe74a000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f1fbe5fb000) /lib64/ld-linux-x86-64.so.2 (0x00007f1fbec23000) $ /home/brian/tcl_core/usr_special/bin/tclsh8.7 test.tcl zipfs mkimg myApp.bin /home/brian/tcl_core/bugs/myApp /home/brian/tcl_core/bugs/myApp {} ---- image file type ---- file myApp.bin myApp.bin: Zip archive data, at least v2.0 to extract ---- Shared libraries? ---- ldd myApp.bin not a dynamic executable while executing "exec ldd $img" invoked from within "puts [exec ldd $img]" (file "test.tcl" line 24) $ ldd /home/brian/tcl_core/usr_special/bin/tclsh8.7 linux-vdso.so.1 (0x00007fff24924000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f1bada59000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f1bada3d000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f1bada1a000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f1bad8cb000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f1bad6d9000) /lib64/ld-linux-x86-64.so.2 (0x00007f1badcf4000) $ ldd /home/brian/tcl_core/usr_default/bin/tclsh8.7 linux-vdso.so.1 (0x00007ffd9fdf2000) libtcl8.7.so => /home/brian/tcl_core/usr_default/lib/libtcl8.7.so (0x00007f040046f000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f0400267000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f0400261000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f0400245000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f0400222000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f04000d3000) /lib64/ld-linux-x86-64.so.2 (0x00007f04006fb000) - foundin changed to: "8.7"
- is_private changed to: "0"
- login: "griffin"
- priority changed to: "5 Medium"
- private_contact changed to: "21780c4e03cc5884af69addd6efc1b71c50d9818"
- resolution changed to: "None"
- severity changed to: "Important"
- status changed to: "Open"
- submitter changed to: "griffin"
- subsystem changed to: "57. zlib"
- title changed to: "zipfs mkimg fails for statically built tclsh"
- type changed to: "Bug"