Hi!
Somehow I don't get it. Currently I did following:
-install libcryptopp 5.1
-install wxBase 2.4.2
-install wxMac (with os x 10.3 patch) 2.4.2
I repeatedly get the same "template with c linkage" error:
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/sw/lib/wx/include/mac-2.4 -I/sw/include -D__WXMAC__ -DWXMAKINGDLL -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/include -I/Applications/temp/libcrypto-cvs/c5/ -D__CRYPTO_MDK_SUSE_FC__ -Wall -g -ggdb -fno-inline -D__DEBUG__ -g -MT amule-BaseClient.o -MD -MP -MF ".deps/amule-BaseClient.Tpo" \
-c -o amule-BaseClient.o `test -f 'BaseClient.cpp' || echo './'`BaseClient.cpp; \
then mv -f ".deps/amule-BaseClient.Tpo" ".deps/amule-BaseClient.Po"; \
else rm -f ".deps/amule-BaseClient.Tpo"; exit 1; \
fi
In file included from otherfunctions.h:128,
from BaseClient.cpp:37:
endianfix.h:35:10: warning: #warning BIG ENDIAN BOX
In file included from /usr/include/cryptopp/pubkey.h:35,
from /usr/include/cryptopp/pkcspad.h:5,
from /usr/include/cryptopp/rsa.h:9,
from ClientCredits.h:32,
from BaseClient.cpp:48:
/usr/include/cryptopp/integer.h: In function `CryptoPP::Integer
CryptoPP::operator/(const CryptoPP::Integer&, unsigned int)':
/usr/include/cryptopp/integer.h:426: error: declaration of C function `
CryptoPP::Integer CryptoPP::operator/(const CryptoPP::Integer&, unsigned
int)' conflicts with
/usr/include/cryptopp/integer.h:422: error: previous declaration `
CryptoPP::Integer CryptoPP::operator/(const CryptoPP::Integer&, const
CryptoPP::Integer&)' here
/usr/include/cryptopp/integer.h: In function `word CryptoPP::operator%(const
CryptoPP::Integer&, unsigned int)':
/usr/include/cryptopp/integer.h:428: error: declaration of C function `word
CryptoPP::operator%(const CryptoPP::Integer&, unsigned int)' conflicts with
/usr/include/cryptopp/integer.h:424: error: previous declaration `
CryptoPP::Integer CryptoPP::operator%(const CryptoPP::Integer&, const
CryptoPP::Integer&)' here
/usr/include/cryptopp/integer.h: At global scope:
/usr/include/cryptopp/integer.h:434: error: template specialization with C
linkage
In file included from /usr/include/cryptopp/eprecomp.h:5,
from /usr/include/cryptopp/pubkey.h:37,
from /usr/include/cryptopp/pkcspad.h:5,
from /usr/include/cryptopp/rsa.h:9,
from ClientCredits.h:32,
from BaseClient.cpp:48:
/usr/include/cryptopp/algebra.h:20: error: template with C linkage
/usr/include/cryptopp/algebra.h:44: error: template with C linkage
/usr/include/cryptopp/algebra.h:120: error: template with C linkage
/usr/include/cryptopp/algebra.h:131: error: template with C linkage
/usr/include/cryptopp/algebra.h:133: error: template with C linkage
/usr/include/cryptopp/algebra.h:138: error: template with C linkage
/usr/include/cryptopp/algebra.h:155: error: template with C linkage
/usr/include/cryptopp/algebra.h:215: error: template with C linkage
ends after gazillions of lines with
In file included from ClientCredits.h:32,
from BaseClient.cpp:48:
/usr/include/cryptopp/rsa.h: At global scope:
/usr/include/cryptopp/rsa.h:113: error: template with C linkage
/usr/include/cryptopp/rsa.h:120: error: template with C linkage
BaseClient.cpp: In destructor `CUpDownClient::~CUpDownClient()':
BaseClient.cpp:288: error: `inflateEnd' undeclared (first use this function)
BaseClient.cpp:288: error: (Each undeclared identifier is reported only once
for each function it appears in.)
BaseClient.cpp:289: warning: invalid use of undefined type `struct z_stream_s'
otherstructs.h:26: warning: forward declaration of `struct z_stream_s'
BaseClient.cpp:1578:10: warning: #warning ADDME - Import needed
/Applications/temp/libcrypto-cvs/c5/algparam.h: In member function `
CryptoPP::ConstByteArrayParameter::ConstByteArrayParameter(const T&, bool)
[with T = std::basic_string,
std::allocator >]':
/Applications/temp/libcrypto-cvs/c5/filters.h:700: instantiated from here
/Applications/temp/libcrypto-cvs/c5/algparam.h:26: warning: unused variable `
CryptoPP::CompileAssert cryptopp_assert_26'
make[2]: *** [amule-BaseClient.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
As you see above, I'm currently even using the most recent libcryptopp-headers from cvs (the library itself won't compile, so I'm using that one from the 5.1 release), but it's just a no-go.
aMule was configured without any options, but --disable-amulecmd --disable-gsocket --disable-gtk ... doesn't help either.
Would be great if someone could post the necessary steps. Somehow I'm wondering, how's that possible that everyone that is successful compiling it, doesn't say how it's done.
Cheers, Sarge
PS: when using the headers from the 5.1 release, I get about the same error.