Building fails with i686-pc-linux-gnu-g++ 4.7.2 on pentium-m. Reproducible: Always Actual Results: In file included from src/utils/lib/CryptoPP.cc:85:0: src/utils/lib/CryptoPP.h:3941:2: warning: access declarations are deprecated in favour of using-declarations; suggestion: add the 'using' k eyword [-Wdeprecated] src/utils/lib/CryptoPP.h:3942:2: warning: access declarations are deprecated in favour of using-declarations; suggestion: add the 'using' k eyword [-Wdeprecated] src/utils/lib/CryptoPP.h:3943:2: warning: access declarations are deprecated in favour of using-declarations; suggestion: add the 'using' k eyword [-Wdeprecated] src/utils/lib/CryptoPP.h:3944:2: warning: access declarations are deprecated in favour of using-declarations; suggestion: add the 'using' k eyword [-Wdeprecated] src/utils/lib/CryptoPP.h:3945:2: warning: access declarations are deprecated in favour of using-declarations; suggestion: add the 'using' k eyword [-Wdeprecated] src/utils/lib/CryptoPP.h:3946:2: warning: access declarations are deprecated in favour of using-declarations; suggestion: add the 'using' k eyword [-Wdeprecated] src/utils/lib/CryptoPP.h:3947:2: warning: access declarations are deprecated in favour of using-declarations; suggestion: add the 'using' k eyword [-Wdeprecated] src/utils/lib/CryptoPP.h:3948:2: warning: access declarations are deprecated in favour of using-declarations; suggestion: add the 'using' k eyword [-Wdeprecated] src/utils/lib/CryptoPP.h:3949:2: warning: access declarations are deprecated in favour of using-declarations; suggestion: add the 'using' k eyword [-Wdeprecated] src/utils/lib/CryptoPP.cc: In instantiation of 'typename CryptoPP::AllocatorBase<T>::pointer CryptoPP::AlignedAllocator<T>::allocate(Crypto PP::AlignedAllocator<T>::size_type, const void*) [with T = unsigned int; typename CryptoPP::AllocatorBase<T>::pointer = unsigned int*; Cryp toPP::AlignedAllocator<T>::size_type = unsigned int]': src/utils/lib/CryptoPP.h:3002:17: required from here src/utils/lib/CryptoPP.cc:1703:2: error: 'CheckSize' was not declared in this scope, and no declarations were found by argument-dependent l ookup at the point of instantiation [-fpermissive] src/utils/lib/CryptoPP.cc:1703:2: note: declarations in dependent base 'CryptoPP::AllocatorBase<unsigned int>' are not found by unqualified lookup src/utils/lib/CryptoPP.cc:1703:2: note: use 'this->CheckSize' instead /usr/bin/ocamlc.opt -I src/utils/extlib -I src/utils/cdk -I src/utils/bitstring -I src/utils/lib -I src/utils/ocamlrss -I src/utils/ xml-light -I src/utils/net -I tools -I src/daemon/common -I src/daemon/driver -I src/utils/mp3tagui -I src/config/unix -I src/networ ks/direct_connect -I src/networks/fileTP -I src/networks/donkey -I +camlp4 -c src/networks/direct_connect/dcMain.ml make: *** [src/utils/lib/CryptoPP.o] Error 1 /usr/libexec/paludis/utils/emake: emake returned error 2 !!! ERROR in net-p2p/mldonkey-3.1.3::gentoo: !!! In src_compile at line 4765 !!! emake failed
Created attachment 339764 [details, diff] mldonkey-3.1.3-gcc-4.7.patch
Please show "emerge -pv mldonkey" and build.log. I have mldonkey-3.1.3 successfully built with gcc-4.7. What USE flags are you using? Besides, have you submitted the patch upstream?
Created attachment 345120 [details] Build log (In reply to comment #2) > Please show "emerge -pv mldonkey" and build.log. I have mldonkey-3.1.3 > successfully built with gcc-4.7. What USE flags are you using? > profile is hardened/linux/x86 # cave resolve -zx net-p2p/mldonkey::gentoo -d '*/*' -o '*/*' These are the actions I will take, in order: -d net-p2p/mldonkey:0::gentoo (not the best version) (formerly from local-overlay) 3.1.3 to ::installed replacing 3.1.3-r1 -bittorrent -doc -fasttrack gd -gnutella -gtk -guionly magic -ocamlopt build_options: symbols=preserve -dwarf_compress optional_tests -trace work=tidyup Reasons: target Total: 1 downgrades Attached the failed build log. Currently running -r1 with the patch from local overlay. > Besides, have you submitted the patch upstream? No, I have not.
Same issue here: mldonkey-3.1.3 compilation breaks at src/utils/lib/CryptoPP.cc with the same error message, using gcc-4.7 as well. I confirm that Jaakko's patch makes it compile.
This is fixed in MLDonkey 3.1.4. Bug #504194 requests the bump to the current version 3.1.5.
Thanks guys. Duplicate to bug 504194. *** This bug has been marked as a duplicate of bug 504194 ***