Compilation error BIND 8.0.2P5 on Linux Box

Mark.Andrews at nominum.com Mark.Andrews at nominum.com
Tue Oct 24 01:20:55 UTC 2000


	Run make from the src directory or the directory created with
	"make links" / "make stdlinks" (/var/obj/bind) / "make uplinks"
	(src/../linux).  If you are making in the src tree make sure
	you run "make clean" between OS's.

	Mark

	P.S. There is not such thing as BIND 8.0.2P5, there is
	BIND 8.2.2-P5 however.

> Can someone explain why I get this error, when I see nothing wrong with the
> code below? One thing that confuses me is it's going into the bsdos includes
> to compile this, not the linux. My env variable OS is set to linux. But the
> Makefile has it set to bsdos.
> 
> if test ! -d threaded ; then mkdir threaded ; fi
> cc  -g -I../../port/bsdos/include -I../../include   -c tree.c \
>  -o threaded/tree.o
> In file included from tree.c:48:
> ../../port/bsdos/include/port_after.h:64: redefinition of `struct in6_addr'
> ../../port/bsdos/include/port_after.h:65: warning: no semicolon at end of
> struct or union
> ../../port/bsdos/include/port_after.h:65: parse error before `.'
> ../../port/bsdos/include/port_after.h:69: redefinition of `struct
> sockaddr_in6'
> make: *** [tree.o] Error 1
> 
> 
> 
> #ifndef HAS_INET6_STRUCTS
> /* Replace with structure from later rev of O/S if known. */
> struct in6_addr {
>         u_int8_t        s6_addr[16];
> };
> 
> /* Replace with structure from later rev of O/S if known. */
> struct sockaddr_in6 {
> #ifdef  HAVE_SA_LEN
>         u_int8_t        sin6_len;       /* length of this struct */
>         u_int8_t        sin6_family;    /* AF_INET6 */
> #else
>         u_int16_t       sin6_family;    /* AF_INET6 */
> #endif
>         u_int16_t       sin6_port;      /* transport layer port # */
>         u_int32_t       sin6_flowinfo;  /* IPv6 flow information */
>         struct in6_addr sin6_addr;      /* IPv6 address */
>         u_int32_t       sin6_scope_id;  /* set of interfaces for a scope */
> };
> #endif  /* HAS_INET6_STRUCTS */
> #endif  /* ! PORT_AFTER_H */
> 
> Erol Asim
> Computer Science Undergraduate
> University of Western Ontario
> 
> 
> 
> 
--
Mark Andrews, Nominum Inc.
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: Mark.Andrews at nominum.com



More information about the bind-users mailing list