Mtr

Errors in compiling mtr.

Bug #1077226 reported by Greg Lucas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mtr
Triaged
Low
Unassigned

Bug Description

Hi All,

I'm trying to compile mtr and I'm on 10.7.5 and getting the following errors:

Making install in img
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
gcc -g -O2 -Wall -Wno-pointer-sign curses.o -o mtr mtr.o net.o dns.o raw.o split.o display.o report.o getopt.o getopt1.o select.o -lm -ltermcap
Undefined symbols for architecture x86_64:
  "_res_9_dn_expand", referenced from:
      _parserespacket in dns.o
  "_res_9_ninit", referenced from:
      _dns_open in dns.o
  "_res_9_nmkquery", referenced from:
      _dorequest in dns.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[1]: *** [mtr] Error 1
make: *** [install-recursive] Error 1

I'm on a 64bit platform, is the the issue?

Revision history for this message
Greg Lucas (glucas) wrote :

I am on OSx

Revision history for this message
rew (r-e-wolff) wrote :

I think there is a library reference missing on the commandline. -lbind or something like that.

(the quick fix is to copy-paste the "gcc" line and then add "-lbind" at the end to see if that helps.

Patch is welcome. It would need to do some autoconf magic for this to be used automatically.

Changed in mtr:
status: New → Triaged
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.