[ECOS] Redboot build with networking for e7t - Strange parse error fail

Jonathan Larmour jifl@eCosCentric.com
Mon Feb 10 23:12:00 GMT 2003


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



More information about the Ecos-discuss mailing list