Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68489 - x11-terms/aterm fails to configure on Mac OS 10.3.5 due to invalid ld arguments
Summary: x11-terms/aterm fails to configure on Mac OS 10.3.5 due to invalid ld arguments
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC All
: High blocker (vote)
Assignee: osx porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-21 20:31 UTC by Ben Jansen
Modified: 2005-02-06 13:33 UTC (History)
0 users

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


Attachments
diff between original ebuild and my working modified ebuild (aterm-0.4.2-r9.diff,127 bytes, patch)
2004-10-21 20:32 UTC, Ben Jansen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Jansen 2004-10-21 20:31:03 UTC
On Mac OS 10.3.5 x11-terms/aterm-0.4.2-r9 fails to build with the following output:

creating cache ./config.cache
configuring for aterm 0.4.2
checking for gcc... gcc
checking whether the C compiler (gcc -mcpu=7450 -maltivec -mabi=altivec -O2  -Wl,-z,now) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

According to config.log, ld doesn't understand -z. To fix this problem I put a non-macos conditional around `append-ldflags -Wl,-z,now' line in aterm-0.4.2-r9.ebuild. aterm now compiled and runs correctly. aterm-0.4.2-r11.ebuild is also affected by this issue.

Here's the diff between the original ebuild and my working modified one:
47c47,49
<       append-ldflags -Wl,-z,now
---
>   if !( use macos || use ppc-macos ) ; then
>     append-ldflags -Wl,-z,now
>   fi


Reproducible: Always
Steps to Reproduce:
1. emerge x11-terms/aterm on Mac OS
Actual Results:  
aterm failed to configure due to passing invalid arguments to ld

Expected Results:  
Should not have appended those arguments to ld on macos.

Output of `emerge info':
Portage 20040726 (default-macos-10.3, gcc-3.3, unavailable, 7.5.0 Power Macintosh powerpc)
===============================================================
==
System uname: 7.5.0 Power Macintosh powerpc
macos-20040726
distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.57
Automake: sys-devel/automake-1.6.3
Binutils:
ACCEPT_KEYWORDS="macos ~ppc-macos"
AUTOCLEAN="yes"
CFLAGS="-pipe -maltivec -mcpu=7450 -mabi=altivec -mtune=7450 -O2"
CHOST="powerpc-apple-darwin"
COMPILER=""
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/
qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-pipe -maltivec -mcpu=7450 -mabi=altivec -mtune=7450 -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect cvs keepwork"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://aleath/gentoo-portage"
USE="macos berkdb ldap mysql perl python ruby"
Comment 1 Ben Jansen 2004-10-21 20:32:49 UTC
Created attachment 42390 [details, diff]
diff between original ebuild and my working modified ebuild
Comment 2 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-10-21 23:40:05 UTC
Fixed in CVS. Thanks for the bug report.
Comment 3 Hasan Khalil (RETIRED) gentoo-dev 2005-02-06 13:33:11 UTC
Closing out bugs that've been resolved for a while now...