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

libchipmunk.so compiled without PIC, causing SELinux problems #36

Closed
viblo opened this issue Oct 4, 2013 · 2 comments
Closed

libchipmunk.so compiled without PIC, causing SELinux problems #36

viblo opened this issue Oct 4, 2013 · 2 comments

Comments

@viblo
Copy link
Owner

viblo commented Oct 4, 2013

From MostAwes...@gmail.com on January 04, 2010 17:32:54

What steps will reproduce the problem? 1. Try to load pymunk on SELinux system
2. See eu-findtextrel throw a fit
3. File bug Please provide any additional information below. The libchipmunk.so in the repo isn't compiled with -fPIC or -fpic, which
causes it to attempt text relocation for every single symbol. This isn't a
problem, except that SELinux absolutely hates it.

This is justified for libraries like libGL.so which need text relocs, but
chipmunk doesn't need it, so this should be changed.

Original issue: http://code.google.com/p/pymunk/issues/detail?id=37

@viblo
Copy link
Owner Author

viblo commented Oct 4, 2013

From vb%viblo...@gtempaccount.com on January 04, 2010 03:33:43

Oh, thanks for the report. Will fix it before next release (hopefully this or next
week).

Already now -FPIC is added to compiler options when the lib is compiled with python
setup.py build_chipmunk, but I used the chipmunk cmake system to compile it instead..

Status: Accepted
Owner: v...@viblo.se

@viblo
Copy link
Owner Author

viblo commented Oct 4, 2013

From vb%viblo...@gtempaccount.com on January 06, 2010 14:16:51

The linux version of the bin is now copmiled with -fPIC in trunk.

Status: Fixed

@viblo viblo closed this as completed Oct 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant