Maintained by: NLnet Labs

[Unbound-users] build error on Solaris

W.C.A. Wijngaards
Wed Nov 4 08:30:54 CET 2009

Hi Ihsan,

With unbound-1.3.4 and builtin library for ldns:
./libtool --tag=CC --mode=link gcc ./linktest.c -I. -I.  -DHAVE_CONFIG_H 
-I. -I. -Wwrite-strings -W -Wall -O2 -g  -std=c99 -D__EXTENSIONS__ 
-lldns -lnsl -lsocket  -lcrypto -o linktest
libtool: link: gcc ./linktest.c -I. -I. -DHAVE_CONFIG_H -I. -I. 
-Wwrite-strings -W -Wall -O2 -g -std=c99 -D__EXTENSIONS__ -D_BSD_SOURCE 
.libs/linktest  /home/user/release-1.3.4/ldns-src/.libs/ -lnsl 
-lsocket -lcrypto -R/usr/local/lib

On Solaris.  And it works fine.  Also the unbound svn trunk works
fine and the ldns svn trunk.  So, it works for me, what is going
wrong on your Solaris machine?

Best regards,

On 11/03/2009 09:01 PM, Ihsan Dogan wrote:
> Hello,
> The most recent version of Unbound does not build on Solaris:
> ./libtool --tag=CC --mode=link /opt/csw/gcc4/bin/gcc ./linktest.c -I.
> -I. -I/opt/csw/include -I/opt/csw/include -DHAVE_CONFIG_H -I. -I.
> -Wwrite-strings -W -Wall -O2 -g -O2 -pipe -mcpu=v8 -I/opt/csw/include
> -lnsl -lsocket  -lcrypto -o linktest
> libtool: link: /opt/csw/gcc4/bin/gcc ./linktest.c -I. -I.
> -I/opt/csw/include -I/opt/csw/include -DHAVE_CONFIG_H -I. -I.
> -Wwrite-strings -W -Wall -O2 -g -O2 -pipe -mcpu=v8 -I/opt/csw/include
>   -lldns -lnsl -lsocket -lcrypto
> ld: fatal: library -lldns: not found
> ld: fatal: library -lcrypto: not found
> ld: fatal: File processing errors. No output written to linktest
> I've tried to build it with the builtin library, but I'm getting the
> same results using an external ldns library.
> Ihsan