<div dir="ltr">Hi,<div><br></div><div>Sorry for the false alarm, it seems to be due to some rebasing issues.</div><div>I forked a vanilla repo and it builds fine with/without POSIX enabled.</div><div><br></div><div>Regards,</div><div>Hesham</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 29, 2014 at 8:37 PM, Joel Sherrill <span dir="ltr"><<a href="mailto:joel.sherrill@oarcorp.com" target="_blank">joel.sherrill@oarcorp.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><span class="">
    <br>
    <div>On 10/25/2014 8:57 AM, Hesham Moustafa
      wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div>The exact error occurs with or1k port, even with
          --enable-posix and after Sebastian's fix commit. Any idea how
          to fix this?</div>
        <div><br>
        </div>
      </div>
    </blockquote></span>
    Can you give me your configure command?<br>
    <br>
    I tried with POSIX enabled and disabled and built all tests in both<br>
    cases. I don't see it on sparc/sis and this should be a generic
    issue.<span class="HOEnZb"><font color="#888888"><br>
    <br>
    --joel</font></span><div><div class="h5"><br>
    <blockquote type="cite">
      <div dir="ltr">
        <div>Regards,</div>
        <div>Hesham</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Thu, Oct 16, 2014 at 2:04 PM, Joel
          Sherrill <span dir="ltr"><<a href="mailto:joel.sherrill@oarcorp.com" target="_blank">joel.sherrill@oarcorp.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span><br>
              <br>
              On October 16, 2014 1:05:54 AM CDT, Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a>>
              wrote:<br>
              >Hello Joel,<br>
              ><br>
              >sorry, I didn't test this with POSIX disabled.  I
              fixed it like this:<br>
              ><br>
              ><a href="http://git.rtems.org/rtems/commit/?id=cf51c3bfa0bbc50af6e162f22da385c7da113143" target="_blank">http://git.rtems.org/rtems/commit/?id=cf51c3bfa0bbc50af6e162f22da385c7da113143</a><br>
              ><br>
              >Why is there a<br>
              ><br>
              >/*<br>
              >  *  This is kind of kludgy but it allows targets to
              totally ignore the<br>
              >  *  optional APIs like POSIX safely.<br>
              >  */<br>
              ><br>
              >#ifdef RTEMS_POSIX_API<br>
              >#include <rtems/posix/config.h><br>
              >#else<br>
              >typedef void *posix_api_configuration_table;<br>
              >#endif<br>
              ><br>
              >in <rtems/config.h>?<br>
              <br>
            </span>I honestly have no idea. Must have been referenced at
            point.<br>
            <br>
            Thanks for fixing this. My tree has enough going on.<br>
            <span><font color="#888888"><br>
                --joel<br>
              </font></span>
            <div>
              <div><br>
                >On 15/10/14 18:13, Joel Sherrill wrote:<br>
                >> Hi<br>
                >><br>
                >> Tripped across this when POSIX is disabled<br>
                >><br>
                >> sparc-rtems4.11-gcc --pipe -DHAVE_CONFIG_H 
                 -I..<br>
                >> -I../../cpukit/../../../sis/lib/include 
                 -mcpu=cypress -O2 -g<br>
                >> -ffunction-sections -fdata-sections -Wall
                -Wmissing-prototypes<br>
                >> -Wimplicit-function-declaration
                -Wstrict-prototypes -Wnested-externs<br>
                >-MT<br>
                >> src/libscore_a-threadglobalconstruction.o -MD
                -MP -MF<br>
                >>
                src/.deps/libscore_a-threadglobalconstruction.Tpo -c -o<br>
                >> src/libscore_a-threadglobalconstruction.o `test
                -f<br>
                >> 'src/threadglobalconstruction.c' || echo<br>
                >><br>
>'../../../../../../rtems/c/src/../../cpukit/score/'`src/threadglobalconstruction.c<br>
                >> In file included from<br>
                >><br>
>../../../../../../rtems/c/src/../../cpukit/score/src/threadglobalconstruction.c:25:0:<br>
                >>
                ../../cpukit/../../../sis/lib/include/rtems/posix/config.h:140:3:<br>
                >error:<br>
                >> conflicting types for
                'posix_api_configuration_table'<br>
                >>   } posix_api_configuration_table;<br>
                >>     ^<br>
                >> In file included from<br>
                >>
                ../../cpukit/../../../sis/lib/include/rtems/score/threadimpl.h:33:0,<br>
                >>                   from<br>
                >><br>
>../../../../../../rtems/c/src/../../cpukit/score/src/threadglobalconstruction.c:22:<br>
                >>
                ../../cpukit/../../../sis/lib/include/rtems/config.h:54:15:
                note:<br>
                >> previous declaration of
                'posix_api_configuration_table' was here<br>
                >>   typedef void *posix_api_configuration_table;<br>
                >>                 ^<br>
                >> gmake[6]: ***
                [src/libscore_a-threadglobalconstruction.o] Error 1<br>
                >> gmake[6]: Leaving directory<br>
                >>
                `/home/joel/rtems-4.11-work/b-sis/sparc-rtems4.11/c/sis/cpukit/score'<br>
                >><br>
                <br>
              </div>
            </div>
            <div>
              <div>_______________________________________________<br>
                devel mailing list<br>
                <a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
                <a href="http://lists.rtems.org/mailman/listinfo/devel" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
    </div></div><span class=""><pre cols="72">-- 
Joel Sherrill, Ph.D.             Director of Research & Development
<a href="mailto:joel.sherrill@OARcorp.com" target="_blank">joel.sherrill@OARcorp.com</a>        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985</pre>
  </span></div>

</blockquote></div><br></div>