免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1099 | 回复: 1

squid 编译求教 [复制链接]

论坛徽章:
0
发表于 2010-01-06 09:48 |显示全部楼层
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;
    }
}

论坛徽章:
5
摩羯座
日期:2014-07-22 09:03:552015元宵节徽章
日期:2015-03-06 15:50:392015亚冠之大阪钢巴
日期:2015-06-12 16:01:352015年中国系统架构师大会
日期:2015-06-29 16:11:2815-16赛季CBA联赛之四川
日期:2018-12-17 14:10:21
发表于 2010-01-06 10:13 |显示全部楼层
有#include <strings.h>没?
或者这个预处理被哪个宏给包上了?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP