[CentOS-devel] shm & rtkaio conflict

Eyal David eyal1024 at gmail.com
Tue Sep 1 07:53:10 UTC 2009


Hello,
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,
eyal


More information about the CentOS-devel mailing list