A Tk window

J

Joel VanderWerf

Hidetoshi said:
From: Joel VanderWerf <[email protected]>
Subject: Re: A Tk window
Date: Mon, 9 Feb 2009 05:43:28 +0900


Probably, your Tcl/Tk libraries are compiled with threads support option.
The following table is the relation of thread support between
Ruby and Tcl/Tk.

| Tcl/Tk with threads | without threads
-------------------+-----------------------+------------------------
Ruby with pthread | work | possibly work
-------------------+-----------------------+------------------------
without pthread | NOT work (freq. SEGV) | work
-------------------+-----------------------+------------------------

"--disable-tcl-thread" option doesn't change thread support status of
Tcl/Tk libraries.

You're right about my tk lib using pthread, but I'm not sure why:

$ ldd libtk8.5.so | grep thread
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7b2d000)

But I did rebuild tcl and tk with the options shown above, including
--disable-threads. The strange thing is that this worked for me in the
past with 8.4. Is there some other option that I have to pass to
configure to disable pthread?

Interestingly,

$ ldd libtcl8.5.so | grep thread

has empty output. So somehow tk is building with pthread, but tcl is
not. I used the same configure arguments for both.

I just rebuilt tk8.5.6 again with

/configure --disable-threads --prefix=/usr/local

and the still the resulting libtk8.5.so depends on libpthread.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,981
Messages
2,570,188
Members
46,731
Latest member
MarcyGipso

Latest Threads

Top