This is an old revision of the document!
When running XDAQ, one might observe problems on SLC5 when loading shared libraries:
cannot restore segment prot after reloc: Permission denied
Usually SELinux is enabled on SL(C)5 machines and there are 2 cases so far in which one can run into this problem. One needs to disable SELinux by doing as root:
echo 0 > /selinux/enforce
Alternatively, but not working for me, you can get a warning message instead of crash if you set SELINUX=permissive
inside
/etc/selinux/config
You might also run into this problem when loading a library compiled on local disk you might get “error: cannot restore segment prot after reloc: Permission denied”. In that case most probably the reason is that either the library or the one which it was linked against need to be rebuild with “-fPIC” option. The SELinux context on AFS does not permit library relocations so sometimes you might hit the problem on local disk but not on AFS or vice versa.