[MacPorts] #18391: "use Tk" in Perl causes bus error
#18391: "use Tk" in Perl causes bus error ---------------------------+------------------------------------------------ Reporter: marsh@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: Tk tcl perl | Port: tk perl ---------------------------+------------------------------------------------ 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 -- Ticket URL: <http://trac.macports.org/ticket/18391> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18391: "use Tk" in Perl causes bus error ---------------------------+------------------------------------------------ Reporter: marsh@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: Tk tcl perl | Port: p5-tk ---------------------------+------------------------------------------------ Changes (by jmr@…): * port: tk perl => p5-tk Old description:
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
New description: 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 -- -- Ticket URL: <http://trac.macports.org/ticket/18391#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18391: "use Tk" in Perl causes bus error ---------------------------+------------------------------------------------ Reporter: marsh@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: Tk tcl perl | Port: p5-tk ---------------------------+------------------------------------------------ Comment(by blb@…): As noted in #14018, there's an upstream bug report at http://rt.cpan.org/Public/Bug/Display.html?id=39593. -- Ticket URL: <http://trac.macports.org/ticket/18391#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18391: "use Tk" in Perl causes bus error --------------------------+------------------------------------------------- Reporter: marsh@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Component: ports Version: 1.7.0 | Keywords: Tk tcl perl Port: p5-tk | --------------------------+------------------------------------------------- Comment(by cmc@…): Replying to [comment:3 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. -- Ticket URL: <http://trac.macports.org/ticket/18391#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18391: "use Tk" in Perl causes bus error ---------------------------+------------------------------------------------ Reporter: marsh@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.0 Keywords: Tk tcl perl | Port: p5-tk ---------------------------+------------------------------------------------ Comment(by blb@…): Replying to [comment:5 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. -- Ticket URL: <http://trac.macports.org/ticket/18391#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18391: "use Tk" in Perl causes bus error ---------------------------+------------------------------------------------ Reporter: marsh@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.0 Keywords: Tk tcl perl | Port: p5-tk ---------------------------+------------------------------------------------ Comment(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! -- Ticket URL: <http://trac.macports.org/ticket/18391#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18391: "use Tk" in Perl causes bus error ---------------------------+------------------------------------------------ Reporter: marsh@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.0 Keywords: Tk tcl perl | Port: p5-tk ---------------------------+------------------------------------------------ Comment(by bdraschk+macports@…): Replying to [comment:7 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. -- Ticket URL: <http://trac.macports.org/ticket/18391#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18391: "use Tk" in Perl causes bus error ----------------------------+----------------------------------------------- Reporter: marsh@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.7.0 Resolution: fixed | Keywords: Tk tcl perl Port: p5-tk | ----------------------------+----------------------------------------------- Changes (by jmr@…): * status: new => closed * resolution: => fixed Comment: Updated to version 804.029 in r69983, and the test script in the description works with perl installed without +shared. -- Ticket URL: <http://trac.macports.org/ticket/18391#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts