gpsd-dev
[Top][All Lists]
Advanced

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

Re: [gpsd-dev] Error while building


From: Jason Azze
Subject: Re: [gpsd-dev] Error while building
Date: Fri, 3 Apr 2015 06:52:13 -0400


On Thu, Apr 2, 2015 at 10:48 PM, Sanjeev Gupta <address@hidden> wrote:
This is on a current Ubuntu.

address@hidden:~/SRC/gpsd$ git describe
release-3.14-296-gf84929a


I am able to reproduce Sanjeev's build failure.

Ubuntu 14.10

address@hidden:~/code/gpsd/gpsd$ git describe
release-3.14-296-gf84929a

scons: Building targets ...
substituter(["jsongen.py"], ["jsongen.py.in"])
chmod -w jsongen.py
chmod +x jsongen.py
rm -f ais_json.i && /usr/bin/python jsongen.py --ais --target=parser > ais_json.i && chmod a-w ais_json.i
Creating 'gpsd_config.h'
gcc -o ais_json.os -c -Wmissing-prototypes -Wmissing-declarations -O2 -fPIC ais_json.c
In file included from ais_json.c:19:0:
gpsd_config.h:304:8: error: redefinition of 'struct timespec'
 struct timespec {
        ^
In file included from /usr/include/x86_64-linux-gnu/sys/select.h:43:0,
                 from /usr/include/x86_64-linux-gnu/sys/types.h:219,
                 from /usr/include/stdlib.h:314,
                 from ais_json.c:15:
/usr/include/time.h:120:8: note: originally defined here
 struct timespec
        ^
In file included from ais_json.c:19:0:
gpsd_config.h:310:5: error: conflicting types for 'clock_gettime'
 int clock_gettime(clockid_t, struct timespec *);
     ^
In file included from ais_json.c:17:0:
/usr/include/time.h:342:12: note: previous declaration of 'clock_gettime' was here
 extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __THROW;
            ^
scons: *** [ais_json.os] Error 1
scons: building terminated because of errors.
 

reply via email to

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