Bind 8.2.2P5 Compiling problems

Robert Gahl bgahl at bawcsa.org
Wed Feb 16 00:51:26 UTC 2000


At 01:01 AM 2/16/00 +0100, Rahul Parasnis wrote:

>Is there anybody who can answer to my problem  !!
>I have given up now with bind8 Version , but still a hope that somebody will
>answer me.

Having had to compile stuff under HPUX that generally compiles without 
error on a host of other machines and Unix's, but never having had to 
tackle BIND 8.2.2P5, I can only offer the following general information:

First, you need to know about the following link:

         http://hpux.cs.utah.edu/

and then from here go to one that is geographically closer. Most of the 
stuff I would have problems compiling, I would usually find a resolution 
(or a package) here.

Failing that, you could try and contact someone at the HP Porting Centre 
and ask them for assistance.

The long and short of this is that this is an HPUX problem, and I had more 
than my share of them when I worked on HPUX equipment. The lack of help you 
are receiving on this issue may reflect that (a) people who do the HPUX 
work aren't on this list, or (b) they are waiting for someone to solve it 
since they cannot. It doesn't mean people haven't seen your email.

The other resolution would be to stop trying to use gcc on HPUX and try to 
compile the code using HP's compilers. I never had a whole lot of luck 
using gcc on HPUX because of the wild and crazy dependencies that only HP 
compilers seemed to be able to actually resolve. Yes, I know gcc is free, 
but the "compiler" doesn't supply all the host of .h files you usually need 
to complete a compile.

If you are pissed about the general situation of HPUX and lack of the 
ability to compile programs that compile with little or no work on other 
Unix's, then contact your HP representative and give them an ear full. It 
didn't work for me, but it might for you. However, if you don't at least 
try it under HPUX compilers, they probably won't listen. Being able to 
compile on HPUX is a "value add" proposition.

Sign me a disgruntled, and subsequently retired, HP user.

>I have been struggling compiling the bind8.2.2P5 on hpux 10.20
>I have downloaded bind-src_tar
>
>I am compiling this source as non root user just giving write permission
>temporarily to /usr/bin,/usr/sbin/
>/usr/lib/, /etc/ directories.
>Afterwards i did try compiling from root user as well.
>I have gcc -v
>Reading specs from /usr/local/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.95.2/specs
>gcc version 2.95.2 19991024 (release),
>bison 1.28
>flex-2.5.4.
>GNU Make 3.77
>
>First Step
>I copy src/port/hpux10/Makefile.gcc src/port/hpux10/Makefile.set as i 
>going to
>use gcc
>
>/bind8.2.2P5/src/make stdlinks  - no problem
>Second Step
>  I am confused here now Where should I type this make command ? Ofcourse I
>tried both with no success
>the problem is somwhere else, but I would like to know where to execute this
>'make' command.
>
>/var/obj/bind/SRC/make clean  or /bind8.2.2P5/src/make clean
>
>/var/obj/bind/SRC/make all  or    /bind8.2.2P5/src/make all   ?
>
>/var/obj/bind/SRC/make install
>I will give some part of errors , Please tell me what is the Problem
>
>make[2]: Entering directory `/var/obj/bind/lib/resolv'
>if test ! -d threaded ; then mkdir threaded ; fi
>gcc -ansi -fpic  -O -I../../port/hpux10/include -I../../include  -D_REENTRANT
>-c herror.c \
>  -o threaded/herror.o
>In file included from herror.c:63:
>../../include/arpa/nameser.h:117: warning: no semicolon at end of struct or
>union
>../../include/arpa/nameser.h:117: parse error before `*'
>../../include/arpa/nameser.h:119: warning: data definition has no type or
>storage class
>../../include/arpa/nameser.h:122: parse error before `*'
>.
>.
>.
>../../include/arpa/nameser.h:118: previous declaration of `_flags'
>../../include/resolv.h:172: warning: data definition has no type or storage
>class
>../../include/resolv.h:174: parse error before `}'
>../../include/resolv.h:256: parse error before `*'
>.
>.
>/var/obj/bind/lib/irs
>make[2]: Entering directory `/var/obj/bind/lib/irs'
>if test ! -d threaded ; then mkdir threaded ; fi
>(gcc -ansi -fpic  -O -I../../port/hpux10/include 
>-I../../include  -D_REENTRANT
>-c dns.c \
>  -o threaded/dns.o ; \
>  : ld -x -r threaded/dns.o && \
>  : mv a.out threaded/dns.o)
>In file included from dns.c:34:
>../../include/arpa/nameser.h:117: warning: no semicolon at end of struct or
>union
>../../include/arpa/nameser.h:117: parse error before `*'
>.
>.
>dns.c: In function `dns_res_get':
>dns.c:112: dereferencing pointer to incomplete type
>dns.c:115: dereferencing pointer to incomplete type
>dns.c:119: dereferencing pointer to incomplete type
>dns.c: At top level:
>../../include/resolv.h:155: storage size of `nsaddr_list' isn't known
>gcc -ansi -fpic  -O -I../../port/hpux10/include -I../../include  -c dns.c
>In file included from dns.c:34:
>../../include/arpa/nameser.h:117: warning: no semicolon at end of struct or
>union
>../../include/arpa/nameser.h:117: parse error before `*'
>.
>.
>base64.c:158: `target' undeclared (first use in this function)
>base64.c: In function `__b64_pton':
>base64.c:203: parse error before `u_char'
>base64.c:228: subscripted value is neither array nor pointer
>base64.c:236: subscripted value is neither array nor pointer
>.
>.
>daemon.c:72: `STDOUT_FILENO' undeclared (first use in this function)
>daemon.c:73: `STDERR_FILENO' undeclared (first use in this function)
>make[2]: *** [daemon.o] Error 1
>make[2]: Leaving directory `/var/obj/bind/lib/bsd'
>/var/obj/bind/lib/inet
>make[2]: Entering directory `/var/obj/bind/lib/inet'
>if test ! -d threaded ; then mkdir threaded ; fi
>gcc -ansi -fpic  -O -I../../port/hpux10/include -I../../include  -D_REENTRANT
>-c nsap_addr.c \
>  -o threaded/nsap_addr.o
>In file included from nsap_addr.c:29:
>../../include/arpa/inet.h:93: warning: `struct in_addr' declared inside
>parameter list
>../../include/arpa/inet.h:93: warning: its scope is only this definition or
>declaration, which is probably not what you want.
>.
>.
>../../include/arpa/inet.h:106: warning: data definition has no type or 
>storage
>class
>../../include/arpa/inet.h:107: parse error before `*'
>addr.c: In function `hexstring':
>addr.c:52: parse error before `u_char'
>addr.c:56: `u_char' undeclared (first use in this function)
>addr.c:56: (Each undeclared identifier is reported only once
>addr.c:56: for each function it appears in.)
>addr.c:56: `ptr' undeclared (first use in this function)
>addr.c:56: `end' undeclared (first use in this function)
>addr.c:57: `u_int' undeclared (first use in this function)
>addr.c:57: parse error before `val'
>addr.c:60: `val' undeclared (first use in this function)
>addr.c:61: `digits' undeclared (first use in this function)
>addr.c:62: warning: passing arg 1 of `memset' makes pointer from integer
>without a cast
>addr.c:63: `ch' undeclared (first use in this function)
>addr.c: In function `display':
>addr.c:106: parse error before `*'
>addr.c:106: declaration for parameter `u_char' but no such parameter
>addr.c:121: subscripted value is neither array nor pointer
>addr.c:123: warning: passing arg 2 of `__inet_ntop' makes pointer from 
>integer
>without a cast
>addr.c: In function `main':
>addr.c:131: `u_char' undeclared (first use in this function)
>addr.c:131: parse error before `addr'
>addr.c:135: `AF_INET' undeclared (first use in this function)
>addr.c:149: `optarg' undeclared (first use in this function)
>addr.c:149: `addr' undeclared (first use in this function)
>make[2]: *** [addr.o] Error 1
>make[2]: Leaving directory `/var/obj/bind/bin/addr'
>make[1]: *** [addr] Error 2
>make[1]: Leaving directory `/var/obj/bind/bin'
>make: *** [all] Error 2
>
>My Question is what is wrong with my parser ?

===
Bob Gahl Bicycle (Ryan Vanguard) Mobile  ||     @
     ARPA/Internet: bgahl at bawcsa.org      ||  !_ \
    URL: http://www.bawcsa.org/bgahl/     ||  (*)-~--+--(*)
"Sahn joong moe low ful how jee yah ching wong" - "When the
mountain has no tigers, the monkey will also declare himself
king." Chinese Proverb




More information about the bind-users mailing list