automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Make compile wrapper eat win32 paths


From: Ralf Wildenhues
Subject: Re: Make compile wrapper eat win32 paths
Date: Sun, 1 Mar 2009 19:10:36 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

Hi Peter,

* Peter Rosin wrote on Sun, Feb 01, 2009 at 08:30:20PM CET:
>
> Since *I* am not even successful at building automake on this $host, I
> don't think I would want to dig into the testsuite. Sorry. So, I still
> can't run the testsuite, see the "Make depmode=cpp work with Microsoft
> Visual C++ on MSYS" thread. In short, I get:
>
> Constant name 'HASH(0xa2a1ea8)' has invalid characters at ./automake.tmp line 
> 293
> BEGIN failed--compilation aborted at ./automake.tmp line 293.
>
> I have no clue as to how to debug that.

Please try this patch, report results and the perl version you have,
and which email address you want in THANKS.  :-)

Thanks!
Ralf

    Fix `use constant' usage for Perl 5.X.X.
    
    * automake.in (QUEUE_MESSAGE, QUEUE_CONF_FILE, QUEUE_LOCATION)
    (QUEUE_STRING): Define using one `use constant' each; as perl
    5.X.X does not understand `use constant { ... }'.
    * THANKS: Update.
    Report by Peter Rosin.

diff --git a/automake.in b/automake.in
index b5ca2e0..bb53bae 100755
--- a/automake.in
+++ b/automake.in
@@ -288,12 +288,10 @@ use constant COMPILE_ORDINARY => 2;
 use constant INTERNAL => new Automake::Location;
 
 # Serialization keys for message queues.
-use constant {
-  QUEUE_MESSAGE   => "msg",
-  QUEUE_CONF_FILE => "conf file",
-  QUEUE_LOCATION  => "location",
-  QUEUE_STRING    => "string"
-};
+use constant QUEUE_MESSAGE   => "msg";
+use constant QUEUE_CONF_FILE => "conf file";
+use constant QUEUE_LOCATION  => "location";
+use constant QUEUE_STRING    => "string";
 
 
 ## ---------------------------------- ##




reply via email to

[Prev in Thread] Current Thread [Next in Thread]