aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: 08.08 and 09.08 does not compile (error in ClientList.cpp)  (Read 3110 times)

Rafal_Glazar

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 16
08.08 and 09.08 does not compile (error in ClientList.cpp)
« on: August 09, 2005, 08:25:08 PM »

Hi. I can not compile amule CVS snapshots from 08.08 and 09.08. Error output looks like this:

Code: [Select]
if i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I..   -O2 -pipe -march=athlon-xp -fvisibility-inlines-hidden  -DUSE_WX_TRAY -I/usr/lib/wx/include/gtk2-ansi-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA   -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -D__GTK2__  -DHAVE_BFD -D__COMPILE_KAD__ -O2 -pipe -march=athlon-xp -fvisibility-inlines-hidden -DUSE_EMBEDDED_CRYPTO    -MT amule-ClientList.o -MD -MP -MF ".deps/amule-ClientList.Tpo" -c -o amule-ClientList.o `test -f 'ClientList.cpp' || echo './'`ClientList.cpp; \
then mv -f ".deps/amule-ClientList.Tpo" ".deps/amule-ClientList.Po"; else rm -f ".deps/amule-ClientList.Tpo"; exit 1; fi
ClientList.cpp: In member function `void CClientList::Process()':
ClientList.cpp:536: error: `theStats' has not been declared
ClientList.cpp:536: error: no matching function for call to `CClientList::RemoveBannedClient()'
ClientList.h:231: note: candidates are: void CClientList::RemoveBannedClient(uint32)
ClientList.cpp: In member function `void CClientList::AddBannedClient(uint32)':
ClientList.cpp:714: error: `theStats' has not been declared
ClientList.cpp:714: error: no matching function for call to `CClientList::AddBannedClient()'
ClientList.cpp:712: note: candidates are: void CClientList::AddBannedClient(uint32)
ClientList.cpp: In member function `void CClientList::RemoveBannedClient(uint32)':
ClientList.cpp:736: error: `theStats' has not been declared
ClientList.cpp:736: error: no matching function for call to `CClientList::RemoveBannedClient()'
ClientList.cpp:734: note: candidates are: void CClientList::RemoveBannedClient(uint32)
ClientList.cpp:840:4: warning: #warning Do we actually have to check friendstate here?
make[4]: *** [amule-ClientList.o] Error 1
make[4]: Leaving directory `/var/tmp/portage/amule-2.1.0_pre20050809/work/amule-cvs/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/amule-2.1.0_pre20050809/work/amule-cvs/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/amule-2.1.0_pre20050809/work/amule-cvs/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/amule-2.1.0_pre20050809/work/amule-cvs'
make: *** [all] Error 2

!!! ERROR: net-p2p/amule-2.1.0_pre20050809 failed.
!!! Function src_compile, Line 65, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: 08.08 and 09.08 does not compile (error in ClientList.cpp)
« Reply #1 on: August 09, 2005, 08:52:56 PM »

I think I know what the problem is. What configure flags do you use?
Logged

Rafal_Glazar

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 16
Re: 08.08 and 09.08 does not compile (error in ClientList.cpp)
« Reply #2 on: August 09, 2005, 10:29:33 PM »

My ebuild is based on standard aMule 2.0.1 ebuild with added "kad" USE flag which turns on --enable-kad-compile

Other USE flags I set are gtk2 and nls.

I dont know what configure flags that enables, but you are Gentoo user also so you will know.
Here is output of configure script:
Code: [Select]
 Configure script has finished system check.

  Configured aMule CVS for 'i686-pc-linux-gnu'.

  aMule enabled options:

  **** aMule Core ****
  Prefix where aMule should be installed?                    /usr
  Should aMule be compiled with i18n support?                yes
  Should aMule be compiled in debug mode?                    no
  Should aMule be compiled with profiling?                   no
  Should aMule be compiled with optimizations?               no
  Should aMule be compiled with taskbar icon support?        yes
  Should aMule be compiled with old GTK taskbar icon?        no
  Should aMule be compiled with UTF-8 taskbar icon support?  no
  Should aMule be linked against patched gsocket?            no
  Should aMule monolithic application be built?              yes
  Should aMule daemon version be built?                      no
  Should aMule remote gui be built? (EXPERIMENTAL)           no
  Should aMule Kademlia code be compiled? (DOESN'T WORK)     yes
  Crypto++ library/headers style?                            embedded

  **** aMule TextClient ****
  Should aMule Command Line Client be built?                 no
  Should aMule GUI Client be built?                          no

  **** aMule WebServer ****
  Should aMule WebServer be built?                           no
  Should aMule WebServer GUI be built?                       no
  Should aMule WebServer have PHP interpreter? (TESTING)     no

  **** aMule ED2K Links Handler ****
  Should aMule ED2K Links Handler be built?                  yes

  **** aMuleLinkCreator ****
  Should aMuleLinkCreator GUI version (alc) be built?        no
  Should aMuleLinkCreator for console (alcc) be built?       no

  **** aMule Statistics ****
  Should C aMule Statistics (CAS) be built?                  no
  Should aMule GUI Statistics (wxCas) be built?              no

  **** General Libraries and Tools ****
  Should ccache support be enabled?                          no
  Libraries aMule will use to build:
                                       wxWidgets             2.6.1
                                       crypto++              embedded
                                       zlib                  1.2.3
« Last Edit: August 09, 2005, 10:31:59 PM by Rafal_Glazar »
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: 08.08 and 09.08 does not compile (error in ClientList.cpp)
« Reply #3 on: August 09, 2005, 10:53:18 PM »

Right, the problem should be fixed on SVN now, so tomorrows snapshot should work. If you'd rather not wait, then add the following line to the ClientList.cpp file (near the other #include lines):
#include "Statistics.h"
Logged