rt-tests compilation error

  1. liuxgate
    liuxgate
    Dear all,

    I compiled rt-tests(test suite to check real-time nature of rt linux kernel) , version - 0.74. I got following undefined references, but these functions are available in pthread.a lib and it's linked. Kindly help me.

    powerpc-440-linux-gnu-gcc -D_GNU_SOURCE -Wall -Wno-nonnull -Isrc/include -I/usr/include -O2 -o pi_stress pi_stress.o -lrt -lpthread
    pi_stress.o: In function `initialize_group':
    pi_stress.c:(.text+0x8a4): undefined reference to `pthread_mutexattr_setprotocol'
    pi_stress.o: In function `setup_thread_attr':
    pi_stress.c:(.text+0x1e9c): undefined reference to `pthread_attr_setaffinity_np'
    collect2: ld returned 1 exit status
    make: *** [pi_stress] Error 1

    Thanks & Regards,
    liuxgate
Results 1 to 1 of 1