Hi,<br><br>What I'll try next before doing anything else is try the same thing on sparc ??? Could it be related to wrongly defined includes or whatever...<br><br>BTW, I've also tried to compiled unbound-1.2.1 with the included ldns and I getthe same result...<br>
<br>Simon.<br><br><div class="gmail_quote">On Fri, Mar 27, 2009 at 4:59 AM, W.C.A. Wijngaards <span dir="ltr"><<a href="mailto:wouter@nlnetlabs.nl">wouter@nlnetlabs.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
Hi Simon-Bernard,<br>
<br>
So, sun-cc is giving trouble.<br>
<br>
Could you try to use:<br>
> --with-ldns=/opt/unbound<br>
(where you installed ldns just previously).<br>
If the ldns had changed in the build directory since you linked unbound<br>
it could do this sort of thing?<br>
<br>
You can also omit the --with-ldns and it uses a builtin ldns.<br>
<br>
The reason I suggest this is that it is crashing on calling ldns to<br>
parse some simple RR strings for the default data. The fact that it<br>
works well with gcc; I suspect that there is some sort of linking problem.<br>
<br>
Best regards,<br>
Wouter<br>
<div><div></div><div class="h5"><br>
Simon-Bernard Drolet wrote:<br>
> Hi all,<br>
><br>
> Just joined the unbound/ldns/nsd wagon and I've got a test nsd running...<br>
><br>
> Now, after looking at some recursor solution, I'm willing to use unbound<br>
> after seeing some perf numbers in the "Alternative DNS Servers" book.<br>
><br>
> I've compiled nsd with Sun Studio 12 on Solaris 10 10/08 x64.<br>
><br>
> I'm trying to do the same with unbound...<br>
><br>
> Here is what I'm doing:<br>
><br>
> gzcat ldns-1.5.1.tar.gz | tar xvf -<br>
><br>
> gzcat unbound-1.2.1.tar.gz | tar xvf -<br>
><br>
> cd ldns-1.5.1<br>
> CC='cc -xc99' CFLAGS=-O LDFLAGS='-lsocket -lnsl' \<br>
> ./configure \<br>
> --prefix=/opt/unbound \<br>
> --mandir=/opt/unbound/man<br>
> gmake<br>
> gmake install<br>
><br>
> cd drill<br>
> LDFLAGS=-R/opt/unbound/lib \<br>
> ./configure \<br>
> --prefix=/opt/unbound \<br>
> --mandir=/opt/unbound/man<br>
> make<br>
> make install<br>
><br>
><br>
> I did some small test with drill, it works... for now.<br>
><br>
> Then, unbound:<br>
><br>
> cd ../../unbound-1.2.1<br>
> CC='cc -xc99' CFLAGS=-O LDFLAGS='-lsocket -lnsl' \<br>
> ./configure \<br>
> --prefix=/opt/unbound \<br>
> --libexecdir=/opt/unbound/lib \<br>
> --sysconfdir=/etc/unbound \<br>
> --sharedstatedir=/var/unbound \<br>
> --localstatedir=/var/unbound \<br>
> --with-conf-file=/etc/unbound/unbound.conf \<br>
> --with-run-dir=/var/unbound \<br>
> --with-pidfile=/var/run/unbound.pid \<br>
> --with-username=unbound \<br>
> --with-pthreads \<br>
> --with-ldns=../ldns-1.5.1<br>
><br>
> gmake<br>
> gmake install<br>
><br>
> All of this works without errors.<br>
><br>
> Now, when I try to run unbound...<br>
><br>
> # /opt/unbound/sbin/unbound<br>
> [1238082757] unbound[24462:0] warning: increased limit(open files) from<br>
> 256 to 312<br>
> [1238082757] unbound[24462:0] debug: creating udp4 socket 127.0.0.1 53<br>
> [1238082757] unbound[24462:0] debug: creating tcp4 socket 127.0.0.1 53<br>
> [1238082757] unbound[24462:0] debug: switching log to syslog<br>
> # echo $?<br>
> 0<br>
> #<br>
><br>
> But if I check, it's not running...<br>
><br>
> And then, looking into syslog:<br>
><br>
> Mar 26 11:53:51 gn-msi02 unbound: [ID 993594 daemon.warning] [24511:0]<br>
> warning: did not exit gracefully last time (24508)<br>
> Mar 26 11:53:51 gn-msi02 unbound: [ID 993594 daemon.error] [24512:0]<br>
> error: error parsing local-data 'localhost. 10800 IN SOA localhost.<br>
> nobody.invalid. 1 3600 1200<br>
> 604800 10800': Syntax error, value expected<br>
> Mar 26 11:53:51 gn-msi02 unbound: [ID 993594 daemon.error] [24512:0]<br>
> error: bad local-data: localhost. 10800 IN SOA localhost.<br>
> nobody.invalid. 1 3600 1200 604800 10<br>
> 800<br>
> Mar 26 11:53:51 gn-msi02 unbound: [ID 993594 daemon.error] [24512:0]<br>
> error: out of memory adding default zone<br>
> Mar 26 11:53:51 gn-msi02 unbound: [ID 993594 daemon.crit] [24512:0]<br>
> fatal error: Could not set up local zones<br>
><br>
> Any help on this ??? Any pointers ???<br>
><br>
> As a side note, if I compile using the built-in Solaris 10 gcc, it does<br>
> work...<br>
><br>
> Simon.<br>
><br>
<br>
</div></div>-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.9 (GNU/Linux)<br>
Comment: Using GnuPG with Fedora - <a href="http://enigmail.mozdev.org" target="_blank">http://enigmail.mozdev.org</a><br>
<br>
iEYEARECAAYFAknMlXQACgkQkDLqNwOhpPi/iQCePgbP8l4RduB1o5nUxKG/Ce9U<br>
RbEAoJYLc238R3Bv18vv0QIJstsR3S6O<br>
=mwik<br>
-----END PGP SIGNATURE-----<br>
</blockquote></div><br><br clear="all"><br>-- <br>Simon-Bernard Drolet, Specialiste X Inc., 514-247-6741.<br>SBDrolet<at>GMail(dot)com. Senior Sun System Contractor, Montreal, Canada.<br>Certified Sun Technical Instructor, Sun Certified System Admin (2.5,7,8,9,10)<br>
Sun Certified Network Admin (2.5,7,8,9,10) and Security Admin for Solaris 9,10.<br>