Compiling MTR on Panther (and Tiger!)

Mac OS X Add comments

Updated 3.2.2006
This hint is now know to work with Tiger as well.

Long ago, I attempted to compile MTR on Panther, and couldn’t. I wrote something about that failure on the MTR bug tracker and immediately forgot all about it.

This evening I received an e-mail from a total stranger, Andre LaBranche, with a solution to the problem.

Read on for all the geeky details.

Some network-related packages will fail to compile citing DNS-related problems. Andre presented me with this (relatively) simple fix:

  • Run the ./configure script as usual.
  • In the dns.c file, replace all instances of #include <arpa/nameser.h> with #include <arpa/nameser_compat.h> In MTR’s case, there is only one instance that needs replaced.
  • In the Makefile find a line like LIBS = -lm -ltermcap and add -lresolv at the end. The line in your makefile may be longer depending on what options the configure script found. Adding -lresolv to the end is all you need to to.
  • make and sudo make install as usual.

Ta da! Working MTR!

One Response to “Compiling MTR on Panther (and Tiger!)”

  1. Louis Lee Says:

    Thank you thank you thank you! And thanks to Andre, too!

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in