Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 96858

Summary: readline-4.3-r6 fails to build under Mac OSX Tiger
Product: Gentoo/Alt Reporter: Douglas Creager <dc1847>
Component: Mac OSXAssignee: Gentoo for Mac OS X <ppc-macos>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: High    
Version: unspecified   
Hardware: PPC   
OS: OS X   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Proposed patch

Description Douglas Creager 2005-06-23 06:51:48 UTC
Building readline-4.3-r6 fails under Mac OS X Tiger during the linking phase.  The linking scripts are 
looking for a libcc_dynamic library that does not exist.

Reproducible: Always
Steps to Reproduce:
1.  emerge readline

Actual Results:  
Build failure.  Error message:

[...snip...]
/usr/bin/libtool -dynamic -arch_only `/usr/bin/arch` -install_name /usr/lib/libreadline.4.3.dylib -
current_version 4.3 -compatibility_version 4 -v -o libreadline.4.3.dylib readline.so vi_mode.so 
funmap.so keymaps.so parens.so search.so rltty.so complete.so bind.so isearch.so display.so signals.so 
util.so kill.so undo.so macro.so input.so callback.so terminal.so text.so nls.so misc.so xmalloc.so 
history.so histexpand.so histfile.so histsearch.so shell.so mbutil.so tilde.so compat.so -lSystem -
lncurses -lcc_dynamic
/usr/bin/libtool: can't locate file for: -lcc_dynamic
/usr/bin/libtool: file: -lcc_dynamic is not an object file (not allowed in a library)


Expected Results:  
Successful build and install.
Comment 1 Douglas Creager 2005-06-23 06:53:50 UTC
Under Panther (and possibly earlier versions of OSX), gcc3.3 shipped with libcc_dynamic as a symlink to a 
statically linked libgcc, which was often necessary for certain applications.  For some reason, this is no 
longer needed in the gcc4.0 that is shipped with Tiger.  Including the -lcc_dynamic flag causes links under 
Tiger to fail.  I will post a patch to the ebuild that fixes this problem and installs correctly under Tiger.
Comment 2 Douglas Creager 2005-06-23 07:03:35 UTC
Created attachment 61781 [details, diff]
Proposed patch

This patch should create a readline-4.3-r7 ebuild that patches as before when
using <=10.3, and patches without -lcc_dynamic when using 10.4.
Comment 3 Douglas Creager 2005-06-23 07:05:51 UTC
I should point out that this libreadline still has a file collision with the pre-installed libreadline, but that is 
independent of this bug.  You'll still need to turn of collision protection to get the qmerge to succeed.
Comment 4 Fabian Groffen gentoo-dev 2005-09-10 08:07:25 UTC
Bug #97243 deals with readline-5*.

I consider this bug out of date, and I think there is no particular interest in
fixing this given there is a newer version out.

Thanks for the report anyway!