Compiling rtems-ss-20021007: too many warnings

Ilya Alexeev ilya at continuum.ru
Fri Oct 25 18:27:19 UTC 2002


Hi All.

Today I have decided to upgrade to the latest shapshot.
I have downloaded such files:

m68k-rtems-binutils-2.13-1.i386.rpm
m68k-rtems-gcc-gcc3.2newlib1.10.0-2.i386.rpm
rtems-base-binutils-2.13-1.i386.rpm
rtems-base-gcc-gcc3.2newlib1.10.0-2.i386.rpm
rtems-ss-20021007.tar.bz2

All tools were installed successfully.

Here is my RTEMS configuration script:

../rtems-ss-20021007/configure          \
    --target=m68k-rtems                 \
    --prefix=/opt/rtems                 \
    --disable-hwapi                     \
    --disable-multiprocessing           \
    --enable-rtemsbsp=gen68360          \
    --enable-networking                 \
    --disable-itron                     \
    --disable-rdbg                      \
    --disable-cxx                       \
    --disable-tests                     \
    --disable-rtems-debug               \
    --disable-posix

It have passed well,
but after 'make' command I got too many warnings:

Here they are (I am sorry) :

/cpukit/score/src/threadhandler.c: In function `_Thread_Handler':
/cpukit/score/src/threadhandler.c:107: warning: implicit declaration of function `_init'
/cpukit/rtems/src/timerserver.c: In function `_Timer_Server_body':
/cpukit/rtems/src/timerserver.c:115: warning: no return statement in function returning non-void
/cpukit/libcsupport/src/newlibc.c: In function `_exit':
/cpukit/libcsupport/src/newlibc.c:323: warning: `noreturn' function does return
/cpukit/libfs/src/imfs/imfs_eval.c: In function `IMFS_evaluate_sym_link':
/cpukit/libfs/src/imfs/imfs_eval.c:60: warning: case value `5' not in enumerated type `rtems_filesystem_node_types_t'
/cpukit/libfs/src/imfs/imfs_eval.c: In function `IMFS_evaluate_for_make':
/cpukit/libfs/src/imfs/imfs_eval.c:60: warning: case value `5' not in enumerated type `rtems_filesystem_node_types_t'
/cpukit/libfs/src/imfs/imfs_eval.c: In function `IMFS_eval_path':
/cpukit/libfs/src/imfs/imfs_eval.c:60: warning: case value `5' not in enumerated type `rtems_filesystem_node_types_t'
/cpukit/libfs/src/imfs/imfs_eval.c:60: warning: case value `5' not in enumerated type `rtems_filesystem_node_types_t'
/cpukit/libfs/src/imfs/imfs_eval.c:60: warning: case value `5' not in enumerated type `rtems_filesystem_node_types_t'
/cpukit/libfs/src/imfs/imfs_eval.c: In function `IMFS_Set_handlers':
/cpukit/libfs/src/imfs/imfs_eval.c:60: warning: case value `5' not in enumerated type `rtems_filesystem_node_types_t'
/cpukit/libfs/src/imfs/imfs_eval.c: In function `IMFS_evaluate_hard_link':
/cpukit/libfs/src/imfs/imfs_eval.c:60: warning: case value `5' not in enumerated type `rtems_filesystem_node_types_t'
/cpukit/libnetworking/kern/kern_subr.c: In function `uiomove':
/cpukit/libnetworking/kern/kern_subr.c:78: warning: implicit declaration of function `memcpy'
/cpukit/libnetworking/kern/uipc_mbuf.c: In function `m_getclr':
/cpukit/libnetworking/kern/uipc_mbuf.c:161: warning: implicit declaration of function `memset'
/cpukit/libnetworking/kern/uipc_mbuf.c: In function `m_copym':
/cpukit/libnetworking/kern/uipc_mbuf.c:284: warning: implicit declaration of function `memcpy'
/cpukit/libnetworking/kern/uipc_mbuf.c: In function `m_copydata':
/cpukit/libnetworking/kern/uipc_mbuf.c:368: warning: unused variable `m0'
/cpukit/libnetworking/kern/uipc_mbuf.c: In function `m_copyback':
/cpukit/libnetworking/kern/uipc_mbuf.c:732: warning: `return' with no value, in function returning non-void
/cpukit/libnetworking/kern/uipc_mbuf.c:771: warning: label `out' defined but not used
/cpukit/libnetworking/kern/uipc_mbuf.c: At top level:
/cpukit/libnetworking/kern/uipc_mbuf.c:53: warning: `mbinit' declared `static' but never defined
/cpukit/libnetworking/kern/uipc_socket.c: In function `socreate':
/cpukit/libnetworking/kern/uipc_socket.c:86: warning: implicit declaration of function `memset'
/cpukit/libnetworking/kern/uipc_socket2.c: In function `sonewconn1':
/cpukit/libnetworking/kern/uipc_socket2.c:220: warning: implicit declaration of function `memset'
/cpukit/libnetworking/kern/uipc_socket2.c: In function `sbappendaddr':
/cpukit/libnetworking/kern/uipc_socket2.c:565: warning: implicit declaration of function `memcpy'
/cpukit/libnetworking/lib/ftpfs.c:1147: warning: initialization from incompatible pointer type
/cpukit/libnetworking/lib/ftpfs.c:1148: warning: initialization from incompatible pointer type
/cpukit/libnetworking/lib/syslog.c: In function `vsyslog':
/cpukit/libnetworking/lib/syslog.c:104: warning: implicit declaration of function `memset'
/cpukit/libnetworking/lib/tftpDriver.c:1037: warning: initialization from incompatible pointer type
/cpukit/libnetworking/lib/tftpDriver.c:1038: warning: initialization from incompatible pointer type
/cpukit/libnetworking/libc/gethostbydns.c: In function `_gethostbydnsaddr':
/cpukit/libnetworking/libc/gethostbydns.c:659: warning: implicit declaration of function `abort'
/cpukit/libnetworking/libc/inet_ntoa.c: In function `inet_ntoa':
/cpukit/libnetworking/libc/inet_ntoa.c:56: warning: implicit declaration of function `strcpy'
/cpukit/libnetworking/libc/rcmd.c: In function `rcmd':
/cpukit/libnetworking/libc/rcmd.c:189: warning: implicit declaration of function `select'
/cpukit/libnetworking/libc/rcmd.c: In function `rresvport':
/cpukit/libnetworking/libc/rcmd.c:281: warning: implicit declaration of function `bindresvport'
/cpukit/libnetworking/net/if.c: In function `if_attach':
/cpukit/libnetworking/net/if.c:123: warning: implicit declaration of function `memset'
/cpukit/libnetworking/net/if.c:125: warning: implicit declaration of function `memcpy'
/cpukit/libnetworking/net/if_ethersubr.c:102:8: warning: extra tokens at end of #endif directive
/cpukit/libnetworking/net/if_ethersubr.c:137:8: warning: extra tokens at end of #endif directive
/cpukit/libnetworking/net/if_ethersubr.c:261:8: warning: extra tokens at end of #endif directive
/cpukit/libnetworking/net/if_ethersubr.c: In function `ether_output':
/cpukit/libnetworking/net/if_ethersubr.c:401: warning: implicit declaration of function `memcpy'
/cpukit/libnetworking/net/if_ethersubr.c:531:8: warning: extra tokens at end of #endif directive
/cpukit/libnetworking/net/if_loop.c:84:8: warning: extra tokens at end of #endif directive
/cpukit/libnetworking/net/if_loop.c:208:8: warning: extra tokens at end of #endif directive
/cpukit/libnetworking/net/radix.c: In function `rn_addmask':
/cpukit/libnetworking/net/radix.c:439: warning: implicit declaration of function `memcpy'
/cpukit/libnetworking/net/radix.c:454: warning: implicit declaration of function `memset'
/cpukit/libnetworking/net/route.c: In function `rtalloc1':
/cpukit/libnetworking/net/route.c:180: warning: implicit declaration of function `memset'
/cpukit/libnetworking/net/route.c: In function `rtrequest':
/cpukit/libnetworking/net/route.c:528: warning: implicit declaration of function `memcpy'
/cpukit/libnetworking/net/rtsock.c: In function `route_usrreq':
/cpukit/libnetworking/net/rtsock.c:101: warning: implicit declaration of function `memset'
/cpukit/libnetworking/net/rtsock.c: In function `route_output':
/cpukit/libnetworking/net/rtsock.c:259: warning: implicit declaration of function `memcpy'
/cpukit/libnetworking/net/raw_usrreq.c: In function `raw_usrreq':
/cpukit/libnetworking/net/raw_usrreq.c:294: warning: implicit declaration of function `memcpy'
/cpukit/libnetworking/net/if_ppp.c: In function `pppalloc':
/cpukit/libnetworking/net/if_ppp.c:487: warning: implicit declaration of function `memset'
/cpukit/libnetworking/net/ppp_tty.c: In function `pppopen':
/cpukit/libnetworking/net/ppp_tty.c:213: warning: implicit declaration of function `memset'
/cpukit/libnetworking/net/ppp_tty.c: In function `pppread':
/cpukit/libnetworking/net/ppp_tty.c:337: warning: implicit declaration of function `memcpy'
/cpukit/libnetworking/net/pppcompress.c: In function `vj_compress_init':
/cpukit/libnetworking/net/pppcompress.c:82: warning: implicit declaration of function `memset'
/cpukit/libnetworking/net/pppcompress.c: In function `vj_compress_tcp':
/cpukit/libnetworking/net/pppcompress.c:355: warning: implicit declaration of function `memcpy'
/cpukit/libnetworking/netinet/if_ether.c: In function `arp_rtrequest':
/cpukit/libnetworking/netinet/if_ether.c:208: warning: implicit declaration of function `memset'
/cpukit/libnetworking/netinet/if_ether.c:225: warning: implicit declaration of function `memcpy'
/cpukit/libnetworking/netinet/in.c: In function `in_control':
/cpukit/libnetworking/netinet/in.c:221: warning: implicit declaration of function `memset'
/cpukit/libnetworking/netinet/in_pcb.c: In function `in_pcballoc':
/cpukit/libnetworking/netinet/in_pcb.c:128: warning: implicit declaration of function `memset'
/cpukit/libnetworking/netinet/ip_fw.c: In function `ip_fw_chk':
/cpukit/libnetworking/netinet/ip_fw.c:613: warning: implicit declaration of function `memcpy'
/cpukit/libnetworking/netinet/ip_fw.c: In function `ip_fw_init':
/cpukit/libnetworking/netinet/ip_fw.c:990: warning: implicit declaration of function `memset'
/cpukit/libnetworking/netinet/ip_icmp.c: In function `icmp_error':
/cpukit/libnetworking/netinet/ip_icmp.c:160: warning: implicit declaration of function `memcpy'
/cpukit/libnetworking/netinet/ip_icmp.c: In function `icmp_send':
/cpukit/libnetworking/netinet/ip_icmp.c:656: warning: implicit declaration of function `memset'
/cpukit/libnetworking/netinet/ip_input.c: In function `ip_dooptions':
/cpukit/libnetworking/netinet/ip_input.c:971: warning: implicit declaration of function `memcpy'
/cpukit/libnetworking/netinet/ip_output.c: In function `ip_insertoptions':
/cpukit/libnetworking/netinet/ip_output.c:540: warning: implicit declaration of function `memcpy'
/cpukit/libnetworking/netinet/ip_output.c: In function `ip_pcbopts':
/cpukit/libnetworking/netinet/ip_output.c:847: warning: implicit declaration of function `memset'
/cpukit/libnetworking/netinet/tcp_debug.c: In function `tcp_trace':
/cpukit/libnetworking/netinet/tcp_debug.c:104: warning: implicit declaration of function `memset'
/cpukit/libnetworking/netinet/tcp_input.c: In function `tcp_input':
/cpukit/libnetworking/netinet/tcp_input.c:301: warning: implicit declaration of function `memset'
/cpukit/libnetworking/netinet/tcp_input.c: In function `tcp_dooptions':
/cpukit/libnetworking/netinet/tcp_input.c:1770: warning: implicit declaration of function `memcpy'
/cpukit/libnetworking/netinet/tcp_output.c: In function `tcp_output':
/cpukit/libnetworking/netinet/tcp_output.c:156: warning: implicit declaration of function `memset'
/cpukit/libnetworking/netinet/tcp_output.c:332: warning: implicit declaration of function `memcpy'
/cpukit/libnetworking/netinet/tcp_subr.c: In function `tcp_respond':
/cpukit/libnetworking/netinet/tcp_subr.c:194: warning: implicit declaration of function `memset'
/cpukit/libnetworking/netinet/tcp_usrreq.c: In function `tcp_connect':
/cpukit/libnetworking/netinet/tcp_usrreq.c:603: warning: implicit declaration of function `memset'
/cpukit/libnetworking/nfs/bootp_subr.c: In function `bootpc_fakeup_interface':
/cpukit/libnetworking/nfs/bootp_subr.c:500: warning: implicit declaration of function `memset'
/cpukit/libnetworking/nfs/bootp_subr.c: In function `bootpc_adjust_interface':
/cpukit/libnetworking/nfs/bootp_subr.c:602: warning: implicit declaration of function `memcpy'
/cpukit/libnetworking/rtems/rtems_syscall.c:752: warning: initialization from incompatible pointer type
/cpukit/libnetworking/rtems/rtems_syscall.c:753: warning: initialization from incompatible pointer type
/cpukit/libnetworking/rtems/rtems_bootp.c: In function `rtems_bsdnet_do_bootp':
/cpukit/libnetworking/rtems/rtems_bootp.c:16: warning: implicit declaration of function `rtems_bsdnet_semaphore_obtain'
/cpukit/libnetworking/rtems/rtems_bootp.c:17: warning: implicit declaration of function `bootpc_init'
/cpukit/libnetworking/rtems/rtems_bootp.c:18: warning: implicit declaration of function `rtems_bsdnet_semaphore_release'
/cpukit/libnetworking/rtems/rtems_showroute.c: In function `copyAddress':
/cpukit/libnetworking/rtems/rtems_showroute.c:78: warning: implicit declaration of function `memcpy'
/cpukit/librpc/src/rpc/clnt_tcp.c: In function `readtcp':
/cpukit/librpc/src/rpc/clnt_tcp.c:519: warning: implicit declaration of function `select'
/cpukit/librpc/src/rpc/clnt_udp.c: In function `clntudp_call':
/cpukit/librpc/src/rpc/clnt_udp.c:304: warning: implicit declaration of function `select'
/cpukit/librpc/src/rpc/pmap_rmt.c: In function `clnt_broadcast':
/cpukit/librpc/src/rpc/pmap_rmt.c:354: warning: implicit declaration of function `select'
/cpukit/librpc/src/rpc/rpcdname.c: In function `get_default_domain':
/cpukit/librpc/src/rpc/rpcdname.c:53: warning: implicit declaration of function `getdomainname'
/cpukit/librpc/src/rpc/rtime.c: In function `rtime':
/cpukit/librpc/src/rpc/rtime.c:110: warning: implicit declaration of function `select'
/cpukit/librpc/src/rpc/svc_run.c: In function `svc_run':
/cpukit/librpc/src/rpc/svc_run.c:61: warning: implicit declaration of function `select'
/cpukit/librpc/src/rpc/svc_tcp.c: In function `readtcp':
/cpukit/librpc/src/rpc/svc_tcp.c:350: warning: implicit declaration of function `select'
/c/src/lib/libbsp/m68k/shared/gdbstub/m68k-stub.c:352:5: warning: multi-line string literals are deprecated
/c/src/lib/libbsp/m68k/shared/gdbstub/m68k-stub.c:434:5: warning: multi-line string literals are deprecated
/c/src/lib/libbsp/m68k/shared/gdbstub/m68k-stub.c:439:5: warning: multi-line string literals are deprecated
/c/src/lib/libbsp/m68k/shared/gdbstub/m68k-stub.c: In function `handle_exception':
/c/src/lib/libbsp/m68k/shared/gdbstub/m68k-stub.c:671: warning: `parm' might be used uninitialized in this function
/c/src/lib/libbsp/m68k/shared/gdbstub/m68k-stub.c:671: warning: `parm' might be used uninitialized in this function
/c/src/lib/libbsp/m68k/gen68360/network/network.c: In function `sendpacket':
/c/src/lib/libbsp/m68k/gen68360/network/network.c:655: warning: implicit declaration of function `memcpy'
/c/src/libmisc/stackchk/check.c: In function `Stack_check_report_blown_task':
/c/src/libmisc/stackchk/check.c:342: warning: int format, long unsigned int arg (arg 4)

This big list stops me from using this snapshot...

What we can do with all this warnings?


Best regards,

Ilya V. Alexeev
ilya at continuum.ru

Continuum Plus JSC
Yaroslavl, Russia
Phone: (+7)0852 240200
Fax:   (+7)0852 359977




More information about the users mailing list