I've had similar problems and I think they are due to the
glibc-devel-2.0.7-x that comes w/rh5.2. I haven't yet been brave
enough to remove glibc-devel but I've been tempted a few times.

Is there a standard way of fixing up the /usr/include directories when
you've installed a new kernel?

John Abbott wrote:
> 
> I have a pentium II running redhat and I can seem to get dial d to
> compile.  When I do the make depend I get:
> 
> /usr/include/linux/in.h:115: warning: `INADDR_ALLHOSTS_GROUP' redefined
> /usr/include/netinet/in.h:141: warning: this is the location of the
> previous definition

The netinet stuff comes from glibc-devel but things should really (I
think) be using the stuff in the linux dir which could be for some
kernel other than 2.0.36 or whatever it was that 5.2 shipped with.

In my case I'm running 2.2.2 (or 2.2.3?) and I've had lots of problems
with things  coming from somewhere in /usr/include that are really
defined in the kernel sources.

> /usr/include/linux/in.h:116: warning: `INADDR_MAX_LOCAL_GROUP' redefined
> /usr/include/netinet/in.h:143: warning: this is the location of the
> previous definition
> [root@taz diald-0.16]#
> 
> then when I do the make:
> 
> /usr/include/linux/in.h:56: redefinition of `struct sockaddr_in'
> In file included from diald.c:28:
> diald.h:227: `daemon' redeclared as different kind of symbol
> /usr/include/unistd.h:725: previous declaration of `daemon'
> make: *** [diald.o] Error 1

This last one might be due to compiling with/without ansi switches to
the compiler. I think it needs to be ansi (not K&R) for the proper
unistd.h definitions to be found.

These aren't really solutions but simply descriptions of what I think
the problems are caused by, and I could be wrong too. :) Hopefully
they  help!
-- 
Cheers,
Derek
_____________________________________________________________________
Derek Scherger                         Echologic Software Corporation
mailto:[EMAIL PROTECTED]                   http://www.echologic.com

-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]

Reply via email to