Hi,
I recently upgraded to glibc 2.2, and when I tried to compile
ethereal, I got the following error:
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I./wiretap -I/usr/local/include -I/usr/include/pcap -Wall -g -O2 -I. -I./wiretap -I/usr/local/include -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/include/pcap -c inet_pton.c
In file included from inet_pton.c:56:
inet_v6defs.h:33: conflicting types for `inet_aton'
/usr/include/arpa/inet.h:67: previous declaration of `inet_aton'
inet_aton is defined in the inet.h file with glibc 2.2.
The attached patch is required to get things to compile.
--
Craig Rodrigues
http://www.gis.net/~craigr
rodrigc@xxxxxxxxxxxx
*** inet_pton.c.old Tue Jul 11 22:01:50 2000
--- inet_pton.c Tue Jul 11 22:03:19 2000
***************
*** 53,59 ****
--- 53,61 ----
#include <string.h>
#include <errno.h>
+ #ifdef NEED_INET_V6DEFS_H
#include "inet_v6defs.h"
+ #endif
#ifndef NS_INADDRSZ
#define NS_INADDRSZ 4