This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Building JFFS2 on net template fails
- From: Andrew Lunn <andrew at lunn dot ch>
- To: David Luca <davidluca3000 at yahoo dot com>
- Cc: Andrew Lunn <andrew at lunn dot ch>, ecos-discuss <ecos-discuss at sourceware dot org>
- Date: Tue, 30 Jan 2007 20:13:30 +0100
- Subject: Re: [ECOS] Building JFFS2 on net template fails
- References: <20070129220501.GA22661@lunn.ch> <877118.44363.qm@web38702.mail.mud.yahoo.com>
On Tue, Jan 30, 2007 at 09:45:30AM -0800, David Luca wrote:
> No time machine, I just put in ecos-3.0 folder anything new from the cvs for testing purposes only
> :)
> Thank you for your hack, it works. But I don't understand why these types are redefined. Where
> should I include <stdint.h> since I don't want to change the package files (like BSD), only
> platform files?
> David.
The problem is in
packages/compact/linux/current/include/linux/types.h
It has
#define uint8_t cyg_uint8
#define uint16_t cyg_uint16
#define uint32_t cyg_uint32
#define int8_t cyg_int8
#define int16_t cyg_int16
#define int32_t cyg_int32
So when bsdtypes.h is included afterward, which has....
typedef __signed char int8_t;
typedef short int16_t;
etc, the int8_t gets replaced with cyg_int8 and you end up with
redefining the type.
The #defines need replacing with something better.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss