aMule Bug Tracker - aMule
View Issue Details
0001238aMuleMulti Platformpublic2008-01-14 12:522008-01-27 17:57
chemical 
phoenix 
normalminoralways
resolvedfixed 
SVN 
 
Any
0001238: SVN 20080114 - buggy check for crypto++ version
I configured todays SVN tarball with this command:
./configure --prefix=$HOME/amule/build --enable-optimize --disable-debug --enable-amule-daemon --enable-amulecmd --enable-webserver --enable-amule-gui --enable-wxcas --enable-cas --disable-upnp

It looks like there is a new dependency for cryptopp (which I miss).

I downloaded crypto++ 5.5.2, installed into default /usr Prefix. Tho configure script finds something, it doesn't recognize the version:

[..]
checking that wxWidgets has support for large files... yes
checking for crypto++ version >= 5.1... no
configure: Crypto++ version number is 0
[..]
  Libraries aMule will use to build:
                                       wxWidgets 2.8.7 (gtk2,shared)
                                       crypto++ /*! \mainpage http://www.cryptopp.com<sup><small>®</small></sup> [^] Library 5.5.2 Reference Manual (installed)
                                       libpng 1.2.24
                                       libgd 2.0.35
                                       zlib 1.2.3
No tags attached.
Issue History
2008-01-14 12:52chemicalNew Issue
2008-01-14 12:52chemicalOperating System => Any
2008-01-14 13:44XaignarStatusnew => assigned
2008-01-14 13:44XaignarAssigned To => phoenix
2008-01-14 13:45chemicalNote Added: 0002509
2008-01-14 13:50chemicalNote Added: 0002510
2008-01-25 13:59phoenixNote Added: 0002538
2008-01-25 13:59phoenixStatusassigned => feedback
2008-01-25 14:23phoenixNote Added: 0002539
2008-01-25 15:32phoenixNote Added: 0002540
2008-01-27 15:29chemicalNote Added: 0002547
2008-01-27 17:57phoenixStatusfeedback => resolved
2008-01-27 17:57phoenixResolutionopen => fixed

Notes
(0002509)
chemical   
2008-01-14 13:45   
Compiling works anyway. Seems to be a cosmetic issue.
(0002510)
chemical   
2008-01-14 13:50   
Linking fails. Don't know, if this is in conjunction with this:

Compiling ED2KLinkParser.cpp
Compiling MagnetURI.cpp
Compiling MuleCollection.cpp
Linking ed2k
ed2k-ED2KLinkParser.o: In function `GetLinksFilePath(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
ED2KLinkParser.cpp:(.text+0x4ab): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage'
ED2KLinkParser.cpp:(.text+0x516): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage'
ED2KLinkParser.cpp:(.text+0x52c): undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)'
ED2KLinkParser.cpp:(.text+0x564): undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)'
ED2KLinkParser.cpp:(.text+0x58e): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage'
ED2KLinkParser.cpp:(.text+0x5a6): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage'
ED2KLinkParser.cpp:(.text+0x5bc): undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)'
ED2KLinkParser.cpp:(.text+0x5ed): undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)'
ED2KLinkParser.cpp:(.text+0x613): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage'
ED2KLinkParser.cpp:(.text+0x629): undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)'
ED2KLinkParser.cpp:(.text+0x652): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage'
ED2KLinkParser.cpp:(.text+0x66c): undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)'
[...........]
MagnetURI.cpp:(.gnu.linkonce.t._ZNSt10_List_baseISsSaISsEE8_M_clearEv+0x20): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage'
MagnetURI.cpp:(.gnu.linkonce.t._ZNSt10_List_baseISsSaISsEE8_M_clearEv+0x4b): undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)'
ed2k-MuleCollection.o: In function `char* std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_S_construct<__gnu_cxx::__normal_iterator<char*, std::vector<char, std::allocator<char> > > >(__gnu_cxx::__normal_iterator<char*, std::vector<char, std::allocator<char> > >, __gnu_cxx::__normal_iterator<char*, std::vector<char, std::allocator<char> > >, std::allocator<char> const&, std::forward_iterator_tag)':
MuleCollection.cpp:(.gnu.linkonce.t._ZNSs12_S_constructIN9__gnu_cxx17__normal_iteratorIPcSt6vectorIcSaIcEEEEEES2_T_S7_RKS4_St20forward_iterator_tag+0x25): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage'
MuleCollection.cpp:(.gnu.linkonce.t._ZNSs12_S_constructIN9__gnu_cxx17__normal_iteratorIPcSt6vectorIcSaIcEEEEEES2_T_S7_RKS4_St20forward_iterator_tag+0x4d): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_create(unsigned int, unsigned int, std::allocator<char> const&)'
collect2: ld returned 1 exit status
make[3]: *** [ed2k] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
(0002538)
phoenix   
2008-01-25 13:59   
chemical, could you please check the file amule_build_install.sh that comes inside the tarball, it has the necessary steps to build aMule and their libraries.

On the other hand, the issue with cryptopp is quite weird. Lets suppose you have it installed in "/home/chemical/usr/cryptopp". Make sure you have sed, run the following command manually and post the results here:

$ grep "Reference Manual" /home/chemical/usr/cryptopp/include/cryptopp/cryptlib.h | sed -e's#.*\s\(\([0-9]\+\.\?\)\+\)\s.*#\1#g')
(0002539)
phoenix   
2008-01-25 14:23   
Also, post the result of the following:

$ grep "Reference Manual" /home/chemical/usr/cryptopp/include/cryptopp/cryptlib.h | grep -Eo "([0-9]+\.?+)+"
(0002540)
phoenix   
2008-01-25 15:32   
Please try tomorrow tarball to see if the issue is fixed.
(0002547)
chemical   
2008-01-27 15:29   
fixed with at least 2008-01-27 svn! Thanks. Compilation is running right now, will report results.