[PATCH] posix_favise{64} error handling fixes [was Re: fadvise gclibc vs uclibc]

Carmelo AMOROSO carmelo.amoroso at st.com
Fri Sep 19 09:35:16 UTC 2008


Fathi Boudra wrote:
> 
>         fails to build on my config.
> 
>           LD libuClibc-0.9.29.so <http://libuClibc-0.9.29.so>
>         <http://libuClibc-0.9.29.so>
> 
>         libc/libc_so.a(posix_fadvise64.os): In function `posix_fadvise64':
>         posix_fadvise64.c:(.text+0x18): undefined reference to
>         `__illegally_sized_syscall_arg2'
>         posix_fadvise64.c:(.text+0x1c): undefined reference to
>         `__illegally_sized_syscall_arg3'
>         posix_fadvise64.c:(.text+0x20): undefined reference to
>         `__illegally_sized_syscall_arg4'
>         posix_fadvise64.c:(.text+0x24): undefined reference to
>         `__illegally_sized_syscall_arg5'
>         collect2: ld returned 1 exit status
>         make[1]: *** [lib/libc.so] Error 1
> 
> 
>     arch ? compiler ? anyway I've seen similar post ... not related to
>     posix_fadvise.
> 
>  
> uclibc trunk/powerpc/gcc-4.2.4 under buildroot r23434.
> same configuration before posix_fadvise commit works.
> 
powerpc needs a specific implementation because it expects 8 bytes long 
variable. Look recent messages, as I said, regarding pread_wirte 
implementation.
May we add a work-around for powerpc, otherwise, if you can, please post 
a patch for implementing specific powerpc function.






More information about the uClibc mailing list