The following bug has been logged online:
Bug reference: 1212
Logged by: R. Scott Bailey
Email address: scott.bailey@eds.com
PostgreSQL version: 7.5 Dev
Operating system: Tru64 UNIX V5.1B
Description: 8.0.0beta1 build fails with bundled cc compiler
Details:
I just pulled down the 8.0.0beta1 release and built it on my Alphaserver
4100 running Tru64 V5.1B. I was using the bundled C compiler, which reports
itself thus:
# cc -V
Compaq C V6.5-011 on Compaq Tru64 UNIX V5.1B (Rev. 2650)
Compiler Driver V6.5-003 (sys) cc Driver
I found the following patch (relative to the postgresql-8.0.0beta1
directory) was required in order to compile successfully:
--- src/timezone/zic.c.orig 2004-08-08 01:19:44.000000000 -0400
+++ src/timezone/zic.c 2004-08-10 17:34:00.000000000 -0400
@@ -134,7 +134,7 @@
static int itsabbr(const char *abbr, const char *word);
static int itsdir(const char *name);
static int lowerit(int c);
-static char *memcheck(char *tocheck);
+static char *memcheck(char *const tocheck);
static int mkdirs(char *filename);
static void newabbr(const char *abbr);
static long oadd(long t1, long t2);
After making this change, the build succeeded and all 96 regression tests
passed.