Hi, While compiling scratchbox2-2.0, I met this compile error. I did
# ./autogen.sh # make install and, I met this: [CC] luaif/sb_log.o In file included from luaif/sb_log.c:49: ~/tmp/scratchbox2-2.0.orig/preload/exported.h:348: error: conflicting types for 'getattrlist' /usr/include/unistd.h:596: error: previous declaration of 'getattrlist' was here ~/tmp/scratchbox2-2.0.orig/preload/exported.h:537: error: conflicting types for 'setattrlist' /usr/include/unistd.h:597: error: previous declaration of 'setattrlist' was here make[1]: *** [luaif/sb_log.o] Error 1 make: *** [regular] Error 2 It seems that while /usr/include/unistd.h has getattrlist, but it defines it in preload/exported.h as well in case of Mac Os X (10.6.3) which has installed xcode as well. I put band-aid by rename of getattrlist in scratchbox2 as sb_getattrlist, but after that I got another duplicate definition error on glob as well. Here is the whole log what I did in Mac OS X: --- ~/tmp/scratchbox2-2.0.orig$ ./autogen.sh ~/tmp/scratchbox2-2.0.orig$ make install /Users/breadncup/Downloads/scratchbox2-2.0.orig/configure checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking whether make sets $(MAKE)... yes checking for dlsym in -ldl... yes checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking fts.h usability... yes checking fts.h presence... yes checking for fts.h... yes checking ftw.h usability... yes checking ftw.h presence... yes checking for ftw.h... yes checking shadow.h usability... no checking shadow.h presence... no checking for shadow.h... no checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for unistd.h... (cached) yes checking utime.h usability... yes checking utime.h presence... yes checking for utime.h... yes checking sys/xattr.h usability... yes checking sys/xattr.h presence... yes checking for sys/xattr.h... yes checking for an ANSI C-conforming const... yes checking for uid_t in sys/types.h... yes checking for mode_t... yes checking for off_t... yes checking for size_t... yes checking whether time.h and sys/time.h may both be included... yes checking for working alloca.h... yes checking for alloca... yes checking for unistd.h... (cached) yes checking for working chown... yes checking whether lstat dereferences a symlink specified with a trailing slash... no checking whether lstat accepts an empty string... no checking whether lstat dereferences a symlink specified with a trailing slash... (cached) no checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking whether stat accepts an empty string... no checking for utime.h... (cached) yes checking whether utime accepts a null argument... yes checking for __lxstat... no checking for __lxstat64... no checking for __open... no checking for __open64... no checking for __opendir2... yes checking for __xmknod... no checking for __xstat... no checking for __xstat64... no checking for _xftw... no checking for _xftw64... no checking for access... yes checking for accessat... no checking for acct... yes checking for canonicalize_file_name... no checking for chdir... yes checking for chmod... yes checking for chown... yes checking for creat... yes checking for creat64... no checking for dlmopen... no checking for dlopen... yes checking for euidaccess... no checking for execl... yes checking for execle... yes checking for execlp... yes checking for execv... yes checking for execve... yes checking for execvp... yes checking for faccessat... no checking for fchmodat... no checking for fchownat... no checking for futimesat... no checking for fopen... yes checking for fopen64... no checking for freopen... yes checking for freopen64... no checking for fstatat... no checking for fts_open... yes checking for ftw... yes checking for ftw64... no checking for get_current_dir_name... no checking for getcwd... yes checking for getwd... yes checking for getxattr... yes checking for glob... yes checking for glob64... no checking for glob_pattern_p... no checking for lchmod... yes checking for lchown... yes checking for lckpwdf... no checking for lgetxattr... no checking for link... yes checking for linkat... no checking for listxattr... yes checking for llistxattr... no checking for lremovexattr... no checking for lsetxattr... no checking for lstat... yes checking for lstat64... yes checking for lutimes... yes checking for mkdir... yes checking for mkdirat... no checking for mkdtemp... yes checking for mknod... yes checking for mknodat... no checking for mkfifo... yes checking for mkfifoat... no checking for mkstemp... yes checking for mkstemp64... no checking for mktemp... yes checking for nftw... yes checking for nftw64... no checking for open... yes checking for open64... no checking for openat... no checking for openat64... no checking for opendir... yes checking for pathconf... yes checking for readlink... yes checking for readlinkat... no checking for realpath... yes checking for remove... yes checking for removexattr... yes checking for rename... yes checking for renameat... no checking for revoke... yes checking for rmdir... yes checking for scandir... yes checking for scandir64... no checking for setenv... yes checking for setxattr... yes checking for stat... yes checking for stat64... yes checking for strchrnul... no checking for symlink... yes checking for symlinkat... no checking for tempnam... yes checking for tmpnam... yes checking for truncate... yes checking for truncate64... no checking for unlink... yes checking for unlinkat... no checking for ulckpwdf... no checking for utime... yes checking for utimes... yes checking for mempcpy... no checking crt_externs.h usability... yes checking crt_externs.h presence... yes checking for crt_externs.h... yes checking for _NSGetEnviron... yes Using OS X xattrs checking whether byte ordering is bigendian... no configure: creating ./config.status config.status: creating config.mak config.status: creating include/config.h [CC] luaif/luaif.o luaif/luaif.c: In function 'lua_sb_path_exists': luaif/luaif.c:585: warning: implicit declaration of function 'access_nomap_nolog' luaif/luaif.c: In function 'lua_sb_getcwd': luaif/luaif.c:619: warning: implicit declaration of function 'getcwd_nomap_nolog' [PERL] preload/wrappers.c WARNING: failed to find type+name from 'SCANDIR_TYPE_ARG3' [CC] luaif/sb_log.o In file included from luaif/sb_log.c:49: ~/tmp/Downloads/scratchbox2-2.0.orig/preload/exported.h:348: error: conflicting types for 'getattrlist' /usr/include/unistd.h:596: error: previous declaration of 'getattrlist' was here ~/tmp/Downloads/scratchbox2-2.0.orig/preload/exported.h:537: error: conflicting types for 'setattrlist' /usr/include/unistd.h:597: error: previous declaration of 'setattrlist' was here make[1]: *** [luaif/sb_log.o] Error 1 make: *** [regular] Error 2 ~/tmp/scratchbox2-2.0.orig$ ---- Could somebody know how I can resolve this problem, please? Youngwhan
_______________________________________________ Scratchbox-users mailing list Scratchbox-users@lists.scratchbox.org http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users