Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 75849 - traceroute-1.4_p12-r2 works on OS X
Summary: traceroute-1.4_p12-r2 works on OS X
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: PPC All
: High normal (vote)
Assignee: Gentoo for Mac OS X
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-27 14:52 UTC by André Brioso
Modified: 2008-02-29 20:22 UTC (History)
0 users

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


Attachments
changed traceroute-1.4_p12-r2.ebuild (traceroute-1.4_p12-r2.ebuild,1.23 KB, text/plain)
2004-12-27 14:56 UTC, André Brioso
Details

Note You need to log in before you can comment on or make changes to this bug.
Description André Brioso 2004-12-27 14:52:42 UTC
I've compiled traceroute-1.4_p12-r2 using emerge on my darwin/osx box.

Reproducible: Always
Steps to Reproduce:
1. Add the ppc-macos keyword to the ebuild (traceroute-1.4_p12-r2.ebuild)
2. Comment line 36 (append-ldflags -Wl,-z,now) to the ebuild
3. FEATURES="-collision-protect"  emerge -v traceroute
Actual Results:  
It works.. :)

Vigor11:~ root# traceroute
Version 1.4a12
Usage: traceroute [-dFInrvx] [-g gateway] [-i iface] [-f first_ttl]
        [-m max_ttl] [ -p port] [-q nqueries] [-s src_addr] [-t tos]
        [-w waittime] [-z pausemsecs] host [packetlen]
Vigor11:~ root#
Comment 1 André Brioso 2004-12-27 14:56:17 UTC
Created attachment 46997 [details]
changed traceroute-1.4_p12-r2.ebuild
Comment 2 Lina Pezzella (RETIRED) gentoo-dev 2005-01-27 16:29:46 UTC
Doesn't work for me!

autom4te: /usr/bin/gm4 failed with exit status: 1
autoreconf: /usr/bin/autoconf failed with exit status: 1
./configure --prefix=/usr --host=powerpc-apple-darwin --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib
creating cache ./config.cache
checking host system type... powerpc-apple-darwin
checking target system type... powerpc-apple-darwin
checking build system type... powerpc-apple-darwin
checking for gcc... gcc
checking whether the C compiler (gcc -fast -fPIC -mcpu=7450 -pipe  -Wl,-z,now) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/traceroute-1.4_p12-r2/work/traceroute-1.4a12/config.log

!!! ERROR: net-analyzer/traceroute-1.4_p12-r2 failed.
!!! Function econf, Line 485, Exitcode 0
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status message.

Note: I DO have xcode installed and I can install other C programs.
Comment 3 André Brioso 2005-01-28 03:10:06 UTC
have you emerged the system with "emerge system"?

Comment 4 Lina Pezzella (RETIRED) gentoo-dev 2005-01-28 17:04:28 UTC
Of course I've emerged system. I did not notice that you commented line 36 in the ebuild. Sorry about
that. I am not willing to comment that line without finding out what it is there for. The fact that the
comment details about suid apps suggests there may be a security reason for those flags. I am not
experienced with this, so I don't know.
Comment 5 Lina Pezzella (RETIRED) gentoo-dev 2005-02-09 17:15:39 UTC
Apparently those linker options don't work for a lot of archs and are simply commented when
that is the case. So, kito: if you want to keyword this for your profile or for ppc-darwin, make the following modification at line 36:

 use ppc-macos || append-ldflags -Wl,-z,now

and go right ahead. Please package.mask this for the collision-protect profile as BSD traceroute
is already provided by the system.
Comment 6 Fabian Groffen gentoo-dev 2005-08-21 12:02:31 UTC
has this bug been dealt with in the progressive profile yet?
Comment 7 Fabian Groffen gentoo-dev 2008-02-29 20:22:27 UTC
powerpc-apple-darwin8-gcc -O3 -pipe -mcpu=G5 -mtune=G5  -D_GNU_SOURCE -c csum.c
powerpc-apple-darwin8-gcc -O3 -pipe -mcpu=G5 -mtune=G5  -D_GNU_SOURCE -c mod-icm
p.c
In file included from mod-icmp.c:13:
/usr/include/netinet/icmp6.h:190: error: field ‘mld6_addr’ has incomplete type
/usr/include/netinet/icmp6.h:244: error: field ‘nd_ns_target’ has incomplete pe
/usr/include/netinet/icmp6.h:255: error: field ‘nd_na_target’ has incomplete

and I don't feel like fixing it, sorry.