https://bugs.freedesktop.org/show_bug.cgi?id=49782
Bug #: 49782 Summary: libdrm 2.4.34 fails to build Classification: Unclassified Product: DRI Version: XOrg CVS Platform: Other OS/Version: All Status: NEW Severity: normal Priority: medium Component: libdrm AssignedTo: dri-devel@lists.freedesktop.org ReportedBy: vuntz@gnome.org
CCLD dristat dristat.o: In function `drmWaitVBlank': /home/abuild/rpmbuild/BUILD/libdrm-2.4.34/tests/../xf86drm.c:1947: undefined reference to `clock_gettime' /home/abuild/rpmbuild/BUILD/libdrm-2.4.34/tests/../xf86drm.c:1958: undefined reference to `clock_gettime' collect2: error: ld returned 1 exit status make: *** [dristat] Error 1
My guess is that -lrt should be passed when linking.