In the rdm/Makefile.am you need to add the math library to  COMMON_TEST_LDADD