On Sat, 19 Sep 1998, Florit wrote:

I have problems like this on RedHAt 5.1. I want to say aboute /usr/include
only one - in russian - bardak! (this is like disorder, confusion
(besporyadok) but more realy. This is aboute "WHY?"...

You must check every string and think.. For example for:

> make depend
> 
> cc -E -M *.c > .depend
> In file included from diald.h:45,
>                  from buffer.c:13:
> /usr/include/linux/in.h:73: warning: `IN_CLASSA' redefined
> /usr/include/netinet/in.h:102: warning: this is the location of the

Change in diald.h from /usr/include/linux/in.h to
/usr/include/netinet/in.h This is true for evary warning aboute
redefinition.. 


> In file included from /usr/include/linux/tcp.h:21,
>                  from diald.h:39,
>                  from diald.c:28:
> /usr/include/asm/byteorder.h:22: conflicting types for `ntohl'
> /usr/include/netinet/in.h:198: previous declaration of `ntohl'

Aboute this and other problems - I can't say anything - I have'nt them in
RedHat 5.1, but you must see this files and may be you must comment
including /usr/include/asm/byteorder.h in diald.h.. I am not experience in
C-programing but I can't understand why same varibles are included in two
or more h-files.

But anyway this is ONLY warnings, real error is:

> 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

In diald.h author used var daemon and new versions of the 
/usr/include/unistd.h have func with same name! Search and find any
refrence to "var daemon" in diald source and rename it to other name (may
be daemon1 or...). Be careful - some words "daemon" in body of the program
is not refrence to "var daemon".

Dmitriy.

P.S. There are some patches to fix this problem - one month before I asked
aboute this problem like you in this list and people send me it. But this
is not answer to "WHY?" question... :-)


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

Reply via email to