Summary: Bind 8.2.2P5 Compiling problems

Rahul Parasnis rahul.parasnis at creditlyonnais.fr
Thu Feb 24 05:09:29 UTC 2000


Thanks a lot to, 
Bob Gahl Bicycle (Ryan Vanguard) Who informed me about http://hpux.cs.utah.edu/
jim at rfc1035.com 
Christian Krackowizer

Finally I could compile the Bind 8.2.2P5, Now I have to configure it. Again I 
have to 
take help of you guys in a process. 

My Special Thanks to Christian Krackowizer. 
He gave me such a courage when he first replied to me , such that I deleted 
everything what I 
did and Started from sratch, And he helped me from there. 

Following is the a part of Mail from him.
1) run (let run) y2koscheck and y2kappcheck and send me the output.
if your OS doesn't have these HP-utilities, it's very likely your OS
isn't y2k ready thus lacking some/more upgrades. An 'out of the box'
10.20 is nearly sh...

2) if 1) is OK, get gnu-make 3.78.1 (try www.gnu.org). You should compile
it and let it go into /usr/local/bin. This is the real location for any
user/gnu/... apps. in all further steps, only use this /usr/local/bin/make !!
use '-v' the verify it#s version.

3) after these steps, read
http://www.gnu.org/software/gcc/install/specific.html#hppa*-hp-hpux10
organize and apply this patch (if not already on your machine)


The problem was : 
I was not having the native HP C compiler. I was compiling gcc therefore. But 
Having Problems in doing that.
So finally figured out that I need 
gnu-make 3.78.1 , bison 1.28, binutils2.9.1, gdb4.18 ( Not Important - Don't 
know the purpose exactly)
 and Finally gcc2.95.2.

http://gcc.gnu.org/onlinedocs/gcc_3.html#IDX321
http:/hpux.u-aizu-ac-jp or http://hpux.csc.liv.ac.uk/

Applied  Following Patches,( Again this info is from Christian Krackowizer)
  PHCO_19798                    B.10.00.00.AA  sed(1) cumulative patch.
  PHCO_20441                    B.10.00.00.AA  libc cumulative patch
  PHSS_20058                    B.10.00.00.AA  ld(1) and som tools

While compiling with gcc , you have to copy Makefile.set.gcc to Makefile.set. 
In this file, 
CC=gcc -ansi -fpic , you have to change it CC=gcc -fpic 
(Courtesy Christian Krackowizer)
Even after doing this I got the Data Linkage Table overflow Error, for Which I 
got the Solution as 
CC=gcc -fPIC
PIC = emit Position independant Code, 
pic = generate Position Independant Code.
( Courtesy GCC Mailing List  ) 
Then
make stdlinks
make clean
make all
make install 
And it worked.
My Sincerest  thanks to Christian Krackowizer for giving a new vigour and 
enthusiasm, 
otherwise I was going to stick with 4.9.7 as my Boss was not happy with me as I 
was consuming time.

Thanks to Don Pandori for giving his inputs on this , I am interested in Don's 
Notes,I will be obliged 
if you can send it across to me. 
Thanks and Best Regards
- Rahul Parasnis 
------------------------------------------------Original Post 
---------------------------------------------

---------------------- Forwarded by Rahul Parasnis/JPN/International/CLY on 
02/24/2000 01:19 PM ---------------------------
To:	bind-users at isc.org@internet
cc:	 
Subject:	Bind 8.2.2P5 Compiling problems

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.

Thanks a lot
---------------------- Forwarded by Rahul Parasnis/JPN/International/CLY on 
02/16/2000 08:50 AM ---------------------------


Rahul Parasnis
02/14/2000 10:39 AM
To:	bind-users at isc.org@internet
cc:	 
Subject:	Bind 8.2.2P5 Compiling problems

I think nobody has received my Mail ,because I didn't receive a single 
response,  so resending it . 
Please Help me in solving this error, Finally I have gone backwards on 8.1.2 
still Same error , what I am Missing ? 
- Rahul
---------------------- Forwarded by Rahul Parasnis/JPN/International/CLY on 
02/14/2000 10:32 AM ---------------------------


Rahul Parasnis
02/10/2000 12:29 PM
To:	bind-users at isc.org@internet
cc:	 
Subject:	Bind 8.2.2P5 Compiling problems

Hello All, 

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: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: 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: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.
.
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 ? 
Thanks and Regards
-Rahul Parasnis 


-- Attached file included as plaintext by Listar --



Ce message contient des informations confidentielles ou appartenant au 
Crédit Lyonnais et est établi à l'intention exclusive de ses 
destinataires. Toute divulgation, utilisation, diffusion ou reproduction 
(totale ou partielle) de ce message, ou des informations qu'il contient, 
doit être préalablement autorisée. Tout message électronique est 
susceptible d'altération et son intégrité ne peut être assurée. 
Le Crédit Lyonnais décline toute responsabilité au titre de ce 
message s'il a été modifié ou falsifié. Si vous n'êtes pas 
destinataire de ce message, merci de le détruire immédiatement et 
d'avertir l'expéditeur de l'erreur de distribution et de la destruction
du message.

This e-mail contains confidential information or information belonging 
to Crédit Lyonnais and is intended solely for the addressees. 
The unauthorised disclosure, use, dissemination or copying (either whole 
or partial) of this e-mail, or any information it contains, is prohibited.
E-mails are susceptible to alteration and their integrity cannot be guaranteed. 
Crédit Lyonnais shall not be liable for this e-mail if modified or falsified.
If you are not the intended recipient of this e-mail, please delete it 
immediately from your system and notify the sender of the wrong delivery 
and the mail deletion.



More information about the bind-users mailing list