Comments (5)
See if the referenced PR fixes this for you.
from selinux.
confirmed. it is compiling successful now, except for a simple warning. many thanks!
../cil/src/cil_lexer.c: In function ‘cil_yy_scan_bytes’: ../cil/src/cil_lexer.c:1595:17: warning: comparison of integer expressions of different signedness: ‘yy_size_t’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare] for ( i = 0; i < _yybytes_len; ++i ) ^
from selinux.
now i have some other issues, maybe you can also fix?
libselinux: selinux_restorecon.c: compiling error on Fedora 28 armv7l
selinux_restorecon.c: In function ‘restorecon_sb’: selinux_restorecon.c:633:26: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘uint64_t’ {aka ‘long long unsigned int’} [-Werror=format=] fprintf(stdout, "\r%luk", fc_count / STAR_COUNT); ~~^ %llu
checkpolicy: checkpolicy.c: compiling error on Fedora 28 armv7l
compiles with -Wno-error=implicit-function-declaration -Wno-error=sign-compare but error persists
checkpolicy.c: In function ‘main’: checkpolicy.c:498:20: error: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘long int’ [-Werror=sign-compare] if (policyvers != n) ^~ checkpolicy.c:645:12: error: implicit declaration of function ‘policydb_sort_ocontexts’; did you mean ‘policydb_user_cache’? [-Werror=implicit-function-declaration] ret = policydb_sort_ocontexts(&policydb); ^~~~~~~~~~~~~~~~~~~~~~~ policydb_user_cache checkpolicy.o: In function
main':
checkpolicy.c:(.text.startup+0x5e8): undefined reference to policydb_sort_ocontexts' collect2: error: ld returned 1 exit status
policycoreutils: semodule.c: compiling error on Fedora 28 armv7l
i have checked owner/permissions, compiles with -I~/src/selinux/libsemanage/include -L~/src/selinux/libsemanage/src but error persists
semodule.c:25:10: fatal error: semanage/modules.h: No such file or directory #include <semanage/modules.h> ^~~~~~~~~~~~~~~~~~~~ compilation terminated. /usr/bin/ld: cannot find -lsemanage collect2: error: ld returned 1 exit status
from selinux.
can be closed. seems i have messed up something. after fresh install Fedora 28 armv7l it works. it was my fault i was using export DESTDIR='~/obj' instead of DESTDIR=~/obj - apologizing :)
just for unskilled users like me, here is what i have done: (Note: setools-devel was not available)
`sudo -H yum install automake gcc gettext-devel git glibc-static libacl-devel libffi-devel make pcre-static perl-Pod-Html wget
sudo -H yum install audit-libs-devel bison bzip2-devel dbus-devel dbus-glib-devel flex flex-devel flex-static glib2-devel libcap-devel libcap-ng-devel pam-devel pcre-devel python-devel setools swig xmlto redhat-rpm-config
git clone https://github.com/SELinuxProject/selinux.git
mkdir ~/obj
export DESTDIR=~/obj
export CFLAGS="-I/usr/include -I/usr/local/include -I${DESTDIR}/usr/include"
export LDFLAGS="-L/usr/lib -L/usr/local/lib -L${DESTDIR}/lib -L${DESTDIR}/usr/lib"
make install install-pywrap`
from selinux.
Don't overload a single issue with multiple separate issues. The restorecon one was an actual bug, to be fixed by https://lore.kernel.org/selinux/[email protected]/raw.
The other two appear to be due to missing/incorrect DESTDIR specification. If you build with make DESTDIR=~/obj, then it should automatically set CFLAGS and LDFLAGS for you to include the DESTDIR subdirs.
from selinux.
Related Issues (20)
- Python 3.11 support HOT 4
- manual setting HOT 2
- bad gpg signature HOT 4
- checkpolicy compilation error HOT 4
- selinux_restorecon.c comparison between signed and unsigned integer expressions
- Scope of boolean 'httpd_can_network_connect' & Django SELinux permissions
- libsepol:The libsepol package detects memory leaks and segmentation errors when tested by OSS-fuzz. HOT 4
- How Do I Select a Proper Number of Threads for Labeling? HOT 2
- Can use macro parameter for filecon path statment? HOT 1
- restore.c:(.text+0x229): undefined reference to `selinux_restorecon_parallel' HOT 1
- selinux-activate not working on RaspbianOS bullseye (version 11) HOT 1
- "semanage export" does not handle port definition modifications properly
- libselinux: off-by-one in setcon() family
- Question Regarding "semanage boolean": HOT 5
- Non-cached is_selinux_enabled() variant? HOT 1
- selinux 3.6 fails to compile against latest versions of musl HOT 1
- libselinux: selabel_digest -b x/media/db error HOT 1
- libsepol: new "all" op verifier in 3.6 does not check classcommon perms HOT 3
- Should ignoredirs apply to all subdirectories? HOT 5
- Compilation error on i386 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from selinux.