Network Builds

James Yates j.yates at quartzuk.com
Mon Mar 29 12:09:10 UTC 2004


Sorry Ralf,

   Hope this helps. Many thanks.


		James


sh-rtems-gcc --pipe -B/opt/rtems/builds/fu0018_net/sh-rtems/fu0018/lib/ -specs bsp_specs -qrtems  -qrtems_debug -g -Wall   -O1 -g -Wno-unused -qrtems_debug -v -qrtems_debug     -m2
 -D__INSIDE_RTEMS_BSD_TCPIP_STACK__     -c   -o o-debug/test.o test.c
Reading specs from /opt/rtems/lib/gcc-lib/sh-rtems/3.2.3/specs
Reading specs from /opt/rtems/builds/fu0018_net/sh-rtems/fu0018/lib/bsp_specs
rename spec lib to old_lib
rename spec endfile to old_endfile
rename spec startfile to old_startfile
rename spec link to old_link
Configured with: ../gcc-3.2.3/configure --build=i686-pc-linux-gnu --host=i386-cygwin --target=sh-rtems --with-gnu-as --with-gnu-ld --with-newlib --verbose --with-system-zlib --disa
ble-nls --enable-version-specific-runtime-libs --enable-threads=rtems --prefix=/opt/rtems --enable-languages=c,c++
Thread model: rtems
gcc version 3.2.3 (OAR Corporation gcc-3.2.3-20030507a/newlib-1.11.0-20030605-4)
 /opt/rtems/lib/gcc-lib/sh-rtems/3.2.3/cc1.exe -lang-c -v -isystem /opt/rtems/builds/fu0018_net/sh-rtems/fu0018/lib/include -D__GNUC__=3 -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=3
-D__GXX_ABI_VERSION=102 -D__sh__ -D__rtems__ -D__sh__ -D__rtems__ -Asystem=rtems -Acpu=sh -Amachine=sh -D__OPTIMIZE__ -D__STDC_HOSTED__=1 -D__sh2__ -D__SIZE_TYPE__=unsigned int -D_
_PTRDIFF_TYPE__=int -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ test.c -quiet -dumpbase test.c -m2 -g -g -O1 -Wall -Wno-unused -version -o - |
 /opt/rtems/lib/gcc-lib/sh-rtems/3.2.3/../../../../sh-rtems/bin/as.exe --traditional-format -o o-debug/test.o
GNU CPP version 3.2.3 (OAR Corporation gcc-3.2.3-20030507a/newlib-1.11.0-20030605-4) (cpplib) (Hitachi SH)
GNU C version 3.2.3 (OAR Corporation gcc-3.2.3-20030507a/newlib-1.11.0-20030605-4) (sh-rtems)
        compiled by GNU C version 3.2 20020927 (prerelease).
#include "..." search starts here:
#include <...> search starts here:
 /opt/rtems/builds/fu0018_net/sh-rtems/fu0018/lib/include
 /opt/rtems/lib/gcc-lib/sh-rtems/3.2.3/include
 /opt/rtems/sh-rtems/sys-include
 /opt/rtems/sh-rtems/include
End of search list.
test.c: In function `showbroad':
test.c:43: warning: implicit declaration of function `getsockopt'
test.c: In function `transmitUdp':
test.c:82: warning: implicit declaration of function `socket'
test.c:90: warning: implicit declaration of function `bind'
test.c:96: warning: implicit declaration of function `sendto'
test.c:103: warning: implicit declaration of function `setsockopt'
test.c: In function `transmitTcp':
test.c:160: warning: implicit declaration of function `connect'
test.c: In function `echoTask':
test.c:211: warning: implicit declaration of function `send'
test.c: In function `echoServer':
test.c:248: warning: implicit declaration of function `listen'
test.c:255: warning: implicit declaration of function `accept'

-----Original Message-----
From: Ralf Corsepius [mailto:corsepiu at faw.uni-ulm.de]
Sent: 29 March 2004 11:11
To: James Yates
Cc: Chris Johns; RTEMS Users; Joel Sherrill
Subject: RE: Network Builds


On Mon, 2004-03-29 at 10:38, James Yates wrote:
> Hi Chris,
> 
>    I think I had made a mistake when integrating it into my BSP. Have rectified the problem however 
> now when I link i get the build warnings:
>
> test.c:43: warning: implicit declaration of function `getsockopt'
> test.c: In function `transmitUdp':
> test.c:82: warning: implicit declaration of function `socket'
> test.c:90: warning: implicit declaration of function `bind'
> test.c:96: warning: implicit declaration of function `sendto'
> test.c:103: warning: implicit declaration of function `setsockopt'
> test.c: In function `transmitTcp':
> test.c:160: warning: implicit declaration of function `connect'
> test.c: In function `echoTask':
> test.c:211: warning: implicit declaration of function `send'
> test.c: In function `echoServer':
> test.c:248: warning: implicit declaration of function `listen'
> test.c:255: warning: implicit declaration of function `accept'

> I have included <rtems/rtems_bsdnet.h> <netinet/in.h> <sys/types.h>
> <sys/socket.h>.
> 
>   Any ideas?

How does the call to compiler causing these warning look like?
Unfortunately you have cut it from the log above ... :(

Ralf





More information about the users mailing list