bind 8.2.2p5 Won't Compile under Solaris2.5.1

Kevin Darcy kcd at daimlerchrysler.com
Wed Nov 24 19:16:22 UTC 1999


Martin McCormick wrote:

>         It did compile correctly under Solaris2.5, but on a 2.5.1
> system the news is not so good.  The "make depend" seems to work, but
> the "make all" runs for a while and then the following happens:
>
>  : ld -x -r threaded/nis_ho.o && \
>  : mv a.out threaded/nis_ho.o)
> nis_ho.c: In function `ho_byaddr':
> nis_ho.c:212: `NETDB_INTERNAL' undeclared (first use this function)
> nis_ho.c:212: (Each undeclared identifier is reported only once
> nis_ho.c:212: for each function it appears in.)
> nis_ho.c: In function `makehostent':
> nis_ho.c:363: `NETDB_SUCCESS' undeclared (first use this function)
> gcc  -g -O2 -I../../port/solaris/include -I../../include  -c nis_ho.c
> nis_ho.c: In function `ho_byaddr':
> nis_ho.c:212: `NETDB_INTERNAL' undeclared (first use this function)
> nis_ho.c:212: (Each undeclared identifier is reported only once
> nis_ho.c:212: for each function it appears in.)
> nis_ho.c: In function `makehostent':
> nis_ho.c:363: `NETDB_SUCCESS' undeclared (first use this function)
> *** Error code 1
> make: Fatal error: Command failed for target `nis_ho.o'
> Current working directory /tmp/src/lib/irs
> *** Error code 1
> make: Fatal error: Command failed for target `all'
> Current working directory /tmp/src/lib
> *** Error code 1
> make: Fatal error: Command failed for target `all'

I just built 8.2.2-p5 on a Solaris 2.5.1 box without any problems.

Offhand, it looks like your Makefile in src/lib/irs is hosed.
NETDB_INTERNAL (and the other NETDB_* #define's) is defined in
src/include/netdb.h, and the Makefile in the src/lib/irs directory
should be adding a "-I../../include" to the compiler's command-line so
that nis_ho.c can find the right definitions. Apparently that's not
happening for some reason.

Or maybe there's something just fundamentally hosed with your
distribution. I'd consider grabbing a fresh copy and starting over.


- Kevin



More information about the bind-users mailing list