aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Problem compiling amule: make check fails  (Read 3750 times)

gianogli

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Problem compiling amule: make check fails
« on: February 24, 2006, 04:32:17 PM »

O.S.: Linux, Slackware current with kernel 2.6.12
I've installed wxGTK 2.6.2 with:
./configure --enable-unicode --with-gtk --disable-compat24
(as I see in a thread in this forum...)
(I've also tried with a simple ./configure but the resul is the same.)
make
checkinstall (slackware package and installation)
I've installed gd 2.0.33 with:
./configure
make
checkinstall
I've tried to install aMule with:
./configure --enable-amulecmd --enable-webserver --enable-cas --enable-wxcas --enable-alc --enable-alcc --enable-amule-daemon
make (without error!) ?(
When I try to check if all is OK with "make check" 3 of the 5 test fails:

Code: [Select]
Running test-collection "RangeMap" with 42 test-cases:
        Test "DefaultConstructor"
        Test "CopyConstructor"
        Test "AssignmentOperator"
        Test "Equality"
        Test "Iterators"
        Test "Erase"
        Test "Clear"
        Test "FindRange"
        Test "InvalidErase"
terminate called after throwing an instance of 'CInvalidParamsEx'
/bin/sh: line 1: 24181 Aborted                 ${dir}$tst
FAIL: RangeMapTest

Running test-collection "Format" with 15 test-cases:
        Test "ConstructorAndGetString"
terminate called after throwing an instance of 'CInvalidStateEx'
/bin/sh: line 1: 24186 Aborted                 ${dir}$tst
FAIL: FormatTest

Running test-collection "StringFunctions" with 1 test-cases:
        Test "JoinPaths"

Running test-collection "SimpleParser" with 3 test-cases:
        Test "Constructor"
        Test "EmptyTokens"
        Test "NormalTokens"
PASS: StringFunctionsTest

Running test-collection "NetworkFunctions" with 1 test-cases:
        Test "StringIPtoUint32"
PASS: NetworkFunctionsTest

Running test-collection "FileDataIO" with 27 test-cases:
        Test "CFile - Read UInt8"
terminate called after throwing an instance of 'CEOFException'
/bin/sh: line 1: 24197 Aborted                 ${dir}$tst
FAIL: FileDataIOTest
================================
3 of 5 tests failed
Please report to [EMAIL]admin@amule.org[/EMAIL]
================================
make[3]: *** [check-TESTS] Error 1
make[3]: Leaving directory `/usr/local/src/aMule-2.1.0/unittests/tests'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory `/usr/local/src/aMule-2.1.0/unittests/tests'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/aMule-2.1.0/unittests'
make: *** [check-recursive] Error 1

Can someone help me? :baby:
Thank's!
GiAn
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Problem compiling amule: make check fails
« Reply #1 on: February 24, 2006, 07:06:50 PM »

so the make works?

just try to run it from teh src dir first,

cd src

./amule

and see if that start up, if yes forget about teh make check
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

gianogli

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Re: Problem compiling amule: make check fails
« Reply #2 on: February 24, 2006, 08:54:48 PM »

I try to run it but when I download the .met file aMule have a "segmentation fault" and a lot of "Terminated after throwing an instance of 'wxString'" errors.
I've tried with wxGTK 2.6.2 and wxWidget 2.6.2, with different ./configure options but the result is the same.
aMule 2.0.3 work fine. It hang up with "Aborted" and "wxString" error only if the .met file don't exist.
Can you help me please? Any idea?
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Problem compiling amule: make check fails
« Reply #3 on: February 25, 2006, 09:40:51 AM »

if you could post a little more error msg from teh console this would help much more then saying " i had error this and that"

post some stuff so its much more clear what you mean
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Problem compiling amule: make check fails
« Reply #4 on: February 25, 2006, 01:43:10 PM »

hum. are you using --enable-stl on wx's configure?
Logged

gianogli

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Re: Problem compiling amule: make check fails
« Reply #5 on: February 25, 2006, 03:57:50 PM »

If I use the --enable-stl (with --enable-unicode) option I can't compile aMule 2.1.0. The error is:
Code: [Select]
if g++ -DHAVE_CONFIG_H -I. -I. -I../../..    -I/usr/local/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/local/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   -DHAVE_BFD  -DUSE_EMBEDDED_CRYPTO -W -Wall -Wshadow -Wundef -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0 -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC   -MT libmulecommon_a-MuleDebug.o -MD -MP -MF ".deps/libmulecommon_a-MuleDebug.Tpo" -c -o libmulecommon_a-MuleDebug.o `test -f 'MuleDebug.cpp' || echo './'`MuleDebug.cpp; \
then mv -f ".deps/libmulecommon_a-MuleDebug.Tpo" ".deps/libmulecommon_a-MuleDebug.Po"; else rm -f ".deps/libmulecommon_a-MuleDebug.Tpo"; exit 1; fi
MuleDebug.cpp: In function `wxString get_backtrace(unsigned int)':
MuleDebug.cpp:378: error: ambiguous overload for 'operator+' in 'wxMBConv::cMB2WX(const char*) const(s_file_name) + wxString::Format(const wxChar*, ...)(s_line_number)'
/usr/local/include/wx-2.6/wx/string.h:935: note: candidates are: wxString operator+(const wxString&, const wxString&)
/usr/local/include/wx-2.6/wx/string.h:937: note:                 wxString operator+(const wxString&, wxChar)
/usr/local/include/wx-2.6/wx/string.h:939: note:                 wxString operator+(wxChar, const wxString&)
/usr/local/include/wx-2.6/wx/string.h:941: note:                 wxString operator+(const wxString&, const wxChar*)
/usr/local/include/wx-2.6/wx/string.h:943: note:                 wxString operator+(const wxChar*, const wxString&)
make[4]: *** [libmulecommon_a-MuleDebug.o] Error 1
make[4]: Leaving directory `/usr/local/src/aMule-2.1.0/src/libs/common'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/src/aMule-2.1.0/src/libs'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/aMule-2.1.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/aMule-2.1.0'
make: *** [all] Error 2

My configure options for aMule are:
Code: [Select]
--enable-amulecmd --enable-webserver --enable-cas --enable-wxcas --enable-alc --enable-alcc --enable-amule-daemo
What are the right options to compile wx?
What are the differents between wxWidget and wxGTK?

Thank you for your help!
GiAn
« Last Edit: February 25, 2006, 04:54:01 PM by gianogli »
Logged

gianogli

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Re: Problem compiling amule: make check fails
« Reply #6 on: February 25, 2006, 04:10:01 PM »

In aMule:
-) ./configure => one "warning"
configure: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recomended

Code: [Select]
 Configured aMule 2.1.0 for 'i686-pc-linux-gnu'.

  aMule enabled options:

  **** aMule Core ****
  Prefix where aMule should be installed?                    /usr/local
  Should aMule be compiled with i18n support?                yes
  Should aMule be compiled in debug mode?                    yes
  Should aMule be compiled with profiling?                   no
  Should aMule be compiled with optimizations?               no
  Should aMule monolithic application be built?              yes
  Should aMule daemon version be built?                      yes
  Should aMule remote gui be built? (EXPERIMENTAL)           no
  Crypto++ library/headers style?                            embedded

  **** aMule TextClient ****
  Should aMule Command Line Client be built?                 yes

  **** aMule WebServer ****
  Should aMule WebServer be built?                           yes

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

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

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

  **** General Libraries and Tools ****
  Should ccache support be enabled?                          no
  Libraries aMule will use to build:
                                       wxWidgets             2.6.2
                                       crypto++              embedded
                                       libpng                1.2.8
                                       libgd                 2.0.33
                                       zlib                  1.2.3

-) make => no errors

-) When I try to download new server.met file I have a "segmentation fault" and a lot of "Terminated after throwing an instance of 'wxString'" errors.

Where can I find other error messages?

Thank you very much!
GiAn
Logged