Hi.
I'm trying to compile Squid 2.6-STABLE14 on Linux running:
Kernel 2.4.26
Gcc version 2.96
Glibc 2.2.5-44
(I know, really old versions)
When the compiler gets to the HttpHeaderTools.c file, the following errors occur:
    HttpHeaderTools.c: In function `strIsSubstr':
    HttpHeaderTools.c:198: parse error before `const'
    HttpHeaderTools.c:199: `p' undeclared (first use in this function)
    HttpHeaderTools.c:199: (Each undeclared identifier is reported only once
    HttpHeaderTools.c:199: for each function it appears in.)
The part of the file which is causing problems looks like this:
    /* returns true iff "s" is a substring of a member of the list, >1 if more than once */
    int
    strIsSubstr(const String * list, const char *s)
    {
        assert(list && s);
        const char *p = strStr(*list, s);            <--- This is line 198
        if (!p)
            return 0;
        if (strstr(p + 1, s) != NULL)
            return 2;
        return 1;
    }
I fail to see, with my limited C experience, where the syntax error is.
Are any you guys able to spot the problem?
Or is it simply the old version of gcc that is the problem? (I compiled 2.6-STABLE12 fine with it)
Kind regards.
Jacob R.
       
____________________________________________________________________________________
Yahoo! oneSearch: Finally, mobile search 
that gives answers, not web links. 
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC
Received on Tue Aug 07 2007 - 09:16:58 MDT
This archive was generated by hypermail pre-2.1.9 : Sat Sep 01 2007 - 12:00:03 MDT