免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2745 | 回复: 2

MaxWit linux 在ubuntu9.10上sbox2 编译出错!add sbox2-2.0.patch [复制链接]

论坛徽章:
0
发表于 2009-11-05 17:39 |显示全部楼层
In file included from luaif/sb_log.c:49:
/root/maxwit/build/host/sbox2-2.0/preload/exported.h:505: error: conflicting types for ‘scandir’
/usr/include/dirent.h:252: note: previous declaration of ‘scandir’ was here
/root/maxwit/build/host/sbox2-2.0/preload/exported.h:521: error: conflicting types for ‘scandir64’
/usr/include/dirent.h:275: note: previous declaration of ‘scandir64’ was here
luaif/sb_log.c: In function ‘write_to_logfile’:
luaif/sb_log.c:116: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
make[1]: *** [luaif/sb_log.o] Error 1
make[1]: Leaving directory `/root/maxwit/build/host/sbox2-2.0'
make: *** [regular] Error 2

论坛徽章:
0
发表于 2009-11-05 17:40 |显示全部楼层
diff --git a/preload/generate.py b/preload/generate.py
old mode 100644
new mode 100755
diff --git a/preload/interface.master b/preload/interface.master
index a8c145a..04d80d7 100644
--- a/preload/interface.master
+++ b/preload/interface.master
@@ -411,17 +411,17 @@ WRAP: int rmdir(const char *pathname) : \
#ifdef HAVE_SCANDIR
#ifdef HAVE_LINUX_SCANDIR
WRAP: int scandir(const char *dir, struct dirent ***namelist, \
-        SCANDIR_TYPE_ARG3, int(*compar)(const void *, const void *)) : \
+        SCANDIR_TYPE_ARG3, int(*compar)(const struct dirent **, const struct dirent **)) : \
        map(dir) hardcode_param(3,filter)
#endif
#ifdef HAVE_OSX_SCANDIR
-WRAP: int scandir(const char *dirname, struct dirent ***namelist, int (*select)(struct dirent *), int (*compar)(const void *, const void *)): map(dirname)
+WRAP: int scandir(const char *dirname, struct dirent ***namelist, int (*select)(struct dirent *), int (*compar)(const struct dirent **, const struct dirent **)): map(dirname)
#endif
#endif
#ifdef HAVE_SCANDIR64
WRAP: int scandir64(const char *dir, struct dirent64 ***namelist, \
        int(*filter)(const struct dirent64 *), \
-        int(*compar)(const void *, const void *)) : \
+        int(*compar)(const struct dirent64 **, const struct dirent64 **)) : \
        map(dir)
#endif
#ifdef HAVE_SETXATTR

sbox2-2.0.patch.gz

442 Bytes, 下载次数: 107

论坛徽章:
0
发表于 2009-11-05 17:42 |显示全部楼层
在debian上不需要此patch
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP