Maintained by: NLnet Labs

[Unbound-users] Unbound on Solaris 10

Milan Jurik
Wed Jul 21 09:41:53 CEST 2010


Hi,

Dustin Marquess píše v út 20. 07. 2010 v 13:47 -0500:
> See crle(1).
> 

no, do not touch crle(1) if you like your system.

> -Dustin
> 
> On Tue, Jul 20, 2010 at 1:38 PM, Hayward, Bruce
> <Bruce.Hayward at mtsallstream.com> wrote:
> >
> > Note that I am aware of setting the LD_LIBRARY_PATH via say a .profile,
> > but was looking for a way to keep the compile separate from OS variables
> > - more looking to see if it can be added via a ./configure parameter.
> >
> > Bruce
> >
> > Bruce Hayward, MTS Allstream Inc., (c) 204-792-9174 (p) 204-958-1983 (e)
> > bruce.hayward at mtsallstream.com
> >
> > -----Original Message-----
> > From: Hayward, Bruce
> > Sent: July 20, 2010 12:47 PM
> > To: 'unbound-users at unbound.net'
> > Subject: RE: [Unbound-users] Unbound on Solaris 10 (Sparc) learning
> > curves
> >
> > Still learning:
> >
> > I have now configured unbound with several options successfully with and
> > without threads (solaris et al). (gmake and gmake install ...)
> >
> > This last time I tried without threads, but with libevents using:
> > ./configure --prefix=/opt/unbound --libexecdir=/opt/unbound/lib
> > --sysconfdir=/var/unbound/etc --sharedstatedir=/var/unbound
> > --localstatedir=/var/unbound
> > --with-conf-file=/var/unbound/etc/unbound.conf
> > --with-run-dir=/var/unbound --with-chroot-dir=/var/unbound
> > --with-pidfile=/var/unbound/run/unbound.pid --with-username=unbound
> > --with-ssl=/usr/local/ssl/ --without-pthreads --without-solaris-threads
> > --with-libevent=/usr/local/libevent-1.4.13-stable/
> >
> > This seems to work though I see:
> > libtool: link: warning: library
> > `/usr/local/libevent-1.4.13-stable//lib/libevent.la' was moved.
> > libtool: link: warning: library
> > `/usr/local/libevent-1.4.13-stable//lib/libevent.la' was moved.
> >
> > Along with the gmake output.
> >
> > Afterwhich I run a gmake install without incident.
> >
> > I have also created a Solaris manifest (SMF), and are using that to
> > start/stop unbound, again successfully.
> >
> > Unbound resolves correctly at this point.
> >
> > Also for generating the remote keys:
> >
> > root at wnpgmb024rw-ns05# unbound-control-setup
> > setup in directory /var/unbound
> > unbound_server.key exists
> > unbound_control.key exists
> > create unbound_server.pem (self signed certificate)
> > create unbound_control.pem (signed client certificate)
> > Signature ok
> > subject=/CN=unbound-control
> > Getting CA Private Key
> > Setup success. Certificates created. Enable in unbound.conf file to use
> >
> >
> > However when running:
> > root at wnpgmb024rw-ns05# unbound-checkconf
> > ld.so.1: unbound-checkconf: fatal: libgcc_s.so.1: open failed: No such
> > file or directory
> > Killed
> > root at wnpgmb024rw-ns05
> >
> > I have:
> > root at wnpgmb024rw-ns05# find / -name libgcc_s.so.1
> > /usr/lib/AdobeReader/Adobe/Reader8/Reader/sparcsolaris/lib/libgcc_s.so.1
> > /usr/sfw/lib/sparcv9/libgcc_s.so.1
> > /usr/sfw/lib/libgcc_s.so.1
> > /usr/local/lib/libgcc_s.so.1
> > /usr/local/lib/sparcv9/libgcc_s.so.1
> > /export/home/explorer/10_Recommended/121104-06/SUNWacroread/reloc/lib/Ad
> > obeReader/Adobe/Reader8/Reader/sparcsolaris/lib/libgcc_s.so.1
> >
> > Thoughts on the open failed? (I also get the same results using the MnM
> > pre-compiled version)
> >

If you used gcc from /usr/sfw/bin, then "-L/usr/sfw/lib -R/usr/sfw/lib"
in LDFLAGS will solve your problem. If you use some your local GCC,
modify the path to your local libs. Aka use rpath.

Or use Sun Studio like I am doing in SFE repository:

http://pkgbuild.svn.sourceforge.net/viewvc/pkgbuild/spec-files-extra/trunk/SFEunbound.spec?revision=2792&view=markup

Best regards,

Milan