Onega

a lot of VC++ posts, a few C# posts, and some miscellaneous stuff

Thursday, May 03, 2012

crash_generation_server on linux

When using google_breakpad::CrashGenerationServer::CreateReportChannel(&server_fd, &client_fd); on linux, the following error is reported:
undefined reference to `google_breakpad::CrashGenerationServer::CreateReportChannel(int*, int*)'

I have to add the following line to breakpad/Makefile.am
src_client_linux_libbreakpad_client_a_SOURCES = \
src/client/linux/crash_generation/crash_generation_client.cc \
src/client/linux/crash_generation/crash_generation_server.cc \

there was still an error with breakpad:

src/client/linux/crash_generation/crash_generation_server.cc:84: error: ‘SafeReadLink’ was not declared in this scope
change line 84 of breakpad/src/client/linux/crash_generation/crash_generation_server.cc
from if (!SafeReadLink(path, buf)) {
to if (!google_breakpad::SafeReadLink(path, buf)) {

rebuild breakpad.


breakpad does not depend the following command.
ulimit -c unlimited