<P>Hi All,</P>
<P> I configured RTEMS in my linux (RedHat 7.2) installation. It was successfully build.The target which I opted is i686-pc-linux. I created a sample program which uses BSD sockets. While making the program, it produced the following error : </P>
<P> </P><FONT size=2>
<P># make</P>
<P>test -d o-optimize || mkdir o-optimize</P>
<P>gcc --pipe -B/opt/rtems/posix/lib/ -specs bsp_specs -qrtems -g -Wall -g -D_BSD_SOURCE -c -o o-optimize/init.o init.c</P>
<P>In file included from /usr/include/netinet/in.h:23,</P>
<P>from /usr/include/arpa/inet.h:23,</P>
<P>from init.c:33:</P>
<P>/opt/rtems/posix/lib/include/stdint.h:16: warning: redefinition of `int8_t'</P>
<P>/usr/include/sys/types.h:190: warning: `int8_t' previously declared here</P>
<P>/opt/rtems/posix/lib/include/stdint.h:17: warning: redefinition of `int16_t'</P>
<P>/usr/include/sys/types.h:191: warning: `int16_t' previously declared here</P>
<P>/opt/rtems/posix/lib/include/stdint.h:18: warning: redefinition of `int32_t'</P>
<P>/usr/include/sys/types.h:192: warning: `int32_t' previously declared here</P>
<P>/opt/rtems/posix/lib/include/stdint.h:19: conflicting types for `int64_t'</P>
<P>/usr/include/sys/types.h:193: previous declaration of `int64_t'</P>
<P>make: *** [o-optimize/init.o] Error 1</P>
<P> </P>
<P>The configure command I used is as follows :</P><FONT size=2>
<P># ../rtems-ss-20021007/configure --target=i686-pc-linux --disable-itron --enable-tests --enable-cxx --enable-networking --enable-tcpip --enable-posix</P>
<P> </P>
<P>The error was produced only when I included either of the following headers :</P>
<P> </P>
<P>#include <netdb.h></P>
<P>#include<netinet/in.h></P>
<P>#include<arpa/inet.h></P>
<P>I think some headers in the RTEMS library is having similar declarations which conflicts the one declared in the headers of linux library.</P>
<P>Expecting your comments on the same.</P>
<P>Thanks in Advance,</P>
<P>Reigs</P></FONT></FONT><p><br><hr size=1>Do you Yahoo!?<br>
<a href="http://rd.yahoo.com/careers/mailsig/*http://www.hotjobs.com ">HotJobs</a> - Search new jobs daily now