Jump to content
×
×
  • Create New...
  • 0

Compiler sous FreeBSD 64bits Hackshield lib


Ioio

Question

Hello,

 

J'ai un nouveau soucis lorsque j'essaye de compiler le game 2016 by team FE dans ma machine FreeBSD 10.3 64bits:

La librairie hackshield libanticpxsvr.a ou libanticpxsvr.so est introuvable en 64bits.

 

Version des files : 2016 by team FE

Domaine (Base de données, Core, etc.) : Sources

Votre niveau (débutant, intermédiaire, avancé) : Enrayé, rouillé

 

Description du problème :

[email protected]:~/Server/game/src # gmake -s -w
gmake: Entering directory '/root/Server/game/src'
linking ../game_r40250_64....
/usr/local/bin/ld: skipping incompatible //usr/lib/libanticpxsvr.so when searching for -lanticpxsvr
/usr/local/bin/ld: skipping incompatible //usr/lib/libanticpxsvr.a when searching for -lanticpxsvr
/usr/local/bin/ld: cannot find -lanticpxsvr
collect2: error: ld returned 1 exit status
gmake: *** [Makefile:139: ../game_r40250_64] Error 1
gmake: Leaving directory '/root/Server/game/src'

Comment reproduire le problème : Prenez mon vdi FreeBSD10.3 et tentez de compiler les sources...

Recherches et tests effectué :

J'ai essayé de faire un reverse engineering mais je n'ai pas les compétances requises...

Résultat des recherches et tests :

Je suis bloqué juste après le tar xvf libanticpxsvr.a (qui me donne tous les *.o que contient la lib). CF:

a.zip

Link to comment
  • Answers 9
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

9 answers to this question

Recommended Posts

  • 0
  • Funkiest

Yo,

 

Le anticpxsvr c'est le hackshield, et concrètement, tu t'en moques... (Tu peux l'activer mais il n'est pas très efficace)

 

Du coup, dans ton Makefile, enlève ce qui est en rapport au hackshield, puis lorsque ça te fait chier dans les sources, si tu comprends pas, colle ton erreur ici avec ton fichier et je t'aiderai :D

Link to comment
  • 0

J'ai eu droit à plein d'erreurs lua (parce que j'avais mis lua 5.3) donc j'ai remis le liblua par défaut (5.0)

et je suis repartis en arrière pour compiler liblua et voilà...

Putty

[email protected]:~/Server # gmake -s -w -j20 all
gmake: Entering directory '/root/Server'
--------------------------------------
Full Build Start
--------------------------------------
gmake[1]: Entering directory '/root/Server/liblua'
gmake[2]: Entering directory '/root/Server/liblua/src'
gmake[2]: Leaving directory '/root/Server/liblua/src'
gmake[2]: Entering directory '/root/Server/liblua/src/lib'
gmake[2]: Leaving directory '/root/Server/liblua/src/lib'
gmake[1]: Leaving directory '/root/Server/liblua'
gmake[1]: Entering directory '/root/Server/liblua'
gmake[2]: Entering directory '/root/Server/liblua/src'
In file included from lstate.h:14:0,
                from ldebug.h:11,
                from lapi.c:16:
lzio.h:25:25: error: unknown type name 'lua_Chunkreader'
void luaZ_init (ZIO *z, lua_Chunkreader reader, void *data, const char *name);
                        ^
lzio.h:56:3: error: unknown type name 'lua_Chunkreader'
  lua_Chunkreader reader;
  ^

 

 

Link to comment
  • 0

J'ai ce warning... Pourtant j'ai bien un libjasper.so.4 dans usr/local/lib et dans usr/lib.

 

/usr/local/bin/ld: warning: libjasper.so.4, needed by /usr/local/lib/libIL.so, not found (try using -rpath or -rpath-link)

 

J'ai essayé d'ajouter -rpath /usr/local/lib dans CFLAGS mais rien n'y fait...

Et à la fin de la compile:

/usr/local/lib/libIL.so: undefined reference to `jas_stream_close'
/usr/local/lib/libIL.so: undefined reference to `jas_image_writecmpt'
/usr/local/lib/libIL.so: undefined reference to `jas_image_readcmpt'
/usr/local/lib/libIL.so: undefined reference to `jas_image_encode'
/usr/local/lib/libIL.so: undefined reference to `jas_malloc'
/usr/local/lib/libIL.so: undefined reference to `jas_stream_memopen'
/usr/local/lib/libIL.so: undefined reference to `jas_image_decode'
/usr/local/lib/libIL.so: undefined reference to `jas_free'
/usr/local/lib/libIL.so: undefined reference to `jas_image_strtofmt'
/usr/local/lib/libIL.so: undefined reference to `jas_image_create'
/usr/local/lib/libIL.so: undefined reference to `jas_init'
/usr/local/lib/libIL.so: undefined reference to `jas_stream_flush'
/usr/local/lib/libIL.so: undefined reference to `jas_matrix_create'
/usr/local/lib/libIL.so: undefined reference to `jas_stream_fillbuf'
/usr/local/lib/libIL.so: undefined reference to `jas_matrix_destroy'
/usr/local/lib/libIL.so: undefined reference to `jas_image_destroy'

Link to comment
  • 0
  • Funkiest

Vérifie dans ton makefile que l'appel de libjasper.so.4 se fait bien à partir du dossier usr/local/lib ou usr/lib essaie aussi lib32 mais je pense juste que l'appel de la lib se fait ailleurs

Link to comment
  • 0
OBJDIR/cipher.o:(.rodata._ZTVN8CryptoPP36CipherModeFinalTemplate_CipherHolderINS_16BlockCipherFinalILNS_9CipherDirE0ENS_7SHACAL23EncEEENS_20ConcretePolicyHolderINS_5EmptyENS_22AdditiveCipherTemplateINS_20AbstractPolicyHolderINS_28AdditiveCipherAbstractPolicyENS_14CTR_ModePolicyEEEEESA_EEEE[_ZTVN8CryptoPP36CipherModeFinalTemplate_CipherHolderINS_16BlockCipherFinalILNS_9CipherDirE0ENS_7SHACAL23EncEEENS_20ConcretePolicyHolderINS_5EmptyENS_22AdditiveCipherTemplateINS_20AbstractPolicyHolderINS_28AdditiveCipherAbstractPolicyENS_14CTR_ModePolicyEEEEESA_EEEE]+0x2b8): undefined reference to `CryptoPP::RandomNumberGenerator::GenerateIntoBufferedTransformation(CryptoPP::BufferedTransformation&, std::string const&, unsigned long long)'
OBJDIR/cipher.o:(.rodata._ZTVN8CryptoPP36CipherModeFinalTemplate_CipherHolderINS_16BlockCipherFinalILNS_9CipherDirE0ENS_3TEA3EncEEENS_20ConcretePolicyHolderINS_5EmptyENS_22AdditiveCipherTemplateINS_20AbstractPolicyHolderINS_28AdditiveCipherAbstractPolicyENS_14CTR_ModePolicyEEEEESA_EEEE[_ZTVN8CryptoPP36CipherModeFinalTemplate_CipherHolderINS_16BlockCipherFinalILNS_9CipherDirE0ENS_3TEA3EncEEENS_20ConcretePolicyHolderINS_5EmptyENS_22AdditiveCipherTemplateINS_20AbstractPolicyHolderINS_28AdditiveCipherAbstractPolicyENS_14CTR_ModePolicyEEEEESA_EEEE]+0x2b8): undefined reference to `CryptoPP::RandomNumberGenerator::GenerateIntoBufferedTransformation(CryptoPP::BufferedTransformation&, std::string const&, unsigned long long)'
OBJDIR/cipher.o:(.rodata._ZTVN8CryptoPP36CipherModeFinalTemplate_CipherHolderINS_16BlockCipherFinalILNS_9CipherDirE0ENS_8Blowfish4BaseEEENS_20ConcretePolicyHolderINS_5EmptyENS_22AdditiveCipherTemplateINS_20AbstractPolicyHolderINS_28AdditiveCipherAbstractPolicyENS_14CTR_ModePolicyEEEEESA_EEEE[_ZTVN8CryptoPP36CipherModeFinalTemplate_CipherHolderINS_16BlockCipherFinalILNS_9CipherDirE0ENS_8Blowfish4BaseEEENS_20ConcretePolicyHolderINS_5EmptyENS_22AdditiveCipherTemplateINS_20AbstractPolicyHolderINS_28AdditiveCipherAbstractPolicyENS_14CTR_ModePolicyEEEEESA_EEEE]+0x2b8): undefined reference to `CryptoPP::RandomNumberGenerator::GenerateIntoBufferedTransformation(CryptoPP::BufferedTransformation&, std::string const&, unsigned long long)'
OBJDIR/cipher.o:(.rodata._ZTVN8CryptoPP36CipherModeFinalTemplate_CipherHolderINS_16BlockCipherFinalILNS_9CipherDirE0ENS_3RC53EncEEENS_20ConcretePolicyHolderINS_5EmptyENS_22AdditiveCipherTemplateINS_20AbstractPolicyHolderINS_28AdditiveCipherAbstractPolicyENS_14CTR_ModePolicyEEEEESA_EEEE[_ZTVN8CryptoPP36CipherModeFinalTemplate_CipherHolderINS_16BlockCipherFinalILNS_9CipherDirE0ENS_3RC53EncEEENS_20ConcretePolicyHolderINS_5EmptyENS_22AdditiveCipherTemplateINS_20AbstractPolicyHolderINS_28AdditiveCipherAbstractPolicyENS_14CTR_ModePolicyEEEEESA_EEEE]+0x2b8): undefined reference to `CryptoPP::RandomNumberGenerator::GenerateIntoBufferedTransformation(CryptoPP::BufferedTransformation&, std::string const&, unsigned long long)'
OBJDIR/cipher.o:(.rodata._ZTVN8CryptoPP36CipherModeFinalTemplate_CipherHolderINS_16BlockCipherFinalILNS_9CipherDirE0ENS_4SEED4BaseEEENS_20ConcretePolicyHolderINS_5EmptyENS_22AdditiveCipherTemplateINS_20AbstractPolicyHolderINS_28AdditiveCipherAbstractPolicyENS_14CTR_ModePolicyEEEEESA_EEEE[_ZTVN8CryptoPP36CipherModeFinalTemplate_CipherHolderINS_16BlockCipherFinalILNS_9CipherDirE0ENS_4SEED4BaseEEENS_20ConcretePolicyHolderINS_5EmptyENS_22AdditiveCipherTemplateINS_20AbstractPolicyHolderINS_28AdditiveCipherAbstractPolicyENS_14CTR_ModePolicyEEEEESA_EEEE]+0x2b8): undefined reference to `CryptoPP::RandomNumberGenerator::GenerateIntoBufferedTransformation(CryptoPP::BufferedTransformation&, std::string const&, unsigned long long)'
OBJDIR/cipher.o:(.rodata._ZTVN8CryptoPP36CipherModeFinalTemplate_CipherHolderINS_16BlockCipherFinalILNS_9CipherDirE0ENS_8Camellia4BaseEEENS_20ConcretePolicyHolderINS_5EmptyENS_22AdditiveCipherTemplateINS_20AbstractPolicyHolderINS_28AdditiveCipherAbstractPolicyENS_14CTR_ModePolicyEEEEESA_EEEE[_ZTVN8CryptoPP36CipherModeFinalTemplate_CipherHolderINS_16BlockCipherFinalILNS_9CipherDirE0ENS_8Camellia4BaseEEENS_20ConcretePolicyHolderINS_5EmptyENS_22AdditiveCipherTemplateINS_20AbstractPolicyHolderINS_28AdditiveCipherAbstractPolicyENS_14CTR_ModePolicyEEEEESA_EEEE]+0x2b8): more undefined references to `CryptoPP::RandomNumberGenerator::GenerateIntoBufferedTransformation(CryptoPP::BufferedTransformation&, std::string const&, unsigned long long)' follow
OBJDIR/cipher.o:(.rodata._ZTVN8CryptoPP20AutoSeededRandomPoolE[_ZTVN8CryptoPP20AutoSeededRandomPoolE]+0x68): undefined reference to `CryptoPP::RandomPool::GenerateIntoBufferedTransformation(CryptoPP::BufferedTransformation&, std::string const&, unsigned long long)'
collect2: error: ld returned 1 exit status
gmake: *** [Makefile:140: ../game_r40250_64] Error 1
gmake: Leaving directory '/root/Server/game/src'

Link to comment


Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.