Opened 16 years ago

Closed 14 years ago

#18391 closed defect (fixed)

"use Tk" in Perl causes bus error

Reported by: Gnossos Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Tk tcl perl Cc: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Port: p5-tk

Description (last modified by jmroot (Joshua Root))

Hello,

Maybe I'm doing something wrong, but I get this error. Here's what I did:

1) Install darwinports. 2) Install perl 5.8 3) Install p5-mime-tools 4) Install tk 5) Install p5-tk 6) Make this test perl script (after much pain):

   #!/opt/local/bin/perl
   use Tk;
   print "Hello World/n";

The use Tk always throws a bus error.

Is this a bug in the perl/tk packages, or am I doing something wrong?

Thanks

Change History (9)

comment:1 Changed 16 years ago by jmroot (Joshua Root)

Description: modified (diff)
Port: p5-tk added; tk perl removed

comment:2 Changed 16 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Cc: mcalhoun@… added

Cc Me!

comment:3 Changed 16 years ago by blb@…

As noted in #14018, there's an upstream bug report at http://rt.cpan.org/Public/Bug/Display.html?id=39593.

comment:4 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:5 in reply to:  3 ; Changed 15 years ago by cmconnelly (Claire Connelly)

Replying to blb@…:

As noted in #14018, there's an upstream bug report at http://rt.cpan.org/Public/Bug/Display.html?id=39593.

Also as noted there, if you rebuild your perl5 port with the +shared variant, the Tk module will work.

Ideally, the p5-tk would depend on a perl5 port with the +shared variant, but I'm not sure whether it's possible to require a specific variant.

comment:6 in reply to:  5 Changed 15 years ago by blb@…

Replying to cmc@…:

Also as noted there, if you rebuild your perl5 port with the +shared variant, the Tk module will work.

I was wondering if that's why I didn't have issues, since I do use +shared for perl.

Ideally, the p5-tk would depend on a perl5 port with the +shared variant, but I'm not sure whether it's possible to require a specific variant.

Yup, but that isn't currently possible unfortunately, and is ticket #126.

comment:7 in reply to:  5 ; Changed 15 years ago by mchampag@…

Also as noted there, if you rebuild your perl5 port with the +shared variant, the Tk module will work.

Sorry for the newbie question, but is there an online resource someone could point me to on how I can do that? Thank you!

comment:8 in reply to:  7 Changed 15 years ago by bdraschk+macports@…

Replying to mchampag@…:

Also as noted there, if you rebuild your perl5 port with the +shared variant, the Tk module will work.

Sorry for the newbie question, but is there an online resource someone could point me to on how I can do that? Thank you!

I have reinstalled my perl with

port -v install perl5.8 +shared

but "use Tk;" still bombs on me.

comment:9 Changed 14 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

Updated to version 804.029 in r69983, and the test script in the description works with perl installed without +shared.

Note: See TracTickets for help on using tickets.