Opened 14 years ago

Closed 13 years ago

#22316 closed enhancement (invalid)

Perl 5.8 not built with threading support

Reported by: triddle@… Owned by: macports-tickets@…
Priority: Low Milestone:
Component: ports Version: 1.8.1
Keywords: Cc:
Port: perl5.8

Description (last modified by mf2k (Frank Schima))

The current Perl 5.8 port does not support threading however the Apple supplied Perl 5.8 does. I think that the Macports install of Perl in this instance should match the features of the vendor supplied perl. Is it possible to update the compile flags so the 5.6 threading model (ithreads) is supported?

Here is the difference between Macports perl and the Apple supplied perl:

Foodmotron:~ tyler$ echo "use threads;" | /usr/bin/perl #expected result
Foodmotron:~ tyler$ echo "use threads;" | /opt/local/bin/perl #unexpected result
This Perl not built to support threads
Compilation failed in require at - line 1.
BEGIN failed--compilation aborted at - line 1.

This is true for Leopard and Snow Leopard at this time.

Change History (3)

comment:1 Changed 14 years ago by mf2k (Frank Schima)

Description: modified (diff)
Resolution: invalid
Status: newclosed
Type: requestenhancement

You need to install with the +threads variant. In your case you can upgrade to it.

sudo port upgrade perl5.8 +threads

comment:2 Changed 13 years ago by sorin.sbarnea@…

Resolution: invalid
Status: closedreopened

I think that original reported is right, Perl must be installed using the same configuration as the one from Apple. This is not something nice to have, failing to do this will break lots of applications.

comment:3 in reply to:  2 Changed 13 years ago by danielluke (Daniel J. Luke)

Resolution: invalid
Status: reopenedclosed

Replying to sorin.sbarnea@…:

failing to do this will break lots of applications.

how? Do you have examples of anything that is actually broken?

Apple-provided perl is still there.

Note: See TracTickets for help on using tickets.