Subject: Re: [nmr_sparky] Re: sparky on fedora core 4
From: Thomas Goddard
Date: Feb 7, 2006

Previous: 74

Hi Marianna,

I gave cannot restore segment prot after reloc to google and the
first hit explains the problem and a way to solve it:

http://www.rsinc.com/services/techtip.asp?ttid=3092

Basically it is the new Linux security extensions (SELinux) preventing
the Sparky/Python shared library (called spy.so) from being loaded.
The suggested solutions are either to disable SELinux, or change the
security context for the Sparky library with the command

% chcon -t texrel_shlib_t /usr/local/sparky/python/sparky/spy.so

There are two other shared libaries included with Sparky

/usr/local/sparky/lib/libtcl8.4.so
/usr/local/sparky/lib/libtk8.4.so

that you may also have to run the above command on.

The Sparky/Python shared library (spy.so) does not pose any security
risk. It will never access the network, nor does it require special
operating system privileges. I think SELinux has a problem loading it
because it was compiled on a Linux machine that did not have SELinux.

Tom