[BUG] missing prototypes for chown and execle

Peter S. Mazinger ps.m at gmx.net
Fri May 19 12:47:19 UTC 2006


On Fri, 19 May 2006, Amir Shalem wrote:

> hey
> 
> 
> there are missing prototypes for chown() and execle() in uClibc-snapshot
> 
> I'm attaching a patch to add the missing prototypes
> 
> and the .config file I have used to compile uClibc
> 
> 
> I have cross-compiled uClibc to x86 using binutils 2.16.1, gcc 4.1.0, 
> linux 2.6.16.16 headers, and uClibc 2006.05.05 snapshot.

I would guard both _proto and _def in exec.c and chown.c w/
#ifndef __UNIX98PTY_ONLY__
libc_hidden_...(...)
#endif
> 
> 
> the error I'm getting without the patch:
> 
>       AR cr libc/libc_so.a
>       LD libuClibc-0.9.28.so
>     libc/libc_so.a(grantpt.os): In function `__unix_grantpt':
>     grantpt.c:(.text+0x108): undefined reference to `__GI_chown'
>     grantpt.c:(.text+0x1ae): undefined reference to `__GI_execle'
>     make[1]: *** [lib/libc.so] Error 1
>     make: *** [lib/libc.so.0] Error 2
> 
> 
> Amir.
> 
> 
> 

-- 
Peter S. Mazinger <ps dot m at gmx dot net>           ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2




More information about the uClibc mailing list