libgps-dev missing some c++ bindings

Bug #385338 reported by BZB
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gpsd (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: libgps-dev

It is not possible to link to libgps because some c++ symbols are missing. This is fixed in 2.37 - see http://developer.berlios.de/project/shownotes.php?release_id=14197

My setup:
$ uname -a
Linux mail 2.6.24-24-generic #1 SMP Wed Apr 15 15:54:25 UTC 2009 i686 GNU/Linux

$ lsb_release -rd
Description: Ubuntu 8.04.2
Release: 8.04

$ apt-cache policy libgps-dev
libgps-dev:
  Installed: 2.36-2
  Candidate: 2.36-2
  Version table:
 *** 2.36-2 0
        500 http://us.archive.ubuntu.com hardy/universe Packages
        100 /var/lib/dpkg/status

To reproduce:

install libgps-dev 2.36-2 using Synaptic
create the following source file as libgpsmmtest.cpp:

#include <iostream>
#include <libgpsmm.h>

int main(int argc, char** argv)
{
 gpsmm::gpsmm* gpsHandle;
 struct gps_data_t* gpsData;

 gpsHandle = new gpsmm::gpsmm();
 gpsData = gpsHandle->open();

 if (!gpsData)
 {
  std::cerr << "Fatal error opening connection to gpsd" << std::endl;
  exit(1);
 }

 delete gpsHandle;
}

Attempt to compile this:

$ g++ libgpsmmtest.cpp -lgps -o libgpsmmtest
/tmp/ccn70hRc.o: In function `main':
test.cpp:(.text+0x1ae): undefined reference to `gpsmm::open()'
/tmp/ccn70hRc.o: In function `gpsmm::gpsmm()':
test.cpp:(.text._ZN5gpsmmC1Ev[gpsmm::gpsmm()]+0x4): undefined reference to `vtable for gpsmm'
collect2: ld returned 1 exit status

Revision history for this message
BZB (ben+ubuntu-bangham) wrote :

Was mistakenly associated with gpsd

Bernd Zeimetz (bzed)
Changed in gpsd (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.