Problems compiling network code

Problems compiling network code

Post by Jim Harki » Tue, 08 Dec 1998 04:00:00

System is i386, Redhat 5.1, kernel 2.0.x, not sure of the networking version
(gotta run Win95 to get on the net).

I'm having trouble building networking code (dhcpcd 0.7, to be exact).  It
seems as if /usr/include/socketbits.h collides with /usr/include/linux/if.h,
and a couple of other files collide.  By collision I mean both define
stuf like IFF_UP and sockaddr.  Socketbits belongs to glibc-devel-2.0.70-13,
and socket.h (and presumably if.h) to kernel-headers_2.0.34-0.6.

I'm good enough at C that I can fix the collisions myself and make it work,
but it seems there is a more fundamental problem here.  Is this a known


vi vi vi - The Number of the Beast

San Diego, CA.


1. Unix network programming; compiling source code problem

Hi! I am new to unix network programming. I am currently learning
from the book "Unix Network Programming; networking APIs: Sockets and XTI"
I followed the instruction on README. After I've compiled by command
"./configure", then try to compile the subdirectories, it gives an error
like follows:

for example,

gcc -g -02 -D_REENTRANT -Wall -c -o daytimetcpcli.o daytimetcpcli.c
In file included from daytimetcpcli.c:1:
unp.h:144:redefinition of 'struct in_pktinfo'
make: *** [daytimetcpcli.0] Error 1

I don't know why there's error and couldn't find any clue. I compiled it on
linux redhat 6.2 and the source code was downloaded from
source file: unpv12e.tar.gz

Anyone can help, thank you!

2. Error 501: Method Not Implemented. Please Help.

3. dynamic libs

4. compile code w/o networking

5. how to change passwd's in batch on HPUX ??

6. difficulty compiling the Unix Network Programming libs and code

7. Problems whith irq

8. Question on coding style in networking code

9. Compile options for IBM (compiling Apache Source Code)

10. Problem compiling C code from Iris Indigo

11. GCC 2.6.3 and problems compiling c++ code (iostream.h).

12. Problems compiling gtk based code.