Bind 8.2.3 Compilation Problem

joydeepche joydeep at bplnet.com
Thu Apr 12 06:33:22 UTC 2001


Hi Mark,

                        I ahve installed ANSIC on my HP-UX server and tried
running make after that. Lot of errors which had come earlier vanished ..yet
came up with some more , the log of which is given below:
# make
/tmp/bind8.2.3/src/port/bsdos
/tmp/bind8.2.3/src/port/bsdos/include
/tmp/bind8.2.3/src/port/bsdos/include/sys
        cc  -g -I../../port/bsdos/include -I../../include -c noop.c
(Bundled) cc: warning 480: The -g option is available only with the C/ANSI C
product; ignored.
         ld -x -r noop.o &&  mv a.out noop.o
ld: (Warning) Ignoring -x option.  -r will override -x
        ar cru ../../lib/libbind.a  noop.o
        ranlib ../../lib/libbind.a

can u suggest something please? is it looking for some file noop.o..if so
it's not there, i have searched fot it.

rgds
joydeep

----- Original Message -----
From: <Mark.Andrews at nominum.com>
To: "joydeepche" <joydeep at bplnet.com>
Sent: Tuesday, April 10, 2001 1:00 PM
Subject: Re: Bind 8.2.3 Compilation Problem


>
> Add -D_INCLUDE_HPUX_SOURCE.  The errors are indicitive of
> u_char and u_long not being typedef'd.  sys/types.h will
> typedef them if _INCLUDE_HPUX_SOURCE is defined.
>
> Mark
>
> >
> > Hey Mark,
> >
> >                        Thanks for your reply. After copying
Makefile.set.gcc
> > to Makefile.set , the ANSI errors didn't generate but several parse and
> > other errors came . The output of make after copying the .set.gcc to
.set is
> > as follows:
> > # make
> > Making /tmp/bind8.2.3/src/.systype
> > Making .settings
> > /tmp/bind8.2.3/src/include
> > /tmp/bind8.2.3/src/include/arpa
> > /tmp/bind8.2.3/src/include/isc
> > /tmp/bind8.2.3/src/port
> > /tmp/bind8.2.3/src/port/hpux
> > /tmp/bind8.2.3/src/port/hpux/include
> > /tmp/bind8.2.3/src/port/hpux/include/sys
> >         probe_ipv6
> >         gcc -ansi -fPIC  -O -I../../port/hpux/include -I../../include -c
> > noop.c
> >         : ld -x -r noop.o && : mv a.out noop.o
> >         ar cru ../../lib/libbind.a  noop.o
> >         ranlib ../../lib/libbind.a
> > /tmp/bind8.2.3/src/lib
> > /tmp/bind8.2.3/src/lib/resolv
> >         if test ! -d threaded ; then mkdir threaded ; else true ; fi
> >
> >
> >
> >
> >
> >
cc -ansi -fPIC -I../../port/hpux/include -I../../include -O  -D_REENTRANT -
> > c herror.c \
> >          -o threaded/herror.o
> > In file included from ../../include/arpa/nameser.h:66,
> >                  from herror.c:63:
> > ../../port/hpux/include/sys/cdefs.h:84: warning: `__const' redefined
> > /usr/include/sys/stdsyms.h:332: warning: this is the location of the
> > previous definition
> > 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: 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:122: warning: data definition has no type
or
> > storage class
> > ../../include/arpa/nameser.h:123: parse error before `}'
> > ../../include/arpa/nameser.h:123: warning: data definition has no type
or
> > storage class
> > ../../include/arpa/nameser.h:146: warning: no semicolon at end of struct
or
> > union
> > ../../include/arpa/nameser.h:146: parse error before `*'
> > ../../include/arpa/nameser.h:147: warning: data definition has no type
or
> > storage class
> > ../../include/arpa/nameser.h:505: parse error before `int'
> > ../../include/arpa/nameser.h:506: parse error before `__ns_get16'
> > ../../include/arpa/nameser.h:506: parse error before `*'
> > ../../include/arpa/nameser.h:506: warning: data definition has no type
or
> > storage class
> > ../../include/arpa/nameser.h:507: parse error before `__ns_get32'
> > ../../include/arpa/nameser.h:507: parse error before `*'
> > ../../include/arpa/nameser.h:507: warning: data definition has no type
or
> > storage class
> > ../../include/arpa/nameser.h:508: parse error before `*'
> > ../../include/arpa/nameser.h:509: parse error before `*'
> > ../../include/arpa/nameser.h:510: parse error before `*'
> > ../../include/arpa/nameser.h:511: parse error before `*'
> > ../../include/arpa/nameser.h:512: parse error before `*'
> > ../../include/arpa/nameser.h:513: parse error before `*'
> > ../../include/arpa/nameser.h:515: parse error before `*'
> > ../../include/arpa/nameser.h:519: parse error before `char'
> > ../../include/arpa/nameser.h:520: parse error before `u_long'
> > ../../include/arpa/nameser.h:522: parse error before `*'
> > ../../include/arpa/nameser.h:523: parse error before `*'
> > ../../include/arpa/nameser.h:524: parse error before `u_char'
> > ../../include/arpa/nameser.h:525: parse error before `*'
> > ../../include/arpa/nameser.h:527: parse error before `*'
> > ../../include/arpa/nameser.h:529: parse error before `*'
> > ../../include/arpa/nameser.h:531: parse error before `u_char'
> > ../../include/arpa/nameser.h:533: parse error before `*'
> > ../../include/arpa/nameser.h:534: parse error before `*'
> > ../../include/arpa/nameser.h:536: parse error before `*'
> > ../../include/arpa/nameser.h:538: parse error before `*'
> > ../../include/arpa/nameser.h:540: parse error before `*'
> > ../../include/arpa/nameser.h:542: parse error before `*'
> > ../../include/arpa/nameser.h:542: parse error before `*'
> > ../../include/arpa/nameser.h:542: warning: data definition has no type
or
> > storage class
> > ../../include/arpa/nameser.h:543: parse error before `*'
> > ../../include/arpa/nameser.h:546: parse error before `*'
> > ../../include/arpa/nameser.h:547: parse error before `*'
> > In file included from herror.c:65:
> > ../../include/netdb.h:249: field `host_addr' has incomplete type
> > In file included from herror.c:66:
> > ../../include/resolv.h:115: parse error before `*'
> > ../../include/resolv.h:119: warning: `struct sockaddr_in' declared
inside
> > parameter list
> > ../../include/resolv.h:119: warning: its scope is only this definition
or
> > declaration, which is probably not what you want.
> > ../../include/resolv.h:122: parse error before `*'
> > ../../include/resolv.h:126: warning: `struct sockaddr_in' declared
inside
> > parameter list
> > ../../include/resolv.h:153: parse error before `u_long'
> > ../../include/resolv.h:153: warning: no semicolon at end of struct or
union
> > ../../include/resolv.h:158: parse error before `id'
> > ../../include/resolv.h:158: warning: data definition has no type or
storage
> > class
> > ../../include/resolv.h:161: parse error before `pfcode'
> > ../../include/resolv.h:161: warning: data definition has no type or
storage
> > class
> > ../../include/resolv.h:162: parse error before `:'
> > ../../include/resolv.h:163: parse error before `:'
> > ../../include/resolv.h:166: field `addr' has incomplete type
> > ../../include/resolv.h:173: parse error before `_flags'
> > ../../include/resolv.h:173: conflicting types for `_flags'
> > ../../include/arpa/nameser.h:118: previous declaration of `_flags'
> > ../../include/resolv.h:173: warning: data definition has no type or
storage
> > class
> > ../../include/resolv.h:180: field `nsaddrs' has incomplete type
> > ../../include/resolv.h:183: parse error before `}'
> > ../../include/resolv.h:266: parse error before `*'
> > ../../include/resolv.h:267: parse error before `*'
> > ../../include/resolv.h:269: parse error before `*'
> > ../../include/resolv.h:273: parse error before `*'
> > ../../include/resolv.h:275: parse error before `u_char'
> > ../../include/resolv.h:277: parse error before `u_char'
> > ../../include/resolv.h:278: parse error before `u_char'
> > ../../include/resolv.h:279: parse error before `*'
> > ../../include/resolv.h:280: parse error before `*'
> > ../../include/resolv.h:352: parse error before `const'
> > ../../include/resolv.h:353: parse error before `u_char'
> > ../../include/resolv.h:354: parse error before `u_char'
> > ../../include/resolv.h:355: parse error before `*'
> > ../../include/resolv.h:356: parse error before `*'
> > ../../include/resolv.h:357: parse error before `u_char'
> > ../../include/resolv.h:358: parse error before `u_char'
> > ../../include/resolv.h:363: parse error before `*'
> > ../../include/resolv.h:363: parse error before `*'
> > ../../include/resolv.h:363: warning: data definition has no type or
storage
> > class
> > ../../include/resolv.h:364: parse error before `*'
> > ../../include/resolv.h:364: parse error before `*'
> > ../../include/resolv.h:364: warning: data definition has no type or
storage
> > class
> > ../../include/resolv.h:365: parse error before `*'
> > ../../include/resolv.h:365: parse error before `*'
> > ../../include/resolv.h:366: warning: data definition has no type or
storage
> > class
> > ../../include/resolv.h:367: parse error before `*'
> > ../../include/resolv.h:367: parse error before `*'
> > ../../include/resolv.h:367: warning: data definition has no type or
storage
> > class
> > ../../include/resolv.h:368: parse error before `option'
> > ../../include/resolv.h:369: warning: parameter names (without types) in
> > function declaration
> > ../../include/resolv.h:371: parse error before `u_char'
> > ../../include/resolv.h:373: parse error before `*'
> > ../../include/resolv.h:375: parse error before `__res_randomid'
> > ../../include/resolv.h:375: warning: data definition has no type or
storage
> > class
> > ../../include/resolv.h:377: parse error before `*'
> > ../../include/resolv.h:378: parse error before `*'
> > ../../include/resolv.h:386: parse error before `*'
> > ../../include/resolv.h:390: parse error before `u_char'
> > ../../include/resolv.h:392: parse error before `u_char'
> > ../../include/resolv.h:395: parse error before `u_char'
> > ../../include/resolv.h:397: parse error before `*'
> > ../../include/resolv.h:399: parse error before `*'
> > ../../include/resolv.h:400: parse error before `*'
> > herror.c: In function `herror':
> > herror.c:91: storage size of `iov' isn't known
> > herror.c:95: dereferencing pointer to incomplete type
> > herror.c:96: dereferencing pointer to incomplete type
> > herror.c:97: increment of pointer to unknown structure
> > herror.c:97: arithmetic on pointer to an incomplete type
> > herror.c:98: dereferencing pointer to incomplete type
> > herror.c:99: dereferencing pointer to incomplete type
> > herror.c:100: increment of pointer to unknown structure
> > herror.c:100: arithmetic on pointer to an incomplete type
> > herror.c:102: dereferencing pointer to incomplete type
> > herror.c:103: dereferencing pointer to incomplete type
> > herror.c:103: dereferencing pointer to incomplete type
> > herror.c:104: increment of pointer to unknown structure
> > herror.c:104: arithmetic on pointer to an incomplete type
> > herror.c:105: dereferencing pointer to incomplete type
> > herror.c:106: dereferencing pointer to incomplete type
> > herror.c: At top level:
> > ../../include/resolv.h:156: storage size of `nsaddr_list' isn't known
> *** Error exit code 1
> >
> > Stop.
> > *** Error exit code 1
> >
> > Stop.
> > *** Error exit code 1
> >
> > Stop.
> >
> >
> > >
> > >
> > > cp port/hpux/Makefile.set.gcc port/hpux/Makefile.set
> > > make clean
> > > make
> > >
> > >
> > > >
> > > > Hi Jan,
> > > >
> > > >               Thanks for your mail..I have gcc already installed on
my
> > HP-UX
> > > > server..still it's giving the below pasted errors..do i really need
ANSI
> > C?
> > > > coz it's giving some error which says available with c/ANSI C
> > product...pls
> > > > suggest.
> > > >
> > > > regds
> > > > joydeep
> > > > ----- Original Message -----
> > > > From: "Jan P. Sorensen" <japs at garm.adm.ku.dk>
> > > > To: "joydeepche" <joydeep at bplnet.com>
> > > > Sent: Monday, April 09, 2001 2:07 PM
> > > > Subject: Re: Bind 8.2.3 Compilation Problem
> > > >
> > > >
> > > > > You could install gcc. I use gcc to compile BIND on HP-UX.11
> > > > >
> > > > > I can mail the two binaries to you: named and named-xfer
> > > > >
> > > > > Jan P. Sorensen
> > > > >
> > > > > On 9 Apr 2001, joydeepche wrote:
> > > > >
> > > > > > Hi ,
> > > > > >
> > > > > >                   I am getting some errors apart from some
warnings
> > > > while compiling Bind 8.2.3 on HP-UX 11.00 .The errors it's giving
while
> > > > running make are:
> > > > > > # make
> > > > > > Making /tmp/bind8.2.3/src/.systype
> > > > > > Making .settings
> > > > > > /tmp/bind8.2.3/src/include
> > > > > > /tmp/bind8.2.3/src/include/arpa
> > > > > > /tmp/bind8.2.3/src/include/isc
> > > > > > /tmp/bind8.2.3/src/port
> > > > > > /tmp/bind8.2.3/src/port/hpux
> > > > > > /tmp/bind8.2.3/src/port/hpux/include
> > > > > > /tmp/bind8.2.3/src/port/hpux/include/sys
> > > > > >         probe_ipv6
> > > > > >         cc -Ae -z  -g
> > > >
> >
+ESlit -Wl,+vnocompatwarnings -I../../port/hpux/include -I../../include -c
> > > > noop.c
> > > > > > (Bundled) cc: warning 480: The -A option is available only with
the
> > > > C/ANSI C product; ignored.
> > > > > > (Bundled) cc: warning 480: The -z option is available only with
the
> > > > C/ANSI C product; ignored.
> > > > > > (Bundled) cc: warning 480: The -g option is available only with
the
> > > > C/ANSI C product; ignored.
> > > > > > (Bundled) cc: warning 480: The +ESlit option is available only
with
> > the
> > > > C/ANSI C product; ignored.
> > > > > >         : ld -x -r noop.o && : mv a.out noop.o
> > > > > >         ar cru ../../lib/libbind.a  noop.o
> > > > > >         ranlib ../../lib/libbind.a
> > > > > > /tmp/bind8.2.3/src/lib
> > > > > > /tmp/bind8.2.3/src/lib/resolv
> > > > > >         if test ! -d threaded ; then mkdir threaded ; else true
; fi
> > > > > >         cc -Ae -z -I../../port/hpux/include -I../../include -g
> > > > +ESlit -Wl,+vnocompatwarnings  -D_REENTRANT -c herror.c \
> > > > > >          -o threaded/herror.o
> > > > > > (Bundled) cc: warning 480: The -A option is available only with
the
> > > > C/ANSI C product; ignored.
> > > > > > (Bundled) cc: warning 480: The -z option is available only with
the
> > > > C/ANSI C product; ignored.
> > > > > > (Bundled) cc: warning 480: The -g option is available only with
the
> > > > C/ANSI C product; ignored.
> > > > > > (Bundled) cc: warning 480: The +ESlit option is available only
with
> > the
> > > > C/ANSI C product; ignored.
> > > > > > (Bundled) cc: "../../port/hpux/include/port_after.h", line 79:
error
> > > > 1000: Unexpected symbol: "size_t".
> > > > > > (Bundled) cc: "../../include/resolv.h", line 99: error 1705:
> > Function
> > > > prototypes are an ANSI feature.
> > > > > > (Bundled) cc: "../../include/resolv.h", line 242: error 1705:
> > Function
> > > > prototypes are an ANSI feature.
> > > > > > (Bundled) cc: "../../include/irs.h", line 210: error 1705:
Function
> > > > prototypes are an ANSI feature.
> > > > > > (Bundled) cc: "../../include/irs.h", line 229: error 1705:
Function
> > > > prototypes are an ANSI feature.
> > > > > > (Bundled) cc: "../../include/irs.h", line 230: error 1705:
Function
> > > > prototypes are an ANSI feature.
> > > > > > (Bundled) cc: "../../include/irs.h", line 231: error 1705:
Function
> > > > prototypes are an ANSI feature.
> > > > > > (Bundled) cc: "../../port/hpux/include/port_after.h", line 79:
error
> > > > 1705: Function prototypes are an ANSI feature.
> > > > > > (Bundled) cc: "../../port/hpux/include/port_after.h", line 79:
error
> > > > 1573: Type of "size_t" is undefined due to an illegal declaration.
> > > > > > (Bundled) cc: "../../port/hpux/include/port_after.h", line 82:
error
> > > > 1705: Function prototypes are an ANSI feature.
> > > > > > (Bundled) cc: "../../port/hpux/include/port_after.h", line 85:
error
> > > > 1705: Function prototypes are an ANSI feature.
> > > > > > (Bundled) cc: "herror.c", line 90: error 1705: Function
prototypes
> > are
> > > > an ANSI feature.
> > > > > > (Bundled) cc: "herror.c", line 115: error 1705: Function
prototypes
> > are
> > > > an ANSI feature.
> > > > > > *** Error exit code 1
> > > > > >
> > > > > > Stop.
> > > > > > *** Error exit code 1
> > > > > >
> > > > > > Stop.
> > > > > > *** Error exit code 1
> > > > > >
> > > > > > Stop.
> > > > > >
> > > > > >                      My server didn't have lex. I could get flex
and
> > > > installed it. It also has GCC. Can anyone suggest as to whether it
> > requires
> > > > anything else may be ANSI C,to compile it successfully?
> > > > > >
> > > > > > Thanks and regards,
> > > > > > Joydeep
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > > --
> > > Mark Andrews, Nominum Inc.
> > > 1 Seymour St., Dundas Valley, NSW 2117, Australia
> > > PHONE: +61 2 9871 4742                 INTERNET:
Mark.Andrews at nominum.com
> >
> --
> Mark Andrews, Nominum Inc.
> 1 Seymour St., Dundas Valley, NSW 2117, Australia
> PHONE: +61 2 9871 4742                 INTERNET: Mark.Andrews at nominum.com



More information about the bind-users mailing list