New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #22316 (closed enhancement: invalid)

Opened 6 years ago

Last modified 5 years ago

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 macsforever2000@…) (diff)

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

comment:1 Changed 6 years ago by macsforever2000@…

  • Status changed from new to closed
  • Resolution set to invalid
  • Type changed from request to enhancement
  • Description modified (diff)

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

sudo port upgrade perl5.8 +threads

comment:2 follow-up: ↓ 3 Changed 5 years ago by sorin.sbarnea@…

  • Status changed from closed to reopened
  • Resolution invalid deleted

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 5 years ago by dluke@…

  • Status changed from reopened to closed
  • Resolution set to invalid

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.