LinuxSir.cn,穿越时空的Linuxsir!

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

升级firefox port错误信息,很奇怪的错误

[复制链接]
发表于 2005-8-31 04:25:52 | 显示全部楼层 |阅读模式
In file included from nsDNSService2.h:40,
                 from nsDNSService2.cpp:38:
nsHostResolver.h:95: error: ISO C++ forbids declaration of `PRAddrInfo' with no type
nsHostResolver.h:95: error: expected `;' before '*' token
nsHostResolver.h: In member function `PRBool nsHostRecord::HasResult() const':
nsHostResolver.h:99: error: `addr_info' undeclared (first use this function)
nsHostResolver.h:99: error: (Each undeclared identifier is reported only once fo r each function it appears in.)
nsHostResolver.h: At global scope:
nsHostResolver.h:209: error: `PRAddrInfo' has not been declared
nsHostResolver.h:209: error: ISO C++ forbids declaration of `parameter' with no type
nsDNSService2.cpp: In member function `virtual nsresult nsDNSRecord::GetCanonica lName(nsACString&)':
nsDNSService2.cpp:95: error: 'class nsDerivedSafe<nsHostRecord>' has no member n amed 'addr_info'
nsDNSService2.cpp:96: error: 'class nsDerivedSafe<nsHostRecord>' has no member n amed 'addr_info'
nsDNSService2.cpp:96: error: `PR_GetCanonNameFromAddrInfo' undeclared (first use  this function)
nsDNSService2.cpp: In member function `virtual nsresult nsDNSRecord::GetNextAddr (PRUint16, PRNetAddr*)':
nsDNSService2.cpp:112: error: 'class nsDerivedSafe<nsHostRecord>' has no member named 'addr_info'
nsDNSService2.cpp:113: error: 'class nsDerivedSafe<nsHostRecord>' has no member named 'addr_info'
nsDNSService2.cpp:113: error: `PR_EnumerateAddrInfo' undeclared (first use this function)
nsDNSService2.cpp: In member function `PRUint16 nsDNSService::GetAFForLookup(con st nsACString&)':
nsDNSService2.cpp:528: error: `PR_AF_UNSPEC' undeclared (first use this function )
gmake[4]: *** [nsDNSService2.o] 错误 1
gmake[4]: Leaving directory `/usr/ports/www/firefox/work/mozilla/netwerk/dns/src '
gmake[3]: *** [libs] 错误 2
gmake[3]: Leaving directory `/usr/ports/www/firefox/work/mozilla/netwerk/dns'
gmake[2]: *** [libs] 错误 2
gmake[2]: Leaving directory `/usr/ports/www/firefox/work/mozilla/netwerk'
gmake[1]: *** [tier_9] 错误 2
gmake[1]: Leaving directory `/usr/ports/www/firefox/work/mozilla'
gmake: *** [default] 错误 2
*** Error code 2

Stop in /usr/ports/www/firefox.
*** Error code 1

Stop in /usr/ports/www/firefox.
 楼主| 发表于 2005-8-31 04:26:38 | 显示全部楼层
第一次安装系统时,升级是成功的,这次重新系统就出这个错误了!
回复 支持 反对

使用道具 举报

发表于 2005-8-31 10:59:41 | 显示全部楼层
同步ports再试试.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-9-1 14:05:02 | 显示全部楼层
这次我是在bash下make的,成功的那次估计是在/bin/sh下运行的,可能跟这个有关
正在/bin/sh下再试试
应该是哪个环境变量在bash下没有设置
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-9-1 14:21:04 | 显示全部楼层
还是不行,同样的错误
回复 支持 反对

使用道具 举报

发表于 2005-9-1 15:09:31 | 显示全部楼层
加一句到/etc/make.conf看看

  1. WITH_MOZILLA=firefox
复制代码
回复 支持 反对

使用道具 举报

发表于 2005-9-1 15:12:01 | 显示全部楼层
先make clean,后再make.
回复 支持 反对

使用道具 举报

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

本版积分规则

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