Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 62796

Summary: xorg-x11 doesn't build with -fstack-protector
Product: Gentoo Linux Reporter: meyerm
Component: HardenedAssignee: Hardened Gentoo <hardened>
Status: RESOLVED DUPLICATE    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description meyerm 2004-09-04 02:23:36 UTC
Using gcc-3.4.1 and xorg-x11-6.7.0-r2 the compile fails with -fstack-protector. I didn't find any previous bug report like this (there are too many or zero hits ;-) ), BUT in the ebuild there is a 

ALLOWED_FLAGS="-fstack-protector ...."

which is certainly a problem

Reproducible: Always
Steps to Reproduce:
1. ACCEPT_KEYWORDS=~x86
2. CFLAGS=.... -fstack-protector ....
3. emerge xorg-x11

Actual Results:  
libbitmap.a complains about the symbols (stack_guard and so, that's why I 
tried using no stack-protector even though it is explicit allowed in the 
ebuild). 

Expected Results:  
Without it works (slow as hell, but that's surely another problem with the new 
KDE... ;-) ) 

yavin ~ # emerge info 
Portage 2.0.50-r10 (gcc34-x86-2004.2, gcc-3.4.1, glibc-2.3.4.20040808-r0, 
2.6.8-ck5) 
================================================================= 
System uname: 2.6.8-ck5 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.20GHz 
Gentoo Base System version 1.5.3 
Autoconf: sys-devel/autoconf-2.59-r4 
Automake: sys-devel/automake-1.8.5-r1 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer -fstack-protector 
-mfpmath=sse -mmmx -msse" 
CHOST="i686-pc-linux-gnu" 
COMPILER="" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer -fstack-protector 
-mfpmath=sse -mmmx-msse" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs buildpkg ccache sandbox" 
GENTOO_MIRRORS="ftp://ftp.uni-erlangen.de/mirrors/gentoo/" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="MM_APACHE MM_GLIBC MM_KDE MM_MPLAYER MM_OPENOFFICE MM_OPENSSH MM_OPENVPN 
MM_XORG X X509 acl adns alsa apache2 apm arts artswrappersuid avi berkdb 
cdparanoia cdr chroot crypt cups dgadio divx4linux dvb dvd dvdr encode 
ethereal exif fam flac foomaticdb gdbm gif gphoto2 gpm gstreamer gtk gtk2 
imagemagick imap imlib innodb insecure-drivers ipv6 jabber jack java jpeg kde 
kerberos ldap libg++ libwww linguas_de mad maildir mailwrapper memlimit mikmod 
mmx mng motif mpeg mpi mysql mysqli nas ncurses network nls nptl offensive 
oggvorbis ooo-kde openal opengl oscar oss pam pcmcia pcre pda pdflib perl php 
pic pie png pnp posix ppds prelude pthreads pythonqt quicktime readline recode 
samba scanner sdl sftplogging shared sharedmem slang slp snmp sockets socks5 
spell sqlite sse ssl svg svga tcpd tetex theora threads tidy tiff truetype 
trusted unicode usb vhosts video_cards_radeon wifi x86 xine xinerama xml2 xmms 
xosd xpm xv xvid zlib"
Comment 1 solar (RETIRED) gentoo-dev 2004-09-08 11:29:59 UTC
Please search bugzilla before posting new bugs. 
This bug is a dup of bug #43177

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