Jump to content
Sign in to follow this  
.hack//ROOTS

soluciones error - /usr/local/bin/ld: /usr/local/lib/mysql/libmysqlclient.a(sha2_password_common.cc ( Solucion )

Recommended Posts

Hola a todos hoy les traigo un aporte, que se te passa compartir en el dia a dia.. e todos que ya passamos por esto nos dejo con un piensamiento un poco confuso de que se trata. 

Pois bien este es el error, cuando estas compilando tanto a "game" cuanto a "db".

Quote
/usr/local/bin/ld: /usr/local/lib/mysql/libmysqlclient.a(sha2_password_common.cc             .o): in function `sha2_password::Generate_scramble::Generate_scramble(std::__1::             basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std             ::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>              >, sha2_password::Digest_info)':
sha2_password_common.cc:(.text+0x30e): undefined reference to `std::__1::basic_s             tring<char, std::__1::char_traits<char>, std::__1::allocator<char> >::basic_stri             ng(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator             <char> > const&)'
/usr/local/bin/ld: sha2_password_common.cc:(.text+0x31e): undefined reference to              `std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<             char> >::basic_string(std::__1::basic_string<char, std::__1::char_traits<char>,              std::__1::allocator<char> > const&)'
/usr/local/bin/ld: /usr/local/lib/mysql/libmysqlclient.a(sha2_password_common.cc             .o): in function `generate_sha256_scramble':
sha2_password_common.cc:(.text+0x6eb): undefined reference to `std::__1::basic_s             tring<char, std::__1::char_traits<char>, std::__1::allocator<char> >::basic_stri             ng(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator             <char> > const&)'
/usr/local/bin/ld: sha2_password_common.cc:(.text+0x6fd): undefined reference to              `std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<             char> >::basic_string(std::__1::basic_string<char, std::__1::char_traits<char>,              std::__1::allocator<char> > const&)'
/usr/local/bin/ld: sha2_password_common.cc:(.text+0x7f3): undefined reference to              `std::__1::__basic_string_common<true>::__throw_length_error() const'
/usr/local/bin/ld: sha2_password_common.cc:(.text+0x7fd): undefined reference to              `std::__1::__basic_string_common<true>::__throw_length_error() const'
collect2: error: ld returned 1 exit status
gmake: *** [Makefile:193: ../game_r41024] Error 1

 

De que se trata el error ? r: en mi caso especialmente foe que.. estoi compilando una source que me esta pedindo que tenga instalado a version 5.6 de mysql e yo tengo la version 5.7.

como resolver opcion 1: remover a versao atual da mysql e instalar a versao correta ( mi caso  5.6 ). 

comandos.. pkg remove ... pkg search mysql ( selecciona a version que quiera e pkg install ...

 

opcion 2: criar una pasta en usr/ nome ( lib_56 ).

ir a Makefile en ( src/game e src/db ) buscar por.. 

Quote

libmysqlclient.a e libz.a

cambiar su direcion a 

Quote

/usr/lib_56/libmysqlclient.a /usr/lib_56/libz.a

pero primero debes de tener las 2 libs descargada o primero instalar a version de 5.6 e remover las lib e luego volver a instalar a version 5.7 o la tuya.

 

Espero que haya ayudado a todos los que tienen o ya tienen este error y busquen una solución ... cualquier duda o una forma de solucionarlo más rápido, no dejes de compartirla.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...