2008年第四季度服务器例行升级-----(二)

 在升级2台机器openssl-0.9.8i时都,安装到make test时都出现了[test_bn]   line 139的错误.比较2台机器的版本是redhat 7.2 和redhat 7.3都是比较老的版本。

检查GCC版本 2.9.6-110 升级到3.2.1发现错误依旧。 后来通过在编译选项上加上 no-sse2,make test通过。

另一种方法是升级binutils。但是我选择了第一种版本,在openssh-5.1p1时很顺利,但是在安装squid-3.0stables10时,又出现了奇怪的问题,在另一台机器上面也是一样 错误。

make[1]: Entering directory `/usr/local/src/squid-3.0.STABLE10/src'

depbase=`echo cf_gen.o | sed 's|[^/]*$|.deps/&|;s|/.o$||'`; /

if g++ -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=/"/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 -fhuge-objects -g -O2 -MT cf_gen.o -MD -MP -MF "$depbase.Tpo" -c -o cf_gen.o cf_gen.cc; /

then mv -f "$depbase.Tpo" "$depbase.Po"; else rm -f "$depbase.Tpo"; exit 1; fi

cf_gen.cc:120: `const char WS[]' redeclared as different kind of symbol

/usr/include/g++-3/stream.h:56: previous declaration of `istream &WS

(istream &)'

make[1]: *** [cf_gen.o] Error 1

make[1]: Leaving directory `/usr/local/src/squid-3.0.STABLE10/src'

make: *** [all-recursive] Error 1

ps:其实原始错误是includ/Rang.h找不到ostream,但是我在/usr/includ/g++下面是可以看到这个文件的,因此我修改了原文件把includ <ostream> 为includ <ostream.h> 就出现了上面的错误。

 

用make执行squid-2.6的编译是正常的,看来2.6--3.0的升级变化还是挺大的。

解决方法:升级binutils  http://www.gnu.org/software/binutils/

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值