Bind 8.2.1 build problem, help.

gundalba gundalba at isi.com
Wed Sep 1 23:24:01 UTC 1999


>

Morgan,

Thanks for your help and sorry for my delayed response.
I finally got back to this and looked into the problem again.
I did not get to the problem of space infront of -I, which seemed like a good
point,
but I did check back with LD_LIB.. path and inspected the math.h file from gcc
lib.
This showed me that gcc lib math.h I had was just a wrapper.
I added /usr/include in the LD_.. path and added math.h as well as
floatingpoint.h and
sys/ieeefp.h which was needed by math.h as I had "core OS" installation.
This resolved all the problem and I am a happy man now!   ;)

Thank you.

Troy

>
> Subject: Re: Bind 8.2.1 build problem, help.
> Date: Sat, 28 Aug 1999 13:03:28 -0500
> From: Morgan Sarges <blip at actioni.net>
> Organization: Action Internet
> To: gundalba at home.com
> CC: comp-protocols-dns-bind at uunet.uu.net
> References: <37C71C6D.8EE613F1 at isi.com>
>
> gundalba wrote:
>
> > I am trying to build bind 8.2.1 from Sun U1 with Sol 2.6 - core
> > installation.
> > For build, I got GNU gcc, bison, and flex installed following the README
> > suggestion.
> >
> > Following make file settings were set with yacc only so setting change
> > to bison was
> > made;
> >
> > ~src/port/solaris/Makefile.set
> > ~src/port/solaris/Makefile.set.gcc
> >
> > Also ~src/bin/named/Makefile contained names for yacc only which changed
> > to
> > proper bison generated file names;
> >
> > <        mv y.tab.c ns_parser.c
> > <        mv y.tab.h ns_parser.h
> > ---
> > >        mv ns_parser.tab.c ns_parser.c
> > >        mv ns_parser.tab.h ns_parser.h
> >
> > Even after all this fix "make depend" still reports a file not found
> > error  for the "math.h"
> > while the file IS sitting there;
> >
> >         :
> >
> > In file included from res_debug.c:113:
> > /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1/include/math.h:5:
> > math.h: No s
> > uch file or directory
> >
> >         :
> >
> > And if I am to ignore and run the make on this, I will see following
> > make error log;
> >
> > # make
> >         :
> >
> > In file included from res_debug.c:113:
> > /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1/include/math.h:5:
> > math.h: No s
> > uch file or directory
> > make[2]: *** [res_debug.o] Error 1
> >
> >         :
>
> Note on the line below:
> gcc -g -O2 .......   then the -I../../port/solaris/include-I../../include
>
> ^^^^^^^^^^^
>
> shouldnt there be a space here,
>
> in front of the next -I flag?
> This could be part of the reason math.h is not getting picked up by the
> preprocessor.
>
> >
> >         :
> >
> > gcc  -g -O2 -I../../port/solaris/include -I../../include
> > -D_PATH_HELPFILE=\"/usr
> > /local/lib/nslookup.help\"  -c commands.c
> > gcc -g -O2   -o nslookup main.o getinfo.o debug.o send.o skip.o list.o
> > subr.o co
> > mmands.o \
> >         ../../lib/libbind.a -ll -lnsl -lsocket
> > Undefined                       first referenced
> >  symbol                             in file
> > __res_nsend                         ../../lib/libbind.a(hesiod.o)
> > __res_ninit                         main.o
> > __loc_ntoa                          ../../lib/libbind.a(ns_print.o)
> > __dn_expand                         getinfo.o
> > __sym_ston                          subr.o
> > __p_secstodate                      ../../lib/libbind.a(ns_print.o)
> > __p_class_syms                      subr.o
> > _res                                list.o
> > _res_opcodes                        debug.o
> > __p_type_syms                       subr.o
> > __res_hnok                          ../../lib/libbind.a(dns_ho.o)
> > __putshort                          send.o
> > __p_rcode                           debug.o
> > __dn_skipname                       getinfo.o
> > __res_dnok                          ../../lib/libbind.a(dns_ho.o)
> > __dn_count_labels                   ../../lib/libbind.a(ns_print.o)
> > __p_time                            debug.o
> > __res_hostalias                     getinfo.o
> > __p_type                            main.o
> > __p_class                           main.o
> > __res_nmkquery                      getinfo.o
> > __res_nquery                        ../../lib/libbind.a(dns_ho.o)
> > herror                              main.o
> > __res_nsearch                       ../../lib/libbind.a(dns_ho.o)
> > __res_nclose                        ../../lib/libbind.a(irs_data.o)
> > __sym_ntop                          subr.o
> > __sym_ntos                          subr.o
> > ld: fatal: Symbol referencing errors. No output written to nslookup
> > make[2]: *** [nslookup] Error 1
> > make[2]: Leaving directory `/export/home/dl/bind_8.2.1/src/bin/nslookup'
> >
> > make[1]: *** [nslookup] Error 2
> > make[1]: Leaving directory `/export/home/dl/bind_8.2.1/src/bin'
> > make: *** [all] Error 2
> > #
> >
>
> For the above block of output, I would suggest looking to see if the
> enviroment variable
> LD_LIBRARY_PATH is set.  If not, set it, and if it is, check what
> directories are being
> looked over for libraries.
>
> Mine looks something like this:
> setenv LD_LIBRARY_PATH
> /lib:/usr/lib:/usr/local/lib:/usr/X11R6/lib:/usr/openwin/lib
>
> or in bash shells:
>
> LD_LIBRARY_PATH="/lib:/usr/lib:/usr/local/lib:/usr/X11R6/lib:/usr/openwin/lib"
>
> ;export LD_LIBRARY_PATH
>
> >
> > Does anyone has some insite on this and help me out?
> >
> > Many thanks in advance,
> >
> > Troy
>
> Hope that helps.
>
> Morgan



More information about the bind-users mailing list