This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Redboot build with networking for e7t - Strange parseerror fail
- From: Jonathan Larmour <jifl at eCosCentric dot com>
- To: Bahadir Balban <bbbalb at essex dot ac dot uk>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Mon, 10 Feb 2003 23:12:14 +0000
- Subject: Re: [ECOS] Redboot build with networking for e7t - Strange parseerror fail
- References: <200302100245.18307.bbbalb@essex.ac.uk>
Bahadir Balban wrote:
Hi there,
I'd had successfully built redboot for e7t without networking support
but now while I try building with networking framework package added,
I get the following error:
/opt/ecos/packages/redboot/current/src/net/enet.c: At top level:
/opt/ecos/packages/redboot/current/src/net/enet.c: 233: parse error before '{'
token
/opt/ecos/packages/redboot/current/src/net/enet.c: 242: parse error before '{'
token
make[1]: Leaving directory
`/opt/ecos/redboot-build/e7t-redboot_build/redboot/current'
make[1]: *** [src/net/enet.o.d] Error 1
make: Leaving directory `/opt/ecos/redboot-build'
make: *** [build] Error 2
I checked the source code and could not find any parse errors.
Checked the CVS repository as well for this file and it looks it is the same.
I also checked the mail archives. No such error reported.
I have no idea where this parse error comes from. What is happening?
Here's the code fragment:
#ifdef __LITTLE_ENDIAN__
unsigned long
ntohl(unsigned long x) // compiler claims there's an error on this line
I just tried it with the current sources but don't see this problem. Are
the sources up to date? You could try a clean build empty build directory
in case that helps.
I would guess what it might be is ntohl being defined as a macro somewhere
else causing the macro to be expanded in the function definition.
If you still have problems, say exactly what changes you made to your
configuration, e.g. packages added from default, options changed, etc.
Jifl
--
eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts
--[ "You can complain because roses have thorns, or you ]--
--[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss