View Ticket
Ticket Hash: e4ff63edaece13846bd56feedc5c43484ecfcd2c
Title: Dynamic libraries not loading on RPi (Linux ARM)
Status: Open Type: Incident
Severity: Important Priority: Immediate
Subsystem: Tcl Resolution: Open
Last Modified: 2020-05-11 16:45:30
Version Found In: 0.12.0 / 8.6.10
Description:
I built a kit with the online creator (Linux-ARM).
Loading sqlite3 (or any other shared lib extension) gives this error:
% package require sqlite3
couldn't load file "/tmp/tcl_CFOcQP": /tmp/tcl_CFOcQP: cannot open shared object file: No such file or directory
% set errorInfo
couldn't load file "/tmp/tcl_CFOcQP": /tmp/tcl_CFOcQP: cannot open shared object file: No such file or directo
    while executing
"load /tmp/tclkit-8.6.10-linux-arm/lib/sqlite3.30.1.2/libsqlite3.30.1.2.so Sqlite3"
    ("package ifneeded sqlite3 3.30.1.2" script    invoked from within
"package require sqlite3"
Static extensions load fine (e.g. udp).
Building the same kit for Linux-amd64 does not have the problem - sqlite3 loads fine.

Please let me know if I can provide any more info, or do more testing!
Thanks,
Ian

User Comments:
rkeene added on 2020-05-11 16:45:30:
Probably the best thing to do is compile packages statically linked to the kit.  This is the "Kit: Statically link packages in pkgs directory" option in the online builder.