Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make error #7

Open
Jesson029 opened this issue Feb 22, 2020 · 1 comment
Open

make error #7

Jesson029 opened this issue Feb 22, 2020 · 1 comment

Comments

@Jesson029
Copy link

In file included from src/client/linux/handler/exception_handler.cc:66:
./src/client/linux/handler/exception_handler.h:175:21: error: field ‘context’ has incomplete type ‘google_breakpad::ucontext’
struct ucontext context;
^~~~~~~
./src/client/linux/handler/exception_handler.h:175:12: note: forward declaration of ‘struct google_breakpad::ucontext’
struct ucontext context;
^~~~~~~~
src/client/linux/handler/exception_handler.cc: In member function ‘bool google_breakpad::ExceptionHandler::HandleSignal(int, siginfo_t*, void*)’:
src/client/linux/handler/exception_handler.cc:345:54: error: invalid application of ‘sizeof’ to incomplete type ‘google_breakpad::ucontext’
memcpy(&context.context, uc, sizeof(struct ucontext));
^
src/client/linux/handler/exception_handler.cc:349:13: error: invalid use of incomplete type ‘struct google_breakpad::ucontext’
if (uc_ptr->uc_mcontext.fpregs) {
^~
In file included from src/client/linux/handler/exception_handler.cc:66:
./src/client/linux/handler/exception_handler.h:175:12: note: forward declaration of ‘struct google_breakpad::ucontext’
struct ucontext context;
^~~~~~~~
src/client/linux/handler/exception_handler.cc:351:18: error: invalid use of incomplete type ‘struct google_breakpad::ucontext’
uc_ptr->uc_mcontext.fpregs,
^~
In file included from src/client/linux/handler/exception_handler.cc:66:
./src/client/linux/handler/exception_handler.h:175:12: note: forward declaration of ‘struct google_breakpad::ucontext’
struct ucontext context;
^~~~~~~~
make: *** [Makefile:3553:src/client/linux/handler/exception_handler.o]

@liangkdm
Copy link

By replacing ucontext with ucontext_t, i fixed this successfully.

In file included from src/client/linux/handler/exception_handler.cc:66:
./src/client/linux/handler/exception_handler.h:175:21: error: field ‘context’ has incomplete type ‘google_breakpad::ucontext’
struct ucontext context;
^~~~~~~
./src/client/linux/handler/exception_handler.h:175:12: note: forward declaration of ‘struct google_breakpad::ucontext’
struct ucontext context;
^~~~~~~~
src/client/linux/handler/exception_handler.cc: In member function ‘bool google_breakpad::ExceptionHandler::HandleSignal(int, siginfo_t*, void*)’:
src/client/linux/handler/exception_handler.cc:345:54: error: invalid application of ‘sizeof’ to incomplete type ‘google_breakpad::ucontext’
memcpy(&context.context, uc, sizeof(struct ucontext));
^
src/client/linux/handler/exception_handler.cc:349:13: error: invalid use of incomplete type ‘struct google_breakpad::ucontext’
if (uc_ptr->uc_mcontext.fpregs) {
^~
In file included from src/client/linux/handler/exception_handler.cc:66:
./src/client/linux/handler/exception_handler.h:175:12: note: forward declaration of ‘struct google_breakpad::ucontext’
struct ucontext context;
^~~~~~~~
src/client/linux/handler/exception_handler.cc:351:18: error: invalid use of incomplete type ‘struct google_breakpad::ucontext’
uc_ptr->uc_mcontext.fpregs,
^~
In file included from src/client/linux/handler/exception_handler.cc:66:
./src/client/linux/handler/exception_handler.h:175:12: note: forward declaration of ‘struct google_breakpad::ucontext’
struct ucontext context;
^~~~~~~~
make: *** [Makefile:3553:src/client/linux/handler/exception_handler.o]

By replacing ucontext with ucontext_t, i fixed this successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants