libc/sysdeps/linux/common/vfork.c:13: error: `fork' undeclared here (not in a function)

Peter S. Mazinger ps.m at gmx.net
Thu Jun 15 21:35:11 UTC 2006


On Thu, 15 Jun 2006, Matt Williams wrote:

> Hello,
>      Anyone ever seen this error. I know what it means, but I'm not sure how
> to fix it.  I'm trying to compile the lastest snapshot of buildroot.
> 
> Current kernel version is 2.4.31
> 
> Using kernel headers from 2.4.31 for architecture 'mips'
>         provided in directory
> /usr/src/hmm2/buildroot/toolchain_build_mipsel/linux/
> 
>   CC libc/sysdeps/linux/common/vfork.os
> libc/sysdeps/linux/common/vfork.c:13: error: `fork' undeclared here (not in
> a function)
> libc/sysdeps/linux/common/vfork.c:13: warning: type defaults to `int' in
> declaration of `fork'

seems to me as if your unistd.h does not prototype fork()

Peter

> libc/sysdeps/linux/common/vfork.c: In function `__vfork':
> libc/sysdeps/linux/common/vfork.c:18: error: called object is not a function
> make[2]: *** [libc/sysdeps/linux/common/vfork.os] Error 1
> make[1]: *** [lib/libc.so.0] Error 2
> make[1]: Leaving directory
> `/usr/src/hmm2/buildroot/toolchain_build_mipsel/uClibc'
> make: *** [/usr/src/hmm2/buildroot/toolchain_build_mipsel/uClibc/lib/libc.a]
> Error 2
> 

-- 
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