免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2395 | 回复: 1
打印 上一主题 下一主题

[proxy] squid 编译求教 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-01-06 09:54 |只看该作者 |倒序浏览
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;
}
}

论坛徽章:
0
2 [报告]
发表于 2010-03-02 20:12 |只看该作者
你编译想实现什么功能呢》?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP