solaris平台怎么编译?

发布于 2022-09-18 19:04:14 字数 2222 浏览 16 评论 0

下面是编译日志
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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

别把无礼当个性 2022-09-25 19:04:14

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

世态炎凉 2022-09-25 19:04:14

unix体验中心有solaris www.unix-center.net

玩世 2022-09-25 19:04: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'

二智少女 2022-09-25 19:04:14

原帖由 gqf2008 于 2009-3-17 11:09 发表
unix体验中心有solaris www.unix-center.net

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

醉态萌生 2022-09-25 19:04:14

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

你好,陌生人 2022-09-25 19:04:14

yeah!

编译通过了,稍后附上测试报告,嘿嘿!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文