Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 94229 - amule-2.0.x fails compile with ssp hardened toolchain
Summary: amule-2.0.x fails compile with ssp hardened toolchain
Status: RESOLVED DUPLICATE of bug 74457
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL: http://forum.amule.org/thread.php?thr...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-27 16:17 UTC by Michael Crawford (ali3nx)
Modified: 2005-05-27 18:47 UTC (History)
0 users

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 Michael Crawford (ali3nx) 2005-05-27 16:17:14 UTC
During a development test of amule-2.0.x stable i discovered that ssp was the
cause of a compile failure in amule's cpp code stating an error in protector.c at 
line 1158. Noted this package is not in portage but will be in the near future
this will become a concern and moreso considering the nature of ssp's purpose.
Tested on two of my devel systems both had the same results.

if /usr/bin/ccache g++ -DHAVE_CONFIG_H -I. -I. -I.. -DUSE_WX_TRAY
-I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6
-DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/pango-1.0 -I/usr/include/freetype2
-I/usr/include/freetype2/config -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -D__GTK2__ -march=athlon-xp -O2 -pipe
-DUSE_EMBEDDED_CRYPTO -W -Wall -g -ggdb -fno-inline -D__DEBUG__
-fmessage-length=0 -O2 -pg -MT amule-ECSpecialTags.o -MD -MP -MF
".deps/amule-ECSpecialTags.Tpo" -c -o amule-ECSpecialTags.o `test -f
'ECSpecialTags.cpp' || echo './'`ECSpecialTags.cpp; \
then mv -f ".deps/amule-ECSpecialTags.Tpo" ".deps/amule-ECSpecialTags.Po"; else
rm -f ".deps/amule-ECSpecialTags.Tpo"; exit 1; fi
ECSpecialTags.cpp:264:4: warning: #warning TODO
ECSpecialTags.cpp:268:4: warning: #warning TODO
ECSpecialTags.cpp:461:4: warning: #warning TODO
ECSpecialTags.cpp:465:4: warning: #warning TODO
ECSpecialTags.h: In member function `void CValueMap::CreateTagT(ec_tagname_t, T,
std::map<ec_tagname_t, T, std::less<ec_tagname_t>,
std::allocator<std::pair<const ec_tagname_t, T> > >&, CECTag*) [with T = CMD4Hash]':
ECSpecialTags.h:84: internal compiler error: in sweep_string_variable, at
protector.c:1158
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
Preprocessed source stored into /tmp/ccdPqJPN.out file, please attach this to
your bugreport.
make[3]: *** [amule-ECSpecialTags.o] Error 1
make[3]: Leaving directory `/root/aMule-2.0.0/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/aMule-2.0.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/aMule-2.0.0'
make: *** [all] Error 2
mage aMule-2.0.0 # gcc-config -l
[1] i386-pc-linux-gnu-3.3.5
[2] i386-pc-linux-gnu-3.3.5-hardened
[3] i386-pc-linux-gnu-3.3.5-hardenednopie
[4] i386-pc-linux-gnu-3.3.5-hardenednossp
[5] i686-pc-linux-gnu-3.4.3-20050110 *
[6] i686-pc-linux-gnu-3.4.3-20050110-hardenednopie
[7] i686-pc-linux-gnu-3.4.3-20050110-hardenednossp
[8] i686-pc-linux-gnu-3.4.3-20050110-vanilla

Reproducible: Always
Steps to Reproduce:
1. using pie+ssp toolchain attempt to compile amule-2.0.x source using ssp+pie
gcc profile with either stable or testing gcc
2. compile consistantly fails stating an ssp error
3. 

Actual Results:  
compile is successful using vanilla profiles on stable and testing toolchain

Expected Results:  
neeed my muuule! =]

mage linux # emerge info
Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.3-20050110,
glibc-2.3.5-r0, 2.6.11-gentoo-r9 i686)
=================================================================
System uname: 2.6.11-gentoo-r9 i686 AMD Athlon(tm) XP 1900+
Gentoo Base System version 1.6.12
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.8
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16
sys-devel/libtool:   1.5.18
virtual/os-headers:  2.6.11
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/2/share/config
/usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/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/texmf/web2c
/etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache cvs digest distcc distlocks sandbox
sfperms strict"
GENTOO_MIRRORS="ftp://gentoo.arcticnetwork.ca/pub/gentoo
http://mirror.datapipe.net/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo
ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 16bit 3dnow 3dnowext 3ds S3TC X X509 Xaw3d a52 aac aalib accounting acl
acpi activefilter ada adns aim alsa amd ansi ao apache2 aper apm arts
artswrappersuid artworkextra asm atlas auctex audiofile authdaemond avalon
avantgo avi bash-completion bcmath bdf beep beepmp berkdb bidi bind-mysql
bitmap-fonts blas blender-game bluetooth bzip2 bzlib c++ cacheemu cairo calendar
canna cap ccache cdda cddb cdf cdinstall cdio cdparanoia cdr cdrom cgi chroot
cjk clanJavaScript clanVoice clearcase client clisp cln cluster cmucl codecs
commercial cpdflib cracklib crypt cscope css csv ctype cups curl curlwrappers
dba dbcp dbi dga dhcp dio directfb divx4linux djbfft dlloader dnd dpms droproot
dts dv dvb dvd dvdr dvdread ecc editor edl eds elf emacs emacs-w3 emboss encode
enscript erandom esd ethereal evo evo2 exif expat ext-png ext-zlib extensions
faad fam fame fastcgi fb fbcon fep festival ffmpeg fits flac flash flood
fluidsynth fmod font-server foomaticdb fortran fpx freetype freewnn ftp gb gcj
gcl gd gdbm geoip ggi gif gimp gimpprint ginac glade glep glgd glitz glut gmail
gmp gmtfull gnokii gnome gnomedb gnuplot gphoto2 gpm gprof gps graphviz gs gsl
gsm gstreamer gtk gtk2 hal hardened hardenedphp haskell hbci hdf hdf5 howl html
httpd iconv icq icu ide idl ieee1394 image imagemagick imap imlib imlib2
immqt-bc inifile inline innodb ipcs ipv6 irda irmc itcl j2ee jabber jack
jack-tmpfs jai java javacomm javadoc javamail javascript jbig jboss jce jimi jit
jms jmx joystick jp2 jpeg jpeg2k jta junit jython kadu-modules kadu-voice kakasi
kcal kde kdepim kerberos krb4 ladcca ladspa latex lcms ldap ldb leim libcaca
libclamav libdsk libg++ libgd libgda libsamplerate libwww lirc live lm_sensors
logitech-mouse logrotate ltsp lua lufsusermount lzo lzw lzw-tiff m17n-lib mad
maildir mapeditor maps math matroska mdb memlimit mew mhash migemo mikmod mime
mimencode ming mixer mjpeg mls mmap mmx mmxext mng monkey mono motif mozcalendar
mozdevelop mozilla mozp3p mozsvg mozxmlterm mp3 mpeg mpeg4 mpi mplayer msn mule
multi-tty music mysql mythtv nagios-dns nagios-game nagios-ntp nagios-ping
nagios-ssh nas native ncurses neXt net netcdf network neural nfs nfsv4 nis nls
nptl ntlm numeric nvidia nviz oav objc ocaml odbc ode offensive ofx ogdi ogg
oggvorbis openal openexr opengl opie oscar ospfapi oss pam pam_chroot
pam_console pam_timestamp parse-clocks pascal pcap pcntl pcre pda pdf pdflib
pear-db perforce perl pg-hier pg-intdatetime pg-vacuumdelay php physfs pic pie
plotutils png portaudio posix postgres povray ppds print private procmail
proxool python qt quicktime quotas quotes rdesktop readline real remix resperl
rhino rogue rpc rplay rrdtool ruby samba sasl scanner screenshot sdl sendfile
server servlet-2.3 servlet-2.4 session sftplogging sguil shaper sharedmem sheep
silc simplexml skk slp smime sms smux sndfile snmp snortsam sockets socks5
softquota sounds soundtouch sox speex spell spl sql src srp sse ssl
stencil-buffer stream stroke struts subp subversion svg svga svgz sysvipc szip
t1lib tcltk tcpd tcsim tetex tga theora tidy tiff timidity tlen tools transcode
truetype truetype-fonts trusted type1-fonts uim unicode ups urandom usb utf8
uudeview v4l v4l2 vcd vcdimager vda videos vidix vim vim-pager vim-with-x
virus-scan vlm vmdbmysql vnc voice vorbis wddx wifi win32codecs winbind wmf
wxwindows xanim xatrix xchatdccserver xchattext xemacs xface xgetdefault xine
xinerama xml xml2 xmlrpc xmms xosd xpm xprint xrandr xscreensaver xsl xslt xv
xvid xvmc yahoo yaz yp yv12 zeo zeroconf zlib zvbi video_cards_nvidia
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 SpanKY gentoo-dev 2005-05-27 18:47:10 UTC

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