Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 98579 - emerge sys-libs/readline error in from libtool/linker
Summary: emerge sys-libs/readline error in from libtool/linker
Status: RESOLVED INVALID
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: PPC OS X
: High blocker
Assignee: Gentoo for Mac OS X
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-10 10:35 UTC by ash
Modified: 2006-04-12 10:53 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ash 2005-07-10 10:35:33 UTC
I tried to emerge sys-libs/readline on ppc macos, using a gcc I compiled myself
locally (there is nothing special about this gcc that I know of, I just did my
own build so I could compile fortran). Attached are the errors and the build
commands that made them.




Reproducible: Always
Steps to Reproduce:
1. sudo emerge sys-libs/readline

Actual Results:  
ld: warning multiple definitions of symbol _BC
terminal.so definition of _BC in section (__DATA,__data)
/usr/lib/libncurses.dylib(lib_termcap.o) definition of _BC
ld: Undefined symbols:
_sprintf$LDBLStub
_fprintf$LDBLStub
/usr/bin/libtool: internal link edit command failed
make[1]: *** [libhistory.4.3.dylib] Error 1
make[1]: *** Waiting for unfinished jobs....
ld: Undefined symbols:
_fprintf$LDBLStub
_sprintf$LDBLStub
_vsnprintf$LDBLStub
/usr/bin/libtool: internal link edit command failed
make[1]: *** [libreadline.4.3.dylib] Error 1
make: [shared] Error 2 (ignored)
rm -f libreadline.4.3.dylib
/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
+ ld -arch ppc -dylib -dynamic -all_load -force_cpusubtype_ALL -no_arch_warnings
-dylib_compatibility_version 4 -dylib_current_version 4.3 -dylib_install_name
/usr/lib/libreadline.4.3.dylib -ldylib1.o 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 -o libreadline.4.3.dylib 
ld: warning multiple definitions of symbol _PC
terminal.so definition of _PC in section (__DATA,__data)
/usr/lib/libncurses.dylib(lib_tputs.o) definition of _PC
ld: warning multiple definitions of symbol _UP
terminal.so definition of _UP in section (__DATA,__data)
/usr/lib/libncurses.dylib(lib_termcap.o) definition of _UP
ld: warning multiple definitions of symbol _BC
terminal.so definition of _BC in section (__DATA,__data)
/usr/lib/libncurses.dylib(lib_termcap.o) definition of _BC
ld: Undefined symbols:
_fprintf$LDBLStub
_sprintf$LDBLStub
_vsnprintf$LDBLStub
/usr/bin/libtool: internal link edit command failed
make: *** [libreadline.4.3.dylib] Error 1


!!! Relying on the shell to locate gcc, this may break
!!! DISTCC, installing gcc-config and setting your current gcc
!!! profile will fix this
Portage 2.0.51.19 (default-darwin/macos/10.4, gcc-4.0.0, libsystem-7.1-r0, 8.1.0
Power Macintosh)
=================================================================
System uname: 8.1.0 Power Macintosh powerpc
macos-20041118
Python:               [2.3.5 (#1, Mar 20 2005, 20:38:20)]
distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632)
[disabled]
dev-lang/python:     [Not Present]
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  [Not Present]
sys-devel/automake:  [Not Present]
sys-devel/binutils:  [Not Present]
sys-devel/libtool:   [Not Present]
virtual/os-headers:  7.1
ACCEPT_KEYWORDS="ppc-macos"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe"
CHOST="powerpc-apple-darwin"
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="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache collision-protect distlocks sfperms
strict userpriv"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc emboss nls png ppc-macos tiff userland_Darwin kernel_Darwin elibc_Darwin"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 ash 2005-07-10 10:52:59 UTC
(In reply to comment #0)
> I tried to emerge sys-libs/readline on ppc macos, using a gcc I compiled myself
> locally (there is nothing special about this gcc that I know of, I just did my
> own build so I could compile fortran). Attached are the errors and the build
> commands that made them.

> !!! Relying on the shell to locate gcc, this may break
> !!! DISTCC, installing gcc-config and setting your current gcc
> !!! profile will fix this

After noticing this, I unset $CC (which pointed to the local version of gcc I
was using). It compiles now, but emerge still fails because of collision
protection. Is there any way to have things emerge into /usr/local/whatever
instead of /usr/whatever?
Comment 2 Hasan Khalil (RETIRED) gentoo-dev 2005-07-10 17:46:42 UTC
>After noticing this, I unset $CC (which pointed to the local version of gcc I
>was using). It compiles now, but emerge still fails because of collision
>protection. Is there any way to have things emerge into /usr/local/whatever
>instead of /usr/whatever?

Not yet. Sorry.