Re: [squid-users] compile error 2.5 on aix 4.3.3

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Fri, 01 Jun 2001 08:52:34 +0200

Thanks. Patch attached.

--
Henrik Nordstrom
Squid Hacker, MARA Systems
Craig Hapanovich wrote:
> 
> I tried compiling version 2.5 (dated 5/30/01) on aix 4.3.3 and got the
> following error:
> 
> "cache_cf.c", line 58.32: 1506-131 (S) Explicit dimension
> specification or initializer required for an auto or static array.

Index: cache_cf.c
===================================================================
RCS file: /server/cvs-server/squid/squid/src/cache_cf.c,v
retrieving revision 1.382
diff -u -w -r1.382 cache_cf.c
--- cache_cf.c 2001/05/27 23:33:31 1.382
+++ cache_cf.c 2001/06/01 06:49:49
@@ -55,8 +55,15 @@
 static const char *const B_GBYTES_STR = "GB";
 
 static const char *const list_sep = ", \t\n\r";
-static struct cache_dir_option common_cachedir_options[];
 
+static struct cache_dir_option common_cachedir_options[] =
+{
+ {"read-only", parse_cachedir_option_readonly, dump_cachedir_option_readonly},
+ {"max-size", parse_cachedir_option_maxsize, dump_cachedir_option_maxsize},
+ {NULL, NULL}
+};
+
+
 static void update_maxobjsize(void);
 static void configDoConfigure(void);
 static void parse_refreshpattern(refresh_t **);
@@ -1142,13 +1149,6 @@
     if (sd->max_objsize != -1)
         storeAppendPrintf(e, " %s=%d", option, sd->max_objsize);
 }
-
-static struct cache_dir_option common_cachedir_options[] =
-{
- {"read-only", parse_cachedir_option_readonly, dump_cachedir_option_readonly},
- {"max-size", parse_cachedir_option_maxsize, dump_cachedir_option_maxsize},
- {NULL, NULL}
-};
 
 void
 parse_cachedir_options(SwapDir * sd, struct cache_dir_option *options, int reconfiguring)
Received on Fri Jun 01 2001 - 01:03:46 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:14:02 MST