Skip Menu |

This queue is for tickets about the Tk CPAN distribution.

Report information
The Basics
Id: 100472
Status: resolved
Priority: 0/
Queue: Tk

People
Owner: Nobody in particular
Requestors: jmeador [...] momentapharma.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 804.032_501



Subject: cannot compile on Mac OS X Mavericks 10.9.5
Date: Thu, 20 Nov 2014 14:40:06 +0000
To: "bug-Tk [...] rt.cpan.org" <bug-Tk [...] rt.cpan.org>
From: James Meador <jmeador [...] momentapharma.com>
Hi, I have tried several different ways to compile Tk-804.027 and 804.032 using either the direct method (perl Makefile.PL) or via CPAN and all ways keep giving the same errors saying that some of the xxx.h files cannot be found when running perl Makefile.PL: … Extracting tkVisual.c Extracting tkWindow.c Extracting xbytes.h Finding dependencies for Lang_f.c Finding dependencies for Xlib_f.c Finding dependencies for XrmOption.c Cannot find 'tkPort.h' assume made Cannot find 'tkInt.h' assume made Finding dependencies for imgInt_f.c Cannot find 'imgInt.h' assume made … If I try to run make, it fails: … Running Mkbootstrap for Tk::Xlib () chmod 644 "Xlib.bs" "/Users/jimmeador/perl5/perlbrew/perls/perl-5.20.1/bin/perl" "/Users/jimmeador/perl5/perlbrew/perls/perl-5.20.1/lib/5.20.1/ExtUtils/xsubpp" -typemap "/Users/jimmeador/perl5/perlbrew/perls/perl-5.20.1/lib/5.20.1/ExtUtils/typemap" -typemap "/Users/jimmeador/sourceFiles/Perl/Tk-804.032/Tk/typemap" Xlib.xs > Xlib.xsc && mv Xlib.xsc Xlib.c make[1]: *** No rule to make target `pTk/tkInt.h', needed by `Xlib.o'. Stop. make: *** [subdirs] Error 2 I have checked that the various named xxx.h files are where they are supposed to be, and I cannot see why some of the files are found but some are not. Any ideas of what is happening and what to do about this? Thanks in advance, Jim This email message and any attachments are confidential and may be privileged. It is intended only for the individual(s) to whom it is addressed and may not be saved, copied, printed, disclosed or otherwise used by anyone else. If you are not the intended recipient, kindly notify the sender and delete this email and any attachments immediately. Momenta Pharmaceuticals, Inc.
On 2014-11-20 09:40:21, jmeador@momentapharma.com wrote: Show quoted text
> Hi, > I have tried several different ways to compile Tk-804.027 and 804.032 > using either the direct method (perl Makefile.PL) or via CPAN and all > ways keep giving the same errors saying that some of the xxx.h files > cannot be found when running perl Makefile.PL: > … > Extracting tkVisual.c > Extracting tkWindow.c > Extracting xbytes.h > Finding dependencies for Lang_f.c > Finding dependencies for Xlib_f.c > Finding dependencies for XrmOption.c > Cannot find 'tkPort.h' assume made > Cannot find 'tkInt.h' assume made > Finding dependencies for imgInt_f.c > Cannot find 'imgInt.h' assume made > … > > If I try to run make, it fails: > … > Running Mkbootstrap for Tk::Xlib () > chmod 644 "Xlib.bs" > "/Users/jimmeador/perl5/perlbrew/perls/perl-5.20.1/bin/perl" > "/Users/jimmeador/perl5/perlbrew/perls/perl- > 5.20.1/lib/5.20.1/ExtUtils/xsubpp" -typemap > "/Users/jimmeador/perl5/perlbrew/perls/perl- > 5.20.1/lib/5.20.1/ExtUtils/typemap" -typemap > "/Users/jimmeador/sourceFiles/Perl/Tk-804.032/Tk/typemap" Xlib.xs > > Xlib.xsc && mv Xlib.xsc Xlib.c > make[1]: *** No rule to make target `pTk/tkInt.h', needed by `Xlib.o'. > Stop. > make: *** [subdirs] Error 2 > > I have checked that the various named xxx.h files are where they are > supposed to be, and I cannot see why some of the files are found but > some are not. Any ideas of what is happening and what to do about > this? >
Can you check if the latest Tk from github works? git clone git://github.com/eserte/perl-tk Regards, Slaven
Subject: Re: [rt.cpan.org #100472] cannot compile on Mac OS X Mavericks 10.9.5
Date: Thu, 20 Nov 2014 20:42:12 +0000
To: "bug-Tk [...] rt.cpan.org" <bug-Tk [...] rt.cpan.org>
From: James Meador <jmeador [...] momentapharma.com>
Hi Slaven, This worked! Everything seemed to make, make test, and make install just fine. I used perl 5.20.1 and 5.18.2. Both worked fine. I use perl-tk with a Molecular Biology program called, “PerlPrimer” which I have used on Mac OS X and Linux for many years, and when it works, it’s great, but now I just need to figure out why I am getting these errors when trying to run PerlPrimer.pl. I hate to ask, but do you happen to know where I might find answers to where these errors are coming from? jmea-mac-w7:~/sourceFiles/Perl/perl-tk-master jimmeador$ perlprimer.pl "my" variable $k masks earlier declaration in same statement at /usr/local/bin/perlprimer.pl line 3114. syntax error at /usr/local/bin/perlprimer.pl line 3106, near "$k qw(a g c t)" syntax error at /usr/local/bin/perlprimer.pl line 3109, near "}" Global symbol "$pd_full" requires explicit package name at /usr/local/bin/perlprimer.pl line 3118. Global symbol "$pd_full" requires explicit package name at /usr/local/bin/perlprimer.pl line 3128. Global symbol "$l" requires explicit package name at /usr/local/bin/perlprimer.pl line 3139. Global symbol "$l" requires explicit package name at /usr/local/bin/perlprimer.pl line 3140. Global symbol "$l" requires explicit package name at /usr/local/bin/perlprimer.pl line 3141. I suspect that the author has just made a few mistakes in coding which I or someone will need to fix. I have fixed a few easy ones, but I do not know enough perl to immediately know what is going wrong here. I wish to learn more about perl so I guess this can be a good place to start. The funny thing is, that it is still running fine on a similarly set up macbook pro using the same version of mac os x and perl. I will email the author, but he has made the program in such a way that it breaks quite often when EMBL changes the formatting of their nucleotide sequence files and so the author is not as responsive as he once was. Can’t really blame him, and that is why I greatly appreciate your rapid response with a fix. Thank you very kindly for helping me to fix the compile issues with perl-Tk. It is a great package and I hope to use it more in the near future. Just not much time to “play”. best wishes, Jim On Nov 20, 2014, at 12:41 PM, Slaven_Rezic via RT <bug-Tk@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=100472 > > > On 2014-11-20 09:40:21, jmeador@momentapharma.com wrote:
>> Hi, >> I have tried several different ways to compile Tk-804.027 and 804.032 >> using either the direct method (perl Makefile.PL) or via CPAN and all >> ways keep giving the same errors saying that some of the xxx.h files >> cannot be found when running perl Makefile.PL: >> … >> Extracting tkVisual.c >> Extracting tkWindow.c >> Extracting xbytes.h >> Finding dependencies for Lang_f.c >> Finding dependencies for Xlib_f.c >> Finding dependencies for XrmOption.c >> Cannot find 'tkPort.h' assume made >> Cannot find 'tkInt.h' assume made >> Finding dependencies for imgInt_f.c >> Cannot find 'imgInt.h' assume made >> … >> >> If I try to run make, it fails: >> … >> Running Mkbootstrap for Tk::Xlib () >> chmod 644 "Xlib.bs" >> "/Users/jimmeador/perl5/perlbrew/perls/perl-5.20.1/bin/perl" >> "/Users/jimmeador/perl5/perlbrew/perls/perl- >> 5.20.1/lib/5.20.1/ExtUtils/xsubpp" -typemap >> "/Users/jimmeador/perl5/perlbrew/perls/perl- >> 5.20.1/lib/5.20.1/ExtUtils/typemap" -typemap >> "/Users/jimmeador/sourceFiles/Perl/Tk-804.032/Tk/typemap" Xlib.xs > >> Xlib.xsc && mv Xlib.xsc Xlib.c >> make[1]: *** No rule to make target `pTk/tkInt.h', needed by `Xlib.o'. >> Stop. >> make: *** [subdirs] Error 2 >> >> I have checked that the various named xxx.h files are where they are >> supposed to be, and I cannot see why some of the files are found but >> some are not. Any ideas of what is happening and what to do about >> this? >>
> > Can you check if the latest Tk from github works? > > git clone git://github.com/eserte/perl-tk > > Regards, > Slaven >
This email message and any attachments are confidential and may be privileged. It is intended only for the individual(s) to whom it is addressed and may not be saved, copied, printed, disclosed or otherwise used by anyone else. If you are not the intended recipient, kindly notify the sender and delete this email and any attachments immediately. Momenta Pharmaceuticals, Inc.
On 2014-11-20 15:42:25, jmeador@momentapharma.com wrote: [...] Show quoted text
> jmea-mac-w7:~/sourceFiles/Perl/perl-tk-master jimmeador$ perlprimer.pl > "my" variable $k masks earlier declaration in same statement at > /usr/local/bin/perlprimer.pl line 3114. > syntax error at /usr/local/bin/perlprimer.pl line 3106, near "$k qw(a > g c t)"
There was a syntax change in perl, I think in version 5.18 or 5.20. Now something like for $k qw(...) is a syntax error, one has to put the extra parenthesis around the qw. So the fix is: for $k (qw(...)) This should work for all perls, older and newer. Regards, Slaven
Subject: Re: [rt.cpan.org #100472] cannot compile on Mac OS X Mavericks 10.9.5
Date: Fri, 21 Nov 2014 12:54:23 +0000
To: "bug-Tk [...] rt.cpan.org" <bug-Tk [...] rt.cpan.org>
From: James Meador <jmeador [...] momentapharma.com>
Thank you very kindly, Slaven. I am sure your suggestions will help me to troubleshoot this much more easily. Thanks again for all of your help. best wishes, Jim On Nov 20, 2014, at 3:54 PM, Slaven_Rezic via RT <bug-Tk@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=100472 > > > On 2014-11-20 15:42:25, jmeador@momentapharma.com wrote: > > [...]
>> jmea-mac-w7:~/sourceFiles/Perl/perl-tk-master jimmeador$ perlprimer.pl >> "my" variable $k masks earlier declaration in same statement at >> /usr/local/bin/perlprimer.pl line 3114. >> syntax error at /usr/local/bin/perlprimer.pl line 3106, near "$k qw(a >> g c t)"
> > There was a syntax change in perl, I think in version 5.18 or 5.20. Now something like > > for $k qw(...) > > is a syntax error, one has to put the extra parenthesis around the qw. So the fix is: > > for $k (qw(...)) > > This should work for all perls, older and newer. > > Regards, > Slaven > > >
This email message and any attachments are confidential and may be privileged. It is intended only for the individual(s) to whom it is addressed and may not be saved, copied, printed, disclosed or otherwise used by anyone else. If you are not the intended recipient, kindly notify the sender and delete this email and any attachments immediately. Momenta Pharmaceuticals, Inc.
On Thu Nov 20 12:41:56 2014, SREZIC wrote: Show quoted text
> On 2014-11-20 09:40:21, jmeador@momentapharma.com wrote:
> > Hi, > > I have tried several different ways to compile Tk-804.027 and 804.032 > > using either the direct method (perl Makefile.PL) or via CPAN and all > > ways keep giving the same errors saying that some of the xxx.h files > > cannot be found when running perl Makefile.PL: > > … > > Extracting tkVisual.c > > Extracting tkWindow.c > > Extracting xbytes.h > > Finding dependencies for Lang_f.c > > Finding dependencies for Xlib_f.c > > Finding dependencies for XrmOption.c > > Cannot find 'tkPort.h' assume made > > Cannot find 'tkInt.h' assume made > > Finding dependencies for imgInt_f.c > > Cannot find 'imgInt.h' assume made > > … > > > > If I try to run make, it fails: > > … > > Running Mkbootstrap for Tk::Xlib () > > chmod 644 "Xlib.bs" > > "/Users/jimmeador/perl5/perlbrew/perls/perl-5.20.1/bin/perl" > > "/Users/jimmeador/perl5/perlbrew/perls/perl- > > 5.20.1/lib/5.20.1/ExtUtils/xsubpp" -typemap > > "/Users/jimmeador/perl5/perlbrew/perls/perl- > > 5.20.1/lib/5.20.1/ExtUtils/typemap" -typemap > > "/Users/jimmeador/sourceFiles/Perl/Tk-804.032/Tk/typemap" Xlib.xs > > > Xlib.xsc && mv Xlib.xsc Xlib.c > > make[1]: *** No rule to make target `pTk/tkInt.h', needed by `Xlib.o'. > > Stop. > > make: *** [subdirs] Error 2 > > > > I have checked that the various named xxx.h files are where they are > > supposed to be, and I cannot see why some of the files are found but > > some are not. Any ideas of what is happening and what to do about > > this? > >
> > Can you check if the latest Tk from github works? > > git clone git://github.com/eserte/perl-tk > > Regards, > Slaven
I'm getting the same error. Why hasn't the fix been pushed thru CPAN?