<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>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 class=""><br>
<br>
On October 16, 2014 1:05:54 AM CDT, Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">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 class="HOEnZb"><font color="#888888"><br>
--joel<br>
</font></span><div class="HOEnZb"><div class="h5"><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 class="HOEnZb"><div class="h5">_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org">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>