aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: problema compilando  (Read 4024 times)

celeron

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
problema compilando
« on: May 01, 2004, 03:52:40 PM »

he instalado todos los amule sin problemas, incluso la cvs, pero con la ultima release me sucede esto con el make:

/usr/include/cryptopp/pubkey.h:1589: error: there are no arguments to `AccessKey' that depend on a template parameter, so a declaration of `AccessKey' must be available
/usr/include/cryptopp/pubkey.h: In constructor `CryptoPP::PK_FinalTemplate::PK_FinalTemplate(const T1&, const T2&, const T3&, const T4&, const T5&, const T6&, const T7&, const T8&)':
/usr/include/cryptopp/pubkey.h:1593: error: there are no arguments to `AccessKey' that depend on a template parameter, so a declaration of `AccessKey' must be available
/usr/include/cryptopp/pubkey.h: In constructor `CryptoPP::PK_FinalTemplate::PK_FinalTemplate(T1&, const T2&)':
/usr/include/cryptopp/pubkey.h:1597: error: there are no arguments to `AccessKey' that depend on a template parameter, so a declaration of `AccessKey' must be available
/usr/include/cryptopp/pubkey.h: In constructor `CryptoPP::PK_FinalTemplate::PK_FinalTemplate(T1&, const T2&, const T3&)':
/usr/include/cryptopp/pubkey.h:1601: error: there are no arguments to `AccessKey' that depend on a template parameter, so a declaration of `AccessKey' must be available
/usr/include/cryptopp/pubkey.h: In constructor `CryptoPP::PK_FinalTemplate::PK_FinalTemplate(T1&, const T2&, const T3&, const T4&)':
/usr/include/cryptopp/pubkey.h:1605: error: there are no arguments to `AccessKey' that depend on a template parameter, so a declaration of `AccessKey' must be available
/usr/include/cryptopp/pubkey.h: In constructor `CryptoPP::PK_FinalTemplate::PK_FinalTemplate(T1&, const T2&, const T3&, const T4&, const T5&)':
/usr/include/cryptopp/pubkey.h:1609: error: there are no arguments to `AccessKey' that depend on a template parameter, so a declaration of `AccessKey' must be available
/usr/include/cryptopp/pubkey.h: In constructor `CryptoPP::PK_FinalTemplate::PK_FinalTemplate(T1&, const T2&, const T3&, const T4&, const T5&, const T6&)':
/usr/include/cryptopp/pubkey.h:1613: error: there are no arguments to `AccessKey' that depend on a template parameter, so a declaration of `AccessKey' must be available
/usr/include/cryptopp/pubkey.h: In constructor `CryptoPP::PK_FinalTemplate::PK_FinalTemplate(T1&, const T2&, const T3&, const T4&, const T5&, const T6&, const T7&)':
inalTemplate(T1&, const T2&, const T3&, const T4&, const T5&, const T6&, const T7&)':
/usr/include/cryptopp/pubkey.h:1617: error: there are no arguments to `AccessKey' that depend on a template parameter, so a declaration of `AccessKey' must be available
/usr/include/cryptopp/pubkey.h: In constructor `CryptoPP::PK_FinalTemplate::PK_FinalTemplate(T1&, const T2&, const T3&, const T4&, const T5&, const T6&, const T7&, const T8&)':
/usr/include/cryptopp/pubkey.h:1621: error: there are no arguments to `AccessKey' that depend on a template parameter, so a declaration of `AccessKey' must be available
In file included from /usr/include/cryptopp/rsa.h:12,
                 from ClientCredits.h:32,
                 from BaseClient.cpp:47:
/usr/include/cryptopp/asn.h: In member function `void CryptoPP::ASNOptional::DEREncode(CryptoPP::BufferedTransformation&)':
/usr/include/cryptopp/asn.h:224: error: there are no arguments to `get' that depend on a template parameter, so a declaration of `get' must be available
/usr/include/cryptopp/asn.h:225: error: there are no arguments to `get' that depend on a template parameter, so a declaration of `get' must be available
BaseClient.cpp:976:5: warning: #warning Lacks Comment Filtering
BaseClient.cpp:1564:3: warning: #warning ADDME - Import needed
make[2]: *** [amule-BaseClient.o] Error 1
make[2]: Leaving directory `/home/celeron/Download/Internet/aMule-2.0.0rc3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/celeron/Download/Internet/aMule-2.0.0rc3'
make: *** [all] Error 2

no esta entero , pero el resto es muy similar, algo anda mal con cryptolib eso ya se pero k cosa  ?( ?( ?(  ?(  , siendo k con las demas versiones me compilaba sin problema :S
Logged

Arathornz

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 32
un sparring nuevo
« Reply #1 on: May 01, 2004, 07:55:24 PM »

Jacobo, creo ke aki tienes otro sparring en potencia xD
Logged
Un saludo

Jacobo221

  • Hero Member
  • *****
  • Karma: 3
  • Offline Offline
  • Posts: 2712
Re: problema compilando
« Reply #2 on: May 01, 2004, 09:07:54 PM »

Arathornz: xDDDD

Celeron: Deberías deshabilitar los smilies cuando postees este tipo de "pastes".
El problema está en crypto. Prueba con `ln -s /usr/include/crypto++/cryptopp_config.h /usr/include/crypto++/config.h`y si no funciona (eso es para arreglar los problemas en Debian y Gentoo) compila tu propia Crypto++ bajandolo de http://www2.arnes.si/~sopjsimo/misc/crypto-5.1.tar.bz2 y siguiendo la parte adecuada de http://www.amule.org/wiki/index.php/Compilation_Installation

Un saludo.
Logged

celeron

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
Re: problema compilando
« Reply #3 on: May 02, 2004, 12:00:21 AM »

sabes k tengo archlinux, y crypto ya la tenia compilada y me funkaba lo mas bien con la rc2 y rc1, pero ahora me doy cuenta k lo k ha cambiado en mi sistema es gcc ---> gcc 3.4 y al intentar compilar la rc2 rc1 o la mismisima libcrypto me tira errores


g++ -g -pipe -c 3way.cpp
In file included from seckey.h:10,
                 from 3way.h:7,
                 from 3way.cpp:5:
simple.h: In member function `bool CryptoPP::Unflushable::Flush(bool, int, bool)':
simple.h:71: error: `NULL_CHANNEL' undeclared (first use this function)
simple.h:71: error: (Each undeclared identifier is reported only once for each function it appears in.)
simple.h: In member function `bool CryptoPP::Unflushable::ChannelFlush(const std::string&, bool, int, bool)':
simple.h:80: error: there are no arguments to `AttachedTransformation' that depend on a template parameter, so a declaration of `AttachedTransformation' must be available
simple.h:80: error: (if you use `-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
simple.h: In member function `void CryptoPP::Multichannel::Initialize(const CryptoPP::NameValuePairs&, int)':
simple.h:134: error: `NULL_CHANNEL' undeclared (first use this function)
simple.h: In member function `bool CryptoPP::Multichannel::Flush(bool, int, bool)':
simple.h:136: error: `NULL_CHANNEL' undeclared (first use this function)
simple.h: In member function `bool CryptoPP::Multichannel::MessageSeriesEnd(int, bool)':
simple.h:138: error: `NULL_CHANNEL' undeclared (first use this function)
simple.h:138: error: there are no arguments to `ChannelMessageSeriesEnd' that depend on a template parameter, so a declaration of `ChannelMessageSeriesEnd' must be available
simple.h: In member function `byte* CryptoPP::Multichannel::CreatePutSpace(unsigned int&)':
simple.h:140: error: `NULL_CHANNEL' undeclared (first use this function)
simple.h: In member function `unsigned int CryptoPP::Multichannel::Put2(const byte*, unsigned int, int, bool)':
simple.h:144: error: `NULL_CHANNEL' undeclared (first use this function)
simple.h: In member function `bool CryptoPP::Multichannel::ChannelPutModifiable(const std::string&, byte*, unsigned int)':
simple.h:151: error: there are no arguments to `ChannelPut' that depend on a template parameter, so a declaration of `ChannelPut' must be available
In file included from 3way.h:7,
                 from 3way.cpp:5:
seckey.h: In member function `unsigned int CryptoPP::BlockCipherBaseTemplate::BlockSize() const':
seckey.h:159: error: `BLOCKSIZE' undeclared (first use this function)
seckey.h: In constructor `CryptoPP::BlockCipherTemplate::BlockCipherTemplate(const byte*)':
seckey.h:169: error: `DEFAULT_KEYLENGTH' undeclared (first use this function)
seckey.h: In constructor `CryptoPP::BlockCipherTemplate::BlockCipherTemplate(const byte*, unsigned int, unsigned int)':
seckey.h:173: error: there are no arguments to `SetKeyWithRounds' that depend on a template parameter, so a declaration of `SetKeyWithRounds' must be available
seckey.h: In constructor `CryptoPP::MessageAuthenticationCodeTemplate::MessageAuthenticationCodeTemplate(const byte*)':
seckey.h:197: error: `DEFAULT_KEYLENGTH' undeclared (first use this function)
seckey.h: In member function `std::string CryptoPP::MessageAuthenticationCodeTemplate::AlgorithmName() const':
seckey.h:201: error: there are no arguments to `StaticAlgorithmName' that depend on a template parameter, so a declaration of `StaticAlgorithmName' must be available
make: *** [3way.o] Error 1

sera gcc o no?
Logged

Jacobo221

  • Hero Member
  • *****
  • Karma: 3
  • Offline Offline
  • Posts: 2712
Re: problema compilando
« Reply #4 on: May 02, 2004, 12:36:54 AM »

Pues puede que sí que sea eso al final porque otro usuario ha tenido el mismo problema :-S
Si no ando equivocado, GCC 3.4 aun no es estable, ¿no? Debe ser eso. Compilalo con gcc 3.3 a ver si así va. Para eso, o bien reenlazas gcc (haz "readlink `which gcc`" para ver a donde esta enlazado actualmente gcc y te mostrara algo como "gcc-3.4"... substituye el 4 por un tres ;-) ) o bien usa las variables de entorno CC y CXX.
En cualquier caso, si gcc 3.4 va así... más vale asegurarse de que no se usa demasiado ;-) Yo lo elazaría con gcc-3.3

Bueno, a ver si eso es el problema o no. Pasate por el canal #amule en irc.freenode.net si acaso y lo aclaramos "en vivo" ;-)
Un saludo!

P.D.: POR FAVOR, al pegar texto de la consola, deshabilita los smilies (por segunda vez).
Logged

Jacobo221

  • Hero Member
  • *****
  • Karma: 3
  • Offline Offline
  • Posts: 2712
Re: problema compilando
« Reply #5 on: May 02, 2004, 02:59:10 AM »

Xaignar ha respondido al problema de celeron en http://www.amule-project.net/amule/thread.php?threadid=1992&sid=
Para los no angloparlantes, dice Xaignar en ese post que crypto no compila con GCC 3.4
¿Solución? Compilar con  GCC 3.3 o, a fin de cuentas, algún GCC que no sea, por ahora, GCC 3.4 ;-) Bien se puede hacer un link de gcc a gcc-3.3 (o como se llame el ejecutable en tu distribución)y indicando la ruta hasta GCC 3.3 en las variables de entorno CC y CXX

Un saludo.
Logged

celeron

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
Re: problema compilando
« Reply #6 on: May 02, 2004, 05:28:02 AM »

mi distro cuando actualize gcc a 3.4 me kito todo lo vinculado a la 3.3 osea me kede solo con 3.4, ya vere como lo hago, gracias de todos modos :D
Logged