public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* Re: [ECOS] network test build error
@ 2002-11-13  0:24 Mildred Frisco
  0 siblings, 0 replies; 4+ messages in thread
From: Mildred Frisco @ 2002-11-13  0:24 UTC (permalink / raw)
  To: ecos-discuss

[-- Attachment #1: Type: text/plain, Size: 4087 bytes --]



thank you for the patch !  i have applied it.  however, there came another
error (attachment)...  :(

-----Original Message-----
From: Gary Thomas [mailto:gthomas@ecoscentric.com]
Sent: Tuesday, November 12, 2002 12:05 AM
To: Mildred Frisco
Cc: eCos Discussion
Subject: Re: [ECOS] network test build error


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 -ffunctio
n-
>
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 -ffunctio
n-
>
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/  |
------------------------------------------------------------

[-- Attachment #2: dhcp_test2_error.txt --]
[-- Type: text/plain, Size: 6384 bytes --]


sh -c "export PATH=/tools/H-i686-pc-linux-gnu/bin:$PATH; unset GDBTK_LIBRARY; unset GCC_EXEC_PREFIX; export ECOS_REPOSITORY=/ecoscvs/ecos/packages; make clean --directory /ecoscvs/ecos-work/ecosnet_new/ecos_build"

make: Entering directory `/ecoscvs/ecos-work/ecosnet_new/ecos_build'
make -r -C hal/arm/arch/current clean
make[1]: Entering directory `/ecoscvs/ecos-work/ecosnet_new/ecos_build/hal/arm/arch/current'
make[1]: Leaving directory `/ecoscvs/ecos-work/ecosnet_new/ecos_build/hal/arm/arch/current'
make -r -C hal/arm/sa11x0/var/current clean
make[1]: Entering directory `/ecoscvs/ecos-work/ecosnet_new/ecos_build/hal/arm/sa11x0/var/current'
make[1]: Leaving directory `/ecoscvs/ecos-work/ecosnet_new/ecos_build/hal/arm/sa11x0/var/current'
make -r -C hal/arm/sa11x0/assabet/current clean
make[1]: Entering directory `/ecoscvs/ecos-work/ecosnet_new/ecos_build/hal/arm/sa11x0/assabet/current'
make[1]: Leaving directory `/ecoscvs/ecos-work/ecosnet_new/ecos_build/hal/arm/sa11x0/assabet/current'
make -r -C io/usb/common/current clean
make[1]: Entering directory `/ecoscvs/ecos-work/ecosnet_new/ecos_build/io/usb/common/current'
make[1]: Leaving directory `/ecoscvs/ecos-work/ecosnet_new/ecos_build/io/usb/common/current'
make -r -C io/usb/slave/current clean
...
...
...
arm-elf-gcc -c  -I/ecoscvs/ecos-work/ecosnet_new/ecos_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/packages/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-priority -D_KERNEL -D__ECOS -D__INSIDE_NET -Wp,-MD,tests/dhcp_test.tmp -o tests/dhcp_test.o /ecoscvs/ecos/packages/net/common/current/tests/dhcp_test.c
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test.c:218: warning: `ping_test' defined but not used
arm-elf-gcc -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib -L/ecoscvs/ecos-work/ecosnet_new/ecos_install/lib -Ttarget.ld -o /ecoscvs/ecos-work/ecosnet_new/ecos_install/tests/net/common/current/tests/dhcp_test tests/dhcp_test.o
/tmp/cc4dwXbd.s: Assembler messages:
/tmp/cc4dwXbd.s:20: Warning: rest of line ignored; first ignored character is `,'
/tmp/cc4dwXbd.s:56: Warning: rest of line ignored; first ignored character is `,'
/tmp/cc4dwXbd.s:167: Warning: rest of line ignored; first ignored character is `,'
/tmp/cc4dwXbd.s:330: Warning: rest of line ignored; first ignored character is `,'
/tmp/cc4dwXbd.s:534: Warning: rest of line ignored; first ignored character is `,'
/tmp/cc4dwXbd.s:692: Warning: rest of line ignored; first ignored character is `,'
/tmp/cc4dwXbd.s:726: Warning: rest of line ignored; first ignored character is `,'
arm-elf-gcc -c  -I/ecoscvs/ecos-work/ecosnet_new/ecos_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/packages/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-priority -D_KERNEL -D__ECOS -D__INSIDE_NET -Wp,-MD,tests/dhcp_test2.tmp -o tests/dhcp_test2.o /ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c: In function `tdhcp_init':
make[1]: Leaving directory `/ecoscvs/ecos-work/ecosnet_new/ecos_build/net/common/current'
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c:87: invalid use of undefined type `struct dhcp_lease'
make: Leaving directory `/ecoscvs/ecos-work/ecosnet_new/ecos_build'
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c:87: dereferencing pointer to incomplete type
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c: In function `tdhcp_do_one':
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c:96: warning: implicit declaration of function `do_dhcp'
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c:96: invalid use of undefined type `struct dhcp_lease'
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c: In function `tdhcp_updown_one':
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c:114: invalid use of undefined type `struct dhcp_lease'
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c:121: invalid use of undefined type `struct dhcp_lease'
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c:121: invalid use of undefined type `struct dhcp_lease'
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c:132: warning: implicit declaration of function `do_dhcp_down_net'
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c:132: invalid use of undefined type `struct dhcp_lease'
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c:133: `DHCPSTATE_INIT' undeclared (first use in this function)
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c:133: (Each undeclared identifier is reported only once
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c:133: for each function it appears in.)
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c: In function `tdhcp_release_one':
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c:145: `DHCPSTATE_FAILED' undeclared (first use in this function)
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c:152: warning: implicit declaration of function `do_dhcp_release'
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c:152: invalid use of undefined type `struct dhcp_lease'
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c:155: `DHCPSTATE_INIT' undeclared (first use in this function)
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c: In function `cyg_user_start':
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c:216: `CYGPKG_NET_DHCP_THREAD_PRIORITY' undeclared (first use in this function)
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c: At top level:
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c:74: storage size of `lease' isn't known
make[1]: *** [tests/dhcp_test2.d] Error 1
make: *** [tests] Error 2



[-- Attachment #3: ATT00131.txt --]
[-- Type: text/plain, Size: 147 bytes --]

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

[-- Attachment #4: Type: text/plain, Size: 146 bytes --]

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [ECOS] network test build error
  2002-11-11  8:05 ` Gary Thomas
@ 2002-11-11 20:09   ` Mildred Frisco
  0 siblings, 0 replies; 4+ messages in thread
From: Mildred Frisco @ 2002-11-11 20:09 UTC (permalink / raw)
  To: 'Gary Thomas'; +Cc: 'eCos Discussion'

[-- Attachment #1: Type: text/plain, Size: 4086 bytes --]


thank you for the patch !  i have applied it.  however, there came another
error (attachment)...  :(

-----Original Message-----
From: Gary Thomas [mailto:gthomas@ecoscentric.com]
Sent: Tuesday, November 12, 2002 12:05 AM
To: Mildred Frisco
Cc: eCos Discussion
Subject: Re: [ECOS] network test build error


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 -ffunctio
n-
>
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 -ffunctio
n-
>
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/  |
------------------------------------------------------------

[-- Attachment #2: dhcp_test2_error.txt --]
[-- Type: text/plain, Size: 6384 bytes --]


sh -c "export PATH=/tools/H-i686-pc-linux-gnu/bin:$PATH; unset GDBTK_LIBRARY; unset GCC_EXEC_PREFIX; export ECOS_REPOSITORY=/ecoscvs/ecos/packages; make clean --directory /ecoscvs/ecos-work/ecosnet_new/ecos_build"

make: Entering directory `/ecoscvs/ecos-work/ecosnet_new/ecos_build'
make -r -C hal/arm/arch/current clean
make[1]: Entering directory `/ecoscvs/ecos-work/ecosnet_new/ecos_build/hal/arm/arch/current'
make[1]: Leaving directory `/ecoscvs/ecos-work/ecosnet_new/ecos_build/hal/arm/arch/current'
make -r -C hal/arm/sa11x0/var/current clean
make[1]: Entering directory `/ecoscvs/ecos-work/ecosnet_new/ecos_build/hal/arm/sa11x0/var/current'
make[1]: Leaving directory `/ecoscvs/ecos-work/ecosnet_new/ecos_build/hal/arm/sa11x0/var/current'
make -r -C hal/arm/sa11x0/assabet/current clean
make[1]: Entering directory `/ecoscvs/ecos-work/ecosnet_new/ecos_build/hal/arm/sa11x0/assabet/current'
make[1]: Leaving directory `/ecoscvs/ecos-work/ecosnet_new/ecos_build/hal/arm/sa11x0/assabet/current'
make -r -C io/usb/common/current clean
make[1]: Entering directory `/ecoscvs/ecos-work/ecosnet_new/ecos_build/io/usb/common/current'
make[1]: Leaving directory `/ecoscvs/ecos-work/ecosnet_new/ecos_build/io/usb/common/current'
make -r -C io/usb/slave/current clean
...
...
...
arm-elf-gcc -c  -I/ecoscvs/ecos-work/ecosnet_new/ecos_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/packages/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-priority -D_KERNEL -D__ECOS -D__INSIDE_NET -Wp,-MD,tests/dhcp_test.tmp -o tests/dhcp_test.o /ecoscvs/ecos/packages/net/common/current/tests/dhcp_test.c
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test.c:218: warning: `ping_test' defined but not used
arm-elf-gcc -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib -L/ecoscvs/ecos-work/ecosnet_new/ecos_install/lib -Ttarget.ld -o /ecoscvs/ecos-work/ecosnet_new/ecos_install/tests/net/common/current/tests/dhcp_test tests/dhcp_test.o
/tmp/cc4dwXbd.s: Assembler messages:
/tmp/cc4dwXbd.s:20: Warning: rest of line ignored; first ignored character is `,'
/tmp/cc4dwXbd.s:56: Warning: rest of line ignored; first ignored character is `,'
/tmp/cc4dwXbd.s:167: Warning: rest of line ignored; first ignored character is `,'
/tmp/cc4dwXbd.s:330: Warning: rest of line ignored; first ignored character is `,'
/tmp/cc4dwXbd.s:534: Warning: rest of line ignored; first ignored character is `,'
/tmp/cc4dwXbd.s:692: Warning: rest of line ignored; first ignored character is `,'
/tmp/cc4dwXbd.s:726: Warning: rest of line ignored; first ignored character is `,'
arm-elf-gcc -c  -I/ecoscvs/ecos-work/ecosnet_new/ecos_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/packages/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-priority -D_KERNEL -D__ECOS -D__INSIDE_NET -Wp,-MD,tests/dhcp_test2.tmp -o tests/dhcp_test2.o /ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c: In function `tdhcp_init':
make[1]: Leaving directory `/ecoscvs/ecos-work/ecosnet_new/ecos_build/net/common/current'
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c:87: invalid use of undefined type `struct dhcp_lease'
make: Leaving directory `/ecoscvs/ecos-work/ecosnet_new/ecos_build'
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c:87: dereferencing pointer to incomplete type
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c: In function `tdhcp_do_one':
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c:96: warning: implicit declaration of function `do_dhcp'
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c:96: invalid use of undefined type `struct dhcp_lease'
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c: In function `tdhcp_updown_one':
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c:114: invalid use of undefined type `struct dhcp_lease'
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c:121: invalid use of undefined type `struct dhcp_lease'
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c:121: invalid use of undefined type `struct dhcp_lease'
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c:132: warning: implicit declaration of function `do_dhcp_down_net'
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c:132: invalid use of undefined type `struct dhcp_lease'
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c:133: `DHCPSTATE_INIT' undeclared (first use in this function)
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c:133: (Each undeclared identifier is reported only once
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c:133: for each function it appears in.)
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c: In function `tdhcp_release_one':
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c:145: `DHCPSTATE_FAILED' undeclared (first use in this function)
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c:152: warning: implicit declaration of function `do_dhcp_release'
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c:152: invalid use of undefined type `struct dhcp_lease'
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c:155: `DHCPSTATE_INIT' undeclared (first use in this function)
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c: In function `cyg_user_start':
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c:216: `CYGPKG_NET_DHCP_THREAD_PRIORITY' undeclared (first use in this function)
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c: At top level:
/ecoscvs/ecos/packages/net/common/current/tests/dhcp_test2.c:74: storage size of `lease' isn't known
make[1]: *** [tests/dhcp_test2.d] Error 1
make: *** [tests] Error 2



[-- Attachment #3: Type: text/plain, Size: 146 bytes --]

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ECOS] network test build error
  2002-11-11  7:55 Mildred Frisco
@ 2002-11-11  8:05 ` Gary Thomas
  2002-11-11 20:09   ` Mildred Frisco
  0 siblings, 1 reply; 4+ messages in thread
From: Gary Thomas @ 2002-11-11  8:05 UTC (permalink / raw)
  To: Mildred Frisco; +Cc: eCos Discussion

[-- Attachment #1: Type: text/plain, Size: 3791 bytes --]

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/  |
------------------------------------------------------------

[-- Attachment #2: diffs --]
[-- Type: text/plain, Size: 1238 bytes --]

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/");
             }


[-- Attachment #3: Type: text/plain, Size: 146 bytes --]

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ECOS] network test build error
@ 2002-11-11  7:55 Mildred Frisco
  2002-11-11  8:05 ` Gary Thomas
  0 siblings, 1 reply; 4+ messages in thread
From: Mildred Frisco @ 2002-11-11  7:55 UTC (permalink / raw)
  To: ecos-discuss


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 ...

.
.
.

/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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-11-13  8:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-13  0:24 [ECOS] network test build error Mildred Frisco
  -- strict thread matches above, loose matches on Subject: below --
2002-11-11  7:55 Mildred Frisco
2002-11-11  8:05 ` Gary Thomas
2002-11-11 20:09   ` Mildred Frisco

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).