LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1088|回复: 2

squid 编译求教

[复制链接]
发表于 2010-1-6 09:49:39 | 显示全部楼层 |阅读模式
then mv -f "$depbase.Tpo" "$depbase.Po"; else rm -f "$depbase.Tpo"; exit 1; fi
HttpHeaderTools.cc: In function 'int httpHeaderParseQuotedString(const char*, String*)':
HttpHeaderTools.cc:359: error: 'index' was not declared in this scope
make[4]: *** [HttpHeaderTools.o] 错误 1
make[4]: *** 正在等待未完成的任务....
make[4]: Leaving directory `/root/floppy/build-tools/buildroot/output/build/squid-3.0.STABLE91/src'
make[3]: *** [all-recursive] 错误 1
make[3]: Leaving directory `/root/floppy/build-tools/buildroot/output/build/squid-3.0.STABLE91/src'
make[2]: *** [all] 错误 2
make[2]: Leaving directory `/root/floppy/build-tools/buildroot/output/build/squid-3.0.STABLE91/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/root/floppy/build-tools/buildroot/output/build/squid-3.0.STABLE91'
make: *** [/root/floppy/build-tools/buildroot/output/build/squid-3.0.STABLE91/.stamp_built] 错误 2

HttpHeaderTools.cc:359 的内容:
/* Parses a quoted-string field (RFC 2616 section 2.2), complains if
* something went wrong, returns non-zero on success.
* start should point at the first ".
* RC TODO: This is too looose. We should honour the BNF and exclude CTL's
*/
int
httpHeaderParseQuotedString (const char *start, String *val)
{
    const char *end, *pos;
    val->clean();
    assert (*start == '"');
    pos = start + 1;

    while (1) {
        if (!(end = index (pos,'"'))) {
            debugs(66, 2, "failed to parse a quoted-string header field near '" << start << "'");
            return 0;
        }

        /* check for quoted-chars */
        if (*(end - 1) != '\\') {
            /* done */
            val->append(start + 1, end-start-1);
            return 1;
        }

        /* try for the end again */
        pos = end + 1;
    }
}
发表于 2010-2-24 03:33:33 | 显示全部楼层
是交叉编译squid?
回复 支持 反对

使用道具 举报

发表于 2010-3-9 21:03:12 | 显示全部楼层
index 没有 定义或声明

链接时的错误
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表