This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: ARP Support in eCos Applications
- From: sebastien Couret <sebastien dot couret at elios-informatique dot fr>
- To: Manoj Abraham <manojkabraham at india dot com>,ecos-discuss at ecos dot sourceware dot org
- Date: Fri, 15 Oct 2004 13:50:28 +0200
- Subject: Re: [ECOS] ARP Support in eCos Applications
- Organization: Elios Informatique
- References: <20041015060226.BAFF8398198@ws5-1.us4.outblaze.com> <20041015071219.GE2141@lunn.ch>
- Reply-to: sebastien dot couret at elios-informatique dot fr
On Friday 15 October 2004 09:12, Andrew Lunn wrote:
> On Fri, Oct 15, 2004 at 02:02:26PM +0800, Manoj Abraham wrote:
> > Hello Sebastien Couret,
> > Thanks for the your quick reply.Sorry for the late reply as I was trying
> > with the AddMAC and DelMAC code what was suggested by you.But we have
> > faced some problems while compiling. These are errors after compiling:
> >
> > $powerpc-eabi-gcc -c -DECOS _I /working/ppc/Infra_install/include -I
> > /devel/5X-Pilot/src/ -L /working/ppc/Infra_install/lib/ IpStack.cpp
> > -Ttarget.ld -nostdlib
> >
> > IpStack.cpp:191: `LOG_ERR' undeclared (first use this function)
> > IpStack.cpp:191: (Each undeclared identifier is reported only once for
> > each function it appears in.)
> > IpStack.cpp:191: `LOG' undeclared (first use this function)
> > IpStack.cpp:207: `LOG_INFO' undeclared (first use this function)
> > IpStack.cpp:207: pointer to a function used in arithmetic
> > IpStack.cpp:211: `log' undeclared (first use this function)
> > IpStack.cpp:237: parse error before `/' token
>
> These are not standard eCos features. You will need to replace them
> with diag_printf or what ever you use your log/debug output.
>
> Andrew
Hello Mr Manoj Abraham,
Andrew is perfectly right, LOG and LOG_INFO, LOG_ERR ... are macros of my
own ... you could use diag_printf instead to emit a message .
For example , replace
"LOG("DelMAC",LOG_ERR,"Unknown error %d:%s",errno,strerror(errno));"
by
diag_printf("Unknown error %d:%s",errno,strerror(errno));
Sorry, I forgot that point in my last mail...
Have a nice day
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss