Compiling bind 9 (9.1.1rc5) on Solaris 7, 64 bit static binaries (doens't work)

K. Pachla kpachla at umich.edu
Fri Mar 16 22:38:24 UTC 2001



This is pretty much the same kind of problem. To get the
compile to complete, I had to go into each of the directories
in bind-9.1.1rc5/bin/tests and modify the Makefiles.

This is an example of what I changed in the Makefile for
bin/tests/db

###
### Installation
###

INSTALL =               /opt/src/bind-9.1.1rc4/install-sh -c
INSTALL_PROGRAM =       ${INSTALL}
INSTALL_DATA =          ${INSTALL} -m 644

t_db: t_db.o ${DEPLIBS} ${TLIB}
        ${LIBTOOL} ${CC} ${CFLAGS} -o $@ t_db.o ${TLIB} ${LIBS}

I added "${CFLAGS}" to the above line. Why the compile was
failing because of ${CFLAGS} not being in the "Installation"
section, I don't know. But I made similar modifications to
all the Makefiles in the tests directory and the compile
finished OK.

----------------------------------------------------------------
K. Pachla
LSA SST
University of Michigan
kpachla at umich.edu


On Fri, 16 Mar 2001 Alec.Barea at sita.int wrote:

>
>
>
>
> Thank you K.
>
> It worked, now i have a 64 bit named binary, but the compilation still stops
> before the end, now because somehow  the machine class is not good (wtf...?).
> It's when doing the test directory, so i assume it's no so important
> (hu..right?).
>
> Here's what i have :
>
> making all in /var/home/rabarea/bind-9.1.1rc5/bin/tests
> making all in /var/home/rabarea/bind-9.1.1rc5/bin/tests/db
> /opt/SUNWspro/bin/cc -mt  -g -xarch=v9  -I/var/home/rabarea/bind-9.1.1rc5
> -I../../../lib/tests/include -I/var/home/rabarea/bind-9.1.1rc5/lib/dns/include
> -I../../../lib/dns/include  -I../../../lib/dns/sec/dst/include
> -I/var/home/rabarea/bind-9.1.1rc5/lib/isc/include  -I../../../lib/isc
> -I../../../lib/isc/include  -I../../../lib/isc/unix/include
> -I../../../lib/isc/pthreads/include   -D_REENTRANT       -c t_db.c
> /opt/SUNWspro/bin/cc -mt -o t_db t_db.o ../../../lib/tests/libt_api.a
> ../../../lib/dns/libdns.a ../../../lib/isc/libisc.a -lnsl -lsocket -lpthread
> ld: fatal: file t_db.o: wrong machine class
> ld: fatal: File processing errors. No output written to t_db
> *** Error code 1
> make: Fatal error: Command failed for target `t_db'
> Current working directory /var/home/rabarea/bind-9.1.1rc5/bin/tests/db
> *** Error code 1
> make: Fatal error: Command failed for target `subdirs'
> Current working directory /var/home/rabarea/bind-9.1.1rc5/bin/tests
> *** Error code 1
> make: Fatal error: Command failed for target `subdirs'
> Current working directory /var/home/rabarea/bind-9.1.1rc5/bin
> *** Error code 1
> make: Fatal error: Command failed for target `subdirs'
>
> Thank you for your help.
>
> Alec
> ________________________________________________________________________________________
>
> From "K. Pachla" <kpachla at umich.edu> on 16 March 2001 8:28:21 PM
> To : Alec Barea
> Copy To : bind-users at isc.org, bind9-users at isc.org
> Subject : Re: Compiling bind 9 (9.1.1rc5) on Solaris 7, 64 bit static binaries
> (doens't work)
>
>
>
>
> I've run across similar problems when the Makefiles don't
> correctly include the -xarch=v9 option for linking. Check
> and make sure the option is used not only for the compile,
> but also for linking.
>
> ----------------------------------------------------------------
> K. Pachla
> LSA Hostmaster
> University of Michigan
> kpachla at umich.edu
>
>
> On Fri, 16 Mar 2001 Alec.Barea at sita.int wrote:
> --snipped---
> > ../../lib/omapi/libomapi.a ../../lib/dns/libdns.a ../../lib/isc/libisc.a
> -lnsl
> >  -lsocket -lpthread
> > ild: (bad file) Input file aclconf.o contains 32-bit relocatable, but
> producing
> > a 64-bit file.
> > *** Error code 1
> > make: Fatal error: Command failed for target `named'
> > Current working directory /var/home/rabarea/bind-9.1.1rc5/bin/named
> > *** Error code 1
> > make: Fatal error: Command failed for target `subdirs'
> > Current working directory /var/home/rabarea/bind-9.1.1rc5/bin
> > *** Error code 1
> > make: Fatal error: Command failed for target `subdirs'
> >
> >
> > So...if someone can give me hints i would very appreciate. Please if you
> answer
> > send a copy to my email too (not only to the mailing list) thanks.
> >
> > Alec Barea
> >
>
>
> --------------------------------------------------------------------------------------------
>
> Alec Barea
> UNIX System Administrator / DNS specialist
> SITA / EQUANT
> alec.barea at sita.int
> Tel:  +1 514 847-3436
> Fax: +1 514 847-3400
>
>
>



More information about the bind-users mailing list