[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-dev] ARM/uClibc build problem
From: |
Eric S. Raymond |
Subject: |
Re: [gpsd-dev] ARM/uClibc build problem |
Date: |
Tue, 31 Jul 2012 00:12:36 -0400 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Simon Dawson <address@hidden>:
> Using Buildroot, I'm cross compiling gpsd 3.7 for ARM, using uClibc.
> The build is falling over with the following error.
>
> gpsmon.o: In function `monitor_fixframe':
> gpsmon.c:(.text+0x264): undefined reference to `acs_map'
> monitor_nmea.o: In function `nmea_update':
> monitor_nmea.c:(.text+0xbc0): undefined reference to `acs_map'
> collect2: ld returned 1 exit status
> scons: *** [gpsmon] Error 1
> scons: building terminated because of errors.
>
> I'm working around this by adding the following line to the gpsmon.c
> and monitor_nmea.c source files.
>
> unsigned long acs_map[128];
>
> What I'm wondering is whether there might be a way of resolving this
> issue in a less ugly way --- preferably, directly in the gpsd build
> system. Does anybody have any suggestions?
Aha. Your acs_map is a curses thing - I think the failure to link means
that your curses library conforms to the old BSD interface and is missing
System V features. If you upgrade to something like ncurses all should
be well.
--
<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>