[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-users] Gpsd: compilation problem

From: Gary E. Miller
Subject: Re: [gpsd-users] Gpsd: compilation problem
Date: Thu, 7 Feb 2019 11:33:36 -0800

Yo Christian!

On Thu, 7 Feb 2019 11:21:39 +0100
Christian Rossi <address@hidden> wrote:

> This is not an Ntrip or RTK question but I try to compile gpsd 3.18.1 
> (or 3.19a) and there is an error message:

We take all types of gpsd questions.

There is no, and never will be, a 3.19a.

> >  driver_ubx.c: In function 'ubx_rxm_rawx':
> >  driver_ubx.c:833:5: error: 'for' loop initial declarations are
> > only allowed in C99 mode
> >       for (int i = 0; i < numMeas; i++) {
> >       ^
> >  driver_ubx.c:833:5: note: use option -std=c99 or -std=gnu99 to 
> > compile your code
> >  scons: *** [driver_ubx.o] Error 1
> >  scons: building terminated because of errors.  
> I don't know scons very well, so what can I do ?

Nothing to do with scons.

> This is ubuntu 14.04 and gcc 4.8.4

Your gcc is old.  And Ubuntu does something odd to it...

> And your gpsd source is old.

That got 'fixed' for older gcc back in october:

    commit d685ab05952d7eadf012fc054032f0190cf2abda
    Author: Gary E. Miller <address@hidden>
    Date:   Fri Oct 26 10:12:40 2018 -0700

Grab a new copy from git head and you'll be fine.

Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
        address@hidden  Tel:+1 541 382 8588

            Veritas liberabit vos. -- Quid est veritas?
    "If you can’t measure it, you can’t improve it." - Lord Kelvin

Attachment: pgpym1YijTB0B.pgp
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]