aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Compilation error for SVN as of Jan 8th 2008 in Mandriva 2008.0  (Read 3646 times)

OldFrog

  • Sr. Member
  • ****
  • Karma: 31
  • Offline Offline
  • Posts: 385
Compilation error for SVN as of Jan 8th 2008 in Mandriva 2008.0
« on: January 08, 2008, 08:13:15 AM »

Quote
lientListCtrl.cpp: In member function 'virtual wxString CClientListCtrl::GetTTSText(unsigned int) const':
ClientListCtrl.cpp:493: erreur: invalid conversion from 'char* (*)(const char*, int)throw ()' to 'long int'
ClientListCtrl.cpp:493: erreur:   initializing argument 1 of 'wxUIntPtr MuleExtern::wxGenericListCtrl::GetItemData(long int) const'
make[3]: *** [amule-ClientListCtrl.o] Erreur 1
make[2]: *** [all-recursive] Erreur 1
make[1]: *** [all-recursive] Erreur 1
make: *** [all] Erreur 2
erreur: Mauvais status de sortie pour /var/tmp/rpm-tmp.74683 (%build)

Beside that, was it necessary to check a crypto++ version > 5.1 ?
Logged
Computer Science is no more about computers than astronomy is about telescopes (Edsger W. Dijkstra)

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Compilation error for SVN as of Jan 8th 2008 in Mandriva 2008.0
« Reply #1 on: January 08, 2008, 08:48:26 AM »

A quick fix: Open said src/ClientListCtrl.cpp and change "index" to "item" in line 493.
Will be OK tomorrow.
« Last Edit: January 08, 2008, 08:52:04 AM by wuischke »
Logged

OldFrog

  • Sr. Member
  • ****
  • Karma: 31
  • Offline Offline
  • Posts: 385
Re: Compilation error for SVN as of Jan 8th 2008 in Mandriva 2008.0
« Reply #2 on: January 08, 2008, 07:27:10 PM »

Geee, that was a fast answer ! Thanks ! I'll wait for tomorrow !
Logged
Computer Science is no more about computers than astronomy is about telescopes (Edsger W. Dijkstra)

Schuttwegraeumer

  • Sr. Member
  • ****
  • Karma: 2
  • Offline Offline
  • Posts: 421
Re: Compilation error for SVN as of Jan 8th 2008 in Mandriva 2008.0
« Reply #3 on: January 08, 2008, 07:46:02 PM »

Same Problem with

Code: [Select]
CUpDownClient *client = reinterpret_cast<CUpDownClient *>(GetItemData( item ));
too.
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Compilation error for SVN as of Jan 8th 2008 in Mandriva 2008.0
« Reply #4 on: January 08, 2008, 08:16:35 PM »

Mh...I just compiled amuled and aMule from trunk and there were no problems. I made the following change:
Code: [Select]
--- trunk/src/ClientListCtrl.cpp        2008-01-08 07:50:34 UTC (rev 7939)
+++ trunk/src/ClientListCtrl.cpp        2008-01-08 07:51:54 UTC (rev 7940)
@@ -490,7 +490,7 @@

 wxString CClientListCtrl::GetTTSText(unsigned item) const
 {
-       CUpDownClient *client = reinterpret_cast<CUpDownClient *>(GetItemData( index ));
+       CUpDownClient *client = reinterpret_cast<CUpDownClient *>(GetItemData( item ));

       return client->GetUserName();
 }
Logged

Schuttwegraeumer

  • Sr. Member
  • ****
  • Karma: 2
  • Offline Offline
  • Posts: 421
Re: Compilation error for SVN as of Jan 8th 2008 in Mandriva 2008.0
« Reply #5 on: January 08, 2008, 08:31:36 PM »

And with the changes i get a:

Code: [Select]
schutti@ubuntu:~/Desktop/aMule/amule-cvs$ ./configure --disable-debug --enable-optimize
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking whether make sets $(MAKE)... (cached) yes
checking for flex... no
checking for lex... no
checking for yywrap in -lfl... no
checking for yywrap in -ll... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for bison... no
checking for byacc... no
checking for ranlib... (cached) ranlib
checking for strip... strip
checking for ar... ar
checking for ld... ld
checking for zlib >= 1.1.4... yes (version 1.2.3.3)
checking for File::Copy... ok
checking whether we need the GUI... yes
checking for using IP2Country class...
checking for the --with-toolkit option... will be automatically detected
checking for the --with-wxshared option... will be automatically detected
checking for the --with-wxdebug option... will be automatically detected
checking for the --with-wxversion option... will be automatically detected
checking for wx-config... /usr/bin/wx-config
checking for wxWidgets version >= 2.8.0 (--unicode=yes)... yes (version 2.8.4)
checking for wxWidgets static library... no
checking if wxWidgets was built in DEBUG mode... no
checking if wxWidgets was built in STATIC mode... no
checking which wxWidgets toolkit was selected... gtk2
checking that wxWidgets has support for large files... yes
checking for crypto++ version >= 5.1...

No difference between with or without your fix.
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Compilation error for SVN as of Jan 8th 2008 in Mandriva 2008.0
« Reply #6 on: January 08, 2008, 08:44:24 PM »

He...geez, that's a completely unrelated problem. You had me sweating for a couple of minutes.

What distribution are you using? Do you have libcrypto++ installed? (Which version?)
Logged

Schuttwegraeumer

  • Sr. Member
  • ****
  • Karma: 2
  • Offline Offline
  • Posts: 421
Re: Compilation error for SVN as of Jan 8th 2008 in Mandriva 2008.0
« Reply #7 on: January 08, 2008, 09:08:02 PM »

Ok, sorry.

i can compile the source from 6th.
what is new with this crypto++ and which packages do i need?

EDIT: I found no libcrypt installed.

EDITEDIT: the version from 08. need the libcrypto++-dev

The sources from 07 and before dont need this packages.
« Last Edit: January 08, 2008, 09:19:37 PM by Schuttwegraeumer »
Logged

OldFrog

  • Sr. Member
  • ****
  • Karma: 31
  • Offline Offline
  • Posts: 385
Re: Compilation error for SVN as of Jan 8th 2008 in Mandriva 2008.0
« Reply #8 on: January 09, 2008, 12:08:53 AM »

Ok, sorry.

i can compile the source from 6th.
what is new with this crypto++ and which packages do i need?

EDIT: I found no libcrypt installed.

EDITEDIT: the version from 08. need the libcrypto++-dev

The sources from 07 and before dont need this packages.

If you're using Mandriva 2008.0, you need to install the following ones :

libcryptopp6-5.5.1-2mdv2008.0
libcryptopp-progs-5.5.1-2mdv2008.0
libcryptopp6-devel-5.5.1-2mdv2008.0

A new version 5.5.2 is available on http://www.cryptopp.com/:

Quote
9/24/2007 - Version 5.5.2 released

    * ported x64 assembly language code for AES, Salsa20, Sosemanuk, and Panama to MSVC 2005 (using MASM since MSVC doesn't support inline assembly on x64)
    * fixed Salsa20 initialization crash on non-SSE2 machines
    * fixed Whirlpool crash on Pentium 2 machines
    * fixed possible branch prediction analysis (BPA) vulnerability in MontgomeryReduce(), which may affect security of RSA, RW, LUC
    * fixed link error with MSVC 2003 when using "debug DLL" form of runtime library
    * fixed crash in SSE2_Add on P4 machines when compiled with MSVC 6.0 SP5 with Processor Pack
    * added support for newly released compilers: MSVC 2008, GCC 4.2, Sun CC 5.9, Intel C++ Compiler 10.0, and Borland C++Builder 2007

Easy to compile anyway (Just need a make && make install)
Logged
Computer Science is no more about computers than astronomy is about telescopes (Edsger W. Dijkstra)