Problem: Making BSD socket application (rtems-ss-20021007)

Reigu R reiguz at yahoo.com
Wed Oct 30 11:16:51 UTC 2002


Hi All,

 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 : 

 

# make

test -d o-optimize || mkdir o-optimize

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

In file included from /usr/include/netinet/in.h:23,

from /usr/include/arpa/inet.h:23,

from init.c:33:

/opt/rtems/posix/lib/include/stdint.h:16: warning: redefinition of `int8_t'

/usr/include/sys/types.h:190: warning: `int8_t' previously declared here

/opt/rtems/posix/lib/include/stdint.h:17: warning: redefinition of `int16_t'

/usr/include/sys/types.h:191: warning: `int16_t' previously declared here

/opt/rtems/posix/lib/include/stdint.h:18: warning: redefinition of `int32_t'

/usr/include/sys/types.h:192: warning: `int32_t' previously declared here

/opt/rtems/posix/lib/include/stdint.h:19: conflicting types for `int64_t'

/usr/include/sys/types.h:193: previous declaration of `int64_t'

make: *** [o-optimize/init.o] Error 1

 

The configure command I used is as follows :

# ../rtems-ss-20021007/configure --target=i686-pc-linux --disable-itron --enable-tests --enable-cxx --enable-networking --enable-tcpip --enable-posix

 

The error was produced only when I included either of the following headers :

 

#include <netdb.h>

#include<netinet/in.h>

#include<arpa/inet.h>

I think some headers in the RTEMS library is having similar declarations which conflicts the one declared in the headers of linux library.

Expecting your comments on the same.

Thanks in Advance,

Reigs



---------------------------------
Do you Yahoo!?
HotJobs - Search new jobs daily now
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20021030/cba37f96/attachment.html>


More information about the users mailing list