Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 119818 - sys-libs/glibc fails to build >=2.3.4 due to undefined _rtld_global_ro
Summary: sys-libs/glibc fails to build >=2.3.4 due to undefined _rtld_global_ro
Status: RESOLVED DUPLICATE of bug 78951
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
: 123294 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-01-21 07:01 UTC by Andrew Griffiths
Modified: 2006-02-23 13:02 UTC (History)
2 users (show)

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 Andrew Griffiths 2006-01-21 07:01:08 UTC
Hello,

Whilst trying to upgrade world to current from PPC 2005.1, I ran across the following problem upgrading glibc (2.3.5-r3):

/var/tmp/portage/glibc-2.3.6-r2/work/build-default-powerpc-unknown-linux-gnu-linuxthreads/libc.a(__longjmp.o): In function `__longjmp@@GLIBC_2.3.4':
../sysdeps/powerpc/powerpc32/fpu/__longjmp.S:(.text+0xe): undefined reference to `_rtld_global_ro'
/var/tmp/portage/glibc-2.3.6-r2/work/build-default-powerpc-unknown-linux-gnu-linuxthreads/libc.a(setjmp.o): In function `__sigsetjmp@@GLIBC_2.3.4':
../sysdeps/powerpc/powerpc32/fpu/setjmp.S:(.text+0xb2): undefined reference to `_rtld_global_ro'
collect2: ld returned 1 exit status
make[2]: *** [/var/tmp/portage/glibc-2.3.6-r2/work/build-default-powerpc-unknown-linux-gnu-linuxthreads/elf/sln] Error 1

I am using the hardened profile, below is emerge --info:

Portage 2.0.53 (hardened/ppc, gcc-3.4.4-hardened, glibc-2.3.4.20041102-r1, 2.6.1                                       
4-hardened-r4 ppc)
=================================================================
System uname: 2.6.14-hardened-r4 ppc 7447A, altivec supported
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mtune=powerpc -pipe -mcpu=7450 -maltivec -mabi=altivec -mpowerpc-gf                                       
xopt -mstring -mmultiple -Wa,--noexecstack"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X1                                       
1/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mtune=powerpc -pipe -mcpu=7450 -maltivec -mabi=altivec -mpowerpc-                                       
gfxopt -mstring -mmultiple -Wa,--noexecstack"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/                                       
distributions/gentoo"
PKGDIR="/usr/portage//packages/ppc/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa altivec bash-completion berkdb bzip2 cairo cdr crypt cscope cups                                       
 dlloader dvd dvdr expat gdbm glut gpm gtk hardened idn imap jpeg lcms ldap mad                                        
mng motif mp3 ncurses nls ogg opengl pam perl pic png pop ppc python readline re                                       
code ruby ssl tcpd tiff truetype truetype-fonts type1-fonts udev unicode userloc                                       
ales vorbis xml2 xmms xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVER                                       
LAY

The cflags come from a google search for flags for this particular laptop (PowerBook G4 15"). I added -Wa,--noexecstack manually. 

Additionally, I unmasked glibc-2.3.6 to see if the issue was fixed in the latest glibc, and I still get the above error compiling glibc.

If you need any more information or preform tests, let me know.

Thanks,
Andrew Griffiths
Comment 1 solar (RETIRED) gentoo-dev 2006-01-23 06:16:39 UTC
ppc + glibc is a tad unsatable all the way around. 
Adding morfic to the CC: list as he is pretty much the only guy working on/towards ppc support.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-02-19 08:11:47 UTC
*** Bug 123294 has been marked as a duplicate of this bug. ***
Comment 3 Kevin F. Quinn (RETIRED) gentoo-dev 2006-02-23 13:02:38 UTC

*** This bug has been marked as a duplicate of 78951 ***