Zeex / samp-plugin-crashdetect

Crash/error reporting plugin for SA-MP server
http://forum.sa-mp.com/showthread.php?t=262796
BSD 2-Clause "Simplified" License
116 stars 23 forks source link

Failed (plugins/crashdetect.so #60

Closed PT-Player closed 6 years ago

PT-Player commented 6 years ago

Hey can you help me?

Whats is wrong? everytime this problem:

[03/06/2018 18:50:48] Loading plugin: crashdetect.so [03/06/2018 18:50:48] Failed (plugins/crashdetect.so: symbol _ZTVNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE, version GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time reference)

on windows works fine

i already did:

sudo apt-get install gcc g++ make cmake sudo apt-get install gcc-multilib g++-multilib

PT-Player commented 6 years ago

Looks like there are a problem with the last version and Ubuntu.

Maybe is corrupted??

Zeex commented 6 years ago

Did you use the compiled version from the Releases page or compiled yourself?

Errors like this usually mean that the C++ compiler used for compiling crashdetect.so used a newer version of libstdc++ than the one on your system. Recompiling the plugin on your system should solve the issue.

PT-Player commented 6 years ago

I use your version

Zeex commented 6 years ago

Try this:

https://github.com/Zeex/samp-plugin-crashdetect#building-on-linux

Specifically this part (as it looks like you have installed all the tools):

cd crashdetect # this is the path where you downloaded / cloned crashdetect code
mkdir build && cd build
cmake ../ -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF
make

You will have crashdetect.so saved in the crashdetect/build/src directory after running these commands.

PT-Player commented 6 years ago

Well sorry for late response, but just only to change to the previous version of crashdetect i can load it.

I'm not very good with Linux, maybe its me maybe its the plugin i dont know.

Its weird...

Yousha commented 6 years ago

I have this error also, and I don't have access to the host back-end: (just public files)

Loading plugin: crashdetect.so Failed (plugins/crashdetect.so: symbol _ZTVNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE, version GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time reference)

Zeex commented 6 years ago

Can you try this build? It may work for you: crashdetect-4.19-linux.tar.gz

Zeex commented 6 years ago

I compiled the above version using an old GCC compiler. If it doesn't work I can't do anything else, you will have to compile it yourself, either on your host or on a virtual machine with the same system as your host.

Yousha commented 6 years ago

Yea, thanks worked! may I know which version of GCC you used?

Zeex commented 6 years ago

GCC 4.7