Missing _gettimeofday in libc?

I’m trying to compile an application that compiled prior to the last update. I’m happy to dig in but this is in libc and that does not appear to be available on spark github.

/opt/gcc_arm/bin/…/lib/gcc/arm-none-eabi/4.8.4/…/…/…/…/arm-none-eabi/lib/armv7-m/libc_s.a(lib_a-gettimeofdayr.o): In function _gettimeofday_r': gettimeofdayr.c:(.text._gettimeofday_r+0xe): undefined reference to_gettimeofday’
collect2: error: ld returned 1 exit status
make: *** [e61c87b679f7b3c905c093f198a1bb264c486710491de9ba7dd971bc7125.elf] Error 1

Unless I totally missed something - entirely possible after a 3 day holiday :smile:

1 Like

Spark firmware isn’t linked against the usual libc but against a different smaller library as described here: http://docs.spark.io/firmware/#other-functions

1 Like

@psb777 Thanks! It turns out I discovered an unintentional copy / paste of a bunch of code into my app. Funny how that happens. Thanks for your reply.

1 Like