I'm trying to get a Scratchbox2 environment set up on OpenSUSE 11.2 64-bit and 
am struggling:

make[2]: Entering directory `/home/tcooksey/SB2/sbox2/obj-32'
[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:
/home/tcooksey/SB2/sbox2/obj-32/preload/exported.h:510: error: conflicting 
types for ‘scandir’
/usr/include/dirent.h:252: note: previous declaration of ‘scandir’ was here
/home/tcooksey/SB2/sbox2/obj-32/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[2]: *** [luaif/sb_log.o] Error 1
make[2]: Leaving directory `/home/tcooksey/SB2/sbox2/obj-32'
make[1]: *** [regular] Error 2
make[1]: Leaving directory `/home/tcooksey/SB2/sbox2/obj-32'
make: *** [multilib] Error 2

Digging into the code a little bit, it seems scandir is defined in 
/usr/include/dirent.h and also defined in obj-32/preload/exported.h (protected 
by defines which are set in config.h). As this is so obviously broken, I'm 
sure it's me being thick and doing something wrong. :-) I've also tried this 
on Kubuntu and got the exact same result. I suspect it's something to do with 
configure?

Any help would be greatly appreciated as I can't find any OpenSUSE packages 
for scratchbox2.



Cheers,

Tom

_______________________________________________
Scratchbox-users mailing list
Scratchbox-users@lists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users

Reply via email to