scons: Building targets ... substituter(["jsongen.py"], ["jsongen.py.in"]) chmod -w jsongen.py chmod +x jsongen.py rm -f ais_json.i && /usr/bin/python jsongen.py --ais --target=parser > ais_json.i && chmod a-w ais_json.i Creating 'gpsd_config.h' gcc -o ais_json.os -c -Wmissing-prototypes -Wmissing-declarations -O2 -fPIC -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include ais_json.c In file included from ais_json.c:19:0: gpsd_config.h:314:8: error: redefinition of 'struct timespec' struct timespec { ^ In file included from /usr/include/x86_64-linux-gnu/sys/select.h:43:0, from /usr/include/x86_64-linux-gnu/sys/types.h:219, from /usr/include/stdlib.h:314, from ais_json.c:15: /usr/include/time.h:120:8: note: originally defined here struct timespec ^ In file included from ais_json.c:19:0: gpsd_config.h:320:5: error: conflicting types for 'clock_gettime' int clock_gettime(clockid_t, struct timespec *); ^ In file included from ais_json.c:17:0: /usr/include/time.h:342:12: note: previous declaration of 'clock_gettime' was here extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __THROW; ^ scons: *** [ais_json.os] Error 1 scons: building terminated because of errors.