This is the mail archive of the ecos-devel@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: undefined reference to `CYG_ASSERT'error after enabling CYGPKG_IO_ETH_DRIVERS


On Mon, Jun 28, 2004 at 09:13:15PM -0700, Dan Zhang wrote:
> Hi,
>  
> I am trying to build a Redboot image with CS8900A
> Ethernet controller enabled for the EDB7xxx platform
> under cygwin using the latest ecos CVS tree (checked
> out June 27). I modified the top level ecos.db to add
> CYGPKG_IO_ETH_DRIVERS 
> for the "target edb7xxx". Then I issued the command 
>  
>     ecosconfig.exe new edb7xxx redboot
>     ecosconfig.exe tree
>     make

You forgot to import the redboot .ecm file.

> 
> The build failed with the message:
>     undefined reference to `CYG_ASSERT'
> 
> This is due to the warning from the if_cs8900a.c build
> at line 551:
>     if_cs8900a.c:551: warning: implicit declaration of
> function `CYG_ASSERT'
> 
> Does anyone know what was wrong with my build? By the
> way, I don't get this error if I use the official 2.0
> ecos release.

This obvious patch will fix the problem. I've committed it to CVS.

        Andrew

Index: devs/eth/cl/cs8900a/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/devs/eth/cl/cs8900a/current/ChangeLog,v
retrieving revision 1.10
diff -u -r1.10 ChangeLog
--- devs/eth/cl/cs8900a/current/ChangeLog	27 May 2004 06:48:47 -0000	1.10
+++ devs/eth/cl/cs8900a/current/ChangeLog	29 Jun 2004 06:48:40 -0000
@@ -1,3 +1,7 @@
+2004-06-29  Andrew Lunn  <andrew.lunn@ascom.ch>
+
+	* src/if_cs8900a.c: Added missing include of cyg_ass.h.
+
 2004-05-07  Bob Koninckx <bob.koninckx@o-3s.com>
 	* src/if_cs8900a.c: Drop "ghost" frames with zero length
 
Index: devs/eth/cl/cs8900a/current/src/if_cs8900a.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/devs/eth/cl/cs8900a/current/src/if_cs8900a.c,v
retrieving revision 1.10
diff -u -r1.10 if_cs8900a.c
--- devs/eth/cl/cs8900a/current/src/if_cs8900a.c	27 May 2004 06:48:47 -0000	1.10
+++ devs/eth/cl/cs8900a/current/src/if_cs8900a.c	29 Jun 2004 06:48:49 -0000
@@ -73,6 +73,7 @@
 #include <pkgconf/io_eth_drivers.h>
 
 #include <cyg/infra/cyg_type.h>
+#include <cyg/infra/cyg_ass.h>
 #include <cyg/hal/hal_arch.h>
 #include <cyg/hal/hal_intr.h>
 #include <cyg/hal/hal_endian.h>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]