Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 361807 - net-analyzer/mtr: unable to compile in Gentoo-Prefix for Mac
Summary: net-analyzer/mtr: unable to compile in Gentoo-Prefix for Mac
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-03 16:24 UTC by yegle
Modified: 2011-08-29 17:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.txt,10.89 KB, text/plain)
2011-04-03 16:24 UTC, yegle
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yegle 2011-04-03 16:24:06 UTC
net-analyzer/mtr failed to compile on my Gentoo-Prefix for Mac.

Reproducible: Always

Steps to Reproduce:
1.emerge mtr
2.wait until error appears
Actual Results:  
i686-apple-darwin10-gcc -DHAVE_CONFIG_H -I.     -O2 -pipe -march=prescott -fomit-frame-pointer -Wall -Wno-pointer-sign -MT dns.o -MD -MP -MF .deps/dns.Tpo -c -o dns.o dns.c
net.c: In function 'net_send_query':
net.c:301: warning: unused variable 'offset'
dns.c:313:1: warning: "RES_INIT" redefined
In file included from dns.c:38:
/usr/include/resolv.h:254:1: warning: this is the location of the previous definition



i686-apple-darwin10-gcc  -O2 -pipe -march=prescott -fomit-frame-pointer -Wall -Wno-pointer-sign  curses.o -Wl,-dead_strip_dylibs -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:
  "_res_9_nmkquery", referenced from:
      _dorequest in dns.o
  "_res_9_ninit", referenced from:
      _dns_open in dns.o
  "_res_9_dn_expand", referenced from:
      _parserespacket in dns.o
      _parserespacket in dns.o
      _parserespacket in dns.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Comment 1 yegle 2011-04-03 16:24:59 UTC
Created attachment 268359 [details]
emerge --info
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-04-08 15:17:45 UTC
In the ebuild, 

use x64-macos && append-libs -lresolv

does the error mean that x86-macos need -lresolv too?
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-04-08 15:27:21 UTC
please try 0.80
Comment 4 yegle 2011-04-08 16:14:09 UTC
Hi Jeremy,
The same error occured.

i686-apple-darwin10-gcc  -O2 -pipe -march=native -fomit-frame-pointer -Wall -Wno-pointer-sign  curses.o -Wl,-dead_strip_dylibs -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:
  "_res_9_nmkquery", referenced from:
      _dorequest in dns.o
  "_res_9_ninit", referenced from:
      _dns_open in dns.o
  "_res_9_dn_expand", referenced from:
      _parserespacket in dns.o
      _parserespacket in dns.o
      _parserespacket in dns.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Comment 5 Fabian Groffen gentoo-dev 2011-08-29 17:55:52 UTC
(In reply to comment #2)
> In the ebuild, 
> 
> use x64-macos && append-libs -lresolv
> 
> does the error mean that x86-macos need -lresolv too?

Yes.  It's version specific, not arch-specific.  On OSX there hardly ever is a problem between arches, it's almost always a problem between releases.