multiple definitions in system makefiles

Frank Sweetser (rasmusin@WPI.EDU)
Sun, 14 Sep 1997 02:23:11 -0400

==> Regarding multiple definitions in system makefiles; Don Fisher <> adds:

dfisher> I was trying to rebuild xosview using the new glibc. I have been
dfisher> running into many problems with include files. For example,

dfisher> includes 1) /usr/include/netinet/in.h (glibc-2.0.5)
dfisher> and 2) /usr/include/linux/if.h (linux 2.1.55).

dfisher> 1) in.h includes /usr/include/sys/socket.h which then includes
dfisher> /usr/include/socketbits.h.

dfisher> 2) if.h includes /usr/include/linux/socket.h.

dfisher> linux/socket.h and socketbits.h both define all of the socket
dfisher> address families and protocol families.

dfisher> How should this type of error be reported/fixed? Is this the
dfisher> correct channel?

This should be reported to whoever maintains those particular programs.
>From what I understand, part of the goals of glibc is to allow programs to
not need to include kernel headers. Try editing the files to remove any
comments to linux/*.h includes.

Frank Sweetser rasmusin at fsweetser at | PGP key available RedHat Linux 2.0.31pre9 i486       | at public servers
Woody: How are you today, Mr. Peterson?
Norm:  Never been better, Woody. ... Just once I'd like to be better.
		-- Cheers, Chambers vs. Malone