Bumblebee-Project/Bumblebee — Issue #76: clock_gettime(CLOCK_MONOTONIC, &tp); prevents compilation of common-dbus
Author: LLStarks
Created: 2012-02-12 17:18:29+00:00
State: open

gcc -Wall -Waggregate-return	-Wmissing-declarations -Wmissing-prototypes -Wredundant-decls	-Wshadow -Wstrict-prototypes -Winline -Wformat=2 -pipe -I/usr/include/libbsd -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Wextra -funsigned-char -DGITVERSION='"3.0-28-g67461da"' -g -O2 -o bin/optirun src/module.o src/bbconfig.o src/bblogger.o src/bbrun.o src/bbsocket.o src/driver.o src/optirun.o src/bbsocketclient.o -lglib-2.0
/usr/bin/ld: src/bblogger.o: undefined reference to symbol 'clock_gettime@@GLIBC_2.2.5'
/usr/bin/ld: note: 'clock_gettime@@GLIBC_2.2.5' is defined in DSO /lib/librt.so.1 so try adding it to the linker command line
/lib/librt.so.1: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[1]: *** [bin/optirun] Error 1
make[1]: Leaving directory `/home/eric/beed'
make: *** [all] Error 2

Commenting the line out allows compilation.