« Return to Thread: Linker errors on Ubuntu Hardy

Re: Linker errors on Ubuntu Hardy

by hamish_b :: Rate this Message:

Reply to Author | View in Thread


Joerg wrote:

> After applying the ubuntu-hardy-32.patch and trying to
> compile GpsDrive for Ubuntu Hardy I get the following Error....
>
> [100%] Building C object
> src/CMakeFiles/gpsdrive.dir/navigation_gui.o
>
> Linking C executable gpsdrive
> CMakeFiles/gpsdrive.dir/gpsdrive.o: In function `main':
> gpsdrive.c:(.text+0x671d): undefined reference to
> `g_thread_init'
> collect2: ld returned 1 exit status
>
> make[3]: *** [src/gpsdrive] Error 1
> make[3]: Leaving directory `/home/tweety/gpsdrive/build'
> make[2]: *** [src/CMakeFiles/gpsdrive.dir/all] Error 2
> make[2]: Leaving directory `/home/tweety/gpsdrive/build'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/home/tweety/gpsdrive/build'
> make: *** [build/build-stamp] Error 2
> debuild: fatal error at line 1229:
> couldn't exec fakeroot debian/rules:
> EXIT CODE=2


try adding to src/gpsdrive.c:
#include <glib/gthread.h>
  or
#include <glib/gmain.h>     // (gmain.h includes gthread.h)


Hamish



     

_______________________________________________
GPSdrive mailing list
GPSdrive@...
http://lists.gpsdrivers.org/mailman/listinfo/gpsdrive

 « Return to Thread: Linker errors on Ubuntu Hardy