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

seccomp.c:155:8: error: dereferencing pointer to incomplete type 'struct seccomp_metadata' #486

Closed
avagin opened this issue May 15, 2018 · 1 comment
Assignees

Comments

@avagin
Copy link
Member

avagin commented May 15, 2018

  CC       criu/rst-malloc.o
  CC       criu/seccomp.o
�[91mcriu/seccomp.c: In function 'collect_filter':
criu/seccomp.c:133:26: error: storage size of 'meta_buf' isn't known
  struct seccomp_metadata meta_buf, *meta = &meta_buf;
                          ^~~~~~~~
�[0m�[91mcriu/seccomp.c:155:8: error: dereferencing pointer to incomplete type 'struct seccomp_metadata'
    meta->filter_off = i;
        ^~
�[0m�[91mcriu/seccomp.c:133:26: error: unused variable 'meta_buf' [-Werror=unused-variable]
  struct seccomp_metadata meta_buf, *meta = &meta_buf;
                          ^~~~~~~~
�[0m�[91mcc1: all warnings being treated as errors
�[0m�[91mmake[2]: *** [/criu/scripts/nmk/scripts/build.mk:111: criu/seccomp.o] Error 1

https://travis-ci.org/checkpoint-restore/criu/jobs/379441092

cyrillos added a commit to cyrillos/criu that referenced this issue May 16, 2018
The seccomp_metadata may be already defined in
system ptrace.h header on recent kernels so
include it.

checkpoint-restore/criu#486 (comment)

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
criupatchwork pushed a commit to criupatchwork/criu that referenced this issue May 16, 2018
The seccomp_metadata may be already defined in
system ptrace.h header on recent kernels so
include it.

checkpoint-restore#486 (comment)

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
avagin pushed a commit that referenced this issue May 16, 2018
The seccomp_metadata may be already defined in
system ptrace.h header on recent kernels so
include it.

#486 (comment)

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
avagin pushed a commit to avagin/criu that referenced this issue May 24, 2018
The seccomp_metadata may be already defined in
system ptrace.h header on recent kernels so
include it.

checkpoint-restore#486 (comment)

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
avagin pushed a commit to avagin/criu that referenced this issue Jul 6, 2018
The seccomp_metadata may be already defined in
system ptrace.h header on recent kernels so
include it.

checkpoint-restore#486 (comment)

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
avagin pushed a commit to avagin/criu that referenced this issue Jul 6, 2018
The seccomp_metadata may be already defined in
system ptrace.h header on recent kernels so
include it.

checkpoint-restore#486 (comment)

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
avagin pushed a commit to avagin/criu that referenced this issue Jul 6, 2018
The seccomp_metadata may be already defined in
system ptrace.h header on recent kernels so
include it.

checkpoint-restore#486 (comment)

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
avagin pushed a commit to avagin/criu that referenced this issue Jul 8, 2018
The seccomp_metadata may be already defined in
system ptrace.h header on recent kernels so
include it.

checkpoint-restore#486 (comment)

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
xemul pushed a commit that referenced this issue Jul 9, 2018
The seccomp_metadata may be already defined in
system ptrace.h header on recent kernels so
include it.

#486 (comment)

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
@rst0git
Copy link
Member

rst0git commented Jun 8, 2019

This issue seems to be fixed. Can we close it?

@avagin avagin closed this as completed Jun 17, 2019
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

3 participants