This is the mail archive of the ecos-patches@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: Fix CYGPKG_NET build


On Mon, 2002-07-08 at 14:35, Iztok Zupet wrote:
> On Monday 08 July 2002 22:20, Gary Thomas wrote:
> > On Mon, 2002-07-08 at 14:06, Iztok Zupet wrote:
> > > On Monday 08 July 2002 22:03, Gary Thomas wrote:
> > > > On Mon, 2002-07-08 at 13:59, Iztok Zupet wrote:
> > > > > Corrects the "errno undefined" error when building network support
> > > > > ----
> > > >
> > > > Odd, I never got such an error before.  How did you configure eCos?
> > >
> > > With posix and network support + microwindows. After the patch applied it
> > > built. Shall I send You the ecc file?
> >
> > I just tried it with no troubles [of course!]
> >
> > If you want to send the output from 'ecosconfig export CFG', that might
> > be useful.
> 
> Tried once again. Now it builds. The first time, when I had to apply the patch 
> I used posix template as the base, then added network and microwindows 
> (that's sample1).
> 
> Second time I used the new_net template and added microwindows. That's 
> sample2.

Very interesting - different results, depending on the basic
configuration.  In any case, this patch is better since it fixes the
underlying problem:

Index: net/bsd_tcpip/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos-opt/net/net/bsd_tcpip/current/ChangeLog,v
retrieving revision 1.4
diff -u -5 -p -r1.4 ChangeLog
--- net/bsd_tcpip/current/ChangeLog	20 Jun 2002 22:05:55 -0000	1.4
+++ net/bsd_tcpip/current/ChangeLog	8 Jul 2002 20:51:50 -0000
@@ -1,5 +1,10 @@
+2002-07-08  Gary Thomas  <gary@chez-thomas.org>
+
+	* include/sys/param.h: Need <errno.h> which may or may not be
+	already present, depending on configuration.
+
 2002-06-20  Gary Thomas  <gary@chez-thomas.org>
 
 	* include/sys/param.h (sprintf): Map to diag_sprintf().
 
 2002-06-14  Gary Thomas  <gary@chez-thomas.org>
Index: net/bsd_tcpip/current/include/sys/param.h
===================================================================
RCS file: /misc/cvsfiles/ecos-opt/net/net/bsd_tcpip/current/include/sys/param.h,v
retrieving revision 1.2
diff -u -5 -p -r1.2 param.h
--- net/bsd_tcpip/current/include/sys/param.h	20 Jun 2002 22:05:56 -0000	1.2
+++ net/bsd_tcpip/current/include/sys/param.h	8 Jul 2002 20:50:23 -0000
@@ -716,10 +716,11 @@
 #define __END_DECLS
 #endif
 
 #include <sys/types.h>
 #include <sys/endian.h>
+#include <errno.h>
 
 #ifdef _KERNEL
 // External [common] variables
 extern int hz;
 extern volatile struct timeval ktime;




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