Hi all, Scratchbox2 cannot build on Ubuntu 9.10 Desktop 32-bit.
Here is the error message: make[1]: Entering directory `/home/user/ev-sdk/src/sbox2' [CC] luaif/sb_log.o In file included from luaif/sb_log.c:49: /home/user/ev-sdk/src/sbox2/preload/exported.h:510: error: conflicting types for ‘scandir’ /usr/include/dirent.h:252: note: previous declaration of ‘scandir’ was here /home/user/ev-sdk/src/sbox2/preload/exported.h:526: 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 `/home/user/ev-sdk/src/sbox2' make: *** [regular] Error 2 The patch in attachment fixes the problem, but it's just a workaround. Let me know if you have a better fix. Regards, Claudio
From: Claudio Scordino <clau...@evidence.eu.com> Date: Mon, 11 Jan 2010 09:37:43 +0100 Subject: [PATCH 1/1] Fix scandir issue: sbox2 doesn't build on Ubuntu 9.10 Signed-off-by: Claudio Scordino <clau...@evidence.eu.com> --- preload/interface.master | 11 ----------- 1 files changed, 0 insertions(+), 11 deletions(-) diff --git a/preload/interface.master b/preload/interface.master index a8c145a..efd0280 100644 --- a/preload/interface.master +++ b/preload/interface.master @@ -409,21 +409,10 @@ WRAP: int rmdir(const char *pathname) : \ map(pathname) fail_if_readonly(pathname,-1,EROFS) #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 *)) : \ - 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) #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 *)) : \ - map(dir) -#endif #ifdef HAVE_SETXATTR #ifdef HAVE_LINUX_XATTRS WRAP: int setxattr(const char *path, const char *name, const void *value, \ -- 1.6.0.4
_______________________________________________ Scratchbox-users mailing list Scratchbox-users@lists.scratchbox.org http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users