matteoserva / MegaFuse

MEGA client for linux, based on FUSE
Other
248 stars 79 forks source link

undefined reference to symbol 'clock_gettime@@GLIBC_2.4' #53

Closed jrcichra closed 8 years ago

jrcichra commented 8 years ago

Compiling this for a Raspberry Pi Model B. Received this error:

/usr/bin/ld: src/megaposix.o: undefined reference to symbol 'clock_gettime@@GLIBC_2.4' //lib/arm-linux-gnueabihf/librt.so.1: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status Makefile:40: recipe for target 'MegaFuse' failed make: *\ [MegaFuse] Error 1

Might be a Raspberry Pi thing.

jrcichra commented 8 years ago

Fixed: Modified the Makefile

CCFLAGS = -O0 -g -fstack-protector-all -Wall #-non-call-exceptions

to

CCFLAGS = -O0 -g -fstack-protector-all -Wall -lrt #-non-call-exceptions