[CentOS-devel] shm & rtkaio conflict

Tue Sep 1 06:53:10 UTC 2009
Eyal David <eyal1024 at gmail.com>

I'm trying to implement an application using shared memory.
The shm_open and shm_unlink functions specify in the man page that  they should
be linked with the -lrt flag.
However, my application also uses the rtkaio support so I link with
the -lrtkaio.
When I try to link without -lrt I get:
relocation R_X86_64_32 against `a local symbol' can not be used when
making a shared object
And when I link with -lrt (and without -lrtkaio) I break my application.

Any suggestions about how to solve this issue?

Thank you,