solaris平台怎么编译?
下面是编译日志
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'
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
目前只在Linux和FreeBSD下编译通过并进行了测试。
我没有solaris的环境。
我定位了一下这个问题,应该修正了这个问题。
通过svn checkout代码,然后重新编译试试。
svn checkout http://fastdfs.googlecode.com/svn/trunk/ fastdfs-read-only
unix体验中心有solaris www.unix-center.net
重新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'
我已经申请到了帐号,这个环境真不错啊!争取在Solaris上build一个版本出来。
在solaris环境下编译通过,并进行了简单测试。
你通过svn checkout代码,然后重新编译试试。
svn checkout http://fastdfs.googlecode.com/svn/trunk/ fastdfs-read-only
yeah!
编译通过了,稍后附上测试报告,嘿嘿!