Opened 19 years ago

Closed 19 years ago

#4498 closed defect (fixed)

Ruby 1.8.2 incompatibility with Tcl/Tk under Darwin 8.2.0

Reported by: john@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port:

Description

While installing the Ruby 1.8.2 port on Darwin 8.2.0 (with verbose output enabled) this text appeared:

* PTHREAD SUPPORT MODE ERRROR: Ruby is not compiled with --enable-pthread, but your Tcl/Tk libararies seems to be compiled with "pthread support". This combination possibly cause "Hang-up" or "Segmentation Fault" frequently when Ruby/Tk is working. We NEVER recommend you to create the library under such combination of pthread support. Please recompile Ruby with "--enable-pthread" configure option or recompile Tcl/Tk with "--disable-threads" configure option. *

The issue is only visible if verbose output is requested.

Adding --enable-pthread to the Portfile fixes the issue.

Change History (3)

comment:1 Changed 19 years ago by mww@…

adding "--enable-pthread" to tk and tcl I assume?

comment:2 Changed 19 years ago by john@…

No, this was fixed by adding --enable-pthread to the Ruby Portfile. I would suggest ensuring that tk, tcl and ruby Portfiles all have pthreads enabled for compatibility with Apple's builds. Otherwise you run the risk of this sort of problem unless all three come from from the same source.

comment:3 Changed 19 years ago by pguyot (Paul Guyot)

Resolution: fixed
Status: newclosed

tcl and tk have threads enabled by default in versions ported by DP and in MacOS X 10.3 and higher.

So the only thing is to add --enable-thread to ruby, something I have just done and committed.

Note: See TracTickets for help on using tickets.