QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1692|回复: 4

编译代理服务器squid3.0报错

[复制链接]
发表于 2008-12-17 12:15:51 | 显示全部楼层 |阅读模式
magic2.1正式dvd版
下载了squid-3.0.STABLE10
make时报错,部分信息如下:
/usr/local/squid/etc/squid.conf\" -I. -I. -I../include -I. -I. -I../include -I../include -I../lib/libTrie/include   -I/usr/include/libxml2  -Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments  -g -O2 -MT tools.o -MD -MP -MF "$depbase.Tpo" -c -o tools.o tools.cc; \
        then mv -f "$depbase.Tpo" "$depbase.Po"; else rm -f "$depbase.Tpo"; exit 1; fi
In file included from /usr/include/sys/capability.h:34,
                 from tools.cc:50:
/usr/include/linux/capability.h:73: error: `__le32' does not name a type
/usr/include/linux/capability.h:75: error: `__le32' does not name a type
/usr/include/linux/capability.h:76: error: `__le32' does not name a type
make[3]: *** [tools.o] 错误 1
make[3]: Leaving directory `/home/stronghill/soft/squid-3.0.STABLE10/src'
make[2]: *** [all-recursive] 错误 1
make[2]: Leaving directory `/home/stronghill/soft/squid-3.0.STABLE10/src'
make[1]: *** [all] 错误 2
make[1]: Leaving directory `/home/stronghill/soft/squid-3.0.STABLE10/src'
make: *** [all-recursive] 错误 1

有遇到的么?
或者我应该下载编译哪个版本的squid?
 楼主| 发表于 2008-12-17 14:33:16 | 显示全部楼层
编译squid-2.7.STABLE5,报的错基本相同,呵呵
then mv -f ".deps/store_update.Tpo" ".deps/store_update.Po"; else rm -f ".deps/store_update.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/usr/local/squid/etc/squid.conf\" -I. -I. -I../include -I. -I. -I../include -I../include    -Wall -g -O2 -MT tools.o -MD -MP -MF ".deps/tools.Tpo" -c -o tools.o tools.c; \
        then mv -f ".deps/tools.Tpo" ".deps/tools.Po"; else rm -f ".deps/tools.Tpo"; exit 1; fi
In file included from /usr/include/sys/capability.h:34,
                 from tools.c:50:
/usr/include/linux/capability.h:73: error: syntax error before "__le32"
/usr/include/linux/capability.h:75: error: syntax error before "__le32"
/usr/include/linux/capability.h:78: error: syntax error before '}' token
make[3]: *** [tools.o] 错误 1
make[3]: Leaving directory `/home/stronghill/soft/squid-2.7.STABLE5/src'
make[2]: *** [all-recursive] 错误 1
make[2]: Leaving directory `/home/stronghill/soft/squid-2.7.STABLE5/src'
make[1]: *** [all] 错误 2
make[1]: Leaving directory `/home/stronghill/soft/squid-2.7.STABLE5/src'
make: *** [all-recursive] 错误 1
回复

使用道具 举报

发表于 2008-12-17 15:46:05 | 显示全部楼层
修改capability.h中的__le32为__u32。
回复

使用道具 举报

 楼主| 发表于 2008-12-17 16:50:36 | 显示全部楼层
好了,谢谢版主关心
回复

使用道具 举报

 楼主| 发表于 2008-12-24 18:15:19 | 显示全部楼层
编译好后,运行
squid -z
以后就直接在sbin目录下运行
squid start
就可以了
使用默认配置,3128端口
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-23 13:04 , Processed in 0.044279 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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