threadglobalconstruction.c compile error when POSIX is disabled

Joel Sherrill joel.sherrill at oarcorp.com
Wed Oct 15 16:13:58 UTC 2014


Hi

Tripped across this when POSIX is disabled

sparc-rtems4.11-gcc --pipe -DHAVE_CONFIG_H   -I..
-I../../cpukit/../../../sis/lib/include   -mcpu=cypress -O2 -g
-ffunction-sections -fdata-sections -Wall -Wmissing-prototypes
-Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -MT
src/libscore_a-threadglobalconstruction.o -MD -MP -MF
src/.deps/libscore_a-threadglobalconstruction.Tpo -c -o
src/libscore_a-threadglobalconstruction.o `test -f
'src/threadglobalconstruction.c' || echo
'../../../../../../rtems/c/src/../../cpukit/score/'`src/threadglobalconstruction.c
In file included from
../../../../../../rtems/c/src/../../cpukit/score/src/threadglobalconstruction.c:25:0:
../../cpukit/../../../sis/lib/include/rtems/posix/config.h:140:3: error:
conflicting types for 'posix_api_configuration_table'
 } posix_api_configuration_table;
   ^
In file included from
../../cpukit/../../../sis/lib/include/rtems/score/threadimpl.h:33:0,
                 from
../../../../../../rtems/c/src/../../cpukit/score/src/threadglobalconstruction.c:22:
../../cpukit/../../../sis/lib/include/rtems/config.h:54:15: note:
previous declaration of 'posix_api_configuration_table' was here
 typedef void *posix_api_configuration_table;
               ^
gmake[6]: *** [src/libscore_a-threadglobalconstruction.o] Error 1
gmake[6]: Leaving directory
`/home/joel/rtems-4.11-work/b-sis/sparc-rtems4.11/c/sis/cpukit/score'

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985



More information about the devel mailing list