[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Conflict type in guile-1.4/libguile/net_db.c
From: |
Martin Grabmueller |
Subject: |
Re: Conflict type in guile-1.4/libguile/net_db.c |
Date: |
Fri, 8 Jun 2001 13:13:39 +0200 (MEST) |
> From: na li <address@hidden>
> Date: Fri, 8 Jun 2001 01:27:51 -0700 (PDT)
>
> Hi, When I tried to compile guile-1.4, I got the following error,
>
> gcc -DHAVE_CONFIG_H -I. -I. -I. -I.. -I./.. -g -O2 -Wall -Wpointer-arith
> -Wmissing-prototypes -c -fPIC -DPIC net_db.c -o .libs/net_db.lo
> net_db.c:78: conflicting types for `inet_aton'
> /usr/include/arpa/inet.h:74: previous declaration of `inet_aton'
> make[1]: *** [net_db.lo] Error 1
> make[1]: Leaving directory `/usr/local/src/guile-1.3.4/libguile'
> make: *** [all-recursive] Error 1
>
> It turned out that inet_aton() was declared as "in_addr_t" in
> /usr/include/arpa/inet.h and "typedef uint32_t in_addr_t;" in
> "/usr/include/netinet/in.h".
>
> But in net_db.c, it was declared as "extern int inet_aton();".
I suppose you're using Red Hat 7.x. This is a known problem and fixed
in CVS Guile.
> I commented out that line and it compiled ok.
That's the correct workaround.
Regards,
'martin