aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: [1] 2

Author Topic: aMule-CVS-20080302 compilation problem  (Read 7508 times)

Menion

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 95
  • Winter is coming...
aMule-CVS-20080302 compilation problem
« on: March 02, 2008, 05:03:58 PM »

Hi, I failed to compile aMuled on Kurobox (PowerPC NAS). Configure string was:

./configure --disable-monolithic --with-toolkit=base --enable-amule-daemon --enable-amulecmd --enable-webserver --with-toolkit=base

The error:

Quote
make  all-recursive
make[1]: Entering directory `/usr/src/amule-cvs'
Making all in docs
make[2]: Entering directory `/usr/src/amule-cvs/docs'
Making all in man
make[3]: Entering directory `/usr/src/amule-cvs/docs/man'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/src/amule-cvs/docs/man'
make[3]: Entering directory `/usr/src/amule-cvs/docs'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/usr/src/amule-cvs/docs'
make[2]: Leaving directory `/usr/src/amule-cvs/docs'
Making all in src
make[2]: Entering directory `/usr/src/amule-cvs/src'
Making all in libs
make[3]: Entering directory `/usr/src/amule-cvs/src/libs'
Making all in ec
make[4]: Entering directory `/usr/src/amule-cvs/src/libs/ec'
make  all-recursive
make[5]: Entering directory `/usr/src/amule-cvs/src/libs/ec'
Making all in cpp
make[6]: Entering directory `/usr/src/amule-cvs/src/libs/ec/cpp'
make  all-am
make[7]: Entering directory `/usr/src/amule-cvs/src/libs/ec/cpp'
if g++ -DHAVE_CONFIG_H -I. -I. -I../../../..    -isystem /usr/local/lib/wx/inclu
de/base-unicode-release-static-2.8 -isystem /usr/local/include/wx-2.8 -D_FILE_OF
FSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DwxUSE_GUI=0 -pthread -I../..
/../../src -I../../../../src/libs -I../../../../src/include -isystem /usr/includ
e -D__CRYPTO_INSTALLED__ -D__WEAK_CRYPTO__ -g -D__DEBUG__ -D_GLIBCXX_DEBUG -D_GL
IBCXX_DEBUG_PEDANTIC -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-lengt
h=0   -DUSE_WX_EXTENSIONS -MT libec_a-ECTag.o -MD -MP -MF ".deps/libec_a-ECTag.T
po" -c -o libec_a-ECTag.o `test -f 'ECTag.cpp' || echo './'`ECTag.cpp; \
then mv -f ".deps/libec_a-ECTag.Tpo" ".deps/libec_a-ECTag.Po"; else rm -f ".deps
/libec_a-ECTag.Tpo"; exit 1; fi
In file included from /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../../i
nclude/c++/3.4.4/powerpc-unknown-linux-gnu/bits/gthr-default.h:43,
                 from /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../../i
nclude/c++/3.4.4/powerpc-unknown-linux-gnu/bits/gthr.h:96,
                 from /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../../i
nclude/c++/3.4.4/powerpc-unknown-linux-gnu/bits/c++io.h:37,
                 from /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../../i
nclude/c++/3.4.4/iosfwd:47,
                 from /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../../i
nclude/c++/3.4.4/ios:44,
                 from /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../../i
nclude/c++/3.4.4/ostream:45,
                 from /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../../i
nclude/c++/3.4.4/iostream:45,
                 from ECTag.h:28,
                 from ECTag.cpp:25:
/usr/include/pthread.h:163: error: expected `,' or `...' before "__thread"
/usr/include/pthread.h:591: error: storage class specifiers invalid in parameter
 declarations
/usr/include/pthread.h:591: error: storage class specified for parameter `parame
ter'
In file included from /usr/include/pthread.h:655,
                 from /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../../i
nclude/c++/3.4.4/powerpc-unknown-linux-gnu/bits/gthr-default.h:43,
                 from /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../../i
nclude/c++/3.4.4/powerpc-unknown-linux-gnu/bits/gthr.h:96,
                 from /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../../i
nclude/c++/3.4.4/powerpc-unknown-linux-gnu/bits/c++io.h:37,
                 from /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../../i
nclude/c++/3.4.4/iosfwd:47,
                 from /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../../i
nclude/c++/3.4.4/ios:44,
                 from /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../../i
nclude/c++/3.4.4/ostream:45,
                 from /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../../i
nclude/c++/3.4.4/iostream:45,
                 from ECTag.h:28,
                 from ECTag.cpp:25:
/usr/include/bits/sigthread.h:36: error: storage class specifiers invalid in par
ameter declarations
/usr/include/bits/sigthread.h:36: error: storage class specified for parameter `
parameter'
make[7]: *** [libec_a-ECTag.o] Error 1
make[7]: Leaving directory `/usr/src/amule-cvs/src/libs/ec/cpp'
make[6]: *** [all] Error 2
make[6]: Leaving directory `/usr/src/amule-cvs/src/libs/ec/cpp'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/usr/src/amule-cvs/src/libs/ec'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/usr/src/amule-cvs/src/libs/ec'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/src/amule-cvs/src/libs'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/amule-cvs/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/amule-cvs'
make: *** [all] Error 2

I have wxWidgets 2.8.7 and crypto++ 5.5.2 selfcompiled.
Bye!
Logged

Menion

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 95
  • Winter is coming...
Re: aMule-CVS-20080302 compilation problem
« Reply #1 on: March 05, 2008, 10:32:49 AM »

Any help? I would underline that I have been always able to compile amuled flawlessy with several wxwidgets updates. Bye!
Logged

Menion

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 95
  • Winter is coming...
Re: aMule-CVS-20080302 compilation problem
« Reply #2 on: March 08, 2008, 12:38:59 AM »

Same error with SVN 20080307

This is the configure summary:

Quote
  Configure script has finished system check.

  Configured aMule SVN for 'powerpc-unknown-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 be compiled with UPnP support?                yes
  Should aMule be compiled with IP2country support?          no
  Should aMule monolithic application be built?              no
  Should aMule daemon version be built?                      yes
  Should aMule remote gui be built? (EXPERIMENTAL)           no
  Crypto++ library/headers style?                            installed

  **** 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?        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.8.7 (,static)
                                       crypto++              5.5.2 (installed)
                                       libpng                1.2.8
                                       libgd                 2.0.33
                                       zlib                  1.2.3

ls -l /usr/bin/wx*
Quote
ls: /usr/bin/wx*: No such file or directory

ls -l /usr/local/bin/wx*
Quote
lrwxrwxrwx  1 root root 56 Mar  2 13:23 /usr/local/bin/wx-config -> /usr/local/lib/wx/config/base-unicode-release-static-2.8

and the compiling error:
Quote
make  all-recursive
make[1]: Entering directory `/usr/src/amule-cvs'
Making all in docs
make[2]: Entering directory `/usr/src/amule-cvs/docs'
Making all in man
make[3]: Entering directory `/usr/src/amule-cvs/docs/man'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/src/amule-cvs/docs/man'
make[3]: Entering directory `/usr/src/amule-cvs/docs'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/usr/src/amule-cvs/docs'
make[2]: Leaving directory `/usr/src/amule-cvs/docs'
Making all in src
make[2]: Entering directory `/usr/src/amule-cvs/src'
Making all in libs
make[3]: Entering directory `/usr/src/amule-cvs/src/libs'
Making all in ec
make[4]: Entering directory `/usr/src/amule-cvs/src/libs/ec'
./file_generator.pl . abstracts/ECTagTypes.abstract abstracts/ECCodes.abstract;
Parsing 2 files
FileName: ECTagTypes
FileContent: EC tag types for use on the ec library.
Reading content section...
        Datatype: Enum
        Dataname: ECTagTypes
        DataType: uint8
No more content sections
All info parsed
FileName: ECCodes
FileContent: EC codes and type definition.
Reading content section...
        Datatype: TypeDef
Reading content section...
        Datatype: Enum
        Dataname: ProtocolVersion
        DataType: uint16
Reading content section...
        Datatype: Enum
        Dataname: ECFlags
        DataType: uint32
Reading content section...
        Datatype: Enum
        Dataname: ECOpCodes
        DataType: uint8
Reading content section...
        Datatype: Enum
        Dataname: ECTagNames
        DataType: uint16
Reading content section...
        Datatype: Enum
        Dataname: EC_DETAIL_LEVEL
        DataType: uint8
Reading content section...
        Datatype: Enum
        Dataname: EC_SEARCH_TYPE
        DataType: uint8
Reading content section...
        Datatype: Enum
        Dataname: EC_STATTREE_NODE_VALUE_TYPE
        DataType: uint8
Reading content section...
        Datatype: Enum
        Dataname: EcPrefs
        DataType: uint32
No more content sections
All info parsed
echo abstracts/ECTagTypes.abstract abstracts/ECCodes.abstract > ECGeneratedFiles
make  all-recursive
make[5]: Entering directory `/usr/src/amule-cvs/src/libs/ec'
Making all in cpp
make[6]: Entering directory `/usr/src/amule-cvs/src/libs/ec/cpp'
gcc    ../../../../src/utils/mkFileSum.c -o mkFileSum
Generating ECVersion.h... created.
make  all-am
make[7]: Entering directory `/usr/src/amule-cvs/src/libs/ec/cpp'
if g++ -DHAVE_CONFIG_H -I. -I. -I../../../..    -isystem /usr/local/lib/wx/inclu
de/base-unicode-release-static-2.8 -isystem /usr/local/include/wx-2.8 -D_FILE_OF
FSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DwxUSE_GUI=0 -pthread -I../..
/../../src -I../../../../src/libs -I../../../../src/include -isystem /usr/includ
e -D__CRYPTO_INSTALLED__ -D__WEAK_CRYPTO__ -g -D__DEBUG__ -D_GLIBCXX_DEBUG -D_GL
IBCXX_DEBUG_PEDANTIC -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-lengt
h=0   -DUSE_WX_EXTENSIONS -MT libec_a-ECTag.o -MD -MP -MF ".deps/libec_a-ECTag.T
po" -c -o libec_a-ECTag.o `test -f 'ECTag.cpp' || echo './'`ECTag.cpp; \
then mv -f ".deps/libec_a-ECTag.Tpo" ".deps/libec_a-ECTag.Po"; else rm -f ".deps
/libec_a-ECTag.Tpo"; exit 1; fi
In file included from /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../../i
nclude/c++/3.4.4/powerpc-unknown-linux-gnu/bits/gthr-default.h:43,
                 from /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../../i
nclude/c++/3.4.4/powerpc-unknown-linux-gnu/bits/gthr.h:96,
                 from /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../../i
nclude/c++/3.4.4/powerpc-unknown-linux-gnu/bits/c++io.h:37,
                 from /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../../i
nclude/c++/3.4.4/iosfwd:47,
                 from /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../../i
nclude/c++/3.4.4/ios:44,
                 from /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../../i
nclude/c++/3.4.4/ostream:45,
                 from /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../../i
nclude/c++/3.4.4/iostream:45,
                 from ECTag.h:28,
                 from ECTag.cpp:25:
/usr/include/pthread.h:163: error: expected `,' or `...' before "__thread"
/usr/include/pthread.h:591: error: storage class specifiers invalid in parameter
 declarations
/usr/include/pthread.h:591: error: storage class specified for parameter `parame
ter'
In file included from /usr/include/pthread.h:655,
                 from /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../../i
nclude/c++/3.4.4/powerpc-unknown-linux-gnu/bits/gthr-default.h:43,
                 from /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../../i
nclude/c++/3.4.4/powerpc-unknown-linux-gnu/bits/gthr.h:96,
                 from /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../../i
nclude/c++/3.4.4/powerpc-unknown-linux-gnu/bits/c++io.h:37,
                 from /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../../i
nclude/c++/3.4.4/iosfwd:47,
                 from /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../../i
nclude/c++/3.4.4/ios:44,
                 from /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../../i
nclude/c++/3.4.4/ostream:45,
                 from /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../../i
nclude/c++/3.4.4/iostream:45,
                 from ECTag.h:28,
                 from ECTag.cpp:25:
/usr/include/bits/sigthread.h:36: error: storage class specifiers invalid in par
ameter declarations
/usr/include/bits/sigthread.h:36: error: storage class specified for parameter `
parameter'
make[7]: *** [libec_a-ECTag.o] Error 1
make[7]: Leaving directory `/usr/src/amule-cvs/src/libs/ec/cpp'
make[6]: *** [all] Error 2
make[6]: Leaving directory `/usr/src/amule-cvs/src/libs/ec/cpp'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/usr/src/amule-cvs/src/libs/ec'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/usr/src/amule-cvs/src/libs/ec'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/src/amule-cvs/src/libs'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/amule-cvs/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/amule-cvs'
make: *** [all] Error 2

Any help will be really appreciated :)

Bye!

Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: aMule-CVS-20080302 compilation problem
« Reply #3 on: March 08, 2008, 12:58:53 AM »

OK, what's the last version of aMule you could compile successfully? Has anything changed in your system?
Logged

Menion

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 95
  • Winter is coming...
Re: aMule-CVS-20080302 compilation problem
« Reply #4 on: March 08, 2008, 10:51:53 AM »

It should be the 20071207 CVS. BEfore last compiling attemps I upgraded wxwidgets from 2.8.4 to 2.8.7 in the same usual manner, done several time (recompile and "quick&dirty" remove of old wxwidgets). And of course I had to compile and install crypto++. I'm lookig for some old CVS and try to compile, Bye!
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: aMule-CVS-20080302 compilation problem
« Reply #5 on: March 08, 2008, 11:13:25 AM »

Please tell me should you need some subversion checkouts of specific dates. If 1207 is the last which worked, which was the first to fail?
Logged

Menion

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 95
  • Winter is coming...
Re: aMule-CVS-20080302 compilation problem
« Reply #6 on: March 08, 2008, 11:20:34 AM »

wuischke I managed to recover the 20071207 snapshot that was the last one that worked and I'm compiling this CVS version right now and seems to compile flawlessy!!!
So it doesn't seem to be releated to the new wxwidgets.
I'm not used to compile CVS daily, so the fist that I tried and failed was the 20080302
I'm going to try to oldest CVS available on hirniss, but I think it could worth to try the CVS just before you forced to use crypto++ or other major changes.
Bye!

UPDATE

CVS 20080205 fails to compile in the same manner

UPDATE2

CVS 20071207 compiled and works flawlessy
« Last Edit: March 08, 2008, 12:40:00 PM by Menion »
Logged

Menion

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 95
  • Winter is coming...
Re: aMule-CVS-20080302 compilation problem
« Reply #7 on: March 15, 2008, 10:22:57 AM »

Still no luck today 20080315. Anyone could help me at least giving some old CVS?
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: aMule-CVS-20080302 compilation problem
« Reply #8 on: March 15, 2008, 12:09:39 PM »

Quote
Anyone could help me at least giving some old CVS?
I'm very sorry, I forgot about that. :(

Please see my temporary download space, revision 7929 is before removing the embedded crypto sources.
Logged

Menion

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 95
  • Winter is coming...
Re: aMule-CVS-20080302 compilation problem
« Reply #9 on: March 15, 2008, 07:52:10 PM »

Thank you very much wuischke. BUT, How am I supposed to compile the package  ;D? There is no configure script neither makefile.... I'm going to build the sources on a kurobox, so I need to set the makefile to build only amuled. Bye!
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: aMule-CVS-20080302 compilation problem
« Reply #10 on: March 15, 2008, 08:02:15 PM »

You have to run ./autogen.sh to generate the configure script. It's just a plain SVN checkout and I was too lazy to clean anything out or prepare a ready tarball.
Logged

Menion

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 95
  • Winter is coming...
Re: aMule-CVS-20080302 compilation problem
« Reply #11 on: March 15, 2008, 10:08:59 PM »

Done! I started to compile and It seems to compile without any problem... Maybe you want to put on your space the first version without embedded crypto that use crypto++

About the errors: the compiler complains about this code (in pthread.h):

163:extern int pthread_create (pthread_t *__restrict __thread,
            __const pthread_attr_t *__restrict __attr,
            void *(*__start_routine) (void *),
            void *__restrict __arg) __THROW;

591:extern int pthread_cancel (pthread_t __thread) __THROW;

It's strange, I found that pthread_t is an "typedef unsigned long int pthread_t" and should be declared. But other functions using this type don't generate any error...
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: aMule-CVS-20080302 compilation problem
« Reply #12 on: March 15, 2008, 11:07:15 PM »

Quote
Maybe you want to put on your space the first version without embedded crypto that use crypto++
Done.
Logged

Menion

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 95
  • Winter is coming...
Re: aMule-CVS-20080302 compilation problem
« Reply #13 on: March 15, 2008, 11:58:52 PM »

Here we are!!!!
The last amule WITH embedded crypto compiled, linked and works flawlessy, while the first SVN WITHOUT embedded crypto that use crypto++ fails to compile with the same errors!!!
This is the configure output of the SVN without embedded crypto:

Quote
Crypto++ library/headers style?                            mdk_suse_fc

  **** 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?        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.8.7 (,static)
                                       crypto++              5.5.2 (mdk_suse_fc)
                                       libpng                1.2.8
                                       libgd                 2.0.33
                                       zlib                  1.2.3


 The configure options are the same of above. Wuischke do you have any ideas? Maybe something releated do gcc 3.x.x? Bye!
« Last Edit: March 16, 2008, 12:08:57 AM by Menion »
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: aMule-CVS-20080302 compilation problem
« Reply #14 on: March 16, 2008, 06:44:28 PM »

Does the same happen with r7929 and --disable-embedded-crypto?
Logged
Pages: [1] 2