gordonjcp / aprsmap

An APRS application using osm-gps-map
19 stars 4 forks source link

Cannot build aprsmap #13

Closed nickoe closed 12 years ago

nickoe commented 12 years ago

I cannot build aprsmap. I do ./waf configure fine, but ./waf fails. (I am on Archlinux)

aur/libfap 1.2-2 aur/python-osmgpsmap 0.7.3-4

┌─[nickoe /tmp/aprsmap]
└─ $ ./waf configure
Setting top to                           : /tmp/aprsmap 
Setting out to                           : /tmp/aprsmap/build 
Checking for 'gcc' (c compiler)          : ok 
Checking for header stdlib.h             : yes 
Checking for header math.h               : yes 
Checking for program pkg-config          : /usr/bin/pkg-config 
Checking for 'gtk+-2.0' >= 2.6.0         : yes 
Checking for 'gmodule-2.0' >= 2.18.0     : yes 
Checking for 'gthread-2.0' >= 2.32.1     : yes 
Checking for 'osmgpsmap' >= 0.7.2        : yes 
Checking for 'libfap' >= 1.1             : yes 
Checking for 'sqlite3' >= 3              : yes 
Checking for 'gthread-2.0' >= 2.32.1     : yes 
'configure' finished successfully (0.759s)
┌─[nickoe /tmp/aprsmap]
└─ $ ./waf
Waf: Entering directory `/tmp/aprsmap/build'
[1/5] c: aprsis.c -> build/aprsis.c.0.o
[2/5] c: callbacks.c -> build/callbacks.c.0.o
[3/5] c: mapviewer.c -> build/mapviewer.c.0.o
[4/5] c: station.c -> build/station.c.0.o
[5/5] cprogram: build/aprsis.c.0.o build/callbacks.c.0.o build/mapviewer.c.0.o build/station.c.0.o -> build/aprsmap
/usr/bin/ld: station.c.0.o: undefined reference to symbol 'sin@@GLIBC_2.2.5'
/usr/bin/ld: note: 'sin@@GLIBC_2.2.5' is defined in DSO /usr/lib/libm.so.6 so try adding it to the linker command line
/usr/lib/libm.so.6: could not read symbols: Invalid operation
collect2: fejl: ld returnerede afslutningskoden 1
Waf: Leaving directory `/tmp/aprsmap/build'
Build failed
 -> task failed (exit status 1): 
    {task 28868880: cprogram aprsis.c.0.o,callbacks.c.0.o,mapviewer.c.0.o,station.c.0.o -> aprsmap}
['/usr/bin/gcc', 'aprsis.c.0.o', 'callbacks.c.0.o', 'mapviewer.c.0.o', 'station.c.0.o', '-o', '/tmp/aprsmap/build/aprsmap', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-lgtk-x11-2.0', '-lgdk-x11-2.0', '-latk-1.0', '-lgio-2.0', '-lpangoft2-1.0', '-lpangocairo-1.0', '-lgdk_pixbuf-2.0', '-lcairo', '-lpango-1.0', '-lfreetype', '-lfontconfig', '-lgobject-2.0', '-lglib-2.0', '-losmgpsmap', '-lgtk-x11-2.0', '-lsoup-2.4', '-lgdk-x11-2.0', '-latk-1.0', '-lpangoft2-1.0', '-lpangocairo-1.0', '-lgdk_pixbuf-2.0', '-lcairo', '-lpango-1.0', '-lfreetype', '-lfontconfig', '-lgio-2.0', '-lgobject-2.0', '-lglib-2.0', '-lfap', '-lgmodule-2.0', '-lrt', '-lglib-2.0', '-lsqlite3', '-lgthread-2.0', '-lrt', '-lglib-2.0', '-pthread', '-pthread', '-pthread', '-Wl,--export-dynamic', '-pthread', '-pthread', '-pthread']
gordonjcp commented 12 years ago

On 02/08/12 10:13, nickoe wrote:

I cannot build aprsmap. I do ./waf configure fine, but ./waf fails. (I am on Archlinux)

Looks like it may not be picking up libm for some reason. I'll try to look into it over the weekend.

Although aprsmap was originally developed using Arch Linux, I switched to Ubuntu when it became clear that Arch was no longer targeted at experienced users looking for a reliable, up-to-date platform.

Arch has packaged incorrigibly broken versions of GCC for about two years. Try building with 4.6.3 or so.

Gordonjcp MM0YEQ

nickoe commented 12 years ago

i would appreaciate it. But I don't quite understand what you mean that Arch Linux ship broken versions of GCC sinde 4.6.3. Do you mean that the gcc -v is marked (prerelease)?

Back to the issue at hand. I am not quite sure what libm in this case really is. Is it the C math library? i got core/glibc 2.16.0-2 if that is any help.

gordonjcp commented 12 years ago

This should now be fixed by https://github.com/gordonjcp/aprsmap/commit/0b71fb1c4ce4a902c9586c1731cac66e903a07fd