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

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Admin note: I posted this to "Seekers..." but on reflection it probably should be a "Meditation". Could someone with the power please move it.

I have Strawberry Perl 5.10.0.2 installed on WinXP SP3 and Win2003 boxes.

I can download modules from CPAN and build them manually using.

perl Makefile.PL dmake dmake test dmake install

This all works fine because the PATH, INCLUDE and LIB environment variables contain the relevant directories under C:\strawberry.

However if I use the CPAN module it invokes perl to build the Makefile thus:

C:\strawberry\perl\bin\perl.exe Makefile.PL LIBS=-LC:\strawberry\c\lib + INC=- IC:\strawberry\c\include

Most of the time this is harmless but in some cases this results in a broken Makefile. For example in Compress::Raw::Zlib Makefile.PL contains the following:

WriteMakefile( NAME => 'Compress::Raw::Zlib', VERSION_FROM => 'lib/Compress/Raw/Zlib.pm', INC => "-I$ZLIB_INCLUDE" ,

Relevant extracts from the (broken) Makefile for Compress::Raw::Zlib generated by running Makefile.PL from CPAN:

# # MakeMaker ARGV: (q[LIBS=-LC:\strawberry\c\lib], q[INC=-IC:\strawbe +rry\c\include]) # # MakeMaker Parameters: # INC => q[-I./zlib-src] # --- MakeMaker constants section: INC = -IC:\strawberry\c\include

And, for comparison, relevant extracts from (working) Makefile for Compress::Raw::Zlib generated by running Makefile.PL manually:

# # MakeMaker ARGV: () # # MakeMaker Parameters: # INC => q[-I./zlib-src] # --- MakeMaker constants section: INC = -I./zlib-src

The outcome of this is that under the CPAN module the compiler can't find any of the include files in the zlib-src subdirctory.

This is relatively easy to fix by editing c:/strawberry/perl/lib/CPAN/Config.pm and changing the line...

makepl_arg => q[LIBS=-LC:\\strawberry\\c\\lib INC=-IC:\\strawberry\\c\ +\include],
...to...
makepl_arg => q[],

Who should I advise this to in order to get it fixed in the next release of Strawberry?

Update: oops, transposition in the Makefile snippets corrected.

Update: jettero suggests there may be a mailing list. I hate mailing lists as a way of reporting bugs. They are just the wrong tool. I have now found (in the obvious place (D'oh!)) the "official" way to report bugs. I think I will copy have copied the relevant parts of this thread to ticket 39663 in the CPAN RT for Perl-Dist-Strawberry . Then I may post links to that to relevant mailing lists.


In reply to Strawberry CPAN.pm wrongly overrides INC in Makefile.PL by nobull

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-19 04:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found