This is really a great news and a milestone by itself to have iFolder on 
non-i386 OS.

 @JKB, is it possible to make a package out of it and post it as part of the 
downloads, so that we have people testing and fixing issues, so that we have a 
good build for sparc.

 Thanks Johnny for the help provided.

Kalis   

>>> On 12/17/2009 at 8:15 PM, in message <[email protected]>, 
>>> BERTRAND
Joël<[email protected]> wrote:
> Hello,
> 
>       Some news about iFolder on sparc linux (debian). Simias.exe looks for 
> FlaimWrapper.so in lib/usr/local/lib/simias/web/bin instead 
> /usr/local/lib/simias/web/bin, thus I have add a link like :
> www-d...@gershwin:/usr/local/lib/simias/web/bin$ ls -l lib
> lrwxrwxrwx 1 www-data www-data 1 déc.  17 12:14 lib -> /
> 
>       All libraries have to be built in 32 bits mode. To build libflaim, I 
> have modified main makefile to add -m32 -mv8plus to three lines as I 
> have written in my last post.
> 
>       With sparc32 target (even V8+), libflaim is broken due to asm atomics 
> (code is not relocatable due to a branch greater than 2**22). Thus you 
> have to replace #error line (line  1314 in ftk/src/ftkunix.cpp) by :
> 
> static pthread_mutex_t  mutex = PTHREAD_MUTEX_INITIALIZER;
> 
> int32_t sparc_atomic_add_32(volatile int32_t *mem, int32_t val)
> {
>      int32_t old_value;
>      pthread_mutex_lock(&mutex);
> 
>      old_value = *mem;
>      *mem += val;
> 
>      pthread_mutex_unlock(&mutex);
> 
>      return old_value;
> }
> 
> int32_t sparc_atomic_xchg_32(volatile int32_t *mem, int32_t val)
> {
>      int32_t prev;
>      pthread_mutex_lock(&mutex);
> 
>      prev = *mem;
>      *mem = val;
> 
>      pthread_mutex_unlock(&mutex);
> 
>      return prev;
> }
> 
> and iFolder runs !
> 
>       Regards,
> 
>       JKB
> _______________________________________________
> ifolder-dev mailing list
> [email protected] 
> http://forge.novell.com/mailman/listinfo/ifolder-dev 
_______________________________________________
ifolder-dev mailing list
[email protected]
http://forge.novell.com/mailman/listinfo/ifolder-dev

Reply via email to