Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.3: Install mtr via Fink' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.3: Install mtr via Fink
Authored by: blakers on Nov 28, '03 05:25:28PM
aha! dns issues ...

NOTE: panther ships with BIND9, rather than BIND8 as 10.2.x did

many OpenSource packages still depend on the BIND8 libs/headers being around.

that said, Apple's provided a compatibiltiy header that helps
solve the problem. i've built BIND8 elsewhere in my system,
so it didn't obviously crop up ...

try the following:

% cd /usr/ports/mtr-0.54

% make distclean
% unsetenv CFLAGS CPPFLAGS CXX CXXFLAGS LDFLAGS LDDLFLAGS LD_PREBIND
% setenv LDFLAGS "-lresolv"

% vi /usr/ports/dns.c
ADD the following line ...

        #include <arpa/nameser.h>
+++     #include <arpa/nameser8_compat.h>
do a little clean up ...

% glibtoolize --force --copy
% aclocal
% autoconf


% ./configure \
--prefix=/usr/local

% make
% make install

that *should* do the trick ... let me know if not!

cheers,

richard

[ Reply to This | # ]
10.3: Install mtr via Fink
Authored by: AaronAdams on Nov 28, '03 06:12:57PM
Fantastic! That worked great. Thank you very much for your help.

For less experienced users, the only thing I would add to your instructions is that the make install will place the mtr executable in /usr/local/sbin, which is not in OS X's default path. You may want to adjust your path accordingly, or move the executable to a directory already in the path, such as /sbin or /usr/sbin, with a command like:

sudo mv /usr/local/sbin/mtr /sbin


[ Reply to This | # ]
10.3: Install mtr via Fink
Authored by: blakers on Nov 28, '03 07:40:31PM

its been so long since i used the *default* path that i forgot this ... thanks!

note that the /usr/local hierarchy is, in principle, protected in that it
*should not* be touched/overwritten/etc by any Apple updates,
where as the / & /usr hierarchies are at their mercy ...

so, imho, i'd in general recommend the 'add /usr/local/sbin to your
path' approach ... or be diligent about checking/restoring *your*
installs after any from Apple!

richard



[ Reply to This | # ]
10.3: Install mtr via Fink
Authored by: sighsigh on Nov 30, '03 04:13:59AM

It is generally better to declare
#define BIND_8_COMPAT 1
in config.h
or to extend configure to detect this
rather than to just include an extra header file.



[ Reply to This | # ]
10.3: Install mtr via Fink
Authored by: below on Dec 17, '03 06:03:40AM

As I am not an experience autoconfer, would there be someone to update the configure script for mtr?

Apparently quite a few people use it on OS X 10.3

Alex



[ Reply to This | # ]