Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 120678 - klibc-1.1.16-r1 does not build - undefined references to SSP
Summary: klibc-1.1.16-r1 does not build - undefined references to SSP
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-28 04:14 UTC by Daniel Seyffer
Modified: 2006-02-13 02:48 UTC (History)
1 user (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 Daniel Seyffer 2006-01-28 04:14:07 UTC
Hi,

I've got a problem updating klibc to dev-libs/klibc-1.1.16-r1

I am getting a lot of references to undefined symbols __guard and __stack_smash_handler:
-------------------
[...]

klibc/send.o: In function `send':
klibc/send.c:9: undefined reference to `__guard'
klibc/send.c:11: undefined reference to `__stack_smash_handler'
klibc/recv.o: In function `recv':
klibc/recv.c:9: undefined reference to `__guard'
klibc/recv.c:11: undefined reference to `__stack_smash_handler'
klibc/libgcc/__divdi3.o: In function `__divdi3':
klibc/libgcc/__divdi3.c:11: undefined reference to `__guard'
klibc/libgcc/__divdi3.c:29: undefined reference to `__stack_smash_handler'
klibc/libgcc/__moddi3.o: In function `__moddi3':
klibc/libgcc/__moddi3.c:11: undefined reference to `__guard'
klibc/libgcc/__moddi3.c:29: undefined reference to `__stack_smash_handler'
klibc/libgcc/__udivdi3.o: In function `__udivdi3':
klibc/libgcc/__udivdi3.c:11: undefined reference to `__guard'
klibc/libgcc/__udivdi3.c:13: undefined reference to `__stack_smash_handler'
klibc/libgcc/__umoddi3.o: In function `__umoddi3':
klibc/libgcc/__umoddi3.c:11: undefined reference to `__guard'
klibc/libgcc/__umoddi3.c:16: undefined reference to `__stack_smash_handler'
klibc/libgcc/__udivmoddi4.o: In function `__udivmoddi4':
klibc/libgcc/__udivmoddi4.c:5: undefined reference to `__guard'
klibc/libgcc/__udivmoddi4.c:32: undefined reference to `__stack_smash_handler'
make[2]: *** [klibc/libc.so] Fehler 1
------------------------------------------------

I have got the hardened use flag set and the complete system has been (re-)compiled with hardened (so glibc an gcc are definitely recompiled using hardened). 

The only thing I could imagine is that I did intentionally not change the systems profile to hardened. (is this mandatory? I have successfully used similar setups in the past...)

emerge --info says:

Portage 2.1_pre3-r1 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.6-r2, 2.6.15-rc7 i686)
=================================================================
System uname: 2.6.15-rc7 i686 AMD Athlon(tm) XP 3000+
Gentoo Base System version 1.12.0_pre15
ccache version 2.4 [disabled]
dev-lang/python:     2.2.3-r5, 2.3.5, 2.4.2
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-r1
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 -fforce-addr -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -fforce-addr -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy distlocks sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.uni-c.dk/pub/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.nyx.hu/gentoo"
LANG="de_DE@euro"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext S3TC X a52 aac acpi alsa apache2 arts artswrappersuid asf audiofile avi berkdb bitmap-fonts bluetooth bonobo bzip2 cairo cdr crypt css cups curl dbus dga directfb dlloader dri dts dv dvb dvd dvdr dvdread eds emboss encode esd ethereal evo exif expat fam fat fbcon fbdev ffmpeg firefox flac foomaticdb fortran freetype gb gcj gd gdbm gif glut glx gmp gnokii gnome gphoto2 gpm gstreamer gtk gtk2 gtk2i gtkhtml guile hal hardened hbci icq idn imagemagick imap imlib irmc java javascript jikes joystick jpeg junit kde kdeenablefinal kdexdeltas lcms libcaca libg++ libwww lm_sensors logitech-mouse mad madwifi maildir mikmod mmap mmx mmxext mng moneyplex motif mozilla moznocompose moznoirc moznomail mozsha1 mozsvg mp3 mpeg musicbrainz mysql ncurses network nforce2 nls nptl nsplugin ntfs nvidia oav offensive ogg oggvorbis openal opengl pam pcre pdflib perl pic png pnp ppds python qt quicktime rdesktop readline recode reiserfs rtc samba sdl silverxp slang speex spell sqlite sse ssl svg syslog tcltk tcpd threads tiff transcode truetype truetype-fonts trusted type1 type1-fonts udev unicode usb userlocales v4l v4l2 videos vidix vorbis win32codecs xcomposite xine xml xml2 xmms xosd xv xvid zlib elibc_glibc kernel_linux linguas_de userland_GNU"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS

and gcc-config -l 
 gcc-config -l
 [1] i686-pc-linux-gnu-3.4.5 *
 [2] i686-pc-linux-gnu-3.4.5-hardenednopie
 [3] i686-pc-linux-gnu-3.4.5-hardenednopiessp
 [4] i686-pc-linux-gnu-3.4.5-hardenednossp
 [5] i686-pc-linux-gnu-3.4.5-vanilla

Any ideas? Thanks in advance.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-01-28 04:29:09 UTC
Hmmm, the patch from Bug 103437 is no longer applied in newer versions, it seems...
Comment 2 Daniel Seyffer 2006-01-28 05:59:16 UTC
aah. (Why ever I did not find #103437 when I searched bugzilla...) ;-/
Comment 3 Jonathan Leatherwood 2006-02-06 17:42:43 UTC
(In reply to comment #1)
> Hmmm, the patch from Bug 103437 is no longer applied in newer versions, it
> seems...
> 

I can confirm the problem also exists in the klibc-1.2.1 ebuild.  Tail end of make output and `emerge --info` follows...

-----------------------------

*snip*
klibc/libgcc/__umoddi3.c:16: undefined reference to `__stack_smash_handler'
klibc/libgcc/__udivmoddi4.o: In function `__udivmoddi4':
klibc/libgcc/__udivmoddi4.c:5: undefined reference to `__guard'
klibc/libgcc/__udivmoddi4.c:32: undefined reference to `__stack_smash_handler'
make[2]: *** [klibc/libc.so] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [all] Error 2
make: *** [klibc] Error 2

!!! ERROR: dev-libs/klibc-1.2.1 failed.
Call stack:
  ebuild.sh, line 1894:   Called dyn_compile
  ebuild.sh, line 941:   Called src_compile

!!! Compile failed!
!!! If you need support, post the topmost build error, and the call stack if relevant.

-----------------------------

Portage 2.1_pre4-r1 (default-linux/x86/2005.0, gcc-3.4.5, glibc-2.3.6-r2, 2.6.12-gentoo-r6 i686)
=================================================================
System uname: 2.6.12-gentoo-r6 i686 AMD Athlon(tm) processor
Gentoo Base System version 1.12.0_pre15
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 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-r1
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-tbird -O3 -fomit-frame-pointer -funroll-loops -pipe -fprefetch-loop-arrays -ffast-math -m3dnow"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/alias /var/qmail/control /var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-tbird -O3 -fomit-frame-pointer -funroll-loops -pipe -fprefetch-loop-arrays -ffast-math -m3dnow"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache distlocks fixpackages sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://open-systems.ufl.edu/mirrors/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage-overlay /usr/local/portage-overlay/gentoo-webapps-overlay/production-ready /usr/local/portage-overlay/gentoo-webapps-overlay/experimental"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X aac acpi alsa apache2 arts avi bash bcmath berkdb bitmap-fonts bzip2 calendar cdparanoia cdr clamav crypt cups dga dri eds emboss encode ethereal exif fam fbcon ffmpeg flac flash foomaticdb gd gdbm gif glut gpm hal hardened hardenedphp icq imap imlib innodb ipv6 jabber jack java javascript joystick jpeg jpeg2k kde kdeenablefinal kdexdeltas lcms ldap libg++ libwww lm_sensors mad maildir mailwrapper mikmod milter mime ming mmap mmx mono motif mozilla mp3 mpeg msn mysql mysqli ncurses nls nocd nodoc noinfo nptl nsplugin odbc ogg oggvorbis openal opengl openquicktime oscar oss pam pcre pdf pdflib perl php png python qt quicktime readline samba sasl scanner sdl session simplexml slang slp sndfile soap sockets speex spell spl sse sse2 ssl svg svga tcpd theora threads tidy tiff tokenizer truetype truetype-fonts type1-fonts unicode usb vhosts videos vorbis wifi win32codecs xine xinerama xml xml2 xmlrpc xmms xpm xprint xsl xv xvid yahoo zlib elibc_glibc kernel_linux userland_GNU video_cards_radeon"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 4 Jonathan Leatherwood 2006-02-11 20:16:24 UTC
This bug is fixed in klibc-1.2.1-r1.
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2006-02-13 02:48:47 UTC
Thanks for testing, and sorry for not mentioning it here, but I had issues with my browser and gnome-2.14 beta.