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

Compilation error on i386 #436

Open
dschepler opened this issue Jun 27, 2024 · 1 comment
Open

Compilation error on i386 #436

dschepler opened this issue Jun 27, 2024 · 1 comment

Comments

@dschepler
Copy link

When I try to compile libselinux-3.7 on i386, I get errors:

selinux_restorecon.c: In function 'selinux_restorecon_common':
selinux_restorecon.c:1194:31: error: comparison of integer expressions of different signedness: '__fsword_t' {aka 'int'} and 'unsigned int' [-Werror=sign-compare]
 1194 |         if (state.sfsb.f_type == RAMFS_MAGIC || state.sfsb.f_type == TMPFS_MAGIC ||
      |                               ^~
selinux_restorecon.c: In function 'selinux_restorecon_xattr':
selinux_restorecon.c:1493:41: error: comparison of integer expressions of different signedness: '__fsword_t' {aka 'int'} and 'unsigned int' [-Werror=sign-compare]
 1493 |                         if (sfsb.f_type == RAMFS_MAGIC ||
      |                                         ^~
selinux_restorecon.c:1528:49: error: comparison of integer expressions of different signedness: '__fsword_t' {aka 'int'} and 'unsigned int' [-Werror=sign-compare]
 1528 |                                 if (sfsb.f_type == RAMFS_MAGIC ||
      |                                                 ^~
cc1: all warnings being treated as errors
make[2]: *** [Makefile:176: selinux_restorecon.o] Error 1
make[2]: *** Waiting for unfinished jobs....
cc1: all warnings being treated as errors

(For now, I'm working around it by removing -Werror from src/Makefile.)

@jwcart2
Copy link
Contributor

jwcart2 commented Jul 1, 2024

Thanks for the report. I sent a patch to the SELinux mailing list. Please see if that fixes the problem for you.
Jim

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