Errors compiling Bind

Hi all,
Apologies if this is the wrong forum for this question, if it is, could some one point me to the right one please.

I am trying to compile bind-9.5.1b1 on Solaris 10

Get the error when try to configure:

checking for OpenSSL library... using OpenSSL from /usr/local/lib and /usr/local
/include
checking whether linking with OpenSSL works... no
configure: error: Could not run test program using OpenSSL from
/usr/local/lib and /usr/local/include.
Please check the argument to --with-openssl and your
shared library configuration (e.g., LD_LIBRARY_PATH).

Running openssl v 0.9.8h and as far as I can tell it compiled correctly

Running 05/08 of Solaris 10 and Recommended patch cluster is current as of 7/10/08

Can anyone help or point me to a url that can? Bit of a newbie to DNS I'm afraid.

Any and all help with be gratefully appreciated.

Thanks

Marty

Did you set LD_LIBRARY_PATH ?
LD_CONFIG_PATH=/usr/lib

Hi

LD_LIBRARY_PATH

/usr/lib:/usr/local/lib:/usr/local/ssl/lib

$LD_CONFIG_PATH

/usr/lib

Version of openssl is

OpenSSL 0.9.8h 28 May 2008

Is there a problem with this and the version of Bind I am trying to compile? (v9.5.1b1)

Thanks

What were your configure options? It almost looks like you did:

--with-openssl=/usr/local

Make sure it's:

--with-openssl=/usr/local/ssl

I'm assuming that's the path you installed ssl to, since that's what your library path is. Depending on how you installed the OS, you can also check in /usr/sfw/ for openssl libs instead of compiling your own.

Hi,
Tried:

--with-openssl=/usr/local/ssl (which is where openssl sits) and no joy.

Even tried compiling the shared libraries on openssl and still no joy.

Anyone have any more ideas as I have exhausted every option I can think of and there is not much help if you google the error :(.

You can try compiling against the OpenSSL provided by Sun.

--with-openssl=/usr/sfw