g++ -g -msse2 -pipe -c 3way.cpp seckey.h: In function 'void CryptoPP::CheckedSetKey(T*, CryptoPP::CipherDir, const byte*, unsigned int, const CryptoPP::NameValuePairs&) [with T = CryptoPP::BlockCipherFinal<DECRYPTION, CryptoPP::ThreeWay::Dec>]': seckey.h:179: instantiated from 'void CryptoPP::BlockCipherFinal<DIR, BASE>::SetKey(const byte*, unsigned int, const CryptoPP::NameValuePairs&) [with CryptoPP::CipherDir DIR = DECRYPTION, BASE = CryptoPP::ThreeWay::Dec]' 3way.cpp:139: instantiated from here seckey.h:137: error: no matching function for call to 'CryptoPP::BlockCipherFinal<DECRYPTION, CryptoPP::ThreeWay::Dec>::UncheckedSetKey(CryptoPP::CipherDir&, const byte*&, unsigned int&)' 3way.cpp:64: note: candidates are: void CryptoPP::ThreeWay::Base::UncheckedSetKey(CryptoPP::CipherDir, const byte*, unsigned int, unsigned int) seckey.h: In function 'void CryptoPP::CheckedSetKey(T*, CryptoPP::CipherDir, const byte*, unsigned int, const CryptoPP::NameValuePairs&) [with T = CryptoPP::BlockCipherFinal<ENCRYPTION, CryptoPP::ThreeWay::Enc>]': seckey.h:179: instantiated from 'void CryptoPP::BlockCipherFinal<DIR, BASE>::SetKey(const byte*, unsigned int, const CryptoPP::NameValuePairs&) [with CryptoPP::CipherDir DIR = ENCRYPTION, BASE = CryptoPP::ThreeWay::Enc]' 3way.cpp:139: instantiated from here seckey.h:137: error: no matching function for call to 'CryptoPP::BlockCipherFinal<ENCRYPTION, CryptoPP::ThreeWay::Enc>::UncheckedSetKey(CryptoPP::CipherDir&, const byte*&, unsigned int&)' 3way.cpp:64: note: candidates are: void CryptoPP::ThreeWay::Base::UncheckedSetKey(CryptoPP::CipherDir, const byte*, unsigned int, unsigned int) make: *** [3way.o] Error 1 !!! ERROR: dev-libs/crypto++-5.2.1 failed. Portage 2.1_pre5-r4 (default-linux/x86/2005.0, gcc-4.1.0, glibc-2.3.6-r3, 2.6.15 i686) ================================================================= System uname: 2.6.15 i686 AMD Athlon(tm) XP 2000+ Gentoo Base System version 1.12.0_pre16 ccache version 2.4 [enabled] dev-lang/python: 2.3.5-r2, 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-r2 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="-O2 -march=athlon-xp -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home /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/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig buildpkg ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://85.25.128.62 ftp://pandemonium.tiscali.de/pub/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync12.de.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowext X a52 aac aalib acpi afs alsa apache2 apm avi bash-completion berkdb bidi bitmap-fonts bootsplash bzip2 ccache cdda cddb cdparanoia cdr chroot crypt cups curl dga dri dv dvd dvdr dvdread ecc eds emboss encode fbcon ffmpeg fftw foomaticdb fortran gd-external gdbm gif gimp gimpprint glep glitz gmp gpm graphviz imagemagick imap imlib ipv6 jabber java jikes jit jpeg jpeg2k kde kdeenablefinal kqemu ladcca lcms libg++ libwww lzo mad mhash mikmod mime mjpeg mmx mmxext mng motif mozilla mozsvg mp3 mpeg ncurses nls nptl nvidia objc ogg oggvorbis openal opengl oss pam parse-clocks pcre pdf pdflib perl physfs png python qt quicktime readline recode samba sdl spell sqlite sse sse2 ssl stream tcltk tcpd threads tiff transcode truetype truetype-fonts type1-fonts unicode utf8 visualization vorbis win32codecs wxgtk1 xine xml xml2 xv xvid zlib elibc_glibc kernel_linux userland_GNU" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
I can confirm this, exactly the same output, with gcc 4.1.0 and glibc 2.4
Created attachment 84689 [details, diff] new and improved gcc 4 patch This patch contains the gcc-4 fixes, and the gcc-4.1 fixes (so get rid of the other gcc4 patch and use this one instead). crypto: Let me know if you want me to add it or if you will.
Committed the new patch, thanks for reporting.