Compile Bind (fwd)

Lynn Zhang lyzhang at umich.edu
Wed Jun 21 18:44:57 UTC 2000



Hello,

My named crashes after I start it. Any help will be appreciated.

I compile bind 8.2.2 patch 5 on a solaris 7 machine runing 64 bit mode.I
used cc to compile,

I got the binary by running " make install"
The following is my Makefile.set
I use SUNWspro-5.0

more Makefile.set 
'CC=cc'
'CDEBUG=-xarch=v9 -xO4'
'DESTLIB=/opt/packages/bind-8.2.2/lib'
'DESTINC=/opt/packages/bind-8.2.2/include'
'DESTBIN=/opt/packages/bind-8.2.2/bin'
'DESTSBIN=/opt/packages/bind-8.2.2/sbin'
'DESTEXEC=/opt/packages/bind-8.2.2/sbin'
'DESTMAN=/opt/packages/bind-8.2.2/share/man'
'DESTHELP=/opt/packages/bind-8.2.2/share/lib'
'DESTETC=/opt/packages/bind-8.2.2/etc'
'DESTRUN=/opt/packages/bind-8.2.2/etc/ndc'
'LDS=:'
'AR=/usr/ccs/bin/ar cru'
'LEX=/usr/ccs/bin/lex'
'YACC=/usr/ccs/bin/yacc -d'
'SYSLIBS=-ll -lnsl -lsocket'
'INSTALL=/usr/ucb/install'
'MANDIR=man'
'MANROFF=man'
'CATEXT=$$N'
'PS=ps -p'
'RANLIB=/usr/ccs/bin/ranlib'
$ 

but after I start the named, the named process disappears right away.
I did these for two days. Any obious reason I did wrong?
I can not find any thing by "ps -ef|grep named"
Next is my log messages.

Jun 20 16:13:55 morse.lsait.lsa.umich.edu
lyzhang at morse.lsait.lsa.umich.edu:/tmp/bind/src/bin/named
Jun 20 16:13:55 morse.lsait.lsa.umich.edu named[21138]: Zone
"0.0.127.in-addr.arpa" (file named.local.rev): No default TTL set using
SOA minimum instead
Jun 20 16:13:55 morse.lsait.lsa.umich.edu named[21138]: Zone "localhost"
(file named.local): No default TTL set using SOA minimum instead
Jun 20 16:13:55 morse.lsait.lsa.umich.edu named[21139]: Ready to answer
queries.



also if I run ./nslookup without any argument, I got  Segmentation Fault
error.

# ./nslookup
*** Can't find server name for address 127.0.0.1: No response from server
Default Server:  shiwala.admin.lsa.umich.edu
Address:  141.211.75.248
Aliases:  248.75.211.141.in-addr.arpa
 
> Segmentation Fault


The only error I saw when I compile the code is,

cc  -xarch=v9 -xO4 -I../../port/solaris/include -I../../include
-D_REENTRANT -c
 ns_parse.c \
 -o threaded/ns_parse.o
"ns_parse.c", line 76: warning: end-of-loop code not reached
"ns_parse.c", line 80: warning: end-of-loop code not reached
"ns_parse.c", line 87: warning: end-of-loop code not reached
"ns_parse.c", line 100: warning: end-of-loop code not reached
"ns_parse.c", line 103: warning: end-of-loop code not reached
"ns_parse.c", line 107: warning: end-of-loop code not reached
"ns_parse.c", line 123: warning: end-of-loop code not reached
"ns_parse.c", line 134: warning: end-of-loop code not reached
"ns_parse.c", line 142: warning: end-of-loop code not reached
"ns_parse.c", line 162: warning: end-of-loop code not reached
"ns_parse.c", line 171: warning: end-of-loop code not reached
"ns_parse.c", line 175: warning: end-of-loop code not reached
: ld -x -r threaded/ns_parse.o -o a.out && \
 : mv a.out threaded/ns_parse.o
cc  -xarch=v9 -xO4 -I../../port/solaris/include -I../../include  -c
ns_parse.c
"ns_parse.c", line 76: warning: end-of-loop code not reached
"ns_parse.c", line 80: warning: end-of-loop code not reached
"ns_parse.c", line 87: warning: end-of-loop code not reached
"ns_parse.c", line 100: warning: end-of-loop code not reached
"ns_parse.c", line 103: warning: end-of-loop code not reached
"ns_parse.c", line 107: warning: end-of-loop code not reached
"ns_parse.c", line 123: warning: end-of-loop code not reached
"ns_parse.c", line 134: warning: end-of-loop code not reached
"ns_parse.c", line 142: warning: end-of-loop code not reached
"ns_parse.c", line 162: warning: end-of-loop code not reached
"ns_parse.c", line 171: warning: end-of-loop code not reached
"ns_parse.c", line 175: warning: end-of-loop code not reached
: ld -x -r ns_parse.o -o a.out && \
 : mv a.out ns_parse.o
if test ! -d threaded ;  then mkdir threaded ; fi
cc  -xarch=v9 -xO4 -I../../port/solaris/include -I../../include
-D_REENTRANT -c
 ns_print.c \
 -o threaded/ns_print.o
: ld -x -r threaded/ns_print.o -o a.out && \
 : mv a.out threaded/ns_print.o


The next is my named.run

# more named.run
Debug level 1
Version = named 8.2.2-P5 Wed Jun 21 10:33:38 EDT 2000
        lyzhang at morse.lsait.lsa.umich.edu:/tmp/bind/src/bin/named
conffile = /usr/local/etc/named.conf
starting.  named 8.2.2-P5 Wed Jun 21 10:33:38 EDT 2000
        lyzhang at morse.lsait.lsa.umich.edu:/tmp/bind/src/bin/named
ns_init(/usr/local/etc/named.conf)
Adding 64 template zones
update_zone_info('0.0.127.in-addr.arpa', 1)
source = named.local.rev
purge_zone(0.0.127.in-addr.arpa,1)
reloading zone
db_load(named.local.rev, 0.0.127.in-addr.arpa, 1, Nil, Normal)
master zone "0.0.127.in-addr.arpa" (IN) loaded (serial 9511301)
zone[1] type 1: '0.0.127.in-addr.arpa' z_time 0, z_refresh 0
update_zone_info('localhost', 1)
source = named.local
purge_zone(localhost,1)
reloading zone
db_load(named.local, localhost, 2, Nil, Normal)
master zone "localhost" (IN) loaded (serial 9408061)
zone[2] type 1: 'localhost' z_time 0, z_refresh 0
update_zone_info('.', 3)
source = named.cache
reloading hint zone
db_load(named.cache, , 3, Nil, Normal)
hint zone "" (IN) loaded (serial 0)
zone[3] type 3: '.' z_time 0, z_refresh 0



Any thing I did wrong?

Thanks a lot !!!!!!!!!!


*	Lynn Zhang             	        *




More information about the bind-users mailing list