with i686-pc-linux-gnu-3.4.5 genkernel --bootloader=grub all klibc/__shared_init.o: In function `__libc_init': klibc/libc_init.c:43: undefined reference to `__guard' klibc/vsnprintf.o: In function `vsnprintf': klibc/vsnprintf.c:163: undefined reference to `__guard' klibc/vsnprintf.c:433: undefined reference to `__stack_smash_handler' klibc/snprintf.o: In function `snprintf': klibc/snprintf.c:8: undefined reference to `__guard' klibc/snprintf.c:16: undefined reference to `__stack_smash_handler' klibc/vsprintf.o: In function `vsprintf': klibc/vsprintf.c:9: undefined reference to `__guard' klibc/vsprintf.c:11: undefined reference to `__stack_smash_handler' klibc/sprintf.o: In function `sprintf': klibc/sprintf.c:9: undefined reference to `__guard' klibc/sprintf.c:18: undefined reference to `__stack_smash_handler' klibc/asprintf.o: In function `asprintf': klibc/asprintf.c:10: undefined reference to `__guard' klibc/asprintf.c:30: undefined reference to `__guard' klibc/asprintf.c:30: undefined reference to `__stack_smash_handler' klibc/vasprintf.o: In function `vasprintf': klibc/vasprintf.c:10: undefined reference to `__guard' klibc/vasprintf.c:25: undefined reference to `__guard' klibc/vasprintf.c:25: undefined reference to `__stack_smash_handler' klibc/vsscanf.o: In function `vsscanf': klibc/vsscanf.c:71: undefined reference to `__guard' klibc/vsscanf.c:365: undefined reference to `__guard' klibc/vsscanf.c:365: undefined reference to `__stack_smash_handler' klibc/sscanf.o: In function `sscanf': klibc/sscanf.c:8: undefined reference to `__guard' klibc/sscanf.c:17: undefined reference to `__stack_smash_handler' klibc/strntoumax.o: In function `strntoumax': klibc/strntoumax.c:25: undefined reference to `__guard .... gcc-config i686-pc-linux-gnu-3.4.5-hardenednossp source /etc/profile genkernel --bootloader=grub all runs as expected. emerge --info Portage 2.0.54 (!/usr/portage/profiles/hardened/x86/2.6, gcc-3.4.5, glibc-2.3.5-r2, 2.6.11-hardened-r15 i686) ================================================================= System uname: 2.6.11-hardened-r15 i686 AMD Athlon(tm) XP 2000+ Gentoo Base System version 1.6.14 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] dev-lang/python: 2.4.2 sys-apps/sandbox: 1.2.12 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 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=i686 -pipe -O2 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control /var/run/dspam /var/spool/dspam" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d" CXXFLAGS="-march=i686 -pipe -O2 -fomit-frame-pointer" DISTDIR="/data/portage/distfiles" FEATURES="autoconfig buildpkg ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.ngi.it http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LANG="it_IT@euro" MAKEOPTS="-j2" PKGDIR="/data/portage/packages" PORTAGE_TMPDIR="/tmp" PORTDIR="/data/portage" PORTDIR_OVERLAY="/data/portage-overlay" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow acpi berkdb bind-mysql bzip2 cdr crypt curl dga dlloader dlz dvb dvd ethereal expat fbcon flash gb gd gdbm gmp gpm hardened idn innodb inode jikes jpeg lcms libclamav libwww maildir maildrop mcal memlimit mhash ming mmx mpi mysql ncurses nls nptl pam pcre perl php pic plotutils png python readline samba sasl scanner session snmp ssl tcpd threads tiff truetype udev usb userlocales vchroot videos virtual-users wmf x86 xml2 xosd xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS
Fabio, Unrelated to your problem but notice the '!' in your emerge -V output? Portage 2.0.54 (!/usr/portage/profiles/hardened/x86/2.6, gcc-3.4.5, glibc-2.3.5-r2, 2.6.11-hardened-r15 i686) That means you have the profile linked incorrectly. Mislinked profiles can result in very strange results. Solution: cd /etc/ rm make.profile ln -s ../usr/portage/profiles/hardened/x86/2.6 make.profile ------------------ klibc.. We gave patches/tips or something for this before so that klibc has basic ssp symbol support. Not sure if that got dropped or other.
(In reply to comment #1) > ln -s ../usr/portage/profiles/hardened/x86/2.6 make.profile that's what i had. i suspect this "! thing" is 'cause i have PORTDIR="/data/portage" and /usr/portage -> /data/portage. changing the link in /etc/make.profile -> /data/portage/profiles/hardened/x86/2.6 emerge -V Portage 2.0.54 (hardened/x86/2.6, gcc-3.4.5, glibc-2.3.5-r2, 2.6.14-hardened-r5 i686) AFAIK, nothing really changed, just "cosmetic stuff".
(In reply to comment #1) > klibc.. We gave patches/tips or something for this before so that > klibc has basic ssp symbol support. Not sure if that got dropped or other. working versions klibc-1.0.14-r1 (#103437 klibc-1.0.14-nostdlib.patch ) klibc-1.2.1-r1 (#120678 klibc-1.2.1-nostdinc-flags.patch)
This should be fixed with genkernel 3.3.11a or higher.