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

Impossible to build due to errors during 'make' #19

Open
emanruse opened this issue Jan 19, 2023 · 2 comments
Open

Impossible to build due to errors during 'make' #19

emanruse opened this issue Jan 19, 2023 · 2 comments

Comments

@emanruse
Copy link

Hi,

I am trying to build this tool but I am getting errors:

$ make
cc -g -Wall -Werror -Wshadow -O2 -pipe -std=gnu11    sepolicy-inject.c  libs/x86/libsepol.a  -o sepolicy-inject
sepolicy-inject.c: In function ‘add_file_transition’:
sepolicy-inject.c:352:9: error: unknown type name ‘filename_trans_t’; did you mean ‘filename_trans_key_t’?
  352 |         filename_trans_t *new_transition = cmalloc(sizeof(*new_transition));
      |         ^~~~~~~~~~~~~~~~
      |         filename_trans_key_t
sepolicy-inject.c:353:23: error: request for member ‘stype’ in something not a structure or union
  353 |         new_transition->stype = src->s.value;
      |                       ^~
sepolicy-inject.c:354:23: error: request for member ‘ttype’ in something not a structure or union
  354 |         new_transition->ttype = orig->s.value;
      |                       ^~
sepolicy-inject.c:355:23: error: request for member ‘tclass’ in something not a structure or union
  355 |         new_transition->tclass = cls->s.value;
      |                       ^~
sepolicy-inject.c:356:23: error: request for member ‘otype’ in something not a structure or union
  356 |         new_transition->otype = tgt->s.value;
      |                       ^~
sepolicy-inject.c:357:23: error: request for member ‘name’ in something not a structure or union
  357 |         new_transition->name = strdup(filename);
      |                       ^~
sepolicy-inject.c:358:23: error: request for member ‘next’ in something not a structure or union
  358 |         new_transition->next = policy->filename_trans;
      |                       ^~
sepolicy-inject.c:360:32: error: assignment to ‘hashtab_t’ {aka ‘struct hashtab_val *’} from incompatible pointer type ‘int *’ [-Werror=incompatible-pointer-types]
  360 |         policy->filename_trans = new_transition;
      |                                ^
cc1: all warnings being treated as errors
make: *** [<builtin>: sepolicy-inject] Error 1

What should I do?

@phhusson
Copy link
Owner

phhusson commented Jan 19, 2023 via email

@emanruse
Copy link
Author

emanruse commented Jan 19, 2023 via email

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