[BusyBox] compiling strace using buildroot for mipsel

Tony Saladino tsaladino at broadcom.com
Wed Jul 30 14:50:38 UTC 2003


I had some problems compiling strace using buildroot and cross-compiling
from x86 to mipsel.  I'm using uclibc snapshot and busybox snapshot,
downloaded before pre1 and pre2 existed.  I did not find any information
about this in the email archive.

There were two errors that I found.  The first occurred while compiling
bjm.c.  There was a syntax error before void on line 218 of system.h.
Apparently asmlinkage was undefined.  To fix it I included <linux/linkage.h>
in  <asm/system.h>.  Here's the diff:

asm/system.h
18a19
> #include <linux/linkage.h>

The second was in system.c.  Actually there were numerous things not
defined, because <asm/sysmips.h> was not being included as a result of
HAVE_ASM_SYSMIPS_H not being defined.  Since I don't know where it should be
defined, I just commented out the check.  Here's the diff:

strace-4.4/system.c
75c75
< #ifdef HAVE_ASM_SYSMIPS_H
---
> //#ifdef HAVE_ASM_SYSMIPS_H
77c77
< #endif
---
> //#endif

Since at least one of these problems is actually in the strace package, I
don't expect this to be fixed in busybox/buildroot. I just wanted to give
people the heads up.

Tony
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/busybox/attachments/20030730/359f277b/attachment-0002.htm 


More information about the busybox mailing list