if it's not compiling, try this
I had a lot of trouble getting this to work on Debian with 2.4.17 kernel. Maybe it's because there's no X installed. In any case, I was able to fix the by changing all occurences of #include <sys/time.h> to #include <time.h>. However, a friend of mine still couldn't get it to compile on his custom distribution even after these changes, as it was complaining about missing X files or some such (Mulder and Scully). Anyhow, why do we need X for GPS? sort of strange.