I’m trying to use fmod-ex with Fedora Core 6, but unfortunately, it won’t work. The problem is that Fedora Core 6 uses SElinux for security, and fmod-ex isn’t compatible with SElinux. I think this is going to become increasingly a problem, since SElinux is growing in popularity and I think more and more distributions are likely to enable it by default.
To make a shared library compatible with SElinux, you have to compile the library with the -fPIC compiler option.
Is there any likelihood of this happening soon?
- Josh Yelon asked 10 years ago
When SElinux is enabled, you cannot use any shared library that contains a TEXTREL. The error you get if you try to use such a library is:
Error: cannot restore segment prot after reloc: Permission denied
The command to detect a TEXTREL in a shared object is:
readelf -d libfmodex.so | fgrep -q TEXTREL
If it prints anything, the library contains textrels. Fmod-ex does. So do several of the plugin DSP libraries.
Here is a web page with more information about how to build a library without TEXTRELs:
Please login first to submit.