Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Inline CPAN distribution.

Report information
The Basics
Id: 7552
Status: resolved
Priority: 0/
Queue: Inline

People
Owner: Nobody in particular
Requestors: johanl [...] cpan.org
Cc:
AdminCc:

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



Subject: Inline::MakeMaker doesn't work with win32 (nmake) (indication for a fix)
Hi all! I encountered a problem, and while I can Google for others with the same problem, I can't find a solution. But I found a workaround. When I try to follow the advice about installing a module with Inline::CPP at http://search.cpan.org/~ingy/Inline-0.44/Inline-FAQ.pod#Whatever_happened_to_the_SITE_INSTALL_option? that doesn't work with win32 and nmake. Running perl Makefile.PL creates the Makefile ok, but then running make blows up with: ... copy files ... NMAKE : fatal error U1073: don't know how to make 'PerlDecode.inl' Stop. Ok. Looking at the Makefile, I can see at the bottom: # --- MakeMaker inline section: .SUFFIXES: .pm .inl .pm.inl: $(PERL) -Mblib -MInline=NOISY,_INSTALL_ -MGame::Decoder::PerlDecode -e1 0.01 $(INST_ARCHLIB) pure_all :: PerlDecode.inl # The End is here. The problem seems to be that nmake can't figure out how to run the first line (to produce PerlDecode.inl) so that it then can run it (or something, I'm Makefile syntax challenged). My workaround is to do this manually: nmake (blows up) perl -Mblib -MInline=NOISY,_INSTALL_ -MGame::Decoder::PerlDecode -e1 0.01 blib/arch nmake (now works) nmake test nmake install It sucks, but it seems to work. Any idea on how to make nmake get a clue? OS: w2k perl -v: This is perl, v5.8.3 built for MSWin32-x86-multi-thread (with 8 registered patches, see perl -V for more detail) /J
From: peter [...] makholm.net
On Fri Sep 03 10:43:42 2004, guest wrote: Show quoted text
> Running perl Makefile.PL creates the Makefile ok, but then running > make blows up with: > > ... copy files ... > NMAKE : fatal error U1073: don't know how to make 'PerlDecode.inl' > Stop.
I don't think this is a win32/nmake problem. I'm seeing the same problme with GNU make on both OS X and on Debian Linux. The problme seems to be that the general layout h2xs makes for a module has changed sometime. Old modules seems to have a directorystructure someway along the lines of: Foo-1.23/ Foo-1.23/Makefile.PL Foo-1.23/Foo.pm Foo-1.23/Foo/ Foo-1.23/Foo/Bar.pm but whe I tried to set up a new module with h2xs the other day I ended up with something like: Foo-1.23/ Foo-1.23/Makefile.PL Foo-1.23/lib/Foo.pm Foo-1.23/lib/Foo/ Foo-1.23/lib/Foo/Bar.pm And the rules Inline::MakeMaker adds to the Makefile tries to build Foo.inl in the top directory but this can only be done by a rule which only exists if there is a Foo.pm in the top directory. So the result is 'no rule to make target 'Foo.inl'.
Fixed as of 0.55_01 (Duplicated by #95809).