This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Re: net/common compile error fix
- From: Andrew Lunn <andrew at lunn dot ch>
- To: ?yvind Harboe <oyvind dot harboe at zylin dot com>
- Cc: ecos-patches at sources dot redhat dot com
- Date: Tue, 8 Jun 2004 09:33:26 +0200
- Subject: Re: net/common compile error fix
- References: <1086602610.7202.8.camel@famine>
On Mon, Jun 07, 2004 at 12:03:31PM +0200, ?yvind Harboe wrote:
Hi Øyvind
I just compiled the network stack and could not produce this compiler
warning/error. Please could you explain how you caused the problem to
happen, simple test case etc.
Thanks
Andrew
>
> --
> ?yvind Harboe
> http://www.zylin.com
>
> ? perror.txt
> Index: current/ChangeLog
> ===================================================================
> RCS file: /cvs/ecos/ecos-opt/net/net/common/current/ChangeLog,v
> retrieving revision 1.62
> diff -u -w -r1.62 ChangeLog
> --- current/ChangeLog 13 May 2004 10:00:35 -0000 1.62
> +++ current/ChangeLog 7 Jun 2004 10:02:11 -0000
> @@ -1,3 +1,7 @@
> +2004-06-07 Oyvind Harboe <oyvind.harboe@zylin.com>
> + * include/network.h: removed perror() to fix duplicate definition
> + compile errors. It is defined in language/c/libc.
> +
> 2004-05-04 Jay Foster <jay.foster@systech.com>
>
> * src/bootp_support.c (get_bootp_option, show_bootp):
> Index: current/include/network.h
> ===================================================================
> RCS file: /cvs/ecos/ecos-opt/net/net/common/current/include/network.h,v
> retrieving revision 1.3
> diff -u -w -r1.3 network.h
> --- current/include/network.h 23 Apr 2003 08:52:08 -0000 1.3
> +++ current/include/network.h 7 Jun 2004 10:02:12 -0000
> @@ -69,7 +69,6 @@
> __externC void init_all_network_interfaces(void);
>
> __externC void cyg_route_reinit(void);
> -__externC void perror(const char *);
> __externC int close(int);
> __externC ssize_t read(int, void *, size_t);
> __externC ssize_t write(int, const void *, size_t);