<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body>
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Need help with rtems configure error. Any help appreciated.<br>
These are my settings:<br>
../rtems/configure --target=powerpc-rtems4.11 --enable-rtemsbsp=icecube --enable-tests=samples --disable-posix<br>
<br>
Error snippet below-<br>
<br>
powerpc-rtems4.11-gcc --pipe -DHAVE_CONFIG_H   -I.. -I../../cpukit/../../../icecube/lib/include -I../../../../../../rtems/c/src/../../cpukit/libmisc/shell   -mcpu=603e -mstrict-align -meabi -msdata=sysv -fno-common -O2 -g -fno-keep-inline-functions -Wall -Wmissing-prototypes
 -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -MT shell/libshell_a-main_ping.o -MD -MP -MF shell/.deps/libshell_a-main_ping.Tpo -c -o shell/libshell_a-main_ping.o `test -f 'shell/main_ping.c' || echo '../../../../../../rtems/c/src/../../cpukit/libmisc/'`shell/main_ping.c<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c: In function 'g_finish':<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:348:54: error: expected declaration specifiers before '__dead2'<br>
 static void g_finish(rtems_shell_globals_t* globals) __dead2;<br>
                                                      ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:351:13: error: storage class specified for parameter 'g_pinger'<br>
 static void g_pinger(rtems_shell_globals_t* globals);<br>
             ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:354:14: error: storage class specified for parameter 'g_pr_addr'<br>
 static char *g_pr_addr(struct in_addr, rtems_shell_globals_t* globals);<br>
              ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:357:13: error: storage class specified for parameter 'g_pr_pack'<br>
 static void g_pr_pack(char *, int, struct sockaddr_in *, struct timeval *, rtems_shell_globals_t* globals);<br>
             ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:360:53: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__dead2'<br>
 static void g_usage(rtems_shell_globals_t* globals) __dead2;<br>
                                                     ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:364:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token<br>
 {<br>
 ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:372:12: error: storage class specified for parameter 'main_ping'<br>
 static int main_ping(int argc, char *const *argv, rtems_shell_globals_t* globals);<br>
            ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:374:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token<br>
 {<br>
 ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:411:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'<br>
  int argc;<br>
  ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:348:13: error: old-style parameter declarations in prototyped function definition<br>
 static void g_finish(rtems_shell_globals_t* globals) __dead2;<br>
             ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:473:24: error: 'argc' undeclared (first use in this function)<br>
  while ((ch = getopt_r(argc, argv,<br>
                        ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:473:24: note: each undeclared identifier is reported only once for each function it appears in<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:473:30: error: 'argv' undeclared (first use in this function)<br>
  while ((ch = getopt_r(argc, argv,<br>
                              ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:561:4: warning: implicit declaration of function 'inet_aton' [-Wimplicit-function-declaration]<br>
    if (inet_aton(optarg, &ifaddr) == 0)<br>
    ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:561:4: warning: nested extern declaration of 'inet_aton' [-Wnested-externs]<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:704:4: warning: implicit declaration of function 'g_usage' [-Wimplicit-function-declaration]<br>
    usage();<br>
    ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:704:4: warning: nested extern declaration of 'g_usage' [-Wnested-externs]<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:747:3: warning: implicit declaration of function 'bzero' [-Wimplicit-function-declaration]<br>
   bzero((char *)&sock_in, sizeof(sock_in));<br>
   ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:747:3: warning: incompatible implicit declaration of built-in function 'bzero' [enabled by default]<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:772:2: warning: incompatible implicit declaration of built-in function 'bzero' [enabled by default]<br>
  bzero(&whereto, sizeof(whereto));<br>
  ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1014:3: warning: implicit declaration of function 'g_pinger' [-Wimplicit-function-declaration]<br>
   pinger();  /* send the first ping */<br>
   ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1014:3: warning: nested extern declaration of 'g_pinger' [-Wnested-externs]<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1096:4: warning: implicit declaration of function 'g_pr_pack' [-Wimplicit-function-declaration]<br>
    pr_pack((char *)packet_, cc, &from, tv);<br>
    ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1096:4: warning: nested extern declaration of 'g_pr_pack' [-Wnested-externs]<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1139:3: warning: 'return' with a value, in function returning void [enabled by default]<br>
   return(0);<br>
   ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1141:3: warning: 'return' with a value, in function returning void [enabled by default]<br>
   return(2);<br>
   ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1144:2: warning: implicit declaration of function 'rtems_shell_ping_exit' [-Wimplicit-function-declaration]<br>
  exit(0); /* Make the compiler happy */<br>
  ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1144:2: warning: nested extern declaration of 'rtems_shell_ping_exit' [-Wnested-externs]<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:438:7: warning: unused variable 'ctrl' [-Wunused-variable]<br>
  char ctrl[CMSG_SPACE(sizeof(struct timeval))];<br>
       ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c: In function 'stopit':<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1155:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__unused'<br>
  int sig __unused;<br>
          ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c: At top level:<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1177:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]<br>
 g_pinger(globals)<br>
 ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1177:1: warning: conflicting types for 'g_pinger' [enabled by default]<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1177:1: error: static declaration of 'g_pinger' follows non-static declaration<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:350:18: note: previous implicit declaration of 'g_pinger' was here<br>
 #define pinger() g_pinger(globals)<br>
                  ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1014:3: note: in expansion of macro 'pinger'<br>
   pinger();  /* send the first ping */<br>
   ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c: In function 'g_pinger':<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1206:4: warning: implicit declaration of function 'bcopy' [-Wimplicit-function-declaration]<br>
    bcopy((void *)&tv32,<br>
    ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1206:4: warning: incompatible implicit declaration of built-in function 'bcopy' [enabled by default]<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c: At top level:<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1252:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]<br>
 g_pr_pack(buf, cc, from, tv, globals)<br>
 ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1252:1: warning: conflicting types for 'g_pr_pack' [enabled by default]<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1252:1: error: static declaration of 'g_pr_pack' follows non-static declaration<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:356:37: note: previous implicit declaration of 'g_pr_pack' was here<br>
 #define pr_pack(_a1, _a2, _a3, _a4) g_pr_pack(_a1, _a2, _a3, _a4, globals)<br>
                                     ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1096:4: note: in expansion of macro 'pr_pack'<br>
    pr_pack((char *)packet_, cc, &from, tv);<br>
    ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c: In function 'g_pr_pack':<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1353:6: warning: implicit declaration of function 'g_pr_addr' [-Wimplicit-function-declaration]<br>
      pr_addr(*(struct in_addr *)&(icp->icmp_mask)));<br>
      ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1353:6: warning: nested extern declaration of 'g_pr_addr' [-Wnested-externs]<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1353:23: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=]<br>
      pr_addr(*(struct in_addr *)&(icp->icmp_mask)));<br>
                       ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:353:32: note: in definition of macro 'pr_addr'<br>
 #define pr_addr(_a1) g_pr_addr(_a1, globals)<br>
                                ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1353:23: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=]<br>
      pr_addr(*(struct in_addr *)&(icp->icmp_mask)));<br>
                       ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:353:32: note: in definition of macro 'pr_addr'<br>
 #define pr_addr(_a1) g_pr_addr(_a1, globals)<br>
                                ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1423:4: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]<br>
    pr_addr(from->sin_addr));<br>
    ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1423:4: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1447:6: warning: incompatible implicit declaration of built-in function 'bcopy' [enabled by default]<br>
      bcopy(++cp, &ina.s_addr, INADDR_LEN);<br>
      ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1452:12: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=]<br>
            pr_addr(ina));<br>
            ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1452:12: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=]<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1476:8: warning: implicit declaration of function 'bcmp' [-Wimplicit-function-declaration]<br>
        && !bcmp((char *)cp, old_rr, i)<br>
        ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1484:4: warning: incompatible implicit declaration of built-in function 'bcopy' [enabled by default]<br>
    bcopy((char *)cp, old_rr, i);<br>
    ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1494:12: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=]<br>
            pr_addr(ina));<br>
            ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1494:12: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=]<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c: At top level:<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1615:1: error: redefinition of 'g_finish'<br>
 g_finish(globals)<br>
 ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:348:13: note: previous definition of 'g_finish' was here<br>
 static void g_finish(rtems_shell_globals_t* globals) __dead2;<br>
             ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1862:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]<br>
 g_pr_addr(ina, globals)<br>
 ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1862:1: error: conflicting types for 'g_pr_addr'<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:353:22: note: previous implicit declaration of 'g_pr_addr' was here<br>
 #define pr_addr(_a1) g_pr_addr(_a1, globals)<br>
                      ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1353:6: note: in expansion of macro 'pr_addr'<br>
      pr_addr(*(struct in_addr *)&(icp->icmp_mask)));<br>
      ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1956:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]<br>
 g_usage(globals)<br>
 ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1956:1: warning: conflicting types for 'g_usage' [enabled by default]<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1956:1: error: static declaration of 'g_usage' follows non-static declaration<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:359:17: note: previous implicit declaration of 'g_usage' was here<br>
 #define usage() g_usage(globals)<br>
                 ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:704:4: note: in expansion of macro 'usage'<br>
    usage();<br>
    ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1979:5: error: 'rtems_shell_main_ping' undeclared here (not in a function)<br>
     rtems_shell_main_ping,         /* command */<br>
     ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:348:13: warning: 'g_finish' defined but not used [-Wunused-function]<br>
 static void g_finish(rtems_shell_globals_t* globals) __dead2;<br>
             ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1177:1: warning: 'g_pinger' defined but not used [-Wunused-function]<br>
 g_pinger(globals)<br>
 ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1252:1: warning: 'g_pr_pack' defined but not used [-Wunused-function]<br>
 g_pr_pack(buf, cc, from, tv, globals)<br>
 ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1615:1: warning: 'g_finish' defined but not used [-Wunused-function]<br>
 g_finish(globals)<br>
 ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1862:1: warning: 'g_pr_addr' defined but not used [-Wunused-function]<br>
 g_pr_addr(ina, globals)<br>
 ^<br>
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1956:1: warning: 'g_usage' defined but not used [-Wunused-function]<br>
 g_usage(globals)<br>
 ^<br>
gmake[5]: *** [shell/libshell_a-main_ping.o] Error 1<br>
gmake[5]: Leaving directory `/home/bandrews/Development/icecube/powerpc-rtems4.11/c/icecube/cpukit/libmisc'<br>
gmake[4]: *** [all-recursive] Error 1<br>
gmake[4]: Leaving directory `/home/bandrews/Development/icecube/powerpc-rtems4.11/c/icecube/cpukit'<br>
gmake[3]: *** [all] Error 2<br>
gmake[3]: Leaving directory `/home/bandrews/Development/icecube/powerpc-rtems4.11/c/icecube/cpukit'<br>
gmake[2]: *** [all-recursive] Error 1<br>
gmake[2]: Leaving directory `/home/bandrews/Development/icecube/powerpc-rtems4.11/c/icecube'<br>
gmake[1]: *** [all-recursive] Error 1<br>
gmake[1]: Leaving directory `/home/bandrews/Development/icecube/powerpc-rtems4.11/c'<br>
make: *** [all-recursive] Error 1<br>
<br>
</div>
<br><br><span style="font-family:Arial; Font-size:10.0pt"> <hr width="100%"> This email has been scanned for email related threats and delivered safely by Mimecast.<br> For more information please visit <a href="http://www.mimecast.com">http://www.mimecast.com</a> <hr width="100%"> </span></body>
</html>