On Tuesday 10 March 2009 00.32.40 Khem Raj wrote: > On Mon, Mar 9, 2009 at 4:01 PM, Michael Unterkalmsteiner <[email protected]> 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.
Since I'm using buildroot I guess the kernel headers configured there are used: BR2_KERNEL_HEADERS_2_6_28=y BR2_DEFAULT_KERNEL_HEADERS="2.6.28.4" Thanks, Michael _______________________________________________ uClibc mailing list [email protected] http://lists.busybox.net/mailman/listinfo/uclibc
