Problem loading shared library


I am having problems loading shared libraries to root on mandrake 10.1. It is a weird problem because I can compile and load it to root runing on debian based machine without any problems (with gcc 3.3.1). But on my new mandrake system I just installed on my laptop I am getting this error message:
root [0] .L

dlopen error: /work/analysis/root_analysis/lib/ failed to map segment from shared object: Operation not permitted
Load Error: Failed to load Dynamic link library /work/analysis/root_analysis/lib/
*** Interpreter error recovered ***

And I set my ROOTSYS, PATH and LD_LIBRARY_PATH as on the other system where it works. The differences are: on mandrake 10.1 I have compiler gcc version 3.4.1 mdk.
But I can compile root source code without any problems and run it. I can compile my shared library code with the very same compiler without any problems too. But the loading fails…I am running root version 4.00.08

Does anybody know what the error message means? What else should I set? What am I doing wrong?


I already answered at :

Please post to one single place.