gpsd-dev
[Top][All Lists]
Advanced

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

Re: [gpsd-dev] several messages


From: Sanjeev Gupta
Subject: Re: [gpsd-dev] several messages
Date: Tue, 16 Aug 2016 05:04:23 -0700


On Tue, Aug 16, 2016 at 4:45 AM, Greg Troxel <address@hidden> wrote:
One issue that may or may not arise, is that I found (in another
context) that some headers on Linux are not C99 compliant, I think in
pthread.h.  We had code that we could compile with --std=c99 on many
systems except Linux, where it would blow up in pthread.h.  So we left
it --std=gnu99 on Linux, and ensured portability with the others.

This may be related:  On an Ubuntu 16.10-dev, with
CC=/usr/bin/gcc-6 scons check

I get:
 ...
/usr/bin/gcc-6 -o shared_json.o -c -Wmissing-prototypes -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112L -Wmissing-declarations -O2 shared_json.c
/usr/bin/gcc-6 -o strl.o -c -Wmissing-prototypes -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112L -Wmissing-declarations -O2 strl.c
/usr/bin/gcc-6 -o test_packet test_packet.o -L. -lgpsd -lgps_static -lm
./libgpsd.a(ppsthread.o): In function `pps_thread_activate':
ppsthread.c:(.text+0xfc2): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
scons: *** [test_packet] Error 1
scons: building terminated because of errors.


--
Sanjeev Gupta
+65 98551208     http://www.linkedin.com/in/ghane

reply via email to

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