# Errors compiling Bind

**URL:** <https://community.unix.com/t/errors-compiling-bind/215760>\
**Category:** Solaris\
**Created:** [October 9, 2008, 10:51am UTC](https://community.unix.com/t/errors-compiling-bind/215760 "2008-10-09T10:51:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![callmebob](https://community.unix.com/letter_avatar/callmebob/32/5_5575768a8748004e209b776fc1b2916d.png) [@callmebob](https://community.unix.com/u/callmebob)\
**Post date:** [October 9, 2008, 10:51am UTC](https://community.unix.com/t/errors-compiling-bind/215760/1 "2008-10-09T10:51:12Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![incredible](https://community.unix.com/letter_avatar/incredible/32/5_5575768a8748004e209b776fc1b2916d.png) [@incredible](https://community.unix.com/u/incredible)\
**Post date:** [October 10, 2008, 10:05am UTC](https://community.unix.com/t/errors-compiling-bind/215760/2 "2008-10-10T10:05:31Z")

</div>

Did you set LD\_LIBRARY\_PATH ?  
LD\_CONFIG\_PATH=/usr/lib

---

<div class="post-metadata">

**Author:** ![callmebob](https://community.unix.com/letter_avatar/callmebob/32/5_5575768a8748004e209b776fc1b2916d.png) [@callmebob](https://community.unix.com/u/callmebob)\
**Post date:** [October 13, 2008, 10:23am UTC](https://community.unix.com/t/errors-compiling-bind/215760/3 "2008-10-13T10:23:54Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Diabolist](https://community.unix.com/letter_avatar/diabolist/32/5_5575768a8748004e209b776fc1b2916d.png) [@Diabolist](https://community.unix.com/u/Diabolist)\
**Post date:** [October 15, 2008, 7:41am UTC](https://community.unix.com/t/errors-compiling-bind/215760/4 "2008-10-15T07:41:18Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![callmebob](https://community.unix.com/letter_avatar/callmebob/32/5_5575768a8748004e209b776fc1b2916d.png) [@callmebob](https://community.unix.com/u/callmebob)\
**Post date:** [October 17, 2008, 5:59am UTC](https://community.unix.com/t/errors-compiling-bind/215760/5 "2008-10-17T05:59:27Z")

</div>

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 :(.

---

<div class="post-metadata">

**Author:** ![vimes](https://community.unix.com/letter_avatar/vimes/32/5_5575768a8748004e209b776fc1b2916d.png) [@vimes](https://community.unix.com/u/vimes)\
**Post date:** [October 21, 2008, 7:25am UTC](https://community.unix.com/t/errors-compiling-bind/215760/6 "2008-10-21T07:25:15Z")

</div>

You can try compiling against the OpenSSL provided by Sun.

```nohighlight
--with-openssl=/usr/sfw

```
