Hi

I have been having an interesting problem with perl Makefile.PL and make

I am using perlmonk.org for some cross platform module testing as it runs FreeBSD 4.4. When I run perl Makefile.PL the Makefile is given a timestamp 6 minutes in the past which leads to the following error:

bash-2.05$ perl Makefile.PL LIB=~/LIB Checking if your kit is complete... Looks good Writing Makefile for Blah::Simple bash-2.05$ make Makefile out-of-date with respect to Makefile.PL Cleaning current config before rebuilding Makefile... make -f Makefile.old clean > /dev/null 2>&1 || /bin/sh -c true /usr/bin/perl "-I/usr/libdata/perl/5.00503/mach" "-I/usr/libdata/perl/ +5.00503" Makefile.PL "LIB=/home/tachyon/LIB" Checking if your kit is complete... Looks good Writing Makefile for CGI::Simple ==> Your Makefile has been rebuilt. <== ==> Please rerun the make command. <== false *** Error code 1 Stop in /usr/home/tachyon/Blah/Simple. bash-2.05$ make [more of the same error] bash-2.05$ ls -al total 178 drwxr-xr-x 6 tachyon tachyon 512 Nov 18 08:29 . drwxr-xr-x 3 tachyon tachyon 512 Nov 18 02:12 .. -rw-r--r-- 1 tachyon tachyon 163 Nov 18 08:35 Changes -rw-r--r-- 1 tachyon tachyon 400 Nov 18 08:35 MANIFEST -rw-r--r-- 1 tachyon tachyon 17018 Nov 18 08:29 Makefile <--- +-- Huh, 6 minutes ago? -rw-r--r-- 1 tachyon tachyon 307 Nov 18 08:35 Makefile.PL <--- +-- Should be after this -rw-r--r-- 1 tachyon tachyon 6828 Nov 18 08:35 README drwxr-xr-x 2 tachyon tachyon 512 Nov 18 02:12 Simple -rw-r--r-- 1 tachyon tachyon 118167 Nov 18 08:35 Simple.pm drwxr-xr-x 2 tachyon tachyon 512 Nov 18 02:12 html drwxr-xr-x 2 tachyon tachyon 512 Nov 18 02:12 misc drwxr-xr-x 3 tachyon tachyon 512 Nov 18 02:12 t

As you can see the timestamp for the Makefile is incorrect with respect to the Makefile.PL. Apparently this chicken was born 6 minutes before its egg so make complains.

So..... 7 minutes later

bash-2.05$ perl Makefile.PL LIB=~/LIB Writing Makefile for Blah::Simple bash-2.05$ ls -al total 161 drwxr-xr-x 6 tachyon tachyon 512 Nov 18 08:36 . drwxr-xr-x 3 tachyon tachyon 512 Nov 18 02:12 .. -rw-r--r-- 1 tachyon tachyon 163 Nov 18 08:35 Changes -rw-r--r-- 1 tachyon tachyon 400 Nov 18 08:35 MANIFEST -rw-r--r-- 1 tachyon tachyon 17018 Nov 18 08:36 Makefile <--- +-- Now 1 minute past -rw-r--r-- 1 tachyon tachyon 307 Nov 18 08:35 Makefile.PL <--- +-- -rw-r--r-- 1 tachyon tachyon 6828 Nov 18 08:35 README drwxr-xr-x 2 tachyon tachyon 512 Nov 18 02:12 Simple -rw-r--r-- 1 tachyon tachyon 118167 Nov 18 08:35 Simple.pm drwxr-xr-x 2 tachyon tachyon 512 Nov 18 02:12 html drwxr-xr-x 2 tachyon tachyon 512 Nov 18 02:12 misc drwxr-xr-x 3 tachyon tachyon 512 Nov 18 02:12 t bash-2.05$ make mkdir blib mkdir blib/lib [now we are cooking...]

So that's a workaround but why is the timestamp off 6 minutes? Any suggestions about how to get a quicker workaround?

cheers

tachyon

s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print


In reply to Makefile time incorrect causing error by tachyon

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.