[ntp:questions] Re: Redefinition Error with NTP-4.2.0 on OpenBSD

Danny Mayer mayer at gis.net
Tue Oct 28 13:10:05 UTC 2003


roy at suespammers.org (Roy) wrote in message news:<33fd22f7.0310211926.4994c974 at posting.google.com>...
> I'm trying to compile NTP-4.2.0 on OpenBSD 3.3.  The make process
> stops almost immediately with redefinition errors.  Here's what it
> looks like:
> 
> source='systime.c' object='systime.o' libtool=no 
> depfile='.deps/systime.Po' tmpdepfile='.deps/systime.TPo'  depmode=gcc
> /bin/sh ../depcomp  gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include
> -I../include   -I/usr/include  -g -O2 -Wall -Wcast-qual
> -Wmissing-prototypes -Wpointer-arith -Wshadow -Wstrict-prototypes -c
> `test -f 'systime.c' || echo './'`systime.c
> In file included from ../include/ntp_fp.h:10,
>                  from systime.c:8:
> ../include/ntp_rfc2553.h:177: redefinition of `struct
> sockaddr_storage'
> In file included from /usr/include/netinet/in.h:506,
>                  from ../include/ntp_fp.h:11,
>                  from systime.c:8:
> /usr/include/netinet6/in6.h:120: redefinition of `struct in6_addr'
> /usr/include/netinet6/in6.h:143: redefinition of `struct sockaddr_in6'
> *** Error code 1
> 
> Stop in /home/roy/ntp-4.2.0/libntp.
> *** Error code 1
> 
> Stop in /home/roy/ntp-4.2.0 (line 321 of Makefile).
> *** Error code 1
> 
> Stop in /home/roy/ntp-4.2.0 (line 260 of Makefile).
> 
> I was able to compile NTP-4.1.2 with only minor changes, but this one
> is beyond my current skills.  Any suggestions?
> 
> TIA,
> 
> 
> roy

It sounds like it didn't recognize that it has definitions for IPv6 since
that header file ntp_rfc2553.h is only needed if IPv6 definitions are not
found.

Danny



More information about the questions mailing list