Ah, ok, thanks for the heads up. I'll revert to gentoo's gcc ebuild for now.nxsty wrote:The gcc ebuild is broken.Don´t use it. I added some visibility fixes from the HEAD branch (4.2) but they actually made things worse. In the firefox case the configure script detect that #pragma visibility works, when it actually don´t, and try to compile with it instead of falling back to using -fvisibility=.

I´ve synced the mirrors now. You can get the files from:SteveYin wrote:But the problem is some ppl can not connect to http://snigel.no-ip.com, so, they I can not using this greate patch. it's a big pitty!!
Code: Select all
i686-pc-linux-gnu-gcc enbl-secure.c -c -std=gnu99 -DNDEBUG=1 -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -fno-ident -march=prescott -mtune=prescott -pipe -Wstrict-prototypes -mpreferred-stack-boundary=2 -I../include -I/var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/elf -I/var/tmp/portage/glibc-2.4-r3/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/4.1.1/include -isystem /usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -o /var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/elf/enbl-secure.o -MD -MP -MF /var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/elf/enbl-secure.o.dt -MT /var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/elf/enbl-secure.o
dl-addr.c: In function '_dl_addr':
dl-addr.c:78: error: 'DT_GNU_HASH' undeclared (first use in this function)
dl-addr.c:78: error: (Each undeclared identifier is reported only once
dl-addr.c:78: error: for each function it appears in.)
dl-addr.c:85: error: 'struct link_map' has no member named 'l_gnu_buckets'
dl-addr.c:88: error: 'struct link_map' has no member named 'l_gnu_chain_zero'
make[2]: *** [/var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/elf/dl-addr.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/glibc-2.4-r3/work/glibc-2.4/elf'
make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.4-r3/work/glibc-2.4'
make: *** [all] Error 2
!!! ERROR: sys-libs/glibc-2.4-r3 failed.
Call stack:
ebuild.sh, line 1543: Called dyn_compile
ebuild.sh, line 938: Called src_compile
glibc-2.4-r3.ebuild, line 1217: Called toolchain-glibc_src_compile
glibc-2.4-r3.ebuild, line 277: Called die
!!! make for default failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! This ebuild is from an overlay: '/usr/local/portage'Code: Select all
# emerge --info
Portage 2.1.1_pre4-r3 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-beyond3 i686)
=================================================================
System uname: 2.6.17-beyond3 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz
Gentoo Base System version 1.12.4
ccache version 2.4 [enabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python: 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache: 2.4-r2
dev-util/confcache: [Not Present]
sys-apps/sandbox: 1.2.18.1
sys-devel/autoconf: 2.13, 2.60
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils: 2.16.93
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.17
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -mtune=prescott -march=prescott -fforce-addr -momit-leaf-frame-pointer -fomit-frame-pointer -ftracer -pipe -fno-ident"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O3 -mtune=prescott -march=prescott -fforce-addr -momit-leaf-frame-pointer -fomit-frame-pointer -ftracer -pipe -fno-ident -fvisibility-inlines-hidden -fno-enforce-eh-specs"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.heanet.ie/mirrors/gentoo.org/ http://gentoo.osuosl.org/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,-Bdirect -Wl,--as-needed -Wl,-hashvals -Wl,-zdynsort"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=3600 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac acpi alsa apm arts artswrappersuid avi berkdb bitmap-fonts branding bzip2 cddb cdr cli crypt cups curl dbus dga dlloader dri dts dvd elibc_glibc emboss encode ffmpeg flac foomaticdb fortran gdbm gif glitz gpm gstreamer gtk gtk2 hal i8x0 imlib input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kdenewldflags kernel_linux lcms libcaca libg++ libwww linguas_en logrotate lzo mad mikmod mmx mmx2 mmxext motif mp3 mpeg ncurses nls nojoystick nptl nptlonly ogg opengl oss pam pcre pdf pdflib perl pic png ppds pppd python qt qt3 quicktime readline real reflection sdl session smime sndfile spell spl sse sse2 sse3 ssl svg svga tcl tcpd theora tiff tk truetype truetype-fonts type1-fonts udev usb userland_GNU vcd video_cards_i810 video_cards_vesa vidix vorbis win32codecs xcomposite xine xml xorg xv xvid xvmc zlib"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, PORTAGE_RSYNC_EXTRA_OPTS
You are installing glibc with the hash-style patches, before this you will need binutils, which support this, if you are sure you want this read the wiki, on how to make the transition.'DT_GNU_HASH' undeclared (first use in this function)
...but I didn't set the use flagGergan Penkov wrote:You are installing glibc with the hash-style patches, before this you will need binutils, which support this, if you are sure you want this read the wiki, on how to make the transition.'DT_GNU_HASH' undeclared (first use in this function)
Code: Select all
emerge -pv glibc
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild U ] sys-libs/glibc-2.4-r4 [2.4-r3] USE="nls nomalloccheck nptl nptlonly -build -debug -glibc-omitfp -hardened -hashstyle -profile" 0 kB [1]
Total size of downloads: 0 kB
Portage overlays:
[1] /usr/local/portage
Sure.abhay wrote:Can we have your emerge info?
Code: Select all
Portage 2.1.1_pre4-r4 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r4
, 2.6.17-ck1-r2 i686)
=================================================================
System uname: 2.6.17-ck1-r2 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.12.4
ccache version 2.4 [enabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python: 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache: 2.4-r2
dev-util/confcache: [Not Present]
sys-apps/sandbox: 1.2.18.1
sys-devel/autoconf: 2.13, 2.60
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils: 2.17.50.0.3
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.17
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Wall -march=athlon-xp -O2 -fomit-frame-pointer -fno-ident -pipe"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="-Wall -march=athlon-xp -O2 -fomit-frame-pointer -fno-ident -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,--hash-style=both"
MAKEOPTS="-j2"
