BIND 9.4.1-P1 compilation settings.

Vincent.BLONDEL at ing.be Vincent.BLONDEL at ing.be
Thu Sep 27 07:56:39 UTC 2007



On Thu, Sep 27, 2007 at 08:36:24AM +0200, vincent.blondel at ing.be wrote:
> 
> On Thu, Sep 27, 2007 at 07:17:33AM +0200, vincent.blondel at ing.be
wrote:
> 
> > Now what I am trying to do is getting a binary 
> > 
> >     dynamicly linked to libraries like libc.so, libthread.so, BIND
> > libraries 
> >     but including statically GCC and OpenSSL precompiled object
files
> > like 
> > 
> 
> I think it's impossible now (without some configure patching etc). It
> looks you have to compile statically linked binary.
> 
> Adam
> 
> How can I compile statically binaries ... is this the right way ???
> 
> 
>    --enable-shared=no --enable-static=yes
> --with-openssl=/usr/local/ssl/lib

Yes, it should work. But if you have both static and shared libraries
you might have to do some additional linker configuration if your linker
prefers shared libraries (dunno what exactly)

I just fisnished compiling with 

    LDFLAGS="-L/usr/local/ssl/lib/libssl.a
-L/usr/local/ssl/lib/libcrypto.a"
    ./configure --prefix=/usr/local --sysconfdir=/etc/named
--localstatedir=/var --disable-ipv6 --disable-linux-caps
--enable-shared=no --enable-static=yes

but always get the same problem ...

root # dig
Killed

root # ldd /usr/local/bin/dig
ldd: /usr/local/bin/dig: file has insecure interpreterELF

Adam
-----------------------------------------------------------------
ATTENTION:
The information in this electronic mail message is private and
confidential, and only intended for the addressee. Should you
receive this message by mistake, you are hereby notified that
any disclosure, reproduction, distribution or use of this
message is strictly prohibited. Please inform the sender by
reply transmission and delete the message without copying or
opening it.

Messages and attachments are scanned for all viruses known.
If this message contains password-protected attachments, the
files have NOT been scanned for viruses by the ING mail domain.
Always scan attachments before opening them.
-----------------------------------------------------------------



More information about the bind-users mailing list