Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 446008 - dev-libs/crypto++-5.6.1-r1 with sys-devel/gcc-4.7.1 - secblock.h:91:3: error: 'CheckSize' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
Summary: dev-libs/crypto++-5.6.1-r1 with sys-devel/gcc-4.7.1 - secblock.h:91:3: error:...
Status: RESOLVED DUPLICATE of bug 403197
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-04 22:31 UTC by Allen Martin
Modified: 2012-12-04 23:18 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
failing build log for libcrypto++ (dev-libs_crypto++-5.6.1-r1_20121204-221209.log,9.73 KB, text/plain)
2012-12-04 22:56 UTC, Allen Martin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Allen Martin 2012-12-04 22:31:22 UTC
crytpo++ 5.6.1 fails to compile with gcc 4.7.1, discovered in chromiumos tree.  Failures all have to do with calling into static member functions without use of "this" pointer.

Reproducible: Always

Steps to Reproduce:
1. pull latest chromium OS tree
2. enter chroot
3. compile with "emerge dev-libs/crypto++"
Actual Results:  
Build fails with error like the following:
libtool: compile:  x86_64-pc-linux-gnu-g++ -O1 -pipe -c ccm.cpp  -fPIC -DPIC -o .libs/ccm.o
In file included from authenc.h:5:0,
                 from ccm.h:4,
                 from ccm.cpp:7:
secblock.h: In instantiation of 'CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer CryptoPP::AllocatorWithCleanup<T, T_Align16>::allocate(CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type, const void*) [with T = unsigned char; bool T_Align16 = true; CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer = unsigned char*; CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type = long unsigned int]':
secblock.h:247:19:   required from 'CryptoPP::SecBlock<T, A>::SecBlock(CryptoPP::SecBlock<T, A>::size_type) [with T = unsigned char; A = CryptoPP::AllocatorWithCleanup<unsigned char, true>; CryptoPP::SecBlock<T, A>::size_type = long unsigned int]'
authenc.h:13:58:   required from here
secblock.h:91:3: error: 'CheckSize' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
secblock.h:91:3: note: declarations in dependent base 'CryptoPP::AllocatorBase<unsigned char>' are not found by unqualified lookup
secblock.h:91:3: note: use 'this->CheckSize' instead


Expected Results:  
expected to build cleanly

$ emerge --info =dev-libs/crypto++-5.6.1-r1
Portage 2.1.10.11-r9 (!/usr/local/portage/chromiumos/profiles/default/linux/amd64/10.0, gcc-4.7.1, glibc-2.15-r4, 3.5.0-18-generic x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.5.0-18-generic-x86_64-Intel-R-_Core-TM-_i5_CPU_M_450_@_2.40GHz-with-glibc2.2.5
Timestamp of tree: Unknown
ccache version 3.1.6 [disabled]
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.10
dev-lang/python:          2.6.8-r1::chromiumos
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.6-r4
sys-apps/baselayout:      2.0.1-r228::chromiumos
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.68
sys-devel/automake:       1.10.3, 1.11.1
sys-devel/binutils:       2.21.1::chromiumos
sys-devel/gcc:            4.7.1-r34::chromiumos
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-kernel/linux-headers: 3.4-r1::chromiumos (virtual/os-headers)
Repositories: portage-stable x-crossdev chromiumos
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc/hosts /etc/locale.gen /etc/localtime /etc/make.conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/var/lib/portage/distfiles"
EMERGE_DEFAULT_OPTS="--oneshot"
FEATURES="allow-missing-manifests assume-digests binpkg-logs buildpkg clean-logs distlocks fixlafiles fixpackages news parallel-fetch parallel-install protect-owned sandbox sfperms unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS=""
GENTOO_MIRRORS="https://commondatastorage.googleapis.com/chromeos-localmirror https://commondatastorage.googleapis.com/chromeos-mirror/gentoo"
INSTALL_MASK="   /usr/lib*/*.la   /etc/init.d /etc/conf.d   /etc/logrotate.d "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O2 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/var/lib/portage/pkgs"
PORTAGE_BUNZIP2_COMMAND="pbunzip2 --ignore-trailing-garbage=1"
PORTAGE_BZIP2_COMMAND="pbzip2"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/local/portage/stable"
PORTDIR_OVERLAY="/usr/local/portage/crossdev /usr/local/portage/chromiumos"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 bzip2 cracklib cros_host crypt cxx dri expat fortran hardened iconv ipv6 mmx modules mudflap multilib ncurses nls nptl nptlonly openmp pic pie python readline sse sse2 ssl sysfs unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware dummy v4l"
Unset:  CPPFLAGS, CTARGET, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-libs/crypto++-5.6.1-r1 was built with the following:
USE="(multilib)"
CFLAGS="-O1 -pipe"
CXXFLAGS="-O1 -pipe"
Comment 1 Allen Martin 2012-12-04 22:56:05 UTC
Created attachment 331462 [details]
failing build log for libcrypto++
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2012-12-04 23:18:42 UTC
gcc 4.7 is not stable. crypto++-5.6.1-r1 works fine with a stable gcc. 5.6.1-r3 was fixed wrt bug #403197.

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