[ECOS] network test build error

Gary Thomas gthomas@ecoscentric.com
Mon Nov 11 08:05:00 GMT 2002


On Mon, 2002-11-11 at 08:56, Mildred Frisco wrote:
> 
> hi !  i have configured eCos as net template for assabet target.  i've also
> set the option 'Build networking tests' to generate test applications for
> it.  i ran make tests and got the following errors ...
> 
Try applying this patch.

What compiler (version) are you using?  This error did not show up with
the version(s) we've tried.

> .
> .
> .
> 
> /tmp/ccsyaNrm.s:54: Warning: rest of line ignored; first ignored character
> is `,'
> /tmp/ccsyaNrm.s:187: Warning: rest of line ignored; first ignored character
> is `,'
> /tmp/ccsyaNrm.s:222: Warning: rest of line ignored; first ignored character
> is `,'
> arm-elf-gcc -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib -L/ecoscvs/ecos-w
> ork/ecosnet_new/install/lib -Ttarget.ld -o
> /ecoscvs/ecos-work/ecosnet_new/install/tests/net/common/current/tests/tftp_c
> lient_test tests/tftp_client_test.o
> arm-elf-gcc -c  -I/ecoscvs/ecos-work/ecosnet_new/install/include -I/ecoscvs/
> ecos/packages/net/common/current -I/ecoscvs/ecos/packages/net/common/current
> /src -I/ecoscvs/ecos/packages/net/common/current/tests -I. -I/ecoscvs/ecos/p
> ackages/net/common/current/tests/ -mcpu=strongarm1100 -Wall -Wpointer-arith 
> -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-
> sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priori
> ty -D_KERNEL -D__ECOS -D__INSIDE_NET -Wp,-MD,tests/tftp_server_test.tmp -o
> tests/tftp_server_test.o
> /ecoscvs/ecos/packages/net/common/current/tests/tftp_server_test.c
> /ecoscvs/ecos/packages/net/common/current/tests/tftp_server_test.c:83:
> warning: `tftp_test' defined but not used
> /tmp/cc3FvF3k.s: Assembler messages:
> /tmp/cc3FvF3k.s:12: Warning: rest of line ignored; first ignored character
> is `,'
> /tmp/cc3FvF3k.s:45: Warning: rest of line ignored; first ignored character
> is `,'
> /tmp/cc3FvF3k.s:121: Warning: rest of line ignored; first ignored character
> is `,'
> /tmp/cc3FvF3k.s:156: Warning: rest of line ignored; first ignored character
> is `,'
> arm-elf-gcc -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib -L/ecoscvs/ecos-w
> ork/ecosnet_new/install/lib -Ttarget.ld -o
> /ecoscvs/ecos-work/ecosnet_new/install/tests/net/common/current/tests/tftp_s
> erver_test tests/tftp_server_test.o
> arm-elf-gcc -c  -I/ecoscvs/ecos-work/ecosnet_new/install/include -I/ecoscvs/
> ecos/packages/net/common/current -I/ecoscvs/ecos/packages/net/common/current
> /src -I/ecoscvs/ecos/packages/net/common/current/tests -I. -I/ecoscvs/ecos/p
> ackages/net/common/current/tests/ -mcpu=strongarm1100 -Wall -Wpointer-arith 
> -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-
> sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priori
> ty -D_KERNEL -D__ECOS -D__INSIDE_NET -Wp,-MD,tests/tcp_echo.tmp -o
> tests/tcp_echo.o /ecoscvs/ecos/packages/net/common/current/tests/tcp_echo.c
> /ecoscvs/ecos/packages/net/common/current/tests/tcp_echo.c:72: conflicting
> types for `max'
> /ecoscvs/ecos-work/ecosnet_new/install/include/lib/libkern/libkern.h:90:
> previous declaration of `max'
> make[1]: *** [tests/tcp_echo.d] Error 1
> make[1]: Leaving directory
> `/ecoscvs/ecos-work/ecosnet_new/net/common/current'
> make: *** [tests] Error 2
> 
> 
> thanks in advance .
> 
> 
> mildred
> 
> 
> 
> -- 
> Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
> and search the list archive: http://sources.redhat.com/ml/ecos-discuss

-- 
------------------------------------------------------------
Gary Thomas                  |
eCosCentric, Ltd.            |  
+1 (970) 229-1963            |  eCos & RedBoot experts
gthomas@ecoscentric.com      |
http://www.ecoscentric.com/  |
------------------------------------------------------------
-------------- next part --------------
Index: net/common/current/tests/tcp_echo.c
===================================================================
RCS file: /home/gthomas/my_cvs/develop/ecos/packages/net/common/current/tests/tcp_echo.c,v
retrieving revision 1.1.1.1
diff -u -5 -p -r1.1.1.1 tcp_echo.c
--- net/common/current/tests/tcp_echo.c	15 Jul 2002 14:22:21 -0000	1.1.1.1
+++ net/common/current/tests/tcp_echo.c	11 Nov 2002 16:02:56 -0000
@@ -66,11 +66,11 @@
 // Network throughput test code
 
 #include <network.h>
 
 static __inline__ int
-max(int m, int n)
+_max(int m, int n)
 {
     return m > n ? m : n;
 }
 
 #define SOURCE_PORT 9990
@@ -409,11 +409,11 @@ echo_test(cyg_addrword_t p)
     while (true) {
         // Wait for a connection on either of the ports
         FD_ZERO(&in_fds);
         FD_SET(s_source, &in_fds);
         FD_SET(s_sink, &in_fds);
-        num = select(max(s_sink,s_source)+1, &in_fds, 0, 0, 0);
+        num = select(_max(s_sink,s_source)+1, &in_fds, 0, 0, 0);
         if (FD_ISSET(s_source, &in_fds)) {
             len = sizeof(e_source_addr);
             if ((e_source = accept(s_source, (struct sockaddr *)&e_source_addr, &len)) < 0) {
                 pexit("accept /source/");
             }

-------------- next part --------------
-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


More information about the Ecos-discuss mailing list