bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Conflict type in guile-1.4/libguile/net_db.c


From: na li
Subject: Conflict type in guile-1.4/libguile/net_db.c
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 commented out that line and it compiled ok.

Michael




reply via email to

[Prev in Thread] Current Thread [Next in Thread]