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