|
2026-10-11
| ||
| 12:46 | • Ticket [6a99f82ea2] FreeBSD 16 (Bleeding edge) - Tcl fails to compile Shared ob... artifact: a1914ae8d1 user: serhiy.storchaka | |
|
2026-06-28
| ||
| 17:23 | • Closed ticket [6a99f82ea2]. artifact: 5928c58d4b user: apnadkarni | |
| 17:16 | • Ticket [6a99f82ea2]: 3 changes artifact: f7ac381022 user: apnadkarni | |
| 12:21 | • Ticket [6a99f82ea2]: 3 changes artifact: 71b1558a55 user: mookie | |
| 12:17 | • Ticket [6a99f82ea2]: 3 changes artifact: b6db27957d user: mookie | |
| 11:47 | • Ticket [6a99f82ea2]: 3 changes artifact: 2d9b41b799 user: mookie | |
| 11:44 | • New ticket [6a99f82ea2]. artifact: e630ecd2c6 user: mookie | |
FreeBSD 16 (Bleeding edge) - Tcl fails to compile Shared object "libtcl9.0.so" not found
After compiling 9.1a1 successfully, I am struggling to compile 9.0.4
Resulting in the following error message when doing the traditional ./configure and make.
checking /forest/~bench/~app_scrap/tcl9.0.4/unix/tclsh for Tcl 9... ld-elf.so.1:
Shared object "libtcl9.0.so" not found, required by "tclsh"
no
configure: error: cannot find a usable native Tcl 9 tclsh. Either set
TCLSH_NATIVE or use configure with --disable-zipfs
*** Error code 1
The same error occurs with --disable-zipfs
9.1a1 compiles just fine.
rm -rf /forest/~tcl ; rm -rf /forest/~bench/~app_scrap/tcl
./configure --prefix=/forest/~tcl
make
FreeBSD 16.0-CURRENT FreeBSD 16.0-CURRENT #0 main-n286909-2c1482e30536
Forgot to include the make report. Is this a thread issue? Configuring package 'thread3.0.6' checking TEA configuration... ok (TEA 3.13) configure: configuring thread 3.0.6 checking system version... FreeBSD-16.0-CURRENT checking for Tcl configuration... found /forest/crystal_forest/~bench/~app_scrap/tcl9.0.4/unix/tclConfig.sh checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C23 features... -std=gnu23 checking for existence of /forest/crystal_forest/~bench/~app_scrap/tcl9.0.4/unix/tclConfig.sh... loading checking platform... unix configure: --exec-prefix defaulting to TCL_EXEC_PREFIX /forest/crystal/forest/~tcl checking for gcc... (cached) gcc checking whether the compiler supports GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to enable C23 features... (cached) -std=gnu23 checking how to run the C preprocessor... gcc -std=gnu23 -E checking whether make sets $(MAKE)... yes checking for ranlib... ranlib checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking if the compiler understands -pipe... yes checking whether byte ordering is bigendian... no checking for NaviServer/AOLserver configuration... none found checking for Tcl public headers... /forest/crystal_forest/~bench/~app_scrap/tcl9.0.4/generic checking for pthread_mutex_init in -lpthread... yes checking for building with threads... yes (default) checking how to build libraries... shared checking for ranlib... (cached) ranlib checking if 64bit support is requested... no checking if 64bit Sparc VIS support is requested... no checking if compiler supports visibility "hidden"... yes checking if rpath support is requested... yes checking system version... (cached) FreeBSD-16.0-CURRENT checking for ar... ar checking for cast to union support... yes checking for stdbool.h... yes checking for required early compiler flags... none checking for 64-bit integer type... yes checking for build with symbols... no checking for egrep -e... /usr/bin/grep -E checking for tclsh... /forest/crystal_forest/~bench/~app_scrap/tcl9.0.4/unix/tclsh checking for building with zipfs... no checking for tclsh9.0... no checking for tclsh90... no checking for tclsh... no checking /forest/crystal_forest/~bench/~app_scrap/tcl9.0.4/unix/tclsh for Tcl 9... ld-elf.so.1: Shared object "libtcl9.0.so" not found, required by "tclsh" no configure: error: cannot find a usable native Tcl 9 tclsh. Either set TCLSH_NATIVE or use configure with --disable-zipfs *** Error code 1
Discovered a workaround. Copying thread 3.0.5 from 9.1a1 pkgs directory to the 9.0.4 pkgs directory Tcl 9.0.4 now compiles. Alternatively Using the fossil branch of thread leaf check-in: 8c0237b059 - Fails compilation Using the fossil branch of thread leaf check-in: 5d6cb550a0 - Successful compilation but make % info tclversion 9.0 Verdict: Something is astray with the bundled Thread 3.0.6 package included with Tcl 9.0.4.
Discovered a workaround.
Copying thread 3.0.5 from 9.1a1 pkgs directory to the 9.0.4 pkgs directory Tcl 9.0.4 now compiles.
/forest/crystal_forest/~tcl/bin/tclsh9.0
% package require Thread
3.0.5
Alternatively
Using the fossil branch of thread leaf check-in: 8c0237b059 - Fails compilation
Using the fossil branch of thread leaf check-in: 5d6cb550a0 - Successful compiles but make install fails.
/forest/crystal_forest/~tcl/lib/tcl9/9.0/`echo tdbcsqlite3 | sed s=tdbc=tdbc/=`-1.1.13.uuid
Installing documentation in /forest/crystal_forest/~tcl/share/man
Installing /forest/crystal_forest/~bench/~app_scrap/tcl9.0.4/pkgs/tdbcsqlite3-1.1.13/doc/tdbc_sqlite3.n
gmake[1]: Leaving directory '/forest/crystal_forest/~bench/~app_scrap/tcl9.0.4/unix/pkgs/tdbcsqlite3-1.1.13'
Installing package 'thread' for Tcl 8
gmake[1]: Entering directory '/forest/crystal_forest/~bench/~app_scrap/tcl9.0.4/unix/pkgs8/thread'
/bin/sh: cannot open /forest/crystal_forest/~bench/~app_scrap/tcl9.0.4/pkgs/thread/tclconfig/install-sh: No such file or directory
gmake[1]: *** [Makefile:443: install-lib-binaries] Error 127
gmake[1]: Leaving directory '/forest/crystal_forest/~bench/~app_scrap/tcl9.0.4/unix/pkgs8/thread'
gmake: *** [Makefile:2095: install-packages] Error 2
Something is astray with the bundled Thread 3.0.6 package included with Tcl 9.0.4.
Mea culpa, I'm afraid. However, not a Tcl issue but a Thread issue. Moved there. Closing here.
@mookie, please follow up in the Thread ticket where I've suggested a workaround for you to try.
Closing here.