aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Try to Compile aMule CVS for Tiger But Failed!!  (Read 3606 times)

flyinhighr

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
Try to Compile aMule CVS for Tiger But Failed!!
« on: March 08, 2008, 03:57:24 PM »

It is hard to find an aMule CVS for Tiger. So I decide  to build one by myself. I followed the "How to" , but when I tried to compile aMule it failed and show the error message as follows.

Compiled on OSX 10.4.11 PPC, XCode 2.5, MacPorts.

Anybody help me? Thanks!

Quote
make  all-recursiveMaking all in docsMaking all in manmake[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all-am'.
Making all in src
Making all in libs
Making all in 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
Making all in cpp
gcc    ../../../../src/utils/mkFileSum.c -o mkFileSum
Generating ECVersion.h... created.
make  all-am
if g++ -DHAVE_CONFIG_H -I. -I. -I../../../..    -isystem /Volumes/Mac2/wxMac-2.8.7/build/lib/wx/include/mac-unicode-release-static-2.8 -isystem /Volumes/Mac2/wxMac-2.8.7/include -isystem /Volumes/Mac2/wxMac-2.8.7/contrib/include -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXMAC__ -I../../../../src -I../../../../src/libs -I../../../../src/include -isystem /usr/include -D__CRYPTO_INSTALLED__ -D__WEAK_CRYPTO__  -W -Wall -Wshadow -Wundef -O2  -DUSE_WX_EXTENSIONS -MT libec_a-ECTag.o -MD -MP -MF ".deps/libec_a-ECTag.Tpo" -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
/Volumes/Mac2/wxMac-2.8.7/include/wx/defs.h:603: error: template with C linkage
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1048: error: declaration of C function 'wxString operator+(const wxString&, wxChar)' conflicts with
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1046: error: previous declaration 'wxString operator+(const wxString&, const wxString&)' here
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1050: error: declaration of C function 'wxString operator+(wxChar, const wxString&)' conflicts with
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1048: error: previous declaration 'wxString operator+(const wxString&, wxChar)' here
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1053: error: declaration of C function 'wxString operator+(const wxString&, const wxChar*)' conflicts with
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1050: error: previous declaration 'wxString operator+(wxChar, const wxString&)' here
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1056: error: declaration of C function 'wxString operator+(const wxChar*, const wxString&)' conflicts with
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1053: error: previous declaration 'wxString operator+(const wxString&, const wxChar*)' here
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1421: error: declaration of C function 'wxString operator+(const wxString&, const wxString&)' conflicts with
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1056: error: previous declaration 'wxString operator+(const wxChar*, const wxString&)' here
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1422: error: declaration of C function 'wxString operator+(const wxString&, wxChar)' conflicts with
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1421: error: previous declaration 'wxString operator+(const wxString&, const wxString&)' here
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1423: error: declaration of C function 'wxString operator+(wxChar, const wxString&)' conflicts with
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1422: error: previous declaration 'wxString operator+(const wxString&, wxChar)' here
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1424: error: declaration of C function 'wxString operator+(const wxString&, const wxChar*)' conflicts with
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1423: error: previous declaration 'wxString operator+(wxChar, const wxString&)' here
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1425: error: declaration of C function 'wxString operator+(const wxChar*, const wxString&)' conflicts with
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1424: error: previous declaration 'wxString operator+(const wxString&, const wxChar*)' here
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h: In function 'bool operator==(const wxString&, const wxChar*)':
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1562: error: declaration of C function 'bool operator==(const wxString&, const wxChar*)' conflicts with
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1560: error: previous declaration 'bool operator==(const wxString&, const wxString&)' here
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h: In function 'bool operator==(const wxChar*, const wxString&)':
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1564: error: declaration of C function 'bool operator==(const wxChar*, const wxString&)' conflicts with
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1562: error: previous declaration 'bool operator==(const wxString&, const wxChar*)' here
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h: In function 'bool operator!=(const wxString&, const wxChar*)':
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1568: error: declaration of C function 'bool operator!=(const wxString&, const wxChar*)' conflicts with
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1566: error: previous declaration 'bool operator!=(const wxString&, const wxString&)' here
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h: In function 'bool operator!=(const wxChar*, const wxString&)':
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1570: error: declaration of C function 'bool operator!=(const wxChar*, const wxString&)' conflicts with
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1568: error: previous declaration 'bool operator!=(const wxString&, const wxChar*)' here
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h: In function 'bool operator<(const wxString&, const wxChar*)':
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1574: error: declaration of C function 'bool operator<(const wxString&, const wxChar*)' conflicts with
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1572: error: previous declaration 'bool operator<(const wxString&, const wxString&)' here
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h: In function 'bool operator<(const wxChar*, const wxString&)':
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1576: error: declaration of C function 'bool operator<(const wxChar*, const wxString&)' conflicts with
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1574: error: previous declaration 'bool operator<(const wxString&, const wxChar*)' here
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h: In function 'bool operator>(const wxString&, const wxChar*)':
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1580: error: declaration of C function 'bool operator>(const wxString&, const wxChar*)' conflicts with
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1578: error: previous declaration 'bool operator>(const wxString&, const wxString&)' here
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h: In function 'bool operator>(const wxChar*, const wxString&)':
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1582: error: declaration of C function 'bool operator>(const wxChar*, const wxString&)' conflicts with
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1580: error: previous declaration 'bool operator>(const wxString&, const wxChar*)' here
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h: In function 'bool operator<=(const wxString&, const wxChar*)':
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1586: error: declaration of C function 'bool operator<=(const wxString&, const wxChar*)' conflicts with
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1584: error: previous declaration 'bool operator<=(const wxString&, const wxString&)' here
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h: In function 'bool operator>(const wxChar*, const wxString&)':
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1588: error: declaration of C function 'bool operator<=(const wxChar*, const wxString&)' conflicts with
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1586: error: previous declaration 'bool operator<=(const wxString&, const wxChar*)' here
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h: In function 'bool operator>=(const wxString&, const wxChar*)':
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1592: error: declaration of C function 'bool operator>=(const wxString&, const wxChar*)' conflicts with
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1590: error: previous declaration 'bool operator>=(const wxString&, const wxString&)' here
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h: In function 'bool operator>=(const wxChar*, const wxString&)':
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1594: error: declaration of C function 'bool operator>=(const wxChar*, const wxString&)' conflicts with
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1592: error: previous declaration 'bool operator>=(const wxString&, const wxChar*)' here
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h: In function 'bool operator==(const wxString&, const wxWCharBuffer&)':
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1598: error: declaration of C function 'bool operator==(const wxString&, const wxWCharBuffer&)' conflicts with
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1564: error: previous declaration 'bool operator==(const wxChar*, const wxString&)' here
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h: In function 'bool operator==(const wxWCharBuffer&, const wxString&)':
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1600: error: declaration of C function 'bool operator==(const wxWCharBuffer&, const wxString&)' conflicts with
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1598: error: previous declaration 'bool operator==(const wxString&, const wxWCharBuffer&)' here
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h: In function 'bool operator!=(const wxString&, const wxWCharBuffer&)':
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1602: error: declaration of C function 'bool operator!=(const wxString&, const wxWCharBuffer&)' conflicts with
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1570: error: previous declaration 'bool operator!=(const wxChar*, const wxString&)' here
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h: In function 'bool operator!=(const wxWCharBuffer&, const wxString&)':
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1604: error: declaration of C function 'bool operator!=(const wxWCharBuffer&, const wxString&)' conflicts with
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1602: error: previous declaration 'bool operator!=(const wxString&, const wxWCharBuffer&)' here
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h: In function 'wxString operator+(const wxString&, const wxWCharBuffer&)':
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1618: error: declaration of C function 'wxString operator+(const wxString&, const wxWCharBuffer&)' conflicts with
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1425: error: previous declaration 'wxString operator+(const wxChar*, const wxString&)' here
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h: In function 'wxString operator+(const wxWCharBuffer&, const wxString&)':
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1620: error: declaration of C function 'wxString operator+(const wxWCharBuffer&, const wxString&)' conflicts with
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1618: error: previous declaration 'wxString operator+(const wxString&, const wxWCharBuffer&)' here
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h: In function 'bool operator==(wxChar, const wxString&)':
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1633: error: declaration of C function 'bool operator==(wxChar, const wxString&)' conflicts with
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1600: error: previous declaration 'bool operator==(const wxWCharBuffer&, const wxString&)' here
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h: In function 'bool operator==(const wxString&, wxChar)':
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1634: error: declaration of C function 'bool operator==(const wxString&, wxChar)' conflicts with
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1633: error: previous declaration 'bool operator==(wxChar, const wxString&)' here
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h: In function 'bool operator!=(wxChar, const wxString&)':
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1635: error: declaration of C function 'bool operator!=(wxChar, const wxString&)' conflicts with
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1604: error: previous declaration 'bool operator!=(const wxWCharBuffer&, const wxString&)' here
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h: In function 'bool operator!=(const wxString&, wxChar)':
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1636: error: declaration of C function 'bool operator!=(const wxString&, wxChar)' conflicts with
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1635: error: previous declaration 'bool operator!=(wxChar, const wxString&)' here
../../../../src/libs/common/MuleDebug.h: In constructor 'CMuleException::CMuleException(const wxString&, const wxString&)':
../../../../src/libs/common/MuleDebug.h:59: error: no match for 'operator+' in 'type + ":\000\000\000 \000\000\000\000\000\000"'
/Volumes/Mac2/wxMac-2.8.7/include/wx/string.h:1620: note: candidates are: wxString operator+(const wxWCharBuffer&, const wxString&)
make[7]: *** [libec_a-ECTag.o] Error 1
make[6]: *** [all] Error 2
make[5]: *** [all-recursive] Error 1
make[4]: *** [all] Error 2
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Logged

isulzer

  • Jr. Member
  • **
  • Karma: 2
  • Offline Offline
  • Posts: 62
Re: Try to Compile aMule CVS for Tiger But Failed!!
« Reply #1 on: March 09, 2008, 12:31:54 AM »

Seems to me like its not recognizing the difference between a wxString& and a wxChar.... so it thinks the declarations are identical. Try letting macports do the configuring for you since they may have certain configure options for tiger. then tell amule to use it:
sudo port install wxWidgets

then in amule cvs

./configure --with-wxdir=PATH
PATH being /opt/local/wherever wx is installed.
Logged

flyinhighr

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
Re: Try to Compile aMule CVS for Tiger But Failed!!
« Reply #2 on: March 09, 2008, 09:58:27 PM »

Bad News, I did what you said above, but the result doesn't change and the error message is the same. Another suggestion? BTW, Thanks again! :)
Logged

isulzer

  • Jr. Member
  • **
  • Karma: 2
  • Offline Offline
  • Posts: 62
Re: Try to Compile aMule CVS for Tiger But Failed!!
« Reply #3 on: March 12, 2008, 08:57:27 AM »

i have no idea then. grab a newer cvs and disable all debugging. what are all the configure options are you using with amule?
Logged

blackfede

  • Jr. Member
  • **
  • Karma: 3
  • Offline Offline
  • Posts: 66
Re: Try to Compile aMule CVS for Tiger But Failed!!
« Reply #4 on: March 26, 2008, 04:10:18 PM »

I have the same problem! Look at here.
It seems a problem of Tiger. I don't know why...
I've tried a lot of different configuration, debug, statit, dynamic, disabled all the unncessary feature... No way of  get it compile. I have the same error! My wx installation is fine, i have compiled few sample program using wxString, and all is working fine.
Somewere bethween November 2008 and Feb 2008 is changed, but i don't know what! (In Nov 2007 i have compiled a cvs version, and i'm still using that...)
Logged
All troll are idiots and will go in /dev/null