New tool - dnstrace = Compile error on solaris

Mark_Andrews at isc.org Mark_Andrews at isc.org
Sat Jan 19 01:48:19 UTC 2002


	Well this is NOT the mailing list to be asking about how to compile
	dnstrace.

	gcc -g -Wall -o dnstrace dnstrace.o -lnsl -lsocket

	should get these symbols resolved.

	Mark

> 
> Hi,
> 
> I am trying to compile on solaris 2.8 and I am gettting below compile error.
> Can anyone tell what is wrong. I tried on 2.6 also compile error.
> 
> make
> gcc -g -Wall -c -o dnstrace.o dnstrace.c
> gcc -g -Wall -o dnstrace dnstrace.o
> Undefined                       first referenced
>  symbol                             in file
> socket                              dnstrace.o
> recv                                dnstrace.o
> gethostbyname                       dnstrace.o
> inet_addr                           dnstrace.o
> sendto                              dnstrace.o
> inet_ntoa                           dnstrace.o
> ld: fatal: Symbol referencing errors. No output written to dnstrace
> collect2: ld returned 1 exit status
> *** Error code 1
> 
> 
> Thanks
> Prakash
> make: Fatal error: Command failed for target `dnstrace'
> 
> -----Original Message-----
> From: edwin at mavetju.org [mailto:edwin at mavetju.org]
> Sent: Thursday, January 17, 2002 10:22 PM
> To: comp-protocols-dns-bind at moderators.isc.org
> Subject: Re: New tool - dnstrace
> 
> 
> 
> Pete Ehlke <pde at ehlke.net> wrote in message
> news:<a27mps$7tb at pub3.rc.vix.com>...
> > However, djb already has a tool called dnstrace that performs roughly
> > the same function (though djb's produces *vastly* more output). For
> > clarity's sake, consider changing the name of your program.
> 
> Woops, I didn't know about the name-clash here. I will rename it in the next
> version, probably to dnstracer (have to contact a couple of people who can
> manipulate the CVS repository for it).
> 
> I've got some comments, thanks for them. I've had a complaint saying that it
> didn't compile and work under Sun Solaris, this is fixed now and a new
> version
> is available on the website again (http://www.mavetju.org/unix/general.php)
> as version 1.1.
> 
> Thanks for the warning,
> Edwin
> 
> --
> Edwin Groothuis
> edwin at mavetju.org
> http://www.mavetju.org
> 
--
Mark Andrews, Internet Software Consortium
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: Mark.Andrews at isc.org


More information about the bind-users mailing list