Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 458798 - net-p2p/mldonkey-3.1.3 fails to build with gcc-4.7
Summary: net-p2p/mldonkey-3.1.3 fails to build with gcc-4.7
Status: RESOLVED DUPLICATE of bug 504194
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo net-p2p team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-02-22 23:27 UTC by Jaakko Perttilä
Modified: 2014-04-07 12:33 UTC (History)
0 users

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


Attachments
mldonkey-3.1.3-gcc-4.7.patch (mldonkey-3.1.3-gcc-4.7.patch,360 bytes, patch)
2013-02-22 23:28 UTC, Jaakko Perttilä
Details | Diff
Build log (1365599251-install-net-p2p_mldonkey-3.1.3:0::gentoo.out,129.13 KB, text/plain)
2013-04-10 13:15 UTC, Jaakko Perttilä
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaakko Perttilä 2013-02-22 23:27:26 UTC
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
Comment 1 Jaakko Perttilä 2013-02-22 23:28:36 UTC
Created attachment 339764 [details, diff]
mldonkey-3.1.3-gcc-4.7.patch
Comment 2 Benda Xu gentoo-dev 2013-04-09 06:58:20 UTC
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?
Comment 3 Jaakko Perttilä 2013-04-10 13:15:19 UTC
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.
Comment 4 Patrice Levesque 2014-01-11 13:13:04 UTC
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.
Comment 5 Navid Zamani 2014-03-28 16:56:43 UTC
This is fixed in MLDonkey 3.1.4. Bug #504194 requests the bump to the current version 3.1.5.
Comment 6 Benda Xu gentoo-dev 2014-04-07 12:33:34 UTC
Thanks guys. Duplicate to bug 504194.

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