uClibc compilation error with nommu

Khem Raj raj.khem at gmail.com
Mon Mar 9 23:32:40 UTC 2009


On Mon, Mar 9, 2009 at 4:01 PM, Michael Unterkalmsteiner <miciu at gmx.de> wrote:
> Hi,
> I'd like to build a toolchain for mips with nommu (using buildroot-2009.02 and
> uClibc-0.9.30). I get the following error:
>
> [...]
>  CC libc/stdio/tmpnam.o
>  CC libc/stdio/tmpnam_r.o
>  CC libc/stdio/popen.o
> libc/stdio/popen.c:45: error: 'fork' undeclared here (not in a function)
> libc/stdio/popen.c:45: warning: type defaults to 'int' in declaration of
> 'fork'
> libc/stdio/popen.c: In function 'popen':
> libc/stdio/popen.c:100: error: called object 'fork' is not a function
> [...]
>
> The problematic part in popen.c is:
>
> [...]
> /* uClinux-2.0 has vfork, but Linux 2.0 doesn't */

You should check if you are using right kernel headers while building uclibc.

Thx

-Khem


More information about the uClibc mailing list