I’m using the latest from Git hub as I just cloned it a few minutes ago.
I’m on Centos 6.5 64-bit. My GPS is the BR 305- USB by Global SAT
address@hidden gpsd]# gcc -o cgps cgps.c
/tmp/ccOYKcY8.o: In function `die':
cgps.c:(.text+0xc): undefined reference to `isendwin'
cgps.c:(.text+0x19): undefined reference to `LINES'
cgps.c:(.text+0x22): undefined reference to `COLS'
cgps.c:(.text+0x36): undefined reference to `mvcur'
cgps.c:(.text+0x3b): undefined reference to `echo'
cgps.c:(.text+0x40): undefined reference to `endwin'
cgps.c:(.text+0x4a): undefined reference to `gps_close'
/tmp/ccOYKcY8.o: In function `windowsetup':
cgps.c:(.text+0x11c): undefined reference to `initscr'
cgps.c:(.text+0x121): undefined reference to `noecho'
cgps.c:(.text+0x128): undefined reference to `stdscr'
cgps.c:(.text+0x134): undefined reference to `stdscr'
cgps.c:(.text+0x14d): undefined reference to `stdscr'
cgps.c:(.text+0x159): undefined reference to `stdscr'
cgps.c:(.text+0x1f0): undefined reference to `mvprintw'
cgps.c:(.text+0x1f7): undefined reference to `stdscr'
cgps.c:(.text+0x1ff): undefined reference to `wrefresh'
cgps.c:(.text+0x24e): undefined reference to `newwin'
cgps.c:(.text+0x271): undefined reference to `newwin'
cgps.c:(.text+0x28c): undefined reference to `nodelay'
cgps.c:(.text+0x2bb): undefined reference to `newwin'
cgps.c:(.text+0x2d6): undefined reference to `scrollok'
cgps.c:(.text+0x2f5): undefined reference to `wsetscrreg'
cgps.c:(.text+0x2fc): undefined reference to `stdscr'
cgps.c:(.text+0x304): undefined reference to `wrefresh'
cgps.c:(.text+0x327): undefined reference to `mvwprintw'
cgps.c:(.text+0x34a): undefined reference to `mvwprintw'
cgps.c:(.text+0x36d): undefined reference to `mvwprintw'
cgps.c:(.text+0x390): undefined reference to `mvwprintw'
cgps.c:(.text+0x3b3): undefined reference to `mvwprintw'
/tmp/ccOYKcY8.o:cgps.c:(.text+0x3d6): more undefined references to `mvwprintw' follow
/tmp/ccOYKcY8.o: In function `windowsetup':
cgps.c:(.text+0x564): undefined reference to `wborder'
cgps.c:(.text+0x587): undefined reference to `mvwprintw'
cgps.c:(.text+0x5cb): undefined reference to `wborder'
/tmp/ccOYKcY8.o: In function `resize':
cgps.c:(.text+0x5e2): undefined reference to `isendwin'
cgps.c:(.text+0x5ee): undefined reference to `endwin'
/tmp/ccOYKcY8.o: In function `update_gps_panel':
cgps.c:(.text+0x78d): undefined reference to `strlcpy'
cgps.c:(.text+0x7c3): undefined reference to `mvwprintw'
cgps.c:(.text+0x929): undefined reference to `mvwprintw'
cgps.c:(.text+0x980): undefined reference to `mvwprintw'
cgps.c:(.text+0x9c4): undefined reference to `unix_to_iso8601'
cgps.c:(.text+0xa17): undefined reference to `mvwprintw'
cgps.c:(.text+0xa8b): undefined reference to `deg_to_str'
cgps.c:(.text+0xb02): undefined reference to `mvwprintw'
cgps.c:(.text+0xb76): undefined reference to `deg_to_str'
cgps.c:(.text+0xbed): undefined reference to `mvwprintw'
cgps.c:(.text+0xca7): undefined reference to `mvwprintw'
cgps.c:(.text+0xd61): undefined reference to `mvwprintw'
cgps.c:(.text+0xdb6): undefined reference to `true2magnetic'
cgps.c:(.text+0xe80): undefined reference to `mvwprintw'
cgps.c:(.text+0xf4c): undefined reference to `mvwprintw'
cgps.c:(.text+0x10e1): undefined reference to `mvwprintw'
cgps.c:(.text+0x11a2): undefined reference to `mvwprintw'
cgps.c:(.text+0x1254): undefined reference to `mvwprintw'
/tmp/ccOYKcY8.o:cgps.c:(.text+0x1306): more undefined references to `mvwprintw' follow
/tmp/ccOYKcY8.o: In function `update_gps_panel':
cgps.c:(.text+0x1468): undefined reference to `timestamp'
cgps.c:(.text+0x14e9): undefined reference to `mvwprintw'
cgps.c:(.text+0x1530): undefined reference to `maidenhead'
cgps.c:(.text+0x156e): undefined reference to `mvwprintw'
cgps.c:(.text+0x159e): undefined reference to `gps_data'
cgps.c:(.text+0x161b): undefined reference to `wprintw'
cgps.c:(.text+0x164f): undefined reference to `wrefresh'
cgps.c:(.text+0x165e): undefined reference to `wrefresh'
cgps.c:(.text+0x1678): undefined reference to `wrefresh'
/tmp/ccOYKcY8.o: In function `main':
cgps.c:(.text+0x16d6): undefined reference to `gpsd_units'
cgps.c:(.text+0x17c2): undefined reference to `gps_enable_debug'
cgps.c:(.text+0x19af): undefined reference to `gpsd_source_spec'
cgps.c:(.text+0x19c0): undefined reference to `gpsd_source_spec'
cgps.c:(.text+0x19de): undefined reference to `gps_open'
cgps.c:(.text+0x19f0): undefined reference to `gps_errstr'
cgps.c:(.text+0x1a8f): undefined reference to `gps_stream'
cgps.c:(.text+0x1a9e): undefined reference to `gps_waiting'
cgps.c:(.text+0x1ac6): undefined reference to `gps_read'
cgps.c:(.text+0x1b28): undefined reference to `wgetch'
cgps.c:(.text+0x1b72): undefined reference to `werase'
collect2: ld returned 1 exit status