i686-pc-linux-gnu-gcc gconv_cache.c -c -std=gnu99 -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -march=athlon-xp -pipe -Wstrict-prototypes -mpreferred-stack-boundary=2 -g0 -O99 -fomit-frame-pointer -D__USE_STRING_INLINES -DGCONV_DIR='"/usr/lib/gconv"' -I../include -I/Gentoo/Portage/build/portage/glibc-2.4/work/build-default-i686-pc-linux-gnu-nptl/iconv -I/Gentoo/Portage/build/portage/glibc-2.4/work/build-default-i686-pc-linux-gnu-nptl -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 -I../nptl/sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux/i386 -I../ports/sysdeps/unix/sysv/linux -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../ports/sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv/i386 -I../ports/sysdeps/unix/sysv -I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../ports/sysdeps/unix -I../nptl/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../nptl/sysdeps/i386/i686 -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../nptl/sysdeps/i386 -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I../ports -I../nptl -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4.5/include -isystem /usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DPIC -o /Gentoo/Portage/build/portage/glibc-2.4/work/build-default-i686-pc-linux-gnu-nptl/iconv/gconv_cache.o -MD -MP -MF /Gentoo/Portage/build/portage/glibc-2.4/work/build-default-i686-pc-linux-gnu-nptl/iconv/gconv_cache.o.dt -MT /Gentoo/Portage/build/portage/glibc-2.4/work/build-default-i686-pc-linux-gnu-nptl/iconv/gconv_cache.o gconv_cache.c: In function `__gconv_load_cache': gconv_cache.c:75: error: invalid `asm': operand number out of range gconv_cache.c:75: error: invalid `asm': operand number out of range gconv_cache.c:112: error: invalid `asm': operand number out of range gconv_cache.c:112: error: invalid `asm': operand number out of range {standard input}: Assembler messages: {standard input}:95: Error: non-constant expression in ".if" statement {standard input}:126: Error: non-constant expression in ".if" statement make[2]: *** [/Gentoo/Portage/build/portage/glibc-2.4/work/build-default-i686-pc-linux-gnu-nptl/iconv/gconv_cache.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/Gentoo/Portage/build/portage/glibc-2.4/work/glibc-2.4/iconv' make[1]: *** [iconv/subdir_lib] Error 2 make[1]: Leaving directory `/Gentoo/Portage/build/portage/glibc-2.4/work/glibc-2.4' make: *** [all] Error 2 !!! ERROR: sys-libs/glibc-2.4 failed. Call stack: ebuild.sh, line 1933: Called dyn_compile ebuild.sh, line 971: Called src_compile glibc-2.4.ebuild, line 1263: Called toolchain-glibc_src_compile !!! (no error message) !!! If you need support, post the topmost build error, and the call stack if relevant. I tried to compile glibc with the following flags: [ebuild U ] sys-libs/glibc-2.4 [2.3.6-r3] USE="erandom glibc-omitfp hardened nls nptl* nptlonly* pic userlocales* -build -multilib -profile" 0 kB glibc-2.4 cannot be built without "nptl nptlonly". Might this be a dupe of bug 81457 ? If so, please reopen it! Adding a patch, which will make the ebuild re-apply ${FILESDIR}/2.3.4/glibc-2.3.4-hardened-sysdep-shared.patch hetzner tmp # emerge --info Portage 2.1_pre5-r4 (hardened/x86/2.6, gcc-3.4.5, glibc-2.3.6-r3, 2.6.14-hardened-r5.01 i686) ================================================================= System uname: 2.6.14-hardened-r5.01 i686 AMD Athlon(tm) XP 2000+ Gentoo Base System version 1.12.0_pre16 ccache version 2.4 [enabled] dev-lang/python: 2.3.5-r2, 2.4.2-r1 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 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.15.92.0.2-r10, 2.16.1-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/mail/dspam /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control /var/run/dspam" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" DISTDIR="/Gentoo/Portage/distfiles" FEATURES="autoconfig buildpkg ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS=" http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://gentoo.itdnet.net/gentoo/ http://ftp.gentoo.or.kr/ http://distfiles.gentoo.org/ " LDFLAGS="-Wl,-O1" LINGUAS="de" MAKEOPTS="-j2" PKGDIR="/Gentoo/Portage/packages" PORTAGE_TMPDIR="/Gentoo/Portage/build" PORTDIR="/Gentoo/Portage/tree" PORTDIR_OVERLAY="/Gentoo/Portage/local-tree/misc /Gentoo/Portage/local-tree/overlays/gentoo-de" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="3dnow 3dnowext 7zip acl apache2 async bash-completion berkdb bzip2 cap caps ccache checkpath chroot cracklib crypt cyrus dcc discard-path dlloader ecc erandom exif extensions firefox glep glibc-omitfp hardened hardenedphp hpn iconv idea idled idn imagemagick imap imlib imlib2 jikes jpeg kdeenablefinal linuxthreads-tls logrotate lynxkeymap maildir mime mmap mmx mmxext mode-owner moznoirc mozsvg multislot nls no-old-linux noaudio nocd nodrm nolvm1 nopop3d offensive pam pam-mysql pcre pdf php pic posix postfix prelude pyzor razor readline recode reiserfs sasl sendfile server sftplogging sharedmem sse ssl static sysvipc szip tcpd threads tiff tokenizer tools unicode userlocales utf8 vhosts vim-pager x86 xfs xinetd zlib elibc_glibc kernel_linux linguas_de userland_GNU" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL
Created attachment 81902 [details, diff] Patch, which re-adds that the hardened patches get applied The ebuild works - don't know if glibc will work. I'm still compiling.
updated the hardened patch, sent it upstream, and added it back to the glibc-2.4 patchset
Did you actually CHECK if everything's working? If you just applied the patch the way I send it, then the bug is not fixed!
Comment on attachment 81902 [details, diff] Patch, which re-adds that the hardened patches get applied Doesn't work - compilation still fails.
no i didnt use your ebuild, i didnt even look at it
*** Bug 125829 has been marked as a duplicate of this bug. ***
hmm after emerge syncing and trying to emerge glibc2.4 i get: : /var/tmp/portage/glibc-2.4/work/build-default-i686-pc-linux-gnu-nptl/libc_pic.a i686-pc-linux-gnu-gcc -nostdlib -nostartfiles -r -o /var/tmp/portage/glibc-2.4/work/build-default-i686-pc-linux-gnu-nptl/elf/librtld.map.o '-Wl,-(' /var/tmp/portage/glibc-2.4/work/build-default-i686-pc-linux-gnu-nptl/elf/dl-allobjs.os /var/tmp/portage/glibc-2.4/work/build-default-i686-pc-linux-gnu-nptl/libc_pic.a -lgcc '-Wl,-)' -Wl,-Map,/var/tmp/portage/glibc-2.4/work/build-default-i686-pc-linux-gnu-nptl/elf/librtld.mapT /var/tmp/portage/glibc-2.4/work/build-default-i686-pc-linux-gnu-nptl/libc_pic.a(init-first.os):(.data+0x0): multiple definition of `__libc_multiple_libcs' /var/tmp/portage/glibc-2.4/work/build-default-i686-pc-linux-gnu-nptl/elf/dl-allobjs.os:(.bss+0x80): first defined here /var/tmp/portage/glibc-2.4/work/build-default-i686-pc-linux-gnu-nptl/libc_pic.a(_itoa.os): In function `_itoa': _itoa.c:(.text+0xe0): multiple definition of `_itoa' /var/tmp/portage/glibc-2.4/work/build-default-i686-pc-linux-gnu-nptl/elf/dl-allobjs.os:: first defined here /usr/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../../i686-pc-linux-gnu/bin/ld: Warning: size of symbol `_itoa' changed from 233 in /var/tmp/portage/glibc-2.4/work/build-default-i686-pc-linux-gnu-nptl/elf/dl-allobjs.os to 567 in /var/tmp/portage/glibc-2.4/work/build-default-i686-pc-linux-gnu-nptl/libc_pic.a(_itoa.os) collect2: ld returned 1 exit status distcc[12060] ERROR: compile (null) on localhost failed make[2]: *** [/var/tmp/portage/glibc-2.4/work/build-default-i686-pc-linux-gnu-nptl/elf/librtld.map] Error 1 make[2]: Leaving directory `/var/tmp/portage/glibc-2.4/work/glibc-2.4/elf' make[1]: *** [elf/subdir_lib] Error 2 make[1]: Leaving directory `/var/tmp/portage/glibc-2.4/work/glibc-2.4' make: *** [all] Error 2 !!! ERROR: sys-libs/glibc-2.4 failed. Call stack: ebuild.sh, line 1933: Called dyn_compile ebuild.sh, line 971: Called src_compile glibc-2.4.ebuild, line 1258: Called toolchain-glibc_src_compile !!! (no error message) !!! If you need support, post the topmost build error, and the call stack if relevant. emerge info: Portage 2.1_pre5-r4 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.6-r3, 2.6.15-gentoo-r5 i686) ================================================================= System uname: 2.6.15-gentoo-r5 i686 Pentium III (Katmai) Gentoo Base System version 1.12.0_pre16 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] dev-lang/python: 2.4.2-r1 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 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-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-pipe -march=pentium3 -O3 -funroll-all-loops" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-pipe -march=pentium3 -O3 -funroll-all-loops" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig collision-protect distcc distlocks sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.mirror.solnet.ch http://trumpetti.atm.tut.fi/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync5.pl.gentoo.org/gentoo-portage" USE="x86 X berkdb bitmap-fonts bzip2 caps chroot crypt dri eds emboss glibc-omitfp gpm gstreamer gtk gtk2 hardened hpn jpeg minimal mmx mp3 ncurses nptl nptlonly ogg pam pam_chroot pam_timestamp perl png pthreads python readline sftplogging slang sse ssl symlink tcpd threads truetype type1-fonts userlocales vorbis zlib elibc_glibc kernel_linux userland_GNU" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
>... > multiple definition of `__libc_multiple_libcs' >... > _itoa.c:(.text+0xe0): multiple definition of `_itoa' >... That's a different issue. See bug #94325.