To compile PAR with gcc 4.0.0 and perl 5.8.7 on Linux, I have been forced to
blindly cargo-cult the following change, because gcc complains that PL_statbuf
was already declared in a non-static fashion. (This being with an unthreaded
perl of course, where PL_statbuf isn't a CPP symbol). (And why is there a
static declaration in a .h file ? this always seems suspicious, or at least
poorly maintainable.)

--- myldr/mktmpdir.h.orig       2005-05-19 15:39:24.134412669 +0200
+++ myldr/mktmpdir.h    2005-05-19 15:56:12.835718318 +0200
@@ -32,7 +32,7 @@
 #endif
 
 #ifndef PL_statbuf
-static struct stat PL_statbuf;
+struct stat PL_statbuf;
 #endif
 
 #include "utils.c"
End

BTW the link http://svn.elixus.org/depot/PAR/trunk/ given on par.perl.org is
broken. Where's the current repository for PAR ?

-- 
Upward behind the onstreaming it mooned.
    -- Borges

Reply via email to