未经修改的 aria2 源码编译,为啥会出现这样的错误? static declaration of “xxx" follows non-static declaration

2015-01-16 02:16:26 +08:00
 Creed
给nas编译的1.16.5和1.17.1都遇到了。


gcc -c -DLOCALEDIR=\"/opt/share/locale\" -DLOCALE_ALIAS_PATH=\"/opt/share/locale\" -DLIBDIR=\"/opt/lib\" -DBUILDING_LIBINTL -DBUILDING_DLL -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"/opt/lib\" -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I.. -I../deps/wslay/lib/includes -I../deps/wslay/lib/includes /opt/include -I/opt/include/libxml2 -g -O2 -fvisibility=hidden l10nflist.c
l10nflist.c:61: error: static declaration of 'stpcpy' follows non-static declaration

文件上的:

56 # ifndef stpcpy
57 # define stpcpy(dest, src) __stpcpy(dest, src)
58 # endif
59 #else
60 # ifndef HAVE_STPCPY
61 static char *stpcpy (char *dest, const char *src);
62 # endif
63 #endif
5347 次点击
所在节点    Linux
1 条回复
onemoo
2015-01-16 09:26:30 +08:00
搜索一下看看还有哪里出现了stpcpy的non-static declaration

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/162569

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX