just tried to compile your test code
gcc -DROTOR_TEST -lm -o rotor_test ./src/input/mpegts/linuxdvb/linuxdvb_rotor.c
/tmp/ccn83abI.o: In function `to_rev':
linuxdvb_rotor.c:(.text+0x93): undefined reference to `floor'
/tmp/ccn83abI.o: In function `sat_azimuth_and_elevation':
linuxdvb_rotor.c:(.text+0x1b6): undefined reference to `sin'
linuxdvb_rotor.c:(.text+0x207): undefined reference to `cos'
linuxdvb_rotor.c:(.text+0x251): undefined reference to `sqrt'
linuxdvb_rotor.c:(.text+0x2ec): undefined reference to `cos'
linuxdvb_rotor.c:(.text+0x336): undefined reference to `sin'
linuxdvb_rotor.c:(.text+0x3c8): undefined reference to `sqrt'
linuxdvb_rotor.c:(.text+0x3da): undefined reference to `atan'
linuxdvb_rotor.c:(.text+0x4cd): undefined reference to `atan'
linuxdvb_rotor.c:(.text+0x518): undefined reference to `atan'
linuxdvb_rotor.c:(.text+0x5c0): undefined reference to `cos'
linuxdvb_rotor.c:(.text+0x601): undefined reference to `sin'
/tmp/ccn83abI.o: In function `sat_angle':
linuxdvb_rotor.c:(.text+0x824): undefined reference to `cos'
linuxdvb_rotor.c:(.text+0x868): undefined reference to `sin'
linuxdvb_rotor.c:(.text+0x88d): undefined reference to `sin'
linuxdvb_rotor.c:(.text+0x8ad): undefined reference to `cos'
linuxdvb_rotor.c:(.text+0x8d9): undefined reference to `sin'
linuxdvb_rotor.c:(.text+0x8fe): undefined reference to `cos'
linuxdvb_rotor.c:(.text+0x92a): undefined reference to `atan'
linuxdvb_rotor.c:(.text+0xa16): undefined reference to `round'
linuxdvb_rotor.c:(.text+0xa64): undefined reference to `round'
linuxdvb_rotor.c:(.text+0xaa3): undefined reference to `round'
collect2: error: ld returned 1 exit status