Hello,
I am trying to compile CVS amule v 20051113 and I have compilation problem.
I use GNU make 3.80, FreeBSD 5.3.
After gmake I received:
# gmake
gmake all-recursive
gmake[1]: Entering directory `/root/packages/amule/amule-cvs-20051113'
Making all in m4
gmake[2]: Entering directory `/root/packages/amule/amule-cvs-20051113/m4'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory `/root/packages/amule/amule-cvs-20051113/m4'
Making all in docs
gmake[2]: Entering directory `/root/packages/amule/amule-cvs-20051113/docs'
Making all in man
gmake[3]: Entering directory `/root/packages/amule/amule-cvs-20051113/docs/man'
gmake[3]: Nothing to be done for `all'.
gmake[3]: Leaving directory `/root/packages/amule/amule-cvs-20051113/docs/man'
gmake[3]: Entering directory `/root/packages/amule/amule-cvs-20051113/docs'
gmake[3]: Nothing to be done for `all-am'.
gmake[3]: Leaving directory `/root/packages/amule/amule-cvs-20051113/docs'
gmake[2]: Leaving directory `/root/packages/amule/amule-cvs-20051113/docs'
Making all in src
gmake[2]: Entering directory `/root/packages/amule/amule-cvs-20051113/src'
Making all in libs
gmake[3]: Entering directory `/root/packages/amule/amule-cvs-20051113/src/libs'
Making all in ec
gmake[4]: Entering directory `/root/packages/amule/amule-cvs-20051113/src/libs/e
c'
gcc -o mkFileSum ../../../src/utils/mkFileSum.c
Generating ECVersion.h... created.
gmake all-am
gmake[5]: Entering directory `/root/packages/amule/amule-cvs-20051113/src/libs/e
c'
if g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I/usr/local/include -I../../../src
-I.. -DUSE_EMBEDDED_CRYPTO -W -Wall -g -ggdb -fno-inline -D__DEBUG__ -fmessage-
length=0 -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -O2 -MT libec_a-ECPacket.o
-MD -MP -MF ".deps/libec_a-ECPacket.Tpo" -c -o libec_a-ECPacket.o `test -f 'ECPa
cket.cpp' || echo './'`ECPacket.cpp; \
then mv -f ".deps/libec_a-ECPacket.Tpo" ".deps/libec_a-ECPacket.Po"; else rm -f
".deps/libec_a-ECPacket.Tpo"; exit 1; fi
In file included from ECPacket.cpp:25:
ECPacket.h:28:47: wx/string.h: No such file or directory
In file included from ../common/StringFunctions.h:29,
from ECPacket.h:30,
from ECPacket.cpp:25:
../common/../../Types.h:30:61: wx/dynarray.h: No such file or directory
In file included from ../common/StringFunctions.h:29,
from ECPacket.h:30,
from ECPacket.cpp:25:
../common/../../Types.h:88: error: `ArrayOfUInts16' has not been declared
../common/../../Types.h:88: error: expected constructor, destructor, or type con
version before ';' token
../common/../../Types.h:91: error: `wxString' does not name a type
In file included from ECPacket.h:30,
from ECPacket.cpp:25:
../common/StringFunctions.h:30:21: wx/defs.h: No such file or directory
../common/StringFunctions.h:32:24: wx/strconv.h: No such file or directory
In file included from ECPacket.h:30,
from ECPacket.cpp:25:
../common/StringFunctions.h:75: error: `wxWX2MBbuf' does not name a type
../common/StringFunctions.h:76: error: `wxMB2WXbuf' does not name a type
../common/StringFunctions.h:78: error: `wxCSConv' does not name a type
../common/StringFunctions.h:80: error: `Unicode2CharBuf' does not name a type
../common/StringFunctions.h:81: error: `Char2UnicodeBuf' does not name a type
../common/StringFunctions.h:83: error: `Unicode2CharBuf' does not name a type
../common/StringFunctions.h:84: error: `Char2UnicodeBuf' does not name a type
../common/StringFunctions.h:86: error: `wxCharBuffer' does not name a type
../common/StringFunctions.h:87: error: `wxCharBuffer' does not name a type
../common/StringFunctions.h:92: error: `wxString' does not name a type
../common/StringFunctions.h:98: error: `wxString' does not name a type
../common/StringFunctions.h: In function `char* nstrdup(const char*)':
../common/StringFunctions.h:110: error: `strlen' undeclared (first use this func
tion)
../common/StringFunctions.h:110: error: (Each undeclared identifier is reported
only once for each function it appears in.)
../common/StringFunctions.h:112: error: `strcpy' undeclared (first use this func
tion)
../common/StringFunctions.h: At global scope:
../common/StringFunctions.h:121: error: expected `,' or `...' before '&' token
../common/StringFunctions.h:121: error: ISO C++ forbids declaration of `wxString
' with no type
../common/StringFunctions.h: In function `long int StrToLong(int)':
../common/StringFunctions.h:123: error: `str' undeclared (first use this functio
n)
../common/StringFunctions.h: At global scope:
../common/StringFunctions.h:127: error: expected `,' or `...' before '&' token
../common/StringFunctions.h:127: error: ISO C++ forbids declaration of `wxString
' with no type
../common/StringFunctions.h: In function `long unsigned int StrToULong(int)':
../common/StringFunctions.h:129: error: `str' undeclared (first use this functio
n)
../common/StringFunctions.h: At global scope:
../common/StringFunctions.h:134: error: expected `,' or `...' before '&' token
../common/StringFunctions.h:135: error: ISO C++ forbids declaration of `wxString
' with no type
../common/StringFunctions.h: In function `unsigned int GetRawSize(int)':
../common/StringFunctions.h:137: error: `eEncode' undeclared (first use this fun
ction)
../common/StringFunctions.h:141: error: `Unicode2CharBuf' undeclared (first use
this function)
../common/StringFunctions.h:141: error: expected `;' before "s"
../common/StringFunctions.h:142: error: `s' undeclared (first use this function)
../common/StringFunctions.h:143: error: `strlen' undeclared (first use this func
tion)
../common/StringFunctions.h:150: error: expected `;' before "s"
../common/StringFunctions.h: At global scope:
../common/StringFunctions.h:172: error: `wxString' does not name a type
../common/StringFunctions.h:174: error: `wxString' does not name a type
../common/StringFunctions.h:177: error: `wxString' does not name a type
../common/StringFunctions.h:186: error: `wxChar' does not name a type
../common/StringFunctions.h:195: error: `wxString' does not name a type
../common/StringFunctions.h:201: error: `wxString' does not name a type
../common/StringFunctions.h:214: error: expected `,' or `...' before '&' token
../common/StringFunctions.h:214: error: ISO C++ forbids declaration of `wxString
' with no type
../common/StringFunctions.h:222: error: `wxString' does not name a type
../common/StringFunctions.h:234: error: `wxString' does not name a type
../common/StringFunctions.h:239: error: `size_t' does not name a type
../common/StringFunctions.h:243: error: `wxString' does not name a type
../common/StringFunctions.h:246: error: `wxChar' does not name a type
../common/StringFunctions.h:249: error: ISO C++ forbids declaration of `wxChar'
with no type
../common/StringFunctions.h:249: error: expected `;' before '*' token
../common/StringFunctions.h:252: error: `size_t' does not name a type
In file included from ../../../src/MD4Hash.h:30,
from ECPacket.h:33,
from ECPacket.cpp:25:
../../../src/ArchSpecific.h: In function `uint16 PeekUInt16(const void*)':
../../../src/ArchSpecific.h:151: error: `wxUINT16_SWAP_ON_BE' undeclared (first
use this function)
../../../src/ArchSpecific.h: In function `uint32 PeekUInt32(const void*)':
../../../src/ArchSpecific.h:157: error: `wxUINT32_SWAP_ON_BE' undeclared (first
use this function)
../../../src/ArchSpecific.h: In function `void PokeUInt16(void*, uint16)':
../../../src/ArchSpecific.h:205: error: `wxUINT16_SWAP_ON_BE' undeclared (first
use this function)
../../../src/ArchSpecific.h: In function `void PokeUInt32(void*, uint32)':
../../../src/ArchSpecific.h:211: error: `wxUINT32_SWAP_ON_BE' undeclared (first
use this function)
In file included from ../../../src/MD4Hash.h:31,
from ECPacket.h:33,
from ECPacket.cpp:25:
../../../src/libs/common/MuleDebug.h:29:22: wx/debug.h: No such file or director
y
In file included from ../../../src/MD4Hash.h:31,
from ECPacket.h:33,
from ECPacket.cpp:25:
../../../src/libs/common/MuleDebug.h: At global scope:
../../../src/libs/common/MuleDebug.h:48: error: `wxString' does not name a type
../../../src/libs/common/MuleDebug.h:59: error: expected `,' or `...' before '&'
token
../../../src/libs/common/MuleDebug.h:60: error: ISO C++ forbids declaration of `
wxString' with no type
../../../src/libs/common/MuleDebug.h:63: error: ISO C++ forbids declaration of `
wxString' with no type
../../../src/libs/common/MuleDebug.h:63: error: expected `;' before '&' token
../../../src/libs/common/MuleDebug.h:67: error: expected `;' before "private"
../../../src/libs/common/MuleDebug.h:68: error: `wxString' does not name a type
../../../src/libs/common/MuleDebug.h: In constructor `CMuleException::CMuleExcep
tion(int)':
../../../src/libs/common/MuleDebug.h:60: error: class `CMuleException' does not
have any field named `m_what'
../../../src/libs/common/MuleDebug.h:60: error: `type' undeclared (first use thi
s function)
../../../src/libs/common/MuleDebug.h:60: error: `wxT' undeclared (first use this
function)
../../../src/libs/common/MuleDebug.h:60: error: `what' undeclared (first use thi
s function)
../../../src/libs/common/MuleDebug.h: At global scope:
../../../src/libs/common/MuleDebug.h:79: error: expected `,' or `...' before '&'
token
../../../src/libs/common/MuleDebug.h:80: error: ISO C++ forbids declaration of `
wxString' with no type
../../../src/libs/common/MuleDebug.h: In constructor `CRunTimeException::CRunTim
eException(int)':
../../../src/libs/common/MuleDebug.h:80: error: `wxT' undeclared (first use this
function)
../../../src/libs/common/MuleDebug.h:80: error: `type' undeclared (first use thi
s function)
../../../src/libs/common/MuleDebug.h:80: error: `what' undeclared (first use thi
s function)
../../../src/libs/common/MuleDebug.h: At global scope:
../../../src/libs/common/MuleDebug.h:90: error: expected `,' or `...' before '&'
token
../../../src/libs/common/MuleDebug.h:91: error: ISO C++ forbids declaration of `
wxString' with no type
../../../src/libs/common/MuleDebug.h: In constructor `CInvalidParamsEx::CInvalid
ParamsEx(int)':
../../../src/libs/common/MuleDebug.h:91: error: `wxT' undeclared (first use this
function)
../../../src/libs/common/MuleDebug.h:91: error: `what' undeclared (first use thi
s function)
../../../src/libs/common/MuleDebug.h: At global scope:
../../../src/libs/common/MuleDebug.h:100: error: expected `,' or `...' before '&
' token
../../../src/libs/common/MuleDebug.h:101: error: ISO C++ forbids declaration of
`wxString' with no type
../../../src/libs/common/MuleDebug.h: In constructor `CInvalidStateEx::CInvalidS
tateEx(int)':
../../../src/libs/common/MuleDebug.h:101: error: `wxT' undeclared (first use thi
s function)
../../../src/libs/common/MuleDebug.h:101: error: `what' undeclared (first use th
is function)
../../../src/libs/common/MuleDebug.h: At global scope:
../../../src/libs/common/MuleDebug.h:106: error: expected `,' or `...' before '&
' token
../../../src/libs/common/MuleDebug.h:107: error: ISO C++ forbids declaration of
`wxString' with no type
../../../src/libs/common/MuleDebug.h: In constructor `CInvalidPacket::CInvalidPa
cket(int)':
../../../src/libs/common/MuleDebug.h:107: error: `wxT' undeclared (first use thi
s function)
../../../src/libs/common/MuleDebug.h:107: error: `what' undeclared (first use th
is function)
In file included from ECPacket.h:33,
from ECPacket.cpp:25:
../../../src/MD4Hash.h: At global scope:
../../../src/MD4Hash.h:36: error: `size_t' does not name a type
../../../src/MD4Hash.h:83: error: expected `,' or `...' before '&' token
../../../src/MD4Hash.h:83: error: ISO C++ forbids declaration of `wxString' with
no type
../../../src/MD4Hash.h:166: error: expected `,' or `...' before '&' token
../../../src/MD4Hash.h:166: error: ISO C++ forbids declaration of `wxString' wit
h no type
../../../src/MD4Hash.h:197: error: `wxString' does not name a type
../../../src/MD4Hash.h:245: error: declaration of `operator[]' as non-function
../../../src/MD4Hash.h:245: error: expected `;' before '(' token
../../../src/MD4Hash.h:250: error: expected `;' before "unsigned"
../../../src/MD4Hash.h:250: error: declaration of `operator[]' as non-function
../../../src/MD4Hash.h:250: error: expected `;' before '(' token
../../../src/MD4Hash.h:255: error: expected `;' before "private"
../../../src/MD4Hash.h:260: error: `MD4HASH_LENGTH' was not declared in this sco
pe
../../../src/MD4Hash.h: In constructor `CMD4Hash::CMD4Hash(int)':
../../../src/MD4Hash.h:84: error: `hash' undeclared (first use this function)
../../../src/MD4Hash.h: In member function `bool CMD4Hash::operator==(const CMD4
Hash&) const':
../../../src/MD4Hash.h:95: error: `m_hash' undeclared (first use this function)
../../../src/MD4Hash.h:95: error: 'const class CMD4Hash' has no member named 'm_
hash'
../../../src/MD4Hash.h:96: error: 'const class CMD4Hash' has no member named 'm_
hash'
../../../src/MD4Hash.h: In member function `bool CMD4Hash::operator<(const CMD4H
ash&) const':
../../../src/MD4Hash.h:118: error: `size_t' undeclared (first use this function)
../../../src/MD4Hash.h:118: error: expected `;' before "i"
../../../src/MD4Hash.h:118: error: `i' undeclared (first use this function)
../../../src/MD4Hash.h:118: error: `MD4HASH_LENGTH' undeclared (first use this f
unction)
../../../src/MD4Hash.h:119: error: `m_hash' undeclared (first use this function)
../../../src/MD4Hash.h:119: error: 'const class CMD4Hash' has no member named 'm
_hash'
../../../src/MD4Hash.h:121: error: 'const class CMD4Hash' has no member named 'm
_hash'
../../../src/MD4Hash.h: In member function `bool CMD4Hash::IsEmpty() const':
../../../src/MD4Hash.h:141: error: `m_hash' undeclared (first use this function)
../../../src/MD4Hash.h: In member function `void CMD4Hash::Clear()':
../../../src/MD4Hash.h:153: error: `m_hash' undeclared (first use this function)
../../../src/MD4Hash.h: In member function `void CMD4Hash::Decode(int)':
../../../src/MD4Hash.h:167: error: `hash' undeclared (first use this function)
../../../src/MD4Hash.h:167: error: `MD4HASH_LENGTH' undeclared (first use this f
unction)
../../../src/MD4Hash.h:167: error: `wxASSERT' undeclared (first use this functio
n)
../../../src/MD4Hash.h:169: error: `size_t' undeclared (first use this function)
../../../src/MD4Hash.h:169: error: expected `;' before "i"
../../../src/MD4Hash.h:169: error: `i' undeclared (first use this function)
../../../src/MD4Hash.h:182: error: `m_hash' undeclared (first use this function)
../../../src/MD4Hash.h: In member function `void CMD4Hash::SetHash(const unsigne
d char*)':
../../../src/MD4Hash.h:220: error: `m_hash' undeclared (first use this function)
../../../src/MD4Hash.h: In member function `unsigned char* CMD4Hash::GetHash()':
../../../src/MD4Hash.h:233: error: `m_hash' undeclared (first use this function)
../../../src/MD4Hash.h: In member function `const unsigned char* CMD4Hash::GetHa
sh() const':
../../../src/MD4Hash.h:236: error: `m_hash' undeclared (first use this function)
In file included from /usr/include/c++/3.4/cstddef:48,
from /usr/include/c++/3.4/cstring:49,
from /usr/include/c++/3.4/bits/stl_algobase.h:65,
from /usr/include/c++/3.4/vector:67,
from ECPacket.h:36,
from ECPacket.cpp:25:
/usr/include/stddef.h: At global scope:
/usr/include/stddef.h:55: error: `typedef __size_t size_t' used prior to declara
tion
In file included from /usr/include/c++/3.4/cstring:51,
from /usr/include/c++/3.4/bits/stl_algobase.h:65,
from /usr/include/c++/3.4/vector:67,
from ECPacket.h:36,
from ECPacket.cpp:25:
/usr/include/string.h:74: error: `char* strcpy(char*, const char*)' used prior t
o declaration
/usr/include/string.h:87: error: `size_t strlen(const char*)' used prior to decl
aration
In file included from ECPacket.cpp:25:
ECPacket.h:63: error: `wxString' does not name a type
ECPacket.h:93: error: expected `,' or `...' before '&' token
ECPacket.h:93: error: ISO C++ forbids declaration of `wxString' with no type
ECPacket.h:128: error: `wxString' does not name a type
ECPacket.h:163: error: `wxString' has not been declared
ECPacket.h:164: error: ISO C++ forbids declaration of `target' with no type
ECPacket.h: In member function `uint16 CECTag::GetInt16Data() const':
ECPacket.h:119: error: `wxUINT16_SWAP_ON_LE' undeclared (first use this function
)
ECPacket.h: In member function `uint32 CECTag::GetInt32Data() const':
ECPacket.h:120: error: `wxUINT32_SWAP_ON_LE' undeclared (first use this function
)
ECPacket.h: In member function `uint64 CECTag::GetInt64Data() const':
ECPacket.h:123: error: `wxUINT32_SWAP_ON_LE' undeclared (first use this function
)
ECPacket.h: In member function `void CECTag::AssignIfExist(ec_tagname_t, int&)':
ECPacket.h:166: error: 'class CECTag' has no member named 'GetStringData'
In file included from ECPacket.cpp:26:
ECSocket.h:30:23: wx/socket.h: No such file or directory
In file included from ECPacket.cpp:26:
ECSocket.h: At global scope:
ECSocket.h:40: error: `wxID_HIGHEST' was not declared in this scope
ECSocket.h:40: error: enumerator value for `EC_SOCKET_HANDLER' not integer const
ant
ECSocket.h:43: error: expected class-name before '{' token
ECSocket.h:48: error: variable or field `SocketHandler' declared void
ECSocket.h:48: error: expected `;' before '(' token
ECSocket.h:50: error: ISO C++ forbids declaration of `DECLARE_EVENT_TABLE' with
no type
ECSocket.h:50: error: expected `;' before '}' token
ECSocket.h:50: error: expected `;' before '}' token
ECSocket.h:59: error: expected class-name before '{' token
ECSocket.h:107: error: `wxSocketError' does not name a type
ECSocket.h:59: warning: `class CECSocket' has virtual functions but non-virtual
destructor
ECPacket.cpp: In constructor `CECTag::CECTag(ec_tagname_t, const EC_IPv4_t&)':
ECPacket.cpp:125: error: `wxUINT16_SWAP_ON_LE' undeclared (first use this functi
on)
ECPacket.cpp: At global scope:
ECPacket.cpp:164: error: expected `,' or `...' before '&' token
ECPacket.cpp:164: error: ISO C++ forbids declaration of `wxString' with no type
ECPacket.cpp: In constructor `CECTag::CECTag(ec_tagname_t, int)':
ECPacket.cpp:166: error: `wxCharBuffer' does not name a type
ECPacket.cpp:167: error: `buf' undeclared (first use this function)
ECPacket.cpp: In constructor `CECTag::CECTag(ec_tagname_t, uint16)':
ECPacket.cpp:252: error: `wxUINT16_SWAP_ON_LE' undeclared (first use this functi
on)
ECPacket.cpp: In constructor `CECTag::CECTag(ec_tagname_t, uint32)':
ECPacket.cpp:274: error: `wxUINT32_SWAP_ON_LE' undeclared (first use this functi
on)
ECPacket.cpp: In constructor `CECTag::CECTag(ec_tagname_t, uint64)':
ECPacket.cpp:298: error: `wxUINT32_SWAP_ON_LE' undeclared (first use this functi
on)
ECPacket.cpp: In constructor `CECTag::CECTag(ec_tagname_t, double)':
ECPacket.cpp:319: error: `wxCharBuffer' does not name a type
ECPacket.cpp:320: error: `buf' undeclared (first use this function)
ECPacket.cpp: In member function `bool CECTag::AddTag(const CECTag&)':
ECPacket.cpp:415: error: `wxASSERT' undeclared (first use this function)
ECPacket.cpp: In member function `EC_IPv4_t CECTag::GetIPv4Data() const':
ECPacket.cpp:600: error: `wxUINT16_SWAP_ON_LE' undeclared (first use this functi
on)
ECPacket.cpp: In member function `double CECTag::GetDoubleData() const':
ECPacket.cpp:618: error: `GetStringData' undeclared (first use this function)
ECPacket.cpp: At global scope:
ECPacket.cpp:317: warning: unused parameter 'data'
ECPacket.cpp:317: warning: unused parameter 'data'
ECPacket.cpp:164: warning: unused parameter 'wxString'
ECPacket.cpp:164: warning: unused parameter 'wxString'
gmake[5]: *** [libec_a-ECPacket.o] Error 1
gmake[5]: Leaving directory `/root/packages/amule/amule-cvs-20051113/src/libs/ec
'
gmake[4]: *** [all] Error 2
gmake[4]: Leaving directory `/root/packages/amule/amule-cvs-20051113/src/libs/ec
'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/root/packages/amule/amule-cvs-20051113/src/libs'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/root/packages/amule/amule-cvs-20051113/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/root/packages/amule/amule-cvs-20051113'
gmake: *** [all] Error 2
Could you help me?
Regards,
Tom