Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] uClibc compilation problem
@ 2009-03-09 19:09 Michael Unterkalmsteiner
  2009-03-09 20:06 ` Peter Korsgaard
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Unterkalmsteiner @ 2009-03-09 19:09 UTC (permalink / raw)
  To: buildroot

Hi, 
I'd like to build a toolchain for mips with nommu (using buildroot-2009.02). 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 */
#include <sys/syscall.h>
#if ! defined __NR_vfork
# define vfork fork
# define VFORK_LOCK             ((void) 0)
# define VFORK_UNLOCK           ((void) 0)
libc_hidden_proto(fork)
#endif
[...]

I'm wondering why __NR_vfork is not defined...
Can someone give me a punch into the right direction?

Thanks,
Michael

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] uClibc compilation problem
  2009-03-09 19:09 [Buildroot] uClibc compilation problem Michael Unterkalmsteiner
@ 2009-03-09 20:06 ` Peter Korsgaard
  2009-03-09 22:17   ` Michael Unterkalmsteiner
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Korsgaard @ 2009-03-09 20:06 UTC (permalink / raw)
  To: buildroot

>>>>> "Michael" == Michael Unterkalmsteiner <miciu@gmx.de> writes:

 Michael> Hi, 

 Michael> I'd like to build a toolchain for mips with nommu (using
 Michael> buildroot-2009.02). I get the following error:

Please post your .config

 Michael> [...]  
 Michael>   CC libc/stdio/tmpnam.o
 Michael>   CC libc/stdio/tmpnam_r.o
 Michael>   CC libc/stdio/popen.o
 Michael> libc/stdio/popen.c:45: error: 'fork' undeclared here (not in a function)
 Michael> libc/stdio/popen.c:45: warning: type defaults to 'int' in declaration of 
 Michael> 'fork'
 Michael> libc/stdio/popen.c: In function 'popen':
 Michael> libc/stdio/popen.c:100: error: called object 'fork' is not a function
 Michael> [...]

You might have more luck asking on the uclibc mailing list.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] uClibc compilation problem
  2009-03-09 20:06 ` Peter Korsgaard
@ 2009-03-09 22:17   ` Michael Unterkalmsteiner
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Unterkalmsteiner @ 2009-03-09 22:17 UTC (permalink / raw)
  To: buildroot

On Monday 09 March 2009 21.06.30 Peter Korsgaard wrote:
> >>>>> "Michael" == Michael Unterkalmsteiner <miciu@gmx.de> writes:

>
> Please post your .config

Ok, both buildroot and uclibc configs are attached.

>
> You might have more luck asking on the uclibc mailing list.

Thanks, I'll consider that too.
Btw, when enabling MMU support in uClibc, everything compiles fine.

Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configs.tar.bz2
Type: application/x-bzip-compressed-tar
Size: 5510 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20090309/09a2db61/attachment.bin>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-03-09 22:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-09 19:09 [Buildroot] uClibc compilation problem Michael Unterkalmsteiner
2009-03-09 20:06 ` Peter Korsgaard
2009-03-09 22:17   ` Michael Unterkalmsteiner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox