On Thursday 04 March 2010 19:55:33 Murali K. Vemuri wrote:
> hi there,
>
> I am trying to compile busybox with a proprietary cross compiler tool
> chain.

usr/local/arc.4.2.1/sk885x-2.6/lib/gcc/arc-linux-uclibc/4.2.1/../../../../arc-
linux-uclibc/sys-include/linux/loop.h:85: error: expected specifier-qualifier-
list before ‘__kernel_old_dev_t’

gcc 4.2.1 with uClibc is not a proprietary toolchain.  It's licensed under 
GPL.  If your toolchain vendor is presenting it as propreitary, they're 
violating at least two projects' copyrights, probably more.


> I received a pre-compiled busybox version 1.6.1 where I am able to make
> any configuration changes and compile and run the busybox on my
> hardware.
> However, I needed SMTP & POP support in my application, so I choose to
> upgrade to busybox 1.15.3.
>
> When I try to compile 1.15.3, I am getting the compile error as
> attached.

Sigh.  Years ago, I spent several months fighting with loop.c trying to beat 
some _sanity_ out of it, and finally got it working reliably by moving us to 
the 64-bit api in 2.6, which eliminated the horrible legacy cruft.

Then commit 9b1b62ad inexplicably decided to add #ifdefs and #defines for BSD 
to an #include <linux/blah.h> file.

Hands up everybdy else who spots a fundamental problem with the idea of BSD 
#including a linux kernel header file ever under any circumstances, and more so 
with the idea of them having some strange compatability support for Linux-
specific APIs but getting them WRONG and it somehow being our problem?

Try reverting that commit (or at least the bits that touch loop.c) and see if 
that fixes it for you?

Denys?  Why did you do that?

Rob
-- 
Latency is more important than throughput. It's that simple. - Linus Torvalds
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to