Artifacts Associated With Ticket ca61c66e02c7111e
Ticket change [d1aca1f940] (rid 133525) by ashumundra on 2013-08-29 07:19:12:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
I am compiling the latest TCL 8.6 source code on a net-bsd 5.1.2 machine for i386 platform. my software has its own implementation of threads therefore it does not use pthread. I am trying to disable pthread and undef TCL_THREADS flag using the following configure options but it does not work. The TCL_THREADS flag is set and I get stuck into compilation issues because there is no pthread library in my system. ./configure --enable-threads=no --enable-threadsafe=no I tried using --disable-threads too, it did not work.
- foundin initialized to: "8.6"
- is_private initialized to: "0"
- login: "ashumundra"
- priority initialized to: "5 Medium"
- private_contact initialized to: "35b2af5943b0bfa5bd5231b9671bc2cff34035db"
- resolution initialized to: "None"
- severity initialized to: "Important"
- status initialized to: "Open"
- submitter initialized to: "ashumundra"
- subsystem initialized to: "53. Configure and Build Tools"
- title initialized to: "TCL 8.6 compilation issues with no thread support"
- type initialized to: "Bug"
Ticket change [7ae35c3a9a] (rid 133566) by dgp on 2013-08-30 17:56:00:
- icomment:
On my Centos Linux system, using either the 8.6.0 release or the current trunk of development, when I configure for no threads: $ /path/to/configure --disable-threads ... $ make ... $ ldd libtcl8.6.so linux-vdso.so.1 => (0x00007fff9adfd000) libdl.so.2 => /lib64/libdl.so.2 (0x00002ba6f3538000) libz.so.1 => /lib64/libz.so.1 (0x00002ba6f373d000) libm.so.6 => /lib64/libm.so.6 (0x00002ba6f3951000) libc.so.6 => /lib64/libc.so.6 (0x00002ba6f3bd4000) /lib64/ld-linux-x86-64.so.2 (0x0000003e47c00000) No need for the pthreads library. It's possible things could be different on BSD, but I'd be surprised. Perhaps reporting the error messages you see on failure would further track this down?
- login: "dgp"
- mimetype: "text/plain"
- icomment:
Add attachment "net-bsd-pthread-error.jpg" [9a0795300c] (rid 133594) by ashumundra on 2013-09-01 06:24:36.
Add attachment "config.status" [7731179cb4] (rid 133605) by ashumundra on 2013-09-02 06:41:53.
Ticket change [de9f60e1e5] (rid 133616) by dgp on 2013-09-02 16:06:54:
- icomment:
That error comes from Itcl, not Tcl. Is it the 4.0.0 release of Itcl, or some later snapshot?
- login: "dgp"
- mimetype: "text/plain"
- icomment:
Ticket change [adb19fb8d9] (rid 133617) by dgp on 2013-09-02 16:26:11:
- assignee changed to: "dgp"
- icomment:
Never mind, it does not matter. The problem you face is that the Tcl+pkgs harness always configures the bundled packages for --enable-threads builds because on any normal system (yours is intentionally crippled) that is the correct choice. A thread-enabled package can [load] into either thread-enabled or thread-disabled Tcl interps. This is the maximally useful build for general installation. For your unusual needs, you will need to configure and build the bundled packages separately, not using the harness. The `make binaries` target will build both Tcl libraries and the tclsh program according to your --disable-threads preference. Then for each bundled package (except for Thread, naturally), you can perform your own `configure --disable-threads; make; make install` from their sources to get a set of binary packages suitable for your no-pthreads platform. Some additional configuration options in the Tcl+pkgs distribution to make this task easier for those who need it seems like a good idea, so I'm leaving this ticket open as a feature request for that.
- login: "dgp"
- mimetype: "text/plain"
- title changed to:
TCL+pkg forces thread-enabled package builds; bad for no pthreads systems
- type changed to: "RFE"
Ticket change [8f063698ce] (rid 148536) by dkf on 2016-09-01 16:10:49:
- login: "dkf"
- mimetype: "text/plain"
- subsystem changed to: "53. Configuration and Build Tools"
Ticket change [5cc784dc9f] (rid 261558) by serhiy.storchaka on 2026-11-13 11:18:45:
- closedate changed to: "2461357.9713335303"
- closer changed to: "serhiy.storchaka"
- icomment:
Since Tcl 9.0 (TIP 491) non-threaded builds are no longer possible, so options for building the bundled packages without threads are moot.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Out of Date"
- status changed to: "Closed"