免费注册 查看新帖 |

Chinaunix

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

[FastDFS] solaris平台怎么编译? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-03-16 22:39 |只看该作者 |倒序浏览
下面是编译日志
cc -O3 -Wall -D_FILE_OFFSET_BITS=64 -c -o ../common/shared_func.o ../common/shared_func.c  -I../common -I/usr/local/include
../common/shared_func.c: In function `getAppAbsolutePath':
../common/shared_func.c:112: warning: implicit declaration of function `rindex'
../common/shared_func.c: In function `load_allow_hosts':
../common/shared_func.c:1282: error: `INADDR_NONE' undeclared (first use in this function)
../common/shared_func.c:1282: error: (Each undeclared identifier is reported only once
../common/shared_func.c:1282: error: for each function it appears in.)
*** Error code 1
make: Fatal error: Command failed for target `../common/shared_func.o'
cc -O3 -Wall -D_FILE_OFFSET_BITS=64 -c -o ../common/shared_func.o ../common/shared_func.c  -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include
../common/shared_func.c: In function `getAppAbsolutePath':
../common/shared_func.c:112: warning: implicit declaration of function `rindex'
../common/shared_func.c: In function `load_allow_hosts':
../common/shared_func.c:1282: error: `INADDR_NONE' undeclared (first use in this function)
../common/shared_func.c:1282: error: (Each undeclared identifier is reported only once
../common/shared_func.c:1282: error: for each function it appears in.)
*** Error code 1
make: Fatal error: Command failed for target `../common/shared_func.o'
cc -O3 -Wall -D_FILE_OFFSET_BITS=64 -c -o ../common/shared_func.o ../common/shared_func.c  -I../common -I../tracker -I/usr/local/include
../common/shared_func.c: In function `getAppAbsolutePath':
../common/shared_func.c:112: warning: implicit declaration of function `rindex'
../common/shared_func.c: In function `load_allow_hosts':
../common/shared_func.c:1282: error: `INADDR_NONE' undeclared (first use in this function)
../common/shared_func.c:1282: error: (Each undeclared identifier is reported only once
../common/shared_func.c:1282: error: for each function it appears in.)
*** Error code 1
make: Fatal error: Command failed for target `../common/shared_func.o'

论坛徽章:
4
2015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:56:11IT运维版块每日发帖之星
日期:2016-08-11 06:20:00IT运维版块每日发帖之星
日期:2016-08-15 06:20:00
2 [报告]
发表于 2009-03-17 09:36 |只看该作者

回复 #1 gqf2008 的帖子

目前只在Linux和FreeBSD下编译通过并进行了测试。
我没有solaris的环境。
我定位了一下这个问题,应该修正了这个问题。
通过svn checkout代码,然后重新编译试试。
svn checkout http://fastdfs.googlecode.com/svn/trunk/ fastdfs-read-only

论坛徽章:
0
3 [报告]
发表于 2009-03-17 11:09 |只看该作者
unix体验中心有solaris www.unix-center.net

论坛徽章:
0
4 [报告]
发表于 2009-03-17 11:14 |只看该作者
重新checkout后编译:
cc -O3 -Wall -D_FILE_OFFSET_BITS=64 -c -o ../common/shared_func.o ../common/shared_func.c  -I../common -I/usr/local/include
../common/shared_func.c: In function `load_allow_hosts':
../common/shared_func.c:1285: error: `INADDR_NONE' undeclared (first use in this function)
../common/shared_func.c:1285: error: (Each undeclared identifier is reported only once
../common/shared_func.c:1285: error: for each function it appears in.)
*** Error code 1
make: Fatal error: Command failed for target `../common/shared_func.o'
cc -O3 -Wall -D_FILE_OFFSET_BITS=64 -c -o ../common/shared_func.o ../common/shared_func.c  -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include
../common/shared_func.c: In function `load_allow_hosts':
../common/shared_func.c:1285: error: `INADDR_NONE' undeclared (first use in this function)
../common/shared_func.c:1285: error: (Each undeclared identifier is reported only once
../common/shared_func.c:1285: error: for each function it appears in.)
*** Error code 1
make: Fatal error: Command failed for target `../common/shared_func.o'
cc -O3 -Wall -D_FILE_OFFSET_BITS=64 -c -o ../common/shared_func.o ../common/shared_func.c  -I../common -I../tracker -I/usr/local/include
../common/shared_func.c: In function `load_allow_hosts':
../common/shared_func.c:1285: error: `INADDR_NONE' undeclared (first use in this function)
../common/shared_func.c:1285: error: (Each undeclared identifier is reported only once
../common/shared_func.c:1285: error: for each function it appears in.)
*** Error code 1
make: Fatal error: Command failed for target `../common/shared_func.o'

论坛徽章:
4
2015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:56:11IT运维版块每日发帖之星
日期:2016-08-11 06:20:00IT运维版块每日发帖之星
日期:2016-08-15 06:20:00
5 [报告]
发表于 2009-03-17 14:41 |只看该作者
原帖由 gqf2008 于 2009-3-17 11:09 发表
unix体验中心有solaris www.unix-center.net


我已经申请到了帐号,这个环境真不错啊!争取在Solaris上build一个版本出来。

论坛徽章:
4
2015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:56:11IT运维版块每日发帖之星
日期:2016-08-11 06:20:00IT运维版块每日发帖之星
日期:2016-08-15 06:20:00
6 [报告]
发表于 2009-03-17 16:47 |只看该作者

回复 #4 gqf2008 的帖子

在solaris环境下编译通过,并进行了简单测试。
你通过svn checkout代码,然后重新编译试试。
svn checkout http://fastdfs.googlecode.com/svn/trunk/ fastdfs-read-only

论坛徽章:
0
7 [报告]
发表于 2009-03-17 21:55 |只看该作者
yeah!

编译通过了,稍后附上测试报告,嘿嘿!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP