I am using functions such as pthread_setaffinity_np from the /usr/include/nptl/pthread.h.
The linker is however complaining that the "pthread_setaffinity_np" is not found, as far as I understand, the linker is looking for the reference in the wrong pthread library (/usr/lib/libpthread.so) which doesn't include support for CPU affinity. I am on RedHat 4.
I believe I have to link to /lib/tls/libpthread-2.3.4.so which includes this function. However linking to libpthread-2.3.4.so caused other linker errors.
What is the proper way of linking to libpthread-2.3.4.so on RedHat 4?
Thanks in advance,
Paul