Nikhil Kulkarni <nkulkarn@xxxxxxxxxxxxxxxxxxx> writes: > I'm trying to make libraries for the source code for "Unix Network > Programing" book, on my RH Linux like platform. > > I am getting the following error though: > > In file included from /usr/include/sys/socket.h:36, > from unp.h:14, > from read_fd.c:2: > /usr/include/bits/socket.h:270: two or more data types in declaration of > `__cmsg_nxthdr > > Can someone help me in this? This is almost certainly a problem with your system header files, not with the compiler. The compiler is pointing you right at the problem: line 270 of /usr/include/bits/socket.h; take a look. Make sure your glibc is up to date. Ian