Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Perl 5.10.0 and Tk 804.027

by g0n (Priest)
on Dec 19, 2007 at 10:44 UTC ( [id://657846]=perlnews: print w/replies, xml ) Need Help??

For all those upgrading their Perl to the latest, shiniest release, this might save you some searching. The CPAN release of Tk doesn't appear to work with 5.10.0 (if you installed 5.9.5 you'll have had the same problem). The result during make on my Debian box is as follows:

tkGlue.c: In function ‘Tcl_RegExpRange’: tkGlue.c:5360: error: ‘regexp’ has no member named ‘startp’ tkGlue.c:5360: error: ‘regexp’ has no member named ‘endp’ tkGlue.c:5362: error: ‘regexp’ has no member named ‘startp’ tkGlue.c:5363: error: ‘regexp’ has no member named ‘endp’ tkGlue.c: In function ‘Boot_Glue’: tkGlue.c:5493: warning: initialization from incompatible pointer type tkGlue.c:5501: warning: assignment from incompatible pointer type make: *** [tkGlue.o] Error 1

The appropriate bug report is here (although the title references Solaris), and the solution is to get the dev version of Tk from here:

https://svn.perl.org/modules/Tk/trunk

This worked fine for me; although some of the tests failed, all my Tk code seems to run fine after installation :-)

Update: Hint for the non-svn initiated (assuming you have an svn client installed):

mkdir tk cd tk svn checkout https://svn.perl.org/modules/Tk/trunk/ ./ perl Makefile.PL make make test make install

--------------------------------------------------------------

"If there is such a phenomenon as absolute evil, it consists in treating another human being as a thing."
John Brunner, "The Shockwave Rider".

Replies are listed 'Best First'.
Re: Perl 5.10.0 and Tk 804.027
by zentara (Archbishop) on Dec 19, 2007 at 14:47 UTC
    Slaven Rezic has been improving the 804.027 version, if I recall correctly, (probably not :-) ) he said the new version works with Perl 5.10. See Tk-804.028 It's worth a try.

    I'm not really a human, but I play one on earth. Cogito ergo sum a bum
Re: Perl 5.10.0 and Tk 804.027
by eserte (Deacon) on Dec 19, 2007 at 20:11 UTC
    I am interested in failing test reports. Can you be more specific and post them here? (Do not use rt.cpan.org at the moment, there's currently a nasty mail loops thrashing my mailbox...)
      It took some hacking about to get a fail report, since I didn't immediately notice that Slaven Rezic has now released 804.028, and was wondering why Tk mysteriously installed OK now.

      The report relates to NI-S/Tk-804.027.tar.gz, which cpan install no longer receives as default, but here it is:

      and since the output of make is truncated, here's the error:

      --------------------------------------------------------------

      "If there is such a phenomenon as absolute evil, it consists in treating another human being as a thing."
      John Brunner, "The Shockwave Rider".

Re: Perl 5.10.0 and Tk 804.027
by Tux (Canon) on Dec 20, 2007 at 08:27 UTC

    The most current stable version is Tk-804.028 released on 18 Dec 2007, which - for me - builds out of the box and passes all (even TODO) tests on perl-5.10.0, even under 64bit HP-UX 11.23

    I get the most recent version from svn very often. I don't like svn, as it does only run on Linux, and I can't get it to work on HP-UX or AIX, so here's a script to get a tar archive from the svn trunk:

    which will give you a file like

    5408955 2007-12-18 13:05 Tk-804.027-10390.tbz

    Enjoy, Have FUN! H.Merijn

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlnews [id://657846]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (7)
As of 2024-04-19 10:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found