pthread_create returns "operation not permitted" if I try to link static?

Hello,

I am trying to port some testtools we wrote from solaris to redhat linux(AMD64). If I link dynamic, set the correct LD_LIBRARY_PATH, everything runs fine.

If I try to link static, the pthread_create returns "operation not permitted" (error code 1).

Does anybody have an idea where to look for this problem (well probably in the linking of pthread *grin*, but that is all I know). I would be really greatfull if you can help me on the way..

Grtz,

Miriam

Hi guys,

I think I've found it. The default priority was set in the program to SCHED_FIFO. Unfortunatly this is only allowed for root on the linux environment (unlike solaris?!).
I only wonder why it does not have the same problem if I link dynamicly. If somebody could answer me that I would be really greatful, because I really want to understand what I am doing.

Grtz,

Miriam