Build Error of BIND 8.2 with SunComplier(DHAS_INET6_STRUCTS)
Mark_Andrews at isc.org
Mark_Andrews at isc.org
Wed May 15 23:36:01 UTC 2002
>
> Hello,
>
> I was trying to compile BIND 8.2 distribution on Solaris 8 with
> SUNWspro(Forte6-2). I had some problem but I was able to fix the same.
Why are you doing anything with such a old release?
Note it also has well known security flaws.
http://www.isc.org/products/BIND/bind-security.html
Mark
>
> Here are the details.
>
> 1. According to INSTALL document follow this
>
> We've tested with Sun's compilers, yacc, and lex, and also
> with gcc, byacc, and flex. By default, the build will try
> to use gcc. If you want to use the Sun compilers, simply
> copy "port/solaris/Makefile.set.sun" to
> "port/solaris/Makefile.set". To go back to using gcc, copy
> "port/solaris/Makefile.set.gcc" to "port/solaris/Makefile.set".
>
> 2. make sure you havbe Sun 'cc' in your path.
> Do a 'make depend' and then try to do 'make' mostlikely you will get
> this error.
> ------------------ START OF ERROR MESG
> ------------------------------------
> cc -g -O -I../../port/solaris/include -I../../include -D_REENTRANT
> -c herror.c
> \
> -o threaded/herror.o
> "../../port/solaris/include/port_after.h", line 60: (struct) tag
> redeclared: in6
> _addr
> "../../port/solaris/include/port_after.h", line 61: warning: syntax
> requires ";"
> after last struct/union member
> "../../port/solaris/include/port_after.h", line 61: syntax error
> before or at: .
> "../../port/solaris/include/port_after.h", line 61: cannot recover
> from previous
> errors
> cc: acomp failed for herror.c
> *** Error code 2
> make: Fatal error: Command failed for target `herror.o'
> Current working directory /local/santm/src/lib/resolv
> *** Error code 1
> make: Fatal error: Command failed for target `all'
> Current working directory /local/santm/src/lib
> *** Error code 1
> make: Fatal error: Command failed for target `all'
> ------------------------------- END OFERROR MESG
> ---------------------------
>
> 3. The fix is to modify all the Makefiles of 'lib','bin' and other s
> subdirectories where you have 'CFLAGS' to this
>
> CFLAGS= ${CDEBUG} -I${PORTINCL} -I${INCL} -DHAS_INET6_STRUCTS
>
> This will fix your problem. And after that I had no problem in
> compiling BIND.
>
> Thanks and Regards,
>
> Santanu Misra
> Reuters America Inc. http://www.reuters.com
> santanu.misra at reuters.com
> 1-650-461-3110
> 3375 Hillview Avenue
> Palo Alto , CA , 94304
>
--
Mark Andrews, Internet Software Consortium
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: Mark.Andrews at isc.org
More information about the bind-users
mailing list