Skip Menu |

This queue is for tickets about the Makefile-Parser CPAN distribution.

Report information
The Basics
Id: 41595
Status: resolved
Priority: 0/
Queue: Makefile-Parser

People
Owner: Nobody in particular
Requestors: raleighr3 [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.211
Fixed in: (no value)



Subject: makesimple error
When running makesimple on my makefile it errors out with the following: Can't locate object method "last_element" via package "MDOM::Token::Whitespace" at /Library/Perl/5.8.8/Makefile/Parser/GmakeDB.pm line 341 The makefile(s) are pretty big, and unfortunatley I can't share them because they are proprietary. I can say that it is a non-recursive makefile setup written for gnu Make 3.80 and the overall structure is something like this: project/ --> top level dir build/ makefile --> Top level makefile. Has default rules for compiling. Traverses into tree to build the source. Has default target. component1/ --> typical structure for a library module build/ module.mk --> has rules do define local module's src/obj and library src/ --> contains C source and header files tst/ --> contains test source lib/ --> contains the component library built by make module.mk files are pulled into make via an include: include $(addprefix ../,$(addsuffix /build/module.mk,$(modules))) Perl Version: perl -v This is perl, v5.8.8 built for darwin-thread-multi-2level (with 1 registered patch, see perl -V for more detail) OS info: Mac OS X 10.5.5 Kernel Version: Darwin 9.5.0 Model Name: iMac Model Identifier: iMac7,1 Processor Name: Intel Core 2 Duo Processor Speed: 2 GHz Number Of Processors: 1 Total Number Of Cores: 2 L2 Cache: 4 MB Memory: 1 GB Bus Speed: 800 MHz Boot ROM Version: IM71.007A.B03
Subject: Re: [rt.cpan.org #41595] makesimple error
Date: Fri, 12 Dec 2008 10:36:26 +0800
To: bug-Makefile-Parser [...] rt.cpan.org
From: agentzh <agentzh [...] gmail.com>
On Thu, Dec 11, 2008 at 12:41 AM, Raleigh Rinehart via RT <bug-Makefile-Parser@rt.cpan.org> wrote: Show quoted text
> > When running makesimple on my makefile it errors out with the following: > > Can't locate object method "last_element" via package > "MDOM::Token::Whitespace" at > /Library/Perl/5.8.8/Makefile/Parser/GmakeDB.pm line 341 >
Someone in our team has also run into this some time ago. Thanks a lot for bringing this issue back to my attention. I'll look into this bug after I finish the firefox crawler cluster $project at hand ;) Thanks again! -agentzh
From: jean [...] veronis.fr
I had the same problem at installation time. # Failed test 'TEST 1: basics - script/makesimple generated the right error' # at t/makesimple.t line 61. # got: 'Can't locate object method "last_element" via package "MDOM::Token::Whitespace" at /Users/jean/.cpanplus/5.8.8/build/Makefile-Parser-0.211/blib/lib/Makefile/Parser/GmakeDB.pm line 341. # ' # expected: '' etc. However, MDOM was installed properly on my system (Mac OS X).
I've reproduced and fixed this issue in CPAN release 0.215. If you still have issues with this version, feel free to reopen this ticket. Thank you very much for the report! -agentzh