
In message Pine.LNX.4.44.0311110959290.9075-100000@dallas.texasconnect.net you wrote:
I guess I should have mentioned that I tried with the hardhat as well. I am not familiar with ELDK, I guess it's time to learn! While playing last night I found that if I put:
#define __PTRDIFF_TYPE__ long int
before the include of stdarg.h the file compiles fine. I tried to include stddef.h (where that define normally lives) but that caused all kinds of other errors. This is definately not a good fix, but I think the error is probably in the gcc headers.
U-Boot takes some care not to include any headers from the build host, the remaining headers are provided by the (cross) compiler. Normally, __PTRDIFF_TYPE__ gets defined by the stddef.h header file which belongs to the C compiler (normally to be found in ".../lib/gcc-lib/ppc-linux/?version?/include/stddef.h").
With the ELDK this contains:
#ifndef __PTRDIFF_TYPE__ #define __PTRDIFF_TYPE__ long int #endif
Check what your compiler defines there....
Best regards,
Wolfgang Denk