[nsd-users] Build error of NSD4 on Debian Squeeze

Valentin Bud valentin at databus.ro
Wed Nov 28 09:31:09 UTC 2012


Hi Wouter,

On Wed, Nov 28, 2012 at 09:26:27AM +0100, W.C.A. Wijngaards wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi Valentin,
> 
> On 11/28/2012 08:20 AM, Valentin Bud wrote:
> > Hello World,
> > 
> > I am trying to build NSD4 on Debian Squeeze and I get the
> > following errors when running `make`.
> 
> What is the last word on these lines (not capped at 80 characters)?  I
> want the know 'undefined reference to x' what that function x is.

Just now I have noticed that the lines are capped at 80 characters.

The output of `make` is the following:

```
$ pwd 
/home/wiz/src/nsd/tags/NSD_4_0_0_imp_5
$ make
[... output omitted ...]
gcc -g -O2  -o nsd-checkconf answer.o axfr.o buffer.o configlexer.o
configparser.o dname.o dns.o edns.o iterated_hash.o lookup3.o namedb.o
nsec3.o options.o packet.o query.o rbtree.o radtree.o rdata.o
region-allocator.o tsig.o tsig-openssl.o udb.o udbradtree.o udbzone.o
util.o nsd-checkconf.o strlcat.o strlcpy.o b64_pton.o b64_ntop.o
-lcrypto
configparser.o: In function `c_parse':
/home/wiz/src/nsd/tags/NSD_4_0_0_imp_5/configparser.c:609: undefined
reference to `c_lex'
/home/wiz/src/nsd/tags/NSD_4_0_0_imp_5/configparser.c:1358: undefined
reference to `c_lex'
options.o: In function `parse_options_file':
/home/wiz/src/nsd/tags/NSD_4_0_0_imp_5/options.c:144: undefined
reference to `c_in'
collect2: ld returned 1 exit status
make: *** [nsd-checkconf] Error 1
```

> 
> If your xterm does not work well; perhaps pipe it to a file.
> 

I guess tmux screwed things up when I copied from one pane to another.
Now I have read 3 times the above output just to be sure it includes
what you've asked :-).

Cheers and Goodwill,
v

> Best regards,
>    Wouter
> 
> > ``` $ pwd /home/wiz/src/nsd/tags/NSD_4_0_0_imp_5 $ make [... output
> > omitted ...] gcc -g -O2  -o nsd-checkconf answer.o axfr.o buffer.o
> > configlexer.o configparse acket.o query.o rbtree.o radtree.o
> > rdata.o region-allocator.o tsig.o tsig-opens 4_pton.o b64_ntop.o
> > -lcrypto configparser.o: In function `c_parse': 
> > /home/wiz/src/nsd/tags/NSD_4_0_0_imp_5/configparser.c:609:
> > undefined reference 
> > /home/wiz/src/nsd/tags/NSD_4_0_0_imp_5/configparser.c:1358:
> > undefined reference options.o: In function `parse_options_file': 
> > /home/wiz/src/nsd/tags/NSD_4_0_0_imp_5/options.c:144: undefined 
> > reference to `c collect2: ld returned 1 exit status make: ***
> > [nsd-checkconf] Error 1 ```
> > 
> > I have done the following:
> > 
> > # Install prerequisites
> > 
> > $ sudo aptitude install subversion libssl-dev autoconf make byacc 
> > flex bison build-essential -y
> > 
> > # Clone NSD Repository
> > 
> > $ mkdir $HOME/src $ cd $HOME/src $ svn co
> > http://www.nlnetlabs.nl/svn/nsd/ nsd
> > 
> > # Generate `configure` program
> > 
> > $ cd $HOME/src/nsd/tags/NSD_4_0_0_imp_5 $ autoreconf --install
> > 
> > # Configure
> > 
> > $ cd $HOME/src/nsd/tags/NSD_4_0_0_imp_5 $ ./configure --prefix=/usr
> > --sysconfdir=/etc/nsd4 --localstatedir=/var/run/nsd4
> > --with-configdir=/etc/nsd4 --with-nsd_conf_file=/etc/nsd4/nsd4.conf
> > - -with-pidfile=/var/run/nsd4/nsd4.pid
> > 
> > I could use some help on this matter. Thank you.
> > 
> > Cheers and Goodwill, v 
> > _______________________________________________ nsd-users mailing
> > list nsd-users at NLnetLabs.nl 
> > http://open.nlnetlabs.nl/mailman/listinfo/nsd-users
> > 
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.18 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
> 
> iQIcBAEBAgAGBQJQtcqzAAoJEJ9vHC1+BF+N/2wQAKJi5pR0aMn8cye6wQH24ccv
> uEpqhWQtyTG0qjtwxXAUKVB2lg+I7kjjOlfLObVRA5Nu8ZXTinuAQjdEWUyS70bE
> 0qlc4dizG/riQaAvY0P6sPXfmwdhywiFxCNK0StlI/sk6sMCgi2/1d8wzfDAOLxD
> Wj1U68m1PbB83qtybiZBUXDsqz2u22/TUHj1paIzsw4b+A8KRjIoLbj4GKUn9r2T
> QhHRLihUy+Oyiexgw2CufMpdH9Oarqt4WnIcyhwqUZd91SYm0t7WXKsxbG0cu6/i
> r8LAtcvAFUEYA2829UVSIcmYTDi2OsJo70ZWtIUouaMNtQXGxxUkGcra15kxo84H
> 0YvzX5WkOpJ4eDPNK+lGFumyJK3D3UOVlZghuSZhxMOQWwUPIwuViSv7XWlS4OOc
> 5gu1jke9qZEdFPqZUShvZ23duTNJ3UX5/J0zennbjl/g3OtKjmaGH6cKST9jOLP9
> Os+fLnNIEWXAjishPtpTVbZPz/YKvazBI2dv/5+i/KzqrLll/Y826WmiY5yD34zd
> CpGTfuAepqHzqhEIv+yd+33kUcmOrjd9teUVNFDWtZsz0MRNZa0ZwP0Pfx4xIm4w
> n7zFRUHx7epYbU/9URv0MPWIB6EbkribMQJtZZncmGC74u19Ng9RXVImsgTmIKY5
> 1JkICXejRdoI6nw6u1/z
> =KtGr
> -----END PGP SIGNATURE-----
> _______________________________________________
> nsd-users mailing list
> nsd-users at NLnetLabs.nl
> http://open.nlnetlabs.nl/mailman/listinfo/nsd-users



More information about the nsd-users mailing list