This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Error in adding an interface driver
- To: ecos-discuss at sources dot redhat dot com
- Subject: [ECOS] Error in adding an interface driver
- From: "N.Suresh" <nsuresh at cdotb dot ernet dot in>
- Date: Wed, 03 Oct 2001 12:51:12 +0530
Hi all,
I am trying to compile my low level driver for the QUICCII on ADS board.
I have added a package similar to CYGPKG_NET_QUICC_ETH_DRIVERS and
modified for QUICCII.
But if i build the tree and compile, it is giving following errors:
<cut>
In file included from
/export/home1/nsuresh/ecos-1.3.1/ecos-pqii-net/install/include/machine/param.h:91,
from
/export/home1/nsuresh/ecos-1.3.1/ecos-pqii-net/install/include/sys/param.h:166,
from
/export/home1/nsuresh/ecos-1.3.1/ecos-pqii-net/install/include/eth_drv.h:60,
from
/export/home1/nsuresh/work/Hard_Lib/ecos/packages/net/drivers/eth/quiccII/v1_0b1/src/if_quiccii.cxx:47:
/export/home1/nsuresh/ecos-1.3.1/ecos-pqii-net/install/include/lib/libkern/libkern.h:117:
`a' was not declared in this scope
/export/home1/nsuresh/ecos-1.3.1/ecos-pqii-net/install/include/lib/libkern/libkern.h:117:
`b' was not declared in this scope
/export/home1/nsuresh/ecos-1.3.1/ecos-pqii-net/install/include/lib/libkern/libkern.h:118:
`imax' declared as an `inline' variable
/export/home1/nsuresh/ecos-1.3.1/ecos-pqii-net/install/include/lib/libkern/libkern.h:118:
`int imax' redeclared as different kind of symbol
/export/home1/nsuresh/ecos-1.3.1/ecos-pqii-net/install/include/lib/libkern/libkern.h:105:
previous declaration of `int imax(int, int)'
/export/home1/nsuresh/ecos-1.3.1/ecos-pqii-net/install/include/lib/libkern/libkern.h:118:
warning: initializer list being treated as compound expression
/export/home1/nsuresh/ecos-1.3.1/ecos-pqii-net/install/include/lib/libkern/libkern.h:118:
syntax error before `int'
</cut>
Any idea what's happening.. it is giving syntax errors in libkern.h.
If i try to compile without that, it is giving linker errors like
net_memcpy not found.
thanx in advance,
bye
--
!============================================================================!
= Suresh N., Research Engineer, C-DoT, Bangalore. =
= Call me at : OFF: 2383951(Dir) / 2263399 (268) RES:
3334248 =
= Alternate email :
nsur_mys@email.com =
= QOT: For fast-acting relief, try slowing down.
!============================================================================!