From MAILER-DAEMON Mon Aug 01 02:25:16 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bU6f6-0002DG-Da
	for mharc-gpsd-dev@gnu.org; Mon, 01 Aug 2016 02:25:16 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:60839)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Henning.Hakonsen@q-free.com>) id 1bU6f3-0002Cb-GB
	for gpsd-dev@nongnu.org; Mon, 01 Aug 2016 02:25:14 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Henning.Hakonsen@q-free.com>) id 1bU6f0-0000OM-4U
	for gpsd-dev@nongnu.org; Mon, 01 Aug 2016 02:25:13 -0400
Received: from mail-db5eur01on0080.outbound.protection.outlook.com
	([104.47.2.80]:7248
	helo=EUR01-DB5-obe.outbound.protection.outlook.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Henning.Hakonsen@q-free.com>) id 1bU6ez-0000NP-N2
	for gpsd-dev@nongnu.org; Mon, 01 Aug 2016 02:25:10 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=qfreeonline.onmicrosoft.com; s=selector1-qfree-com0c;
	h=From:Date:Subject:Message-ID:Content-Type:MIME-Version;
	bh=OJ5KQsIy/933uy5q4jeeEUWMYDzkBJubKXETmmjH3m4=;
	b=mj1CcqW66xCKyYXbYUIQ9AKNdoUqCF+3Wv3+GUHXB1Fw4ubRDSFFd4+GryQ0p4uy8mKVtRS4qMBW0AeYkRm3pGNCI8og+dENOK0CnEjmdmlocdJCGQlpE0csDBl4wrKkpL1C8NI0SKq2a8fJmE7yJwMB8YNEnD18QitKhWhJwpg=
Received: from HE1PR02MB0683.eurprd02.prod.outlook.com (10.161.114.15) by
	HE1PR02MB0684.eurprd02.prod.outlook.com (10.161.114.150) with Microsoft
	SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id
	15.1.549.15; Mon, 1 Aug 2016 06:25:04 +0000
Received: from HE1PR02MB0683.eurprd02.prod.outlook.com ([10.161.114.15]) by
	HE1PR02MB0683.eurprd02.prod.outlook.com ([10.161.114.15]) with mapi id
	15.01.0549.021; Mon, 1 Aug 2016 06:25:04 +0000
From: Henning Hakonsen <Henning.Hakonsen@q-free.com>
To: "Gary E. Miller" <gem@rellim.com>, gpsd dev <gpsd-dev@nongnu.org>
Thread-Topic: [gpsd-dev] gpsd/ntpd
Thread-Index: AQHR6JwNIfq5brlzP0K242s3PlitlaAuMjiAgADK3W6AAMnmgIAA8YN0gABKLQCAABIHr4AAiZkAgAIKmSU=
Date: Mon, 1 Aug 2016 06:25:03 +0000
Message-ID: <HE1PR02MB068330D8F64337D1A7B9AB02A5040@HE1PR02MB0683.eurprd02.prod.outlook.com>
References: <HE1PR02MB0683349842B70C4CCD25BD7DA5000@HE1PR02MB0683.eurprd02.prod.outlook.com>
	<20160728115617.20788a2c@spidey.rellim.com>
	<HE1PR02MB06837ADAE9CF7654B3C0921FA5010@HE1PR02MB0683.eurprd02.prod.outlook.com>
	<20160729120459.0b52e793@spidey.rellim.com>
	<DB5PR02MB067964B873D32A6B9D8F6664A5020@DB5PR02MB0679.eurprd02.prod.outlook.com>
	<20160730065452.5c3f4e28@spidey.rellim.com>
	<HE1PR02MB06833DAC86BE310E2525A372A5020@HE1PR02MB0683.eurprd02.prod.outlook.com>,
	<20160730161152.3672c278@spidey.rellim.com>
In-Reply-To: <20160730161152.3672c278@spidey.rellim.com>
Accept-Language: nb-NO, en-US
Content-Language: nb-NO
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: spf=none (sender IP is )
	smtp.mailfrom=Henning.Hakonsen@q-free.com; 
x-originating-ip: [193.213.4.186]
x-ms-office365-filtering-correlation-id: d852626a-bf8d-4018-a893-08d3b9d49361
x-microsoft-exchange-diagnostics: 1; HE1PR02MB0684;
	6:Y0T7I+qKF8BS+e4R4M722KmVEI/adBOM4+nRq08jd0DT3zlaZi7f82I4xTuKMVgkpe0B8ebF+Bx3FtlLpxyOYm+0BzjVv6oQP7zP21SaqcrJn7sMUeFmtbvmD8wKqJJER5m88febQgdP+di+gzxADlPJZgVluO8oPVCoE6Sp0aZz2f0Rxd3GOT6gkmBocIdoyIEl47I34l2auyL204p+rpEDsmjV9Q/FCQppHub2mhdiRgeyxIPp6xtwup2r7lJ+ESO/ed9fPditfMwFt4GXFKTf0uIGotRNGEl/0Tx+mB0=;
	5:3kVfmG5Rl2bP2tvuUGtKj1U2svLDM4TivSURwVpe8ZdQo3PxhkGxwo1pW73rg6D9zh7h8pzQXh6WapigZ1dttUQUDeuAuMKMO4JYDCdILVcnhX+CwyOYL0lk1WsvFE/NmLWDuyk2ihVfu0GpgN6v3Q==;
	24:TmOvPk+LPtDHvFmvhJnkpsJCLIVJqDT4KxA3Xr9ndMGWXoGaFx6G2XK3+5JFbpAOPDFQYeLxHjbkzG4QkXJmf1LJlko7aG1v1fMhet419iU=;
	7:8jpqg1u7Orx+pNndJiLAovs6ZU85hkrVFu13Vp88SdwAVpgHL0SM6d8M2HQbBPTxmncvDHYsJfwMETgcW6i3LGhQkThUqX11KpeIxuHNpcuJPfRYQ/int52AyKgulGJ97MQAws+E/6TSCPpMeUtUPpoY7D7lQPqunxRyvrIDYj5Xk+43tmg8KOYPYySuhhBYZii6i9lOlpPG77uLv+yKIbiFsBjl2eBuPWw6U8ULUBWd6tFFBwbWG8KYnntrF4Bi
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:HE1PR02MB0684;
x-microsoft-antispam-prvs: <HE1PR02MB0684EE085BA196EF196EB7A6A5040@HE1PR02MB0684.eurprd02.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(158342451672863);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0;
	RULEID:(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001);
	SRVR:HE1PR02MB0684; BCL:0; PCL:0; RULEID:; SRVR:HE1PR02MB0684; 
x-forefront-prvs: 0021920B5A
x-forefront-antispam-report: SFV:NSPM;
	SFS:(10009020)(6009001)(7916002)(24454002)(51914003)(199003)(40764003)(71364002)(189002)(66654002)(2950100001)(2900100001)(107886002)(189998001)(122556002)(16236675004)(229853001)(2906002)(50986999)(76176999)(74316002)(77096005)(3280700002)(33656002)(54356999)(19625215002)(106356001)(106116001)(5001770100001)(101416001)(97736004)(7736002)(7846002)(7696003)(5002640100001)(68736007)(3660700001)(19580405001)(66066001)(19580395003)(87936001)(10400500002)(11100500001)(93886004)(9686002)(81166006)(81156014)(8676002)(76576001)(586003)(86362001)(8936002)(92566002)(3846002)(6116002)(102836003)(105586002);
	DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR02MB0684;
	H:HE1PR02MB0683.eurprd02.prod.outlook.com; FPR:; SPF:None;
	PTR:InfoNoRecords; A:0; MX:1; LANG:en; 
received-spf: None (protection.outlook.com: q-free.com does not designate
	permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative;
	boundary="_000_HE1PR02MB068330D8F64337D1A7B9AB02A5040HE1PR02MB0683eurp_"
MIME-Version: 1.0
X-OriginatorOrg: q-free.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Aug 2016 06:25:03.5159 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 39ef44ca-adfa-4a24-8858-ef68dbe16345
X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR02MB0684
X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy]
X-Received-From: 104.47.2.80
Subject: Re: [gpsd-dev] gpsd/ntpd
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 01 Aug 2016 06:25:15 -0000

--_000_HE1PR02MB068330D8F64337D1A7B9AB02A5040HE1PR02MB0683eurp_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi!


So I think our team figured out what the problem was, most likely that dhcp=
 client included ntpservers which overwrite ntp.conf(or just didn't use it)=
.

Hopefully this will enable us to use the ntp.conf in /etc/ntp.conf at start=
up without any hacking!


Many thanks for your help, it is much appreciated.


With kind regards,

Henning H=E5konsen

________________________________
Fra: Gary E. Miller <gem@rellim.com>
Sendt: 31. juli 2016 01:11:52
Til: Henning Hakonsen; gpsd dev
Emne: Re: [gpsd-dev] gpsd/ntpd

Yo Henning!

On Sat, 30 Jul 2016 15:01:14 +0000
Henning Hakonsen <Henning.Hakonsen@q-free.com> wrote:

> The file is the same after reboot, ntpd is just not using that file
> for some reason.

So I'm still not sure your exact symptoms.  Do you need to
edit the ntp.conf after restart, or just restart ntpd after a reboot?

It would help some if you tell us your OS, and versions of gpsd and ntpd.
Are you using NTP Classic, or NTPsec?

Are you booting with dhcp client, or statis address?

> I could probably make a script which edits the file and restarts
> ntpd, but that is not what we really want to...

Yeah, that seems weird, but a lot of OS have bad scripts to start
gpsd and ntpd.  Very common to have to throw them away and do your
own.

>
> Henning
> ________________________________
> Fra: Gary E. Miller <gem@rellim.com>
> Sendt: 30. juli 2016 15:54:52
> Til: Henning Hakonsen
> Emne: Re: [gpsd-dev] gpsd/ntpd
>
> Yo Henning!
>
> On Sat, 30 Jul 2016 09:31:28 +0000
> Henning Hakonsen <Henning.Hakonsen@q-free.com> wrote:
>
> > Ok, so say I reboot my device, start gpsd, ntpd and my own program.
> > When running ntpq -p GPS and PPS wont show, but when i edit the conf
> > file and restart ntpd it appears.
>
> As described by myself and others already in response to your email,
> we beleive you are using dhcp, and the dhcp client is over writing
> your ntp.conf.  Can you verify that?
>
> >
> > And I dont understand why...
> >
> > Henning
> > ________________________________
> > Fra: Gary E. Miller <gem@rellim.com>
> > Sendt: 29. juli 2016 21:04:59
> > Til: Henning Hakonsen
> > Kopi: gpsd-dev@nongnu.org
> > Emne: Re: [gpsd-dev] gpsd/ntpd
> >
> > Yo Henning!
> >
> > On Fri, 29 Jul 2016 07:03:52 +0000
> > Henning Hakonsen <Henning.Hakonsen@q-free.com> wrote:
> >
> > > Thanks for the reply. I got my program to feed ntpd with the PPS
> > > signal.
> >
> > Hopefully over SHM().  The other ways are less good.
> >
> > > Now the only thing I am struggeling with is that I need to edit
> > > (linechange or something) ntp.conf file and restart ntp after
> > > boot.
> >
> > Lost me?
> >
> > > Do you have any idea as why I need to do that?
> >
> > Do what?
> >
> > RGDS
> > GARY
> > -----------------------------------------------------------------------=
----
> > Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR
> > 97703 gem@rellim.com  Tel:+1 541 382 8588
>
>
>
>
> RGDS
> GARY
> -------------------------------------------------------------------------=
--
> Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
>         gem@rellim.com  Tel:+1 541 382 8588




RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
        gem@rellim.com  Tel:+1 541 382 8588

--_000_HE1PR02MB068330D8F64337D1A7B9AB02A5040HE1PR02MB0683eurp_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<meta name=3D"Generator" content=3D"Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; pad=
ding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content=3D"text/html; charset=3DUTF-8">
<style type=3D"text/css" style=3D"">
<!--
p
	{margin-top:0;
	margin-bottom:0}
-->
</style>
<div dir=3D"ltr">
<div id=3D"x_divtagdefaultwrapper" style=3D"font-size:12pt; color:#000000; =
background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi!</p>
<p><br>
</p>
<p>So I think our team figured out what the problem was, most likely that d=
hcp client included ntpservers which overwrite ntp.conf(or just didn't use =
it).</p>
<p>Hopefully this will enable us to use the ntp.conf in /etc/ntp.conf at st=
artup without any hacking!</p>
<p><br>
</p>
<p>Many thanks for your help, it is much <span>appreciated.</span></p>
<p><br>
</p>
<p>With kind regards,</p>
<p>Henning H=E5konsen</p>
</div>
<hr tabindex=3D"-1" style=3D"display:inline-block; width:98%">
<div id=3D"x_divRplyFwdMsg" dir=3D"ltr"><font face=3D"Calibri, sans-serif" =
color=3D"#000000" style=3D"font-size:11pt"><b>Fra:</b> Gary E. Miller &lt;g=
em@rellim.com&gt;<br>
<b>Sendt:</b> 31. juli 2016 01:11:52<br>
<b>Til:</b> Henning Hakonsen; gpsd dev<br>
<b>Emne:</b> Re: [gpsd-dev] gpsd/ntpd</font>
<div>&nbsp;</div>
</div>
</div>
<font size=3D"2"><span style=3D"font-size:10pt;">
<div class=3D"PlainText">Yo Henning!<br>
<br>
On Sat, 30 Jul 2016 15:01:14 &#43;0000<br>
Henning Hakonsen &lt;Henning.Hakonsen@q-free.com&gt; wrote:<br>
<br>
&gt; The file is the same after reboot, ntpd is just not using that file<br=
>
&gt; for some reason.<br>
<br>
So I'm still not sure your exact symptoms.&nbsp; Do you need to<br>
edit the ntp.conf after restart, or just restart ntpd after a reboot?<br>
<br>
It would help some if you tell us your OS, and versions of gpsd and ntpd.<b=
r>
Are you using NTP Classic, or NTPsec?<br>
<br>
Are you booting with dhcp client, or statis address?<br>
<br>
&gt; I could probably make a script which edits the file and restarts<br>
&gt; ntpd, but that is not what we really want to...<br>
<br>
Yeah, that seems weird, but a lot of OS have bad scripts to start<br>
gpsd and ntpd.&nbsp; Very common to have to throw them away and do your<br>
own.<br>
<br>
&gt; <br>
&gt; Henning<br>
&gt; ________________________________<br>
&gt; Fra: Gary E. Miller &lt;gem@rellim.com&gt;<br>
&gt; Sendt: 30. juli 2016 15:54:52<br>
&gt; Til: Henning Hakonsen<br>
&gt; Emne: Re: [gpsd-dev] gpsd/ntpd<br>
&gt; <br>
&gt; Yo Henning!<br>
&gt; <br>
&gt; On Sat, 30 Jul 2016 09:31:28 &#43;0000<br>
&gt; Henning Hakonsen &lt;Henning.Hakonsen@q-free.com&gt; wrote:<br>
&gt; <br>
&gt; &gt; Ok, so say I reboot my device, start gpsd, ntpd and my own progra=
m.<br>
&gt; &gt; When running ntpq -p GPS and PPS wont show, but when i edit the c=
onf<br>
&gt; &gt; file and restart ntpd it appears.&nbsp; <br>
&gt; <br>
&gt; As described by myself and others already in response to your email,<b=
r>
&gt; we beleive you are using dhcp, and the dhcp client is over writing<br>
&gt; your ntp.conf.&nbsp; Can you verify that?<br>
&gt; <br>
&gt; &gt;<br>
&gt; &gt; And I dont understand why...<br>
&gt; &gt;<br>
&gt; &gt; Henning<br>
&gt; &gt; ________________________________<br>
&gt; &gt; Fra: Gary E. Miller &lt;gem@rellim.com&gt;<br>
&gt; &gt; Sendt: 29. juli 2016 21:04:59<br>
&gt; &gt; Til: Henning Hakonsen<br>
&gt; &gt; Kopi: gpsd-dev@nongnu.org<br>
&gt; &gt; Emne: Re: [gpsd-dev] gpsd/ntpd<br>
&gt; &gt;<br>
&gt; &gt; Yo Henning!<br>
&gt; &gt;<br>
&gt; &gt; On Fri, 29 Jul 2016 07:03:52 &#43;0000<br>
&gt; &gt; Henning Hakonsen &lt;Henning.Hakonsen@q-free.com&gt; wrote:<br>
&gt; &gt;&nbsp; <br>
&gt; &gt; &gt; Thanks for the reply. I got my program to feed ntpd with the=
 PPS<br>
&gt; &gt; &gt; signal.&nbsp; <br>
&gt; &gt;<br>
&gt; &gt; Hopefully over SHM().&nbsp; The other ways are less good.<br>
&gt; &gt;&nbsp; <br>
&gt; &gt; &gt; Now the only thing I am struggeling with is that I need to e=
dit<br>
&gt; &gt; &gt; (linechange or something) ntp.conf file and restart ntp afte=
r<br>
&gt; &gt; &gt; boot.&nbsp; <br>
&gt; &gt;<br>
&gt; &gt; Lost me?<br>
&gt; &gt;&nbsp; <br>
&gt; &gt; &gt; Do you have any idea as why I need to do that?&nbsp; <br>
&gt; &gt;<br>
&gt; &gt; Do what?<br>
&gt; &gt;<br>
&gt; &gt; RGDS<br>
&gt; &gt; GARY<br>
&gt; &gt; -----------------------------------------------------------------=
----------<br>
&gt; &gt; Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR<b=
r>
&gt; &gt; 97703 gem@rellim.com&nbsp; Tel:&#43;1 541 382 8588&nbsp; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; RGDS<br>
&gt; GARY<br>
&gt; ----------------------------------------------------------------------=
-----<br>
&gt; Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703<=
br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gem@rellim.com&nbsp; T=
el:&#43;1 541 382 8588<br>
<br>
<br>
<br>
<br>
RGDS<br>
GARY<br>
---------------------------------------------------------------------------=
<br>
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gem@rellim.com&nbsp; Tel:&#43;1 =
541 382 8588<br>
</div>
</span></font>
</body>
</html>

--_000_HE1PR02MB068330D8F64337D1A7B9AB02A5040HE1PR02MB0683eurp_--


From MAILER-DAEMON Mon Aug 01 13:48:36 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bUHKO-0000Nf-Gu
	for mharc-gpsd-dev@gnu.org; Mon, 01 Aug 2016 13:48:36 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:59210)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1bUHKM-0000Mf-MD
	for gpsd-dev@nongnu.org; Mon, 01 Aug 2016 13:48:35 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1bUHKH-0004kj-8G
	for gpsd-dev@nongnu.org; Mon, 01 Aug 2016 13:48:33 -0400
Received: from snt004-omc2s24.hotmail.com ([65.55.90.99]:50021)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1bUHKG-0004jz-O9
	for gpsd-dev@nongnu.org; Mon, 01 Aug 2016 13:48:29 -0400
Received: from EUR01-VE1-obe.outbound.protection.outlook.com ([65.55.90.72])
	by SNT004-OMC2S24.hotmail.com over TLS secured channel with
	Microsoft SMTPSVC(7.5.7601.23008); Mon, 1 Aug 2016 10:48:27 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com;
	s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; 
	bh=fGt4jQgeH6nckqv9qTu4VnLcCha+nD/Q4QQKJqnTR9A=;
	b=g5M4F1FXawyNFatasmdXhCRkNxSrfuFBG3CYCG15rlQAv5zlQbr9+WqXscY7XYi+bjvzGEBl77+p5j5/UO54CNMptIkNwjzYKGcXpQxXVldoAbXXtE50MS4ZvrvGuPe7CUyjU0aMQ4TDiQCk4IHNYqBpFJ3UGaJvoH9HS/qRrxOW7GhMWC1PZtPjsBipUdiqjqMBjAar3aOwa8vkv3R1p9HCU0Q5vqNdakukx6ad9OHnL00dVe1rTiWI93N3l/Z/K3Mrb7QmRI9ubzySOQoI7Z43o7crxZBIh1JQq5F+Lo1vDguOQEfiOSoUv6fmgHltmV2wrMU/ZtfjzD0QfgVTPw==
Received: from VE1EUR01FT060.eop-EUR01.prod.protection.outlook.com
	(10.152.2.51) by VE1EUR01HT177.eop-EUR01.prod.protection.outlook.com
	(10.152.3.235) with Microsoft SMTP Server (version=TLS1_0,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.549.5;
	Mon, 1 Aug 2016 17:48:24 +0000
Received: from DB6PR0601MB2168.eurprd06.prod.outlook.com (10.152.2.51) by
	VE1EUR01FT060.mail.protection.outlook.com (10.152.3.93) with Microsoft
	SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id
	15.1.557.8 via Frontend Transport; Mon, 1 Aug 2016 17:48:24 +0000
Received: from DB6PR0601MB2168.eurprd06.prod.outlook.com ([10.168.57.27]) by
	DB6PR0601MB2168.eurprd06.prod.outlook.com ([10.168.57.27]) with mapi id
	15.01.0549.022; Mon, 1 Aug 2016 17:48:23 +0000
From: Robert Norris <rw_norris@hotmail.com>
To: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
Thread-Topic: [gpsd-dev] [PATCH] Improved resilience in gps_shm_close() in
	case it is called after an unsuccessful gps_shm_open()
Thread-Index: AQHR6o1pz0ClT3jL00yobOW0dmZfi6Ay4lmAgAGB6dc=
Date: Mon, 1 Aug 2016 17:48:22 +0000
Message-ID: <DB6PR0601MB2168294976352B552216CB8E8E040@DB6PR0601MB2168.eurprd06.prod.outlook.com>
References: <1469902106-5416-1-git-send-email-rw_norris@hotmail.com>
	<DB6PR0601MB21685EA98C5884F52CBB555E8E020@DB6PR0601MB2168.eurprd06.prod.outlook.com>,
	<Pine.LNX.4.58L1X.1607311141230.11879@bolt.sonic.net>
In-Reply-To: <Pine.LNX.4.58L1X.1607311141230.11879@bolt.sonic.net>
Accept-Language: en-GB, en-US
Content-Language: en-GB
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: spf=softfail (sender IP is 10.152.2.51)
	smtp.mailfrom=hotmail.com; nongnu.org; dkim=none (message not signed)
	header.d=none; nongnu.org;
	dmarc=fail action=none header.from=hotmail.com; 
received-spf: SoftFail (protection.outlook.com: domain of transitioning
	hotmail.com discourages use of 10.152.2.51 as permitted sender)
x-ms-exchange-messagesentrepresentingtype: 1
x-tmn: [36viXUaj2perweJakl556z8sulkK007D]
x-eopattributedmessage: 0
x-forefront-antispam-report: CIP:10.152.2.51; IPV:NLI; CTRY:; EFV:NLI; SFV:NSPM;
	SFS:(10019020)(98900003); DIR:OUT; SFP:1102; SCL:1;
	SRVR:VE1EUR01HT177; H:DB6PR0601MB2168.eurprd06.prod.outlook.com;
	FPR:; SPF:None; LANG:en; 
x-microsoft-exchange-diagnostics: 1; VE1EUR01HT177;
	6:/v8ol0wt8Cc5/mwc2S7+usAA80w/hV5qU32qG1Lcy5Sntn72C0qIdESAQKFlEecwnJ5GcTYmuyqudHzeLZi3+O/FIDjj4YdwbsfuFENx8bU+hSN3FfrkXdW4LDjn2QA2zMmz3Sw4+6/pDIFKWPwatKtgXEZdboVrvVO6M0fyjUERaZ5F0fdvlUyAfyMHhmfq3+lEsXaC1omrEvtN+j5y9Bn7UAOQtSoAdgrt5UQkT71e9h/wtxPAbFlJzMTBJ5cV85Cn0VWR99PlJaprIcjWwstAvmP6qjH0xtIxe9blVgBwznH/m4Xy1+1fXcmLk7Rp;
	5:7T07RyO8n5AXI5ZvWjLBhcP2T8lDfFd75gA6hGpZo7EEQCPjw68cbVMZ45ONhdCVruLH2lch76OM9pCxqaMLrMPdSe2oumNr3XJCVqvmFePGxcGA/bjk97SC/JuMH5H/e87nByDlvlBQvN3Gqjz6Lg==;
	24:6TgseU5PxV7CPTKX5uYMM0NqUAZzfub0Dn+ke87MP5MtKSoyma6iqkqAtqwFH7tbMfF79GWR9FnjW3m3AJ9omSgNfr4P7VsTJJh6nmhOLFk=;
	7:8mAIpTzp0SJP1jfYCzHndDQStQOTpY+CxROpxWESAHVn7zZZoasKUO+Wg9FqXRct2W7wkH6QSg7jJftbo/NtFPd+6wU2hGebOxLT1EgInD+pkbaVzuwNvin1xZUcwqa3gDycQ9jidzsEJ20UEiuA4P1i5/oP+G4R23J/XZ4mZssOVq3jKzKHMiC8J2amKgkKZ9zTrPWGm1pv98l/XHbZcRqbtzuSOGeaz/DKf80aYPNPx8rU3BZ/11HN1r2WsAur
x-ms-office365-filtering-correlation-id: c5ceb1f8-1cd0-4f99-2c6a-08d3ba340865
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(1601124038)(1601125047);
	SRVR:VE1EUR01HT177; 
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(432015012)(82015046);
	SRVR:VE1EUR01HT177; BCL:0; PCL:0; RULEID:; SRVR:VE1EUR01HT177; 
x-forefront-prvs: 0021920B5A
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative;
	boundary="_000_DB6PR0601MB2168294976352B552216CB8E8E040DB6PR0601MB2168_"
MIME-Version: 1.0
X-OriginatorOrg: hotmail.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Aug 2016 17:48:22.9054 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Internet
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1EUR01HT177
X-OriginalArrivalTime: 01 Aug 2016 17:48:27.0237 (UTC)
	FILETIME=[E8611150:01D1EC1C]
X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy]
X-Received-From: 65.55.90.99
Subject: Re: [gpsd-dev] [PATCH] Improved resilience in gps_shm_close() in
 case it is called after an unsuccessful gps_shm_open()
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 01 Aug 2016 17:48:35 -0000

--_000_DB6PR0601MB2168294976352B552216CB8E8E040DB6PR0601MB2168_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable


Yes, that's how I normally would write it.


I can't remember why I choose the longer form for this patch.


I'll redo it in the compact form.


--
Be Seeing You - Rob.
If at first you don't succeed,
then skydiving isn't for you.
________________________________
From: gpsd-dev <gpsd-dev-bounces+rw_norris=3Dhotmail.com@nongnu.org> on beh=
alf of Fred Wright <fw@fwright.net>
Sent: 31 July 2016 19:45:37
To: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [PATCH] Improved resilience in gps_shm_close() in c=
ase it is called after an unsuccessful gps_shm_open()


On Sat, 30 Jul 2016, Robert Norris wrote:

> Check that the structure exists before trying to use a component of it.
> ---
>  libgps_shm.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/libgps_shm.c b/libgps_shm.c
> index a0dfdde..872a089 100644
> --- a/libgps_shm.c
> +++ b/libgps_shm.c
> @@ -154,6 +154,8 @@ int gps_shm_read(struct gps_data_t *gpsdata)
>
>  void gps_shm_close(struct gps_data_t *gpsdata)
>  {
> +    if (PRIVATE(gpsdata) =3D=3D NULL)
> +     return;
>      if (PRIVATE(gpsdata)->shmseg !=3D NULL)
>        (void)shmdt((const void *)PRIVATE(gpsdata)->shmseg);
>  }
> --
> 2.8.1

That could be written more compactly as:

        if (PRIVATE(gpsdata) !=3D NULL && PRIVATE(gpsdata)->shmseg !=3D NUL=
L)

or even:

        if (PRIVATE(gpsdata) && PRIVATE(gpsdata)->shmseg)

That && construct is a fairly common idiom for dereferencing potentially
NULL pointers.

Fred Wright


--_000_DB6PR0601MB2168294976352B552216CB8E8E040DB6PR0601MB2168_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; pad=
ding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content=3D"text/html; charset=3DUTF-8">
<style type=3D"text/css" style=3D"">
<!--
p
	{margin-top:0;
	margin-bottom:0}
-->
</style>
<div dir=3D"ltr">
<div id=3D"x_divtagdefaultwrapper" style=3D"font-size:12pt; color:#000000; =
background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p><br>
</p>
<p>Yes, that's how I normally would write it.</p>
<p><br>
</p>
<p>I can't remember why I choose the longer form for this patch.</p>
<p><br>
</p>
<p>I'll redo it in the compact form.</p>
<p><br>
</p>
<div id=3D"x_Signature">-- <br>
Be Seeing You - Rob.<br>
If at first you don't succeed,<br>
then skydiving isn't for you. </div>
</div>
<hr tabindex=3D"-1" style=3D"display:inline-block; width:98%">
<div id=3D"x_divRplyFwdMsg" dir=3D"ltr"><font face=3D"Calibri, sans-serif" =
color=3D"#000000" style=3D"font-size:11pt"><b>From:</b> gpsd-dev &lt;gpsd-d=
ev-bounces&#43;rw_norris=3Dhotmail.com@nongnu.org&gt; on behalf of Fred Wri=
ght &lt;fw@fwright.net&gt;<br>
<b>Sent:</b> 31 July 2016 19:45:37<br>
<b>To:</b> gpsd-dev@nongnu.org<br>
<b>Subject:</b> Re: [gpsd-dev] [PATCH] Improved resilience in gps_shm_close=
() in case it is called after an unsuccessful gps_shm_open()</font>
<div>&nbsp;</div>
</div>
</div>
<font size=3D"2"><span style=3D"font-size:10pt;">
<div class=3D"PlainText"><br>
On Sat, 30 Jul 2016, Robert Norris wrote:<br>
<br>
&gt; Check that the structure exists before trying to use a component of it=
.<br>
&gt; ---<br>
&gt;&nbsp; libgps_shm.c | 2 &#43;&#43;<br>
&gt;&nbsp; 1 file changed, 2 insertions(&#43;)<br>
&gt;<br>
&gt; diff --git a/libgps_shm.c b/libgps_shm.c<br>
&gt; index a0dfdde..872a089 100644<br>
&gt; --- a/libgps_shm.c<br>
&gt; &#43;&#43;&#43; b/libgps_shm.c<br>
&gt; @@ -154,6 &#43;154,8 @@ int gps_shm_read(struct gps_data_t *gpsdata)<b=
r>
&gt;<br>
&gt;&nbsp; void gps_shm_close(struct gps_data_t *gpsdata)<br>
&gt;&nbsp; {<br>
&gt; &#43;&nbsp;&nbsp;&nbsp; if (PRIVATE(gpsdata) =3D=3D NULL)<br>
&gt; &#43;&nbsp;&nbsp;&nbsp;&nbsp; return;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (PRIVATE(gpsdata)-&gt;shmseg !=3D NUL=
L)<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (void)shmdt((const void *)PR=
IVATE(gpsdata)-&gt;shmseg);<br>
&gt;&nbsp; }<br>
&gt; --<br>
&gt; 2.8.1<br>
<br>
That could be written more compactly as:<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (PRIVATE(gpsdata) !=3D NULL &=
amp;&amp; PRIVATE(gpsdata)-&gt;shmseg !=3D NULL)<br>
<br>
or even:<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (PRIVATE(gpsdata) &amp;&amp; =
PRIVATE(gpsdata)-&gt;shmseg)<br>
<br>
That &amp;&amp; construct is a fairly common idiom for dereferencing potent=
ially<br>
NULL pointers.<br>
<br>
Fred Wright<br>
<br>
</div>
</span></font>
</body>
</html>

--_000_DB6PR0601MB2168294976352B552216CB8E8E040DB6PR0601MB2168_--


From MAILER-DAEMON Mon Aug 01 15:08:15 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bUIZT-0000by-Fz
	for mharc-gpsd-dev@gnu.org; Mon, 01 Aug 2016 15:08:15 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:49734)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1bUIZR-0000bl-R0
	for gpsd-dev@nongnu.org; Mon, 01 Aug 2016 15:08:14 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1bUIZM-0003wp-P8
	for gpsd-dev@nongnu.org; Mon, 01 Aug 2016 15:08:12 -0400
Received: from snt004-omc1s30.hotmail.com ([65.55.90.41]:58984)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1bUIZM-0003wi-Fm
	for gpsd-dev@nongnu.org; Mon, 01 Aug 2016 15:08:08 -0400
Received: from EUR01-DB5-obe.outbound.protection.outlook.com ([65.55.90.7]) by
	SNT004-OMC1S30.hotmail.com over TLS secured channel with
	Microsoft SMTPSVC(7.5.7601.23008); Mon, 1 Aug 2016 12:08:07 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com;
	s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; 
	bh=CdWY1yZhDi9xrWisDq/4rAleAAxwciAv1cqv/R9uLmc=;
	b=SB9xzE/TW3XCUofr4IlaBGIevp7EhbzXrC3vch+AQ2FsLHzUy6oy4imRu1G38yZZlf+oM+Jr8RWbbK6OGkGc/Mdf4fBsQ+B1yAeaKumlRi/wJflNVlA4JMVUWLhib6DT0GrU3dzM0wAEwnjmcN3ot8mkDj0edMfvxy/E0UV1rb7rkgwolHTUkNrDL5YEasqYyQRsANrX4lFIM3xOMEy5HA5Pi1JYKWz0qTg1qKgYueA9hhiHyjpl2TKhsIedOH+f+jm4CWO4IjPKQ9FymgQfagr5Gy5e2pdODlkgsQuNC19J6dXBzMS7Ay+XriTcVTWoKTySbgHqv/nYSXvcU33Drw==
Received: from HE1EUR01FT051.eop-EUR01.prod.protection.outlook.com
	(10.152.0.55) by HE1EUR01HT252.eop-EUR01.prod.protection.outlook.com
	(10.152.1.152) with Microsoft SMTP Server (version=TLS1_0,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.557.8;
	Mon, 1 Aug 2016 19:08:05 +0000
Received: from DB6PR0601MB2168.eurprd06.prod.outlook.com (10.152.0.51) by
	HE1EUR01FT051.mail.protection.outlook.com (10.152.1.71) with Microsoft
	SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id
	15.1.557.8 via Frontend Transport; Mon, 1 Aug 2016 19:08:05 +0000
Received: from DB6PR0601MB2168.eurprd06.prod.outlook.com ([10.168.57.27]) by
	DB6PR0601MB2168.eurprd06.prod.outlook.com ([10.168.57.27]) with mapi id
	15.01.0549.022; Mon, 1 Aug 2016 19:08:04 +0000
From: Robert Norris <rw_norris@hotmail.com>
To: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
Thread-Topic: [PATCH] Improved resilience in gps_shm_close() in case it is
	called after an unsuccessful gps_shm_open()
Thread-Index: AQHR7CgHnkAE6SfiG0yFZWZpvNVZKA==
Date: Mon, 1 Aug 2016 19:08:04 +0000
Message-ID: <DB6PR0601MB2168694A5EF74A034E3C4CA58E040@DB6PR0601MB2168.eurprd06.prod.outlook.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: spf=softfail (sender IP is 10.152.0.51)
	smtp.mailfrom=hotmail.com; nongnu.org; dkim=none (message not signed)
	header.d=none; nongnu.org;
	dmarc=fail action=none header.from=hotmail.com; 
received-spf: SoftFail (protection.outlook.com: domain of transitioning
	hotmail.com discourages use of 10.152.0.51 as permitted sender)
x-ms-exchange-messagesentrepresentingtype: 1
x-eopattributedmessage: 0
x-forefront-antispam-report: CIP:10.152.0.51; IPV:NLI; CTRY:; EFV:NLI; SFV:NSPM;
	SFS:(10019020)(98900003); DIR:OUT; SFP:1102; SCL:1;
	SRVR:HE1EUR01HT252; H:DB6PR0601MB2168.eurprd06.prod.outlook.com;
	FPR:; SPF:None; LANG:en; 
x-microsoft-exchange-diagnostics: 1; HE1EUR01HT252;
	6:iz+3b5TgT3zE+vt9OU4G/Nh4QP6DodOhX2A24OosiUx5Z2vERm6TkGSB/n5PZ3fF8qTOC1k8waXa2YUTCPeFfHX2ZYGMeicA8CDG9SlxmwB7H604Sl2RoSWDSiRnQB0dSiy+n22aNeAy9FtKrluK+KQgNA+U5EwmaxgJlSi+vNECz+sYjpsezWt+HLs+moEuG3z1/sYPpwypUQl+BF8FB9+vPSUR+fWy55QMFw/26itSyYw7tFfIRVjZW9BxtpxkaNzfaUgByonKzmnsVUg6/rRLOubxEoLrBkZpkDZuTS0XiP3h22FzHCKTaNqnOU/J;
	5:5pEzWJJsAKa7426KqU+6qDvPp+RscXvU7x4DyXsIk7mF6s78lHLk4RE8Thh6JQOzxZ9KQmfCOiCnQ4OeofwSJ9nmS4VMWnapydKiZ7G0XZq2/pmJnGVJJLEZRpb3CjDI25/ZawbkRKHz5Bx3/s9Xng==;
	24:b1+gJX3jhMH0mt4ePuPzsxdIZ6OsPKX64SyNYnLKNXtDdLxO0/lUONdlL58kgDP7PH/VcFLdZLD+ExqIdUQQVCBWubrUry98AoULpyDWrCg=;
	7:rFBf7Msc51whzj+g0dXqql0T2RpNqKxkje2P7MmfEKraxQDLEi21qMEnKHC7BUY4VkAlgurR7PmpM7PGuPIZyikWl5m+eDi7T8+74B/kKFYJuBLJFibwM43xY9uyG6hIfSbcJZrscOJefP/8itXXFT+D4pBlJm0ITWfIFYPmVWgq1ujWBtJ/WDwutws/U89K+cA7DfC48XcP9maWa6JtYoVbuMbfeG71ng8k0ViARs/OIYzbFGynomY4o7gVGRYK
x-ms-office365-filtering-correlation-id: b134cafb-d811-481c-f4b4-08d3ba3f2950
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(1601124038)(1601125047);
	SRVR:HE1EUR01HT252; 
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(432015012)(82015046);
	SRVR:HE1EUR01HT252; BCL:0; PCL:0; RULEID:; SRVR:HE1EUR01HT252; 
x-forefront-prvs: 0021920B5A
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: hotmail.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Aug 2016 19:08:04.1650 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Internet
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1EUR01HT252
X-OriginalArrivalTime: 01 Aug 2016 19:08:07.0427 (UTC)
	FILETIME=[09982D30:01D1EC28]
X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy]
X-Received-From: 65.55.90.41
Subject: [gpsd-dev] [PATCH] Improved resilience in gps_shm_close() in case
 it is called after an unsuccessful gps_shm_open()
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 01 Aug 2016 19:08:14 -0000

Check that the structure exists before trying to use a component of it.
---
 libgps_shm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libgps_shm.c b/libgps_shm.c
index b256249..e0aa3ab 100644
--- a/libgps_shm.c
+++ b/libgps_shm.c
@@ -153,7 +153,7 @@ int gps_shm_read(struct gps_data_t *gpsdata)
=20
 void gps_shm_close(struct gps_data_t *gpsdata)
 {
-    if (PRIVATE(gpsdata)->shmseg !=3D NULL)
+    if (PRIVATE(gpsdata) && PRIVATE(gpsdata)->shmseg !=3D NULL)
 	(void)shmdt((const void *)PRIVATE(gpsdata)->shmseg);
 }
=20
--=20
2.8.1



From MAILER-DAEMON Mon Aug 01 15:08:21 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bUIZZ-0000ev-KZ
	for mharc-gpsd-dev@gnu.org; Mon, 01 Aug 2016 15:08:21 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:49754)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1bUIZX-0000dQ-OA
	for gpsd-dev@nongnu.org; Mon, 01 Aug 2016 15:08:20 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1bUIZS-0003xi-Lz
	for gpsd-dev@nongnu.org; Mon, 01 Aug 2016 15:08:18 -0400
Received: from snt004-omc4s42.hotmail.com ([65.54.51.93]:62376)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1bUIZS-0003xZ-E0
	for gpsd-dev@nongnu.org; Mon, 01 Aug 2016 15:08:14 -0400
Received: from EUR01-VE1-obe.outbound.protection.outlook.com ([65.55.90.201])
	by SNT004-OMC4S42.hotmail.com over TLS secured channel with
	Microsoft SMTPSVC(7.5.7601.23008); Mon, 1 Aug 2016 12:08:13 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com;
	s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; 
	bh=FjPTBoQMKo1hhfhb8mbNQSubfb8urhN/bJAMSrOo86w=;
	b=DrsKPu8EP/W9n0TrDG8mLEzrdH1WccL2yxkh0gT0z04ThxXf+5/qaj+1p2duBFHZTAb/LMHXWuFBfVYNzuVOjS/qL6OQ4p0Vn/B+g2k4sf83kTIF6bg5RsAzgmYVI7eNdAXXnS9f0pzudt0stwSG6fgCrp1THAaCaW8T5Elggld94IhY2XNvXzP0AGSgm2z3dxo5tN0ytFeuzOpMN55gfCAXL+vKccobyJteDUTAicZrbrUIAuNwBsYSR+WzWDkMBJ7y+8ErU4TaXiVHdtASkGqtFxj81/g/WfHlPrun5/b8qWOOC4uibVtU9Sj207E6G8tZgNP5ER9zDw2Z+1DkZQ==
Received: from HE1EUR01FT051.eop-EUR01.prod.protection.outlook.com
	(10.152.0.59) by HE1EUR01HT200.eop-EUR01.prod.protection.outlook.com
	(10.152.1.186) with Microsoft SMTP Server (version=TLS1_0,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.557.8;
	Mon, 1 Aug 2016 19:08:10 +0000
Received: from DB6PR0601MB2168.eurprd06.prod.outlook.com (10.152.0.51) by
	HE1EUR01FT051.mail.protection.outlook.com (10.152.1.71) with Microsoft
	SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id
	15.1.557.8 via Frontend Transport; Mon, 1 Aug 2016 19:08:10 +0000
Received: from DB6PR0601MB2168.eurprd06.prod.outlook.com ([10.168.57.27]) by
	DB6PR0601MB2168.eurprd06.prod.outlook.com ([10.168.57.27]) with mapi id
	15.01.0549.022; Mon, 1 Aug 2016 19:08:09 +0000
From: Robert Norris <rw_norris@hotmail.com>
To: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
Thread-Topic: [PATCH] Typo fix.
Thread-Index: AQHR7CgKR2h49S9bzE6Tix4vPgoXzw==
Date: Mon, 1 Aug 2016 19:08:09 +0000
Message-ID: <DB6PR0601MB2168D4A51659F3DC404C02C98E040@DB6PR0601MB2168.eurprd06.prod.outlook.com>
References: <1470078470-32535-1-git-send-email-rw_norris@hotmail.com>
In-Reply-To: <1470078470-32535-1-git-send-email-rw_norris@hotmail.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: spf=softfail (sender IP is 10.152.0.51)
	smtp.mailfrom=hotmail.com; nongnu.org; dkim=none (message not signed)
	header.d=none; nongnu.org;
	dmarc=fail action=none header.from=hotmail.com; 
received-spf: SoftFail (protection.outlook.com: domain of transitioning
	hotmail.com discourages use of 10.152.0.51 as permitted sender)
x-ms-exchange-messagesentrepresentingtype: 1
x-eopattributedmessage: 0
x-forefront-antispam-report: CIP:10.152.0.51; IPV:NLI; CTRY:; EFV:NLI; SFV:NSPM;
	SFS:(10019020)(98900003); DIR:OUT; SFP:1102; SCL:1;
	SRVR:HE1EUR01HT200; H:DB6PR0601MB2168.eurprd06.prod.outlook.com;
	FPR:; SPF:None; LANG:en; 
x-microsoft-exchange-diagnostics: 1; HE1EUR01HT200;
	6:1Mjo5oKFtW5wvrLOd/9tS8efxlORjDF25jZooNKOgN6iceZeJut801hyuVlRQL6AQyaQHiVGhJyKmrnQttrCzqzirKBLETLwf7Ii55VxJdYMSpvCVZWt2MTSgjSnOC3Ekt6XU05DcPgQDXwOWet3F2DGSoYLuazkvMl6ArD7k4+CebBy0fjVcDkU3CZ1nLv0VlsZPXv9DOMdwu6fs9HBM0x87CarECk3x7ksbTKoApBvrPC33JNpWSPMngCq8YPaonZ9UUD2nb+hZb/yjC+PaBPw/iG6Bs0EpDfhVebaXEY8T7jzEc5MhPe09t9jtcNY;
	5:YaOUI9d6rMp9BdK2EujQvQjp9kEFC+gZLYjRcbhB+YUm9WEvbpoNkhqwbAWmzxl+AuzdDYiiFrd9yfK0w9itOXyELolicx/jfe/VfcpijkoiQzEu9+agiaALP6UeXB2AIf5RFWFb6rrxs+u4Mv6hqw==;
	24:EWaOdkqA1bCLGc/KSorPxGDhMxQwvqiauybkfy8rhGo5NpBpjFvUSq/H/O5OVmzGsEaFQccNe608BnR4FKGWqebdt2QNlrmM7fAZL6UIqhU=;
	7:0tU7RymVXqclyelOC/6672elp64HnGKBLgcFkauflSQM2VG4GTu4xWLiAOQiGO7r8w/i4zFlStX3fHjbob+Q6Z7drIifLkHZxXW3RKy5JMgEiXe9R/ufIzBa7xF8h/tpVq0mYmYtZ+Y3VVEoxImlI52Sm0uvLHlx4nBASbAJpMx1EszQgiKvI6y4SNQggqjg+d1rbKBR1AqEkcFiyznFluIBB34kODvE45KpB/ixHOifvTjs4J1oRBZ41Y5D69Zh
x-ms-office365-filtering-correlation-id: c83a8e22-63b8-4b0b-c501-08d3ba3f2cb3
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(1601124038)(1601125047);
	SRVR:HE1EUR01HT200; 
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(432015012)(82015046);
	SRVR:HE1EUR01HT200; BCL:0; PCL:0; RULEID:; SRVR:HE1EUR01HT200; 
x-forefront-prvs: 0021920B5A
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: hotmail.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Aug 2016 19:08:09.1612 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Internet
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1EUR01HT200
X-OriginalArrivalTime: 01 Aug 2016 19:08:13.0686 (UTC)
	FILETIME=[0D533960:01D1EC28]
X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy]
X-Received-From: 65.54.51.93
Subject: [gpsd-dev] [PATCH] Typo fix.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 01 Aug 2016 19:08:20 -0000

---
 ppscheck.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ppscheck.xml b/ppscheck.xml
index 9b187b0..2de0c23 100644
--- a/ppscheck.xml
+++ b/ppscheck.xml
@@ -45,7 +45,7 @@ ppscheck /dev/ttyS0
=20
 <para>ppscheck is not intended for routine use, but rather for
 diagnostic purposes. Once you have verified a particular device can
-output PPS signals you will never need to use it again on tha device.
+output PPS signals you will never need to use it again on that device.
 </para>
=20
 <para>The program accepts the following options:</para>
--=20
2.8.1



From MAILER-DAEMON Tue Aug 02 19:58:53 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bUjaG-0002Nq-Rh
	for mharc-gpsd-dev@gnu.org; Tue, 02 Aug 2016 19:58:52 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:43900)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bUjaE-0002Lz-OE
	for gpsd-dev@nongnu.org; Tue, 02 Aug 2016 19:58:51 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bUjaC-00078K-M8
	for gpsd-dev@nongnu.org; Tue, 02 Aug 2016 19:58:49 -0400
Received: from rellim.com ([2001:470:e815::19]:56708 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bUjaC-00072E-Dx
	for gpsd-dev@nongnu.org; Tue, 02 Aug 2016 19:58:48 -0400
Received: from spidey.rellim.com (rellim.com [IPv6:2001:470:e815:0:0:0:0:19])
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u72NwSwi031852
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Tue, 2 Aug 2016 16:58:33 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u72NwSwi031852
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1470182314; bh=HEPryQBQL+/NNI2TCClOXdEsBicBRYggi3pNtzQnvrk=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=AIT6KvkZerJuUHLYS0020MmszSXjPKnDFIHgv7NLQC1BHtGZm4EovEmetEpxsk7pL
	Vwef0mLozqQCky8lLQgYkV85gDX1yXjL7WSJZaRQzycjpZdeZeh60m7P7ilGFD3K6T
	/1kUoUmX51VVrRiJo+OXVyZp4w3TTizNFJnYZuf8=
Date: Tue, 2 Aug 2016 16:58:22 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Robert Norris <rw_norris@hotmail.com>
Cc: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
Message-ID: <20160802165822.29cfba4c@spidey.rellim.com>
In-Reply-To: <DB6PR0601MB21687BF0D457373B7AD398B08E020@DB6PR0601MB2168.eurprd06.prod.outlook.com>
References: <DB6PR0601MB21687BF0D457373B7AD398B08E020@DB6PR0601MB2168.eurprd06.prod.outlook.com>
Organization: Rellim
X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/LC+iLHJSgDoBuQkya6A/KXZ";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Tue, 02 Aug 2016 16:58:34 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] [PATCH] Prevent client crashes if one calls
 gps_close() multiple times
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 02 Aug 2016 23:58:51 -0000

--Sig_/LC+iLHJSgDoBuQkya6A/KXZ
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Robert!

Looks good.  Patch applied.

On Sat, 30 Jul 2016 18:08:40 +0000
Robert Norris <rw_norris@hotmail.com> wrote:

> privdata must be explicitly set to NULL after use,
>  otherwise if gps_close() is (incorrectly) called again before
>  a new gps_open() then a double free condition can occur.
> ---
>  libgps_shm.c  | 1 +
>  libgps_sock.c | 1 +
>  2 files changed, 2 insertions(+)
>=20
> diff --git a/libgps_shm.c b/libgps_shm.c
> index b256249..a0dfdde 100644
> --- a/libgps_shm.c
> +++ b/libgps_shm.c
> @@ -60,6 +60,7 @@ int gps_shm_open(struct gps_data_t *gpsdata)
>      if (PRIVATE(gpsdata)->shmseg =3D=3D (void *) -1) {
>  	/* attach failed for sume unknown reason */
>  	free(gpsdata->privdata);
> +	gpsdata->privdata =3D NULL;
>  	return -2;
>      }
>  #ifndef USE_QT
> diff --git a/libgps_sock.c b/libgps_sock.c
> index d056515..a7ac672 100644
> --- a/libgps_sock.c
> +++ b/libgps_sock.c
> @@ -118,6 +118,7 @@ int gps_sock_close(struct gps_data_t *gpsdata)
>      int status;
> =20
>      free(PRIVATE(gpsdata));
> +    gpsdata->privdata =3D NULL;
>      status =3D close(gpsdata->gps_fd);
>      gpsdata->gps_fd =3D -1;
>      return status;




RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/LC+iLHJSgDoBuQkya6A/KXZ
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXoTOfAAoJEA0O2UlB0XnYiGkH/3QRZ8BNTZ5mzG4kJsGeW0eZ
BFK4tzCe791m1Y98WIkiDKk7mmxsWj81XTFTroglh3jtHICxQRDLfiLx7WOOnEPd
VXY3swThm7f9IocC/z+ECe8nW06EOZVVZe8GMmAs4rGXyStKcdVnzupXLkzP3zam
KK1DC/hwGLZE1tUVVdb7N+tQir2vwUMyHO+qum3irOMMXqAwkvZpiQ4z40SQO7c6
na1Zoq7D1OgxOjzjc7KvvffgGgcbBdbZvLRKEhywQBMAtrxRksh668FnQl4/F6AQ
PKOHanAuU8HkAdzb/uWTstbnbZlaiHqIv7PY1X6OxT84pBh66ATcP/ufk834DYE=
=5bAo
-----END PGP SIGNATURE-----

--Sig_/LC+iLHJSgDoBuQkya6A/KXZ--


From MAILER-DAEMON Tue Aug 02 19:59:58 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bUjbK-0003N8-46
	for mharc-gpsd-dev@gnu.org; Tue, 02 Aug 2016 19:59:58 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:44309)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bUjbI-0003LN-1b
	for gpsd-dev@nongnu.org; Tue, 02 Aug 2016 19:59:56 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bUjbG-0007ab-7R
	for gpsd-dev@nongnu.org; Tue, 02 Aug 2016 19:59:55 -0400
Received: from rellim.com ([2001:470:e815::19]:54940 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bUjbF-0007aL-Vl
	for gpsd-dev@nongnu.org; Tue, 02 Aug 2016 19:59:54 -0400
Received: from spidey.rellim.com (dave.rellim.com
	[IPv6:2001:470:e815:0:0:0:0:19] (may be forged))
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u72NxlHR032422
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Tue, 2 Aug 2016 16:59:52 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u72NxlHR032422
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1470182392; bh=PdOX15ZCTZ4ykQ8KIF0dkQzk6mt/GzgZqacW5LgoriU=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=KcJu1uFhwfoh3U3hKId3Im0f+9sMG9Ub+c2aH3Vcyh3oBhqJ6FmwQt3PmFuzHEuAn
	3RQMKuS2Fx/Uu7mSNbdTvP3+vOpqgrNDhaidS7cSyH6brVwUVupVCzY66V1dWCo0yn
	8GfvVG2CeftA0NuG1oiib9Y1T3NCgCBfm0yAmhVQ=
Date: Tue, 2 Aug 2016 16:59:47 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Robert Norris <rw_norris@hotmail.com>
Cc: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
Message-ID: <20160802165947.3a88fc3f@spidey.rellim.com>
In-Reply-To: <DB6PR0601MB21685BED26D5A9D1B45689AA8E020@DB6PR0601MB2168.eurprd06.prod.outlook.com>
References: <1469902106-5416-1-git-send-email-rw_norris@hotmail.com>
	<DB6PR0601MB21685BED26D5A9D1B45689AA8E020@DB6PR0601MB2168.eurprd06.prod.outlook.com>
Organization: Rellim
X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/=YkBfUEpQZ3XdQ4Hzettxls";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Tue, 02 Aug 2016 16:59:52 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] [PATCH] Ensure all functions of the client API are
 available at all times.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 02 Aug 2016 23:59:57 -0000

--Sig_/=YkBfUEpQZ3XdQ4Hzettxls
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Robert!

Looks good, but I made on change in the commit comment.  gpsd likes
to keep lines under 80 chars long.

Patch applied.

On Sat, 30 Jul 2016 18:08:50 +0000
Robert Norris <rw_norris@hotmail.com> wrote:

> Thus client programs won't fail to build or run due to missing
> functions. Although when clientdebug is turned off in building
> libgps, then these functions won't do anything. ---
>  libgps_core.c | 4 ++++
>  1 file changed, 4 insertions(+)
>=20
> diff --git a/libgps_core.c b/libgps_core.c
> index 582e210..ca580bd 100644
> --- a/libgps_core.c
> +++ b/libgps_core.c
> @@ -49,6 +49,10 @@ void libgps_trace(int errlevel, const char
> *fmt, ...) (void)fputs(buf, debugfp);
>      }
>  }
> +#else
> +// Functions defined as so to furfil the API but otherwise do
> nothing when built with debug capability turned off +void
> gps_enable_debug(int level UNUSED, FILE * fp UNUSED) {} +void
> libgps_trace(int errlevel UNUSED, const char *fmt UNUSED, ...){}
> #endif /* LIBGPS_DEBUG */=20
>  #ifdef SOCKET_EXPORT_ENABLE




RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/=YkBfUEpQZ3XdQ4Hzettxls
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXoTPzAAoJEA0O2UlB0XnY4eoH/i90gwyZmwrrwoffTeuXNPLJ
4FMMLxuwCiRnGXYp48qyolpYSK3ugGitpt9HLYjZQci2tePceyuQAdwUeTbvt2KE
cP93TCELQSRjZ3EXBUtchD8w+R4IBtdMZe6NpQw+gtsKOJHWOW8u1raAnBCvZWZP
8SPa7DEprw56kJLkIzh6MyT8+rtFRP81oHSFz6GpzeMUkogz14NL19POQ664V09b
omRmIxdn63f6zEfTUmMKfyiwjaCA9odUVfhI65rEDAjyfbJqRRp4nS1mANFF6FE0
h95+L0+I7ZNnXvdD8Z3bEJwdU220O/8LDhE1+28G3gJ/MeFIquKeU0ChogDsV7Q=
=lk1o
-----END PGP SIGNATURE-----

--Sig_/=YkBfUEpQZ3XdQ4Hzettxls--


From MAILER-DAEMON Tue Aug 02 20:05:36 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bUjgm-00052y-SC
	for mharc-gpsd-dev@gnu.org; Tue, 02 Aug 2016 20:05:36 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:46714)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bUjgk-00050G-Hs
	for gpsd-dev@nongnu.org; Tue, 02 Aug 2016 20:05:35 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bUjgi-0001Vc-Da
	for gpsd-dev@nongnu.org; Tue, 02 Aug 2016 20:05:33 -0400
Received: from rellim.com ([2001:470:e815::19]:56664 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bUjgi-0001VN-5U
	for gpsd-dev@nongnu.org; Tue, 02 Aug 2016 20:05:32 -0400
Received: from spidey.rellim.com (rellim.com [IPv6:2001:470:e815:0:0:0:0:19])
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u7305OS6001915
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Tue, 2 Aug 2016 17:05:29 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u7305OS6001915
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1470182729; bh=03DhT3Hq2HHfmiuOVjnl9jMPlxhw23tIHwWOrkzYKoM=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=cR/2U5sIngOGFCIQTAGsIc8wOBasUg31y1p0mjgBpjbuaWKOoyR1UqRkX3QmOKpJj
	VDHMaiDmqAs7xAwbUXLDPVAHSkOM4TnBkCAcB61rtE+zbt+0TqGOJbfLRnw8qmm/cT
	vcffP3dBfP0LbVIhYM7BWsN1gmMkHm7ve5+DzK2I=
Date: Tue, 2 Aug 2016 17:05:23 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Robert Norris <rw_norris@hotmail.com>
Cc: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
Message-ID: <20160802170523.5543c30c@spidey.rellim.com>
In-Reply-To: <DB6PR0601MB2168D28A8E63F2C32DF325B48E020@DB6PR0601MB2168.eurprd06.prod.outlook.com>
References: <1469902106-5416-1-git-send-email-rw_norris@hotmail.com>
	<DB6PR0601MB2168D28A8E63F2C32DF325B48E020@DB6PR0601MB2168.eurprd06.prod.outlook.com>
Organization: Rellim
X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/kOD7k_fwfw66M1YV0oXh7ib";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Tue, 02 Aug 2016 17:05:29 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] [PATCH] Improve documentation around the usage of
 gps_close()
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Aug 2016 00:05:35 -0000

--Sig_/kOD7k_fwfw66M1YV0oXh7ib
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Robert!

Nice.  Patch applied.  In a later patch I fixed you overlong lines.

Think 80 columns!

On Sat, 30 Jul 2016 18:08:54 +0000
Robert Norris <rw_norris@hotmail.com> wrote:

> gps_close() should only be called after a successful gps_open()
> Also include notes about the returned value and error conditions.
> ---
>  libgps.xml | 8 ++++++--
>  1 file changed, 6 insertions(+), 2 deletions(-)
>=20
> diff --git a/libgps.xml b/libgps.xml
> index 8f1dc82..7a6e29c 100644
> --- a/libgps.xml
> +++ b/libgps.xml
> @@ -56,7 +56,7 @@ C:
>      <paramdef>struct gps_data_t
> *<parameter>gpsdata</parameter></paramdef> </funcprototype>
>  <funcprototype>
> -<funcdef>void <function>gps_close</function></funcdef>
> +<funcdef>int <function>gps_close</function></funcdef>
>      <paramdef>struct gps_data_t
> *<parameter>gpsdata</parameter></paramdef> </funcprototype>
>  <funcprototype>
> @@ -118,7 +118,11 @@ an IPv4 dotted quad, an IPV6 address, or the
> special value shared-memory export; the library will do the right
> thing for any of these.</para>
> =20
> -<para><function>gps_close()</function> ends the session.</para>
> +<para><function>gps_close()</function> ends the session and should
> only be called after a successful <function>gps_open()</function>.
> +It returns 0 on success, -1 on errors. +The shared-memory interface
> close always returns 0, whereas a socket close can result in an
> error. +For a socket close error it will have set an errno from the
> call to the system's <function>close()</function>. +</para>=20
>  <para><function>gps_send()</function> writes a command to the daemon.
>  It does nothing when using the shared-memory export.




RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/kOD7k_fwfw66M1YV0oXh7ib
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXoTVEAAoJEA0O2UlB0XnYZ/MIALMiblAwEWrcGa48XOXMwyVU
rfRWbmsFC3WVcWSMUx0WF/k/3R9N6uYcpZRlX4WLBvp7Sm4ErIThy3TFlEytbMKW
vvdE3y6CseF8Id2cZW2VqlTq3SpTHCv8humW6lgapPGcI8mdmNLZN9zKUtzmOg5p
H6hmsY2G76RiXT7NwtX0xNNWHX0UQ/OmIHMwAoGEqoEQnPYjBOzqMWAq78g2ETAr
t+DRxX4U22znWD8Zed6EmH5W8hGmILl/vxWpjr/RzMbNMTAZE1/3j74v+pTRLakF
OLbiy2wG7YQKHOGKTfgJpFqnElQl+5ppHSP0sVbAVEL4kaiFf44n6zPlVlJbYS8=
=sCXs
-----END PGP SIGNATURE-----

--Sig_/kOD7k_fwfw66M1YV0oXh7ib--


From MAILER-DAEMON Tue Aug 02 20:10:35 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bUjlb-0006lx-9e
	for mharc-gpsd-dev@gnu.org; Tue, 02 Aug 2016 20:10:35 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:48768)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bUjlZ-0006lq-BK
	for gpsd-dev@nongnu.org; Tue, 02 Aug 2016 20:10:34 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bUjlX-0003cQ-9F
	for gpsd-dev@nongnu.org; Tue, 02 Aug 2016 20:10:32 -0400
Received: from rellim.com ([2001:470:e815::19]:45505 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bUjlX-0003c9-1d
	for gpsd-dev@nongnu.org; Tue, 02 Aug 2016 20:10:31 -0400
Received: from spidey.rellim.com (rellim.com [IPv6:2001:470:e815:0:0:0:0:19])
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u730AO2C004278
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Tue, 2 Aug 2016 17:10:29 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u730AO2C004278
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1470183029; bh=ik2PSklL8xDStmluXGTwaS8qjSHK+SOQ+2A0pe5EdtE=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=FOdTWtuhBxkL6VZINIFFIeG9IBDZRc68jHVh/sq7VpyFQZ9d92hI4pbuk9vwm4mD+
	tI/LsZovT/Ubx3PGnZFPr1nzfHS7r16uHI4iiKLpKfzfWtvZSrYXKqKIUXubOOqgiD
	Fr6uYzuzKEFCZ7MuzRa/o7NUZ7kUTbjVvlXCBAKY=
Date: Tue, 2 Aug 2016 17:10:24 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Robert Norris <rw_norris@hotmail.com>
Cc: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
Message-ID: <20160802171024.0d705de9@spidey.rellim.com>
In-Reply-To: <DB6PR0601MB2168ABF935EEC0ABEFC506F38E020@DB6PR0601MB2168.eurprd06.prod.outlook.com>
References: <1469902106-5416-1-git-send-email-rw_norris@hotmail.com>
	<DB6PR0601MB2168ABF935EEC0ABEFC506F38E020@DB6PR0601MB2168.eurprd06.prod.outlook.com>
Organization: Rellim
X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/+FCrCoiaNEi=RYd9OTpnGIb";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Tue, 02 Aug 2016 17:10:29 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] [PATCH] Be more explicit about the return value from
 gps_close() is not used.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Aug 2016 00:10:34 -0000

--Sig_/+FCrCoiaNEi=RYd9OTpnGIb
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Robert!

Patch applied.

In general I'm a fan of checking EVERY return value.  So I would hope
you would go one step further and output a warning/error when gps_close()
fails.

The squeaky wheel gets the grease and error messages squeak.

On Sat, 30 Jul 2016 18:09:01 +0000
Robert Norris <rw_norris@hotmail.com> wrote:

> ---
>  libgpsmm.cpp | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>=20
> diff --git a/libgpsmm.cpp b/libgpsmm.cpp
> index a12d975..ba4aeb0 100644
> --- a/libgpsmm.cpp
> +++ b/libgpsmm.cpp
> @@ -91,7 +91,7 @@ bool gpsmm::is_open(void)
>  gpsmm::~gpsmm()
>  {
>      if ( to_user !=3D NULL ) {
> -	gps_close(gps_state());
> +	(void)gps_close(gps_state());
>  	delete to_user;
>      }
>  }




RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/+FCrCoiaNEi=RYd9OTpnGIb
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXoTZwAAoJEA0O2UlB0XnYvI0H/2zXG177IO6cVRdnDRzYvouq
+tBib8M7AC973pbERacFH2F/TG1Im53ZcK8nxURiI6lD5tlmuq5rc5ESjDGz7PLm
gPwQfgGz8ueq8FichODB58T2zmjP480hCuxLFonM+sEOmZRaoRxYMqILDVvYufmD
14/xolCjCYN8Q7e0UzzmEralLLlm9/6tn2lK6wr4bfVWJKtmd6ysaDk7lAgJ/f6e
cscpFddBNm70v+6leC2yFCyfui1+dwkH2dNprwokI8j2D+p9fh0HpaXV/osbWw1c
7ujys51k7gsvDb8C/GxxMHF11zqBy7P/aVAWRhHFxKBSh9OYpWfZQZVMwimiyOk=
=JS/l
-----END PGP SIGNATURE-----

--Sig_/+FCrCoiaNEi=RYd9OTpnGIb--


From MAILER-DAEMON Tue Aug 02 20:16:04 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bUjqu-00007n-HT
	for mharc-gpsd-dev@gnu.org; Tue, 02 Aug 2016 20:16:04 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:49752)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bUjqs-00007U-5r
	for gpsd-dev@nongnu.org; Tue, 02 Aug 2016 20:16:03 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bUjqq-0005BX-Q4
	for gpsd-dev@nongnu.org; Tue, 02 Aug 2016 20:16:02 -0400
Received: from rellim.com ([2001:470:e815::19]:35108 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bUjqq-0005BM-Id
	for gpsd-dev@nongnu.org; Tue, 02 Aug 2016 20:16:00 -0400
Received: from spidey.rellim.com (dave.rellim.com
	[IPv6:2001:470:e815:0:0:0:0:19] (may be forged))
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u730FpI5006239
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Tue, 2 Aug 2016 17:15:57 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u730FpI5006239
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1470183358; bh=K18rspE2De6rRcyBFyGeySXATCmBiahRhjTi1DOao2A=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=mqbwwGWLYTjCqqjnyC5Qk6YR55WIOtGRHKVggW7OqVv95hrtmmoKqbvPFdlueBx5Y
	Y8Xc0TYbaO8xZC1Yk3ecBfvmicM4hk1JvHxGnE4nvRUscl03B1nVjDTQvmnLI8U4NO
	BKVCt11bXvquEit8nVjrj97Vm8+nglan+OvI0uOQ=
Date: Tue, 2 Aug 2016 17:15:51 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Robert Norris <rw_norris@hotmail.com>
Cc: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
Message-ID: <20160802171551.76aa4692@spidey.rellim.com>
In-Reply-To: <DB6PR0601MB2168694A5EF74A034E3C4CA58E040@DB6PR0601MB2168.eurprd06.prod.outlook.com>
References: <DB6PR0601MB2168694A5EF74A034E3C4CA58E040@DB6PR0601MB2168.eurprd06.prod.outlook.com>
Organization: Rellim
X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/DDXLAWP8HPWhv1xODfA0Clt";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Tue, 02 Aug 2016 17:15:58 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] [PATCH] Improved resilience in gps_shm_close() in
 case it is called after an unsuccessful gps_shm_open()
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Aug 2016 00:16:03 -0000

--Sig_/DDXLAWP8HPWhv1xODfA0Clt
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Robert!

Patch applied.  This fixes a nice hole.

I do find this mixing styles:

> +    if (PRIVATE(gpsdata) && PRIVATE(gpsdata)->shmseg !=3D NULL)

I would be happy with, simple TRUE/FALSE:

    if (PRIVATE(gpsdata) && PRIVATE(gpsdata)->shmseg )

I think Eric prefers explicit comparisons, like this:

    if (PRIVATE(gpsdata) !=3D NULL && PRIVATE(gpsdata)->shmseg !=3D NULL)

It does smoke out type errors now and then.

And when I do that, I prefer the constant on the LEFT side.  I find
it allows the compiler to catch some non-obvious errors.

    if ( NULL !=3D PRIVATE(gpsdata) && NULL !=3D PRIVATE(gpsdata)->shmseg)

But that drives Eric batty, so avoid that for now.  :-)

On Mon, 1 Aug 2016 19:08:04 +0000
Robert Norris <rw_norris@hotmail.com> wrote:

> Check that the structure exists before trying to use a component of
> it. ---
>  libgps_shm.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>=20
> diff --git a/libgps_shm.c b/libgps_shm.c
> index b256249..e0aa3ab 100644
> --- a/libgps_shm.c
> +++ b/libgps_shm.c
> @@ -153,7 +153,7 @@ int gps_shm_read(struct gps_data_t *gpsdata)
> =20
>  void gps_shm_close(struct gps_data_t *gpsdata)
>  {
> -    if (PRIVATE(gpsdata)->shmseg !=3D NULL)
> +    if (PRIVATE(gpsdata) && PRIVATE(gpsdata)->shmseg !=3D NULL)
>  	(void)shmdt((const void *)PRIVATE(gpsdata)->shmseg);
>  }
> =20




RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/DDXLAWP8HPWhv1xODfA0Clt
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXoTe3AAoJEA0O2UlB0XnYb2oH+wZ8oYo04yTBCP2Xsr+3lQSl
K5vDxK9MDQpOU4ZOYiJ1zB1qKCN34+zbQOwB8sAtuJaSctm1fawItZLNhULagXr4
yflxXA27M34eOn8M4WldWRBSsVkDqz0berTZsYS36Rx0pT4rFuErc3YGffU1pZmT
F69fKmlfdIlGmpu6p6MHZQbnsbPyuNFGxgPcqQCF8aVEnu+s6+D8at42tUQVDq5y
raSdV37X3+SZ0sceUAggdUHYMNTdi/Lnz7FejMBdaY0yHRyvKF1PT/6ixC0jPR4j
68qfswk7KlRN0k2HN0OjUjS8knArAkzglfgdLVbCXzs2eIPT+BzBuStBlN3LMuc=
=oyrf
-----END PGP SIGNATURE-----

--Sig_/DDXLAWP8HPWhv1xODfA0Clt--


From MAILER-DAEMON Tue Aug 02 20:18:39 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bUjtP-0001HX-6l
	for mharc-gpsd-dev@gnu.org; Tue, 02 Aug 2016 20:18:39 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:50204)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bUjtN-0001DW-0B
	for gpsd-dev@nongnu.org; Tue, 02 Aug 2016 20:18:38 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bUjtL-000602-US
	for gpsd-dev@nongnu.org; Tue, 02 Aug 2016 20:18:36 -0400
Received: from rellim.com ([2001:470:e815::19]:41828 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bUjtL-0005zw-N3
	for gpsd-dev@nongnu.org; Tue, 02 Aug 2016 20:18:35 -0400
Received: from spidey.rellim.com (dave.rellim.com
	[IPv6:2001:470:e815:0:0:0:0:19] (may be forged))
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u730ISJP007124
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Tue, 2 Aug 2016 17:18:34 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u730ISJP007124
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1470183514; bh=bzeyws+277w7h+YVtmjfQoWOTRfzVeOzqCBtDZKB/Qc=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=tnqGHnJsd9okl+t6EAHWpC11orjnPBB6D5trEv5BTHkppuIaqcYapM+wj9FwNKQlH
	25St8d3Wa18IS5xQ1wqLArqSwY6wFtzXuG9JlevdQkKpyqY7AYSFNOZXMzzTP0E5uh
	AYrrLp/CBwXEesG0NMT9cEr6ndA+OGedjyUfieic=
Date: Tue, 2 Aug 2016 17:18:28 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Robert Norris <rw_norris@hotmail.com>
Cc: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
Message-ID: <20160802171828.18a2fc82@spidey.rellim.com>
In-Reply-To: <DB6PR0601MB2168D4A51659F3DC404C02C98E040@DB6PR0601MB2168.eurprd06.prod.outlook.com>
References: <1470078470-32535-1-git-send-email-rw_norris@hotmail.com>
	<DB6PR0601MB2168D4A51659F3DC404C02C98E040@DB6PR0601MB2168.eurprd06.prod.outlook.com>
Organization: Rellim
X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/X8Ok4YbBjPt77uFS+Omg+NA";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Tue, 02 Aug 2016 17:18:34 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] [PATCH] Typo fix.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Aug 2016 00:18:38 -0000

--Sig_/X8Ok4YbBjPt77uFS+Omg+NA
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Robert!

Patch applied.  As you can see, the 't' key on my laptop is sticking...

I replaced the keyboard, but the problem is in the connector...

Thanks for all the patches!

On Mon, 1 Aug 2016 19:08:09 +0000
Robert Norris <rw_norris@hotmail.com> wrote:

> ---
>  ppscheck.xml | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>=20
> diff --git a/ppscheck.xml b/ppscheck.xml
> index 9b187b0..2de0c23 100644
> --- a/ppscheck.xml
> +++ b/ppscheck.xml
> @@ -45,7 +45,7 @@ ppscheck /dev/ttyS0
> =20
>  <para>ppscheck is not intended for routine use, but rather for
>  diagnostic purposes. Once you have verified a particular device can
> -output PPS signals you will never need to use it again on tha device.
> +output PPS signals you will never need to use it again on that
> device. </para>
> =20
>  <para>The program accepts the following options:</para>




RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/X8Ok4YbBjPt77uFS+Omg+NA
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXoThUAAoJEA0O2UlB0XnYWmYH/2C9IWYWdtVLRs6sRyxQIKEs
imaYhACLRqFSyDgFXSgOUxm5D4WIS0AS0MR1TBHvdJ+40lHZm/yGR4ucFNYsNsuQ
gkHzEbF1CrwjDQsc1t1HVEvpJWeNRldobBnJcW7/8M8675KkEfcHx5l+wAMfalHk
t0NfgTCf0Rf+rudoU7n4eQpiLLOznOOiKmcOZQETkWrEO3W3vNTfA8c2B2DSUXKB
8LdBcFfv2+8j/Qu+YGc0rxaL/jitTFpbh5mqYksiMyCzKqQjILd2m3f11u8zVSc+
pqKzxE9Knh8690BJ05q9Bh4/c1RF8y5fZv1WktLcr1DcZyWOJklYyKGbl0Z4nxE=
=wNFA
-----END PGP SIGNATURE-----

--Sig_/X8Ok4YbBjPt77uFS+Omg+NA--


From MAILER-DAEMON Tue Aug 02 20:41:37 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bUkFd-00012q-Nl
	for mharc-gpsd-dev@gnu.org; Tue, 02 Aug 2016 20:41:37 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:58489)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bUkFa-000127-Vf
	for gpsd-dev@nongnu.org; Tue, 02 Aug 2016 20:41:35 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bUkFX-0006QB-Pz
	for gpsd-dev@nongnu.org; Tue, 02 Aug 2016 20:41:34 -0400
Received: from ip-64-139-1-69.sjc.megapath.net ([64.139.1.69]:65294)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bUkFX-0006OX-Ig
	for gpsd-dev@nongnu.org; Tue, 02 Aug 2016 20:41:31 -0400
Received: from shuksan (localhost [127.0.0.1])
	by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id BCBAF406060; 
	Tue,  2 Aug 2016 17:41:25 -0700 (PDT)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: "Gary E. Miller" <gem@rellim.com>
cc: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>,
	hmurray@megapathdsl.net
From: Hal Murray <hmurray@megapathdsl.net>
In-Reply-To: Message from "Gary E. Miller" <gem@rellim.com> of "Tue,
	02 Aug 2016 17:15:51 PDT." <20160802171551.76aa4692@spidey.rellim.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Tue, 02 Aug 2016 17:41:25 -0700
Message-Id: <20160803004125.BCBAF406060@ip-64-139-1-69.sjc.megapath.net>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.139.1.69
Subject: Re: [gpsd-dev] [PATCH] Improved resilience in gps_shm_close() in
 case it is called after an unsuccessful gps_shm_open()
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Aug 2016 00:41:35 -0000

> And when I do that, I prefer the constant on the LEFT side.  I find
> it allows the compiler to catch some non-obvious errors.
> But that drives Eric batty, so avoid that for now.  :-)

I thought Eric had learned to live with that.  I hope he speaks up.

I do a double take when I see it, but I smile as soon as I figure out what's 
going on and that doesn't take long.  I figure I'll get used to it before 
long, sooner if more people use it.


-- 
These are my opinions.  I hate spam.





From MAILER-DAEMON Tue Aug 02 20:48:46 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bUkMY-0003Tv-ED
	for mharc-gpsd-dev@gnu.org; Tue, 02 Aug 2016 20:48:46 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:59494)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bUkMW-0003Tm-4r
	for gpsd-dev@nongnu.org; Tue, 02 Aug 2016 20:48:45 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bUkMV-0008MT-3V
	for gpsd-dev@nongnu.org; Tue, 02 Aug 2016 20:48:44 -0400
Received: from rellim.com ([2001:470:e815::19]:33284 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bUkMU-0008MP-QN
	for gpsd-dev@nongnu.org; Tue, 02 Aug 2016 20:48:43 -0400
Received: from spidey.rellim.com (rellim.com [IPv6:2001:470:e815:0:0:0:0:19])
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u730mUt1019596
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Tue, 2 Aug 2016 17:48:35 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u730mUt1019596
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1470185316; bh=JHCPljpj5qbq7ogH2bZKdYxCpV+HEJVTHwJSPbNgYdI=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=gHP1rhgw63cnB6OGXhHWEHgEIEE5fYHwB8wJ93uP7sKXz7HKrVWBV9xgnsbNMpMNQ
	gw2N1M18Elpi8hIp7ztqgsdFprHgndbaKaCyKQ9MeHi06/MUsvsL9ZgEa2UKrNngat
	6VSOBMFUtICxgUDRL130Hb09ehyXbuYxtxijgDYY=
Date: Tue, 2 Aug 2016 17:48:30 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Hal Murray <hmurray@megapathdsl.net>
Cc: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
Message-ID: <20160802174830.3e882554@spidey.rellim.com>
In-Reply-To: <20160803004125.BCBAF406060@ip-64-139-1-69.sjc.megapath.net>
References: <20160802171551.76aa4692@spidey.rellim.com>
	<20160803004125.BCBAF406060@ip-64-139-1-69.sjc.megapath.net>
Organization: Rellim
X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/kZ/_swMwAp2JOwGG0npoogc";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Tue, 02 Aug 2016 17:48:36 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] [PATCH] Improved resilience in gps_shm_close() in
 case it is called after an unsuccessful gps_shm_open()
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Aug 2016 00:48:45 -0000

--Sig_/kZ/_swMwAp2JOwGG0npoogc
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Hal!

On Tue, 02 Aug 2016 17:41:25 -0700
Hal Murray <hmurray@megapathdsl.net> wrote:

> > And when I do that, I prefer the constant on the LEFT side.  I find
> > it allows the compiler to catch some non-obvious errors.
> > But that drives Eric batty, so avoid that for now.  :-) =20
>=20
> I thought Eric had learned to live with that.  I hope he speaks up.

I think his asset was conditional...

Eric is in the woods at a weapons training retreat, so expect little
from him for a while.  I picked my moment carefully.  :-)

> I do a double take when I see it, but I smile as soon as I figure out
> what's going on and that doesn't take long.  I figure I'll get used
> to it before long, sooner if more people use it.

IMHO, the double take is half the benefit.  Which does sort of
diminish with familiarity.

The first time it catches a typo you'll likely be sold.  How
often have you spent hours looking for a bug like this:

	if ( my_pointer =3D NULL)

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/kZ/_swMwAp2JOwGG0npoogc
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXoT9eAAoJEA0O2UlB0XnYOwAH/ihAiC8+ZJkgT4/dltwFpypW
J8MYK9i/NyuPtgQ8UjvxL+Fit+ctvo3rijMyqz7ECRgwNYiKWUR+xvB9njimtEj7
IHCLGqgQ5ubztteGP4hQ+Q7sPhK3PHahNOR9f70v85SqkIZglYgs2LS12L7lJZAA
16d3cC80oa7YBx3iuA8pLqhhFy3s2JmgayseySN1WIKRwXetpXLQTgiykoq9iR0/
G3JX27tOWhZGs8IpOykU8oQmYmS6KYer4P+4RCg20XZXm7tqsqkDHTZjJxUd3AW5
Pm9tAuaj6o9QYKmWe7iUNarECHei7bTHBsnQvtnHf1tej7pDnFW371sjmhWoS0E=
=XKc+
-----END PGP SIGNATURE-----

--Sig_/kZ/_swMwAp2JOwGG0npoogc--


From MAILER-DAEMON Tue Aug 02 21:33:28 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bUl3o-0007mx-Cs
	for mharc-gpsd-dev@gnu.org; Tue, 02 Aug 2016 21:33:28 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:51889)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bUl3n-0007mp-80
	for gpsd-dev@nongnu.org; Tue, 02 Aug 2016 21:33:28 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bUl3i-0002K4-BM
	for gpsd-dev@nongnu.org; Tue, 02 Aug 2016 21:33:27 -0400
Received: from ip-64-139-1-69.sjc.megapath.net ([64.139.1.69]:50568)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bUl3i-0002JG-3K
	for gpsd-dev@nongnu.org; Tue, 02 Aug 2016 21:33:22 -0400
Received: from shuksan (localhost [127.0.0.1])
	by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id 8A107406060; 
	Tue,  2 Aug 2016 18:33:20 -0700 (PDT)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: "Gary E. Miller" <gem@rellim.com>
cc: Hal Murray <hmurray@megapathdsl.net>,
	"gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
From: Hal Murray <hmurray@megapathdsl.net>
In-Reply-To: Message from "Gary E. Miller" <gem@rellim.com> of "Tue,
	02 Aug 2016 17:48:30 PDT." <20160802174830.3e882554@spidey.rellim.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Tue, 02 Aug 2016 18:33:20 -0700
Message-Id: <20160803013320.8A107406060@ip-64-139-1-69.sjc.megapath.net>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.139.1.69
Subject: Re: [gpsd-dev] [PATCH] Improved resilience in gps_shm_close() in
 case it is called after an unsuccessful gps_shm_open()
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Aug 2016 01:33:28 -0000


gem@rellim.com said:
> The first time it catches a typo you'll likely be sold.  How often have you
> spent hours looking for a bug like this:
> 	if ( my_pointer =3D NULL) 

No need to wait for an example.  I'm already convinced.

I remember when I learned about type checking.  I'd been working in assembly 
language.  (It was a long time ago.)  I was adapting to a new language and 
new environment.  At first, the new part was taking most of my time.  Before 
long, I learned how to drive the editor and got the ()s and BEGIN/END and ; 
level sorted out.  Then the compiler gave me an obscure error message.  It 
was a missing * or &.  As soon as I figured out what it was telling me, I was 
sold.  The stronger the checking the better.


-- 
These are my opinions.  I hate spam.





From MAILER-DAEMON Wed Aug 03 16:03:59 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bV2OV-0000OW-2I
	for mharc-gpsd-dev@gnu.org; Wed, 03 Aug 2016 16:03:59 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:60507)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bV2OS-0000OP-8N
	for gpsd-dev@nongnu.org; Wed, 03 Aug 2016 16:03:57 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bV2OP-0000k5-HS
	for gpsd-dev@nongnu.org; Wed, 03 Aug 2016 16:03:55 -0400
Received: from rellim.com ([2001:470:e815::19]:38089 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bV2OP-0000jP-9C
	for gpsd-dev@nongnu.org; Wed, 03 Aug 2016 16:03:53 -0400
Received: from spidey.rellim.com (dave.rellim.com
	[IPv6:2001:470:e815:0:0:0:0:19] (may be forged))
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u73K3j3c006648
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO)
	for <gpsd-dev@nongnu.org>; Wed, 3 Aug 2016 13:03:50 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u73K3j3c006648
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1470254630; bh=Nd5U51tU6m70UKFifubTKPsA5Ervw0RLsriRsRfm+1s=;
	h=Date:From:To:Subject;
	b=HfLAEODtAw9TH0h7OCzP+Mc8cPsIlts0r2NG2/OXOQfALFjDFPmp71O5uPY/FzXW6
	EHeYQK0xEQYtu7ld49MGLcLiv2x7x7t75oY28K8lBoNxSQSfVSMCj9NA0XlJHXDa5m
	wQ/NmEWEy8MrxAl+m7bfJk5geeDZRPfJs3h5YOsQ=
Date: Wed, 3 Aug 2016 13:03:44 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: gpsd dev <gpsd-dev@nongnu.org>
Message-ID: <20160803130344.7566e728@spidey.rellim.com>
Organization: Rellim
X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/GTNw4LOTC7yGD.0Vt16wOZC";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Wed, 03 Aug 2016 13:03:50 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: [gpsd-dev] =?utf-8?b?4pyYZ2l0IGJyb2tlbj8=?=
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Aug 2016 20:03:57 -0000

--Sig_/GTNw4LOTC7yGD.0Vt16wOZC
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo All!

I'm having trouble pulling git, same thing on 2 different machines:

gpsd # git pull
Enter passphrase for key '/root/.ssh/id_rsa':=20
X11 forwarding request failed
remote: Counting objects: 144, done.
remote: fatal: unable to create thread: Resource temporarily unavailable
error: git upload-pack: git-pack-objects died with error.
fatal: git upload-pack: aborting due to possible repository corruption on t=
he remote side.
remote: aborting due to possible repository corruption on the remote side.
fatal: protocol error: bad pack header

Anyone else seeing this??

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/GTNw4LOTC7yGD.0Vt16wOZC
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXok4hAAoJEA0O2UlB0XnY7ZQH/RopsVKiG0YgHuFRcD6LtWcD
fekburtnmLYdH3pdgOg8IV/jT5rBgLmYK7ExW3W/8WYSZq+EaQrw3rGs6AwrAzQN
Jj5V2TlmfrGyQPkuyJsx7lmCoW0tPv5TxRRY6FPxUuxSE8nPA2HciZPRb64UKHvo
6hnw5suIOs7w+1CK2CJjBYfsrnxQYOopAUz3Cxdw4BkLPHZdDk+8BoBkXry9eNJT
xUjlq2JYuxpR9gS9XGJ8vTPDrQw3i8Z0ktSdh2Vhw/txqG4EaccONToV3kPwoqHW
WL6bme+H+6b02/u7gLRuOO1e+kmXNRfgZceM58ZAvTH9wWZpQK4uFe5dsaa8Daw=
=F8k/
-----END PGP SIGNATURE-----

--Sig_/GTNw4LOTC7yGD.0Vt16wOZC--


From MAILER-DAEMON Wed Aug 03 16:27:49 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bV2lZ-0006lu-CO
	for mharc-gpsd-dev@gnu.org; Wed, 03 Aug 2016 16:27:49 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:35593)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris.kuethe@gmail.com>) id 1bV2lS-0006en-Qh
	for gpsd-dev@nongnu.org; Wed, 03 Aug 2016 16:27:47 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chris.kuethe@gmail.com>) id 1bV2lQ-0005AV-VV
	for gpsd-dev@nongnu.org; Wed, 03 Aug 2016 16:27:41 -0400
Received: from mail-it0-x233.google.com ([2607:f8b0:4001:c0b::233]:37233)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris.kuethe@gmail.com>) id 1bV2lQ-0005AC-Qq
	for gpsd-dev@nongnu.org; Wed, 03 Aug 2016 16:27:40 -0400
Received: by mail-it0-x233.google.com with SMTP id f6so242738207ith.0
	for <gpsd-dev@nongnu.org>; Wed, 03 Aug 2016 13:27:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc; bh=1GUneaDCRxOUTs0bZwbx1rDd9RJlPj7Wg6L/YaCJlK4=;
	b=HAElOs7IZNNaL6gwjhXnLyRKS7fxS7xEqQfYRNDwGsx8MZtbrwMoOEpHHnqGHp8zFv
	A4n3odFDfee3+gUbZM762Rbg8Da0LM1xyGKGkdrFik8GxXi7wOsV14/72jxLykELkeBq
	qaMoIDTdfUd1MGvjFA8Ha+IvUXo4PmGvdC1tPzM+X8m+4dXCKiva6BvXfOjGiU54mn3v
	5YJzhksJclb1V1MJmmp9C1WPZuUcYxLz6Ms+SJHDOyeBAiRin2zmEYaEpcsz2JkvIfZO
	Tgj0KQutD4joAEbs0pgdqryTwa5pibba/4QsulyRsTsZM+HhrdbIGjKQfRNI4uJG8eLN
	6ZVw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20130820;
	h=x-gm-message-state:mime-version:in-reply-to:references:from:date
	:message-id:subject:to:cc;
	bh=1GUneaDCRxOUTs0bZwbx1rDd9RJlPj7Wg6L/YaCJlK4=;
	b=XXMlz8Qo/iUq/vCjlv7MwMCvLW9CzIyo4zBaCFhHBoYQ8bvb+HOjlnwxOF/inmwhwH
	rOaK8i7Spsc8GQmc6fbq5m+KZIOXmR4IzQlS5sExXekcl93OBBtEZi3O+wXR3fp7n4HC
	aw0mtCnaUCXTMJx0x0Zky1RtWVXfJl+Q7gPSuYHGx8wZtWfs9XdICVjMeiDEZNOxRS6k
	/wH2HacUYucvMfrFSJLi+qj6pv8IcZlpl9Zzdy91UZSouOEZHQeteuSLhQHqC5HL0CYf
	MFJkjH+S1I1gFjIPvWT0mh5BsYsGkJZBKbuGhM/o9qRXyMsevbP/n+UxK2wrbseMbjOk
	Sbqw==
X-Gm-Message-State: AEkoouv4xPfEfqmZm99bdf2Fuge5lbAng48WXUgIJwxGKgJNBpzCNPxzvdU+BllpFIV2tq8Rarrvz8iBSs+EBA==
X-Received: by 10.36.70.14 with SMTP id j14mr6868991itb.47.1470256060013; Wed,
	03 Aug 2016 13:27:40 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.64.63.16 with HTTP; Wed, 3 Aug 2016 13:27:19 -0700 (PDT)
In-Reply-To: <20160803130344.7566e728@spidey.rellim.com>
References: <20160803130344.7566e728@spidey.rellim.com>
From: Chris Kuethe <chris.kuethe@gmail.com>
Date: Wed, 3 Aug 2016 13:27:19 -0700
Message-ID: <CAGHP0pLW0UVz0XdGv4z+4R5ZEQuWx82Bjxz80wi_AW=EVOCWYw@mail.gmail.com>
To: "Gary E. Miller" <gem@rellim.com>
Cc: gpsd dev <gpsd-dev@nongnu.org>
Content-Type: text/plain; charset=UTF-8
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2607:f8b0:4001:c0b::233
Subject: Re: [gpsd-dev] =?utf-8?b?4pyYZ2l0IGJyb2tlbj8=?=
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Aug 2016 20:27:47 -0000

Yep.


--------------

Internal Server Error

The server encountered an internal error or misconfiguration and was
unable to complete your request.

Please contact the server administrator, [no address given] and inform
them of the time the error occurred, and anything you might have done
that may have caused the error.

More information about this error may be available in the server error log.

________________________________
Apache/2.2.16 (Debian) Server at git.savannah.gnu.org Port 80

--------------

$ git clone git://git.savannah.nongnu.org/gpsd.git
Cloning into 'gpsd'...
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

On Wed, Aug 3, 2016 at 1:03 PM, Gary E. Miller <gem@rellim.com> wrote:
> Yo All!
>
> I'm having trouble pulling git, same thing on 2 different machines:
>
> gpsd # git pull
> Enter passphrase for key '/root/.ssh/id_rsa':
> X11 forwarding request failed
> remote: Counting objects: 144, done.
> remote: fatal: unable to create thread: Resource temporarily unavailable
> error: git upload-pack: git-pack-objects died with error.
> fatal: git upload-pack: aborting due to possible repository corruption on the remote side.
> remote: aborting due to possible repository corruption on the remote side.
> fatal: protocol error: bad pack header
>
> Anyone else seeing this??
>
> RGDS
> GARY
> ---------------------------------------------------------------------------
> Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
>         gem@rellim.com  Tel:+1 541 382 8588



-- 
GDB has a 'break' feature; why doesn't it have 'fix' too?


From MAILER-DAEMON Wed Aug 03 16:35:34 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bV2t4-0002G3-FL
	for mharc-gpsd-dev@gnu.org; Wed, 03 Aug 2016 16:35:34 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:38575)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bV2t2-0002EN-Gn
	for gpsd-dev@nongnu.org; Wed, 03 Aug 2016 16:35:33 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bV2sx-0007lZ-FG
	for gpsd-dev@nongnu.org; Wed, 03 Aug 2016 16:35:31 -0400
Received: from c.mail.sonic.net ([64.142.111.80]:52610)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bV2sx-0007l6-6P
	for gpsd-dev@nongnu.org; Wed, 03 Aug 2016 16:35:27 -0400
Received: from newshell.sonic.net (bolt.sonic.net [208.201.242.19])
	by c.mail.sonic.net (8.15.1/8.15.1) with ESMTPS id u73KZJaR004336
	(version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <gpsd-dev@nongnu.org>; Wed, 3 Aug 2016 13:35:20 -0700
Received: from bolt.sonic.net (localhost.localdomain [127.0.0.1])
	by newshell.sonic.net (8.13.6/8.12.1) with ESMTP id u73KZJQN001190
	for <gpsd-dev@nongnu.org>; Wed, 3 Aug 2016 13:35:19 -0700
Received: from localhost (fw@localhost)
	by bolt.sonic.net (8.13.6/8.12.1/Submit) with ESMTP id u73KZJp3001187
	for <gpsd-dev@nongnu.org>; Wed, 3 Aug 2016 13:35:19 -0700
X-Authentication-Warning: bolt.sonic.net: fw owned process doing -bs
Date: Wed, 3 Aug 2016 13:35:19 -0700 (PDT)
From: Fred Wright <fw@fwright.net>
X-X-Sender: fw@bolt.sonic.net
To: gpsd dev <gpsd-dev@nongnu.org>
In-Reply-To: <20160803130344.7566e728@spidey.rellim.com>
Message-ID: <Pine.LNX.4.58L1X.1608031328040.18035@bolt.sonic.net>
References: <20160803130344.7566e728@spidey.rellim.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sonic-CAuth: UmFuZG9tSVZ+MQFYFKHe2iHHnAGIzSLHsiZNt7vgkcdk18TABKJW3KBQopKKnCkD5++PeKj8os1IPhGkadZ++gDUANwQbbKj
X-Sonic-ID: C;rEVby7lZ5hGc/6Dx2xNB0g== M;5FKJy7lZ5hGc/6Dx2xNB0g==
X-Sonic-Spam-Details: -1.5/5.0 by cerberusd
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.142.111.80
Subject: Re: [gpsd-dev] =?utf-8?b?4pyYZ2l0IGJyb2tlbj8=?=
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Aug 2016 20:35:33 -0000


On Wed, 3 Aug 2016, Gary E. Miller wrote:

> Yo All!
>
> I'm having trouble pulling git, same thing on 2 different machines:
>
> gpsd # git pull
> Enter passphrase for key '/root/.ssh/id_rsa':
> X11 forwarding request failed
> remote: Counting objects: 144, done.
> remote: fatal: unable to create thread: Resource temporarily unavailable
> error: git upload-pack: git-pack-objects died with error.
> fatal: git upload-pack: aborting due to possible repository corruption on the remote side.
> remote: aborting due to possible repository corruption on the remote side.
> fatal: protocol error: bad pack header
>
> Anyone else seeing this??

Yep:

MacPro:gpsd fw$ git fetch -v main
Looking up git.sv.gnu.org ... done.
Connecting to git.sv.gnu.org (port 9418) ... 208.118.235.72 done.
remote: Counting objects: 29, done.
remote: fatal: unable to create thread: Resource temporarily unavailable
remote: aborting due to possible repository corruption on the remote side.
fatal: protocol error: bad pack header

Looks like something needs to be fixed on Savannah.  Based on the first
error, it may just need a reboot; I suspect the "corruption" is just an
artifact.

BTW, "pull" is just "fetch" + "merge" (albeit with slightly different
syntax), so "fetch" is a simpler test case.  Also, "fetch" is always safe,
regardless of your current working state.

Fred Wright


From MAILER-DAEMON Wed Aug 03 17:38:57 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bV3sP-0000Df-0z
	for mharc-gpsd-dev@gnu.org; Wed, 03 Aug 2016 17:38:57 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:51198)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bV3sN-0000DV-65
	for gpsd-dev@nongnu.org; Wed, 03 Aug 2016 17:38:56 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bV3sL-0004xb-86
	for gpsd-dev@nongnu.org; Wed, 03 Aug 2016 17:38:54 -0400
Received: from rellim.com ([2001:470:e815::19]:58042 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bV3sK-0004wC-Vn
	for gpsd-dev@nongnu.org; Wed, 03 Aug 2016 17:38:53 -0400
Received: from spidey.rellim.com (dave.rellim.com
	[IPv6:2001:470:e815:0:0:0:0:19] (may be forged))
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u73Lcicx006477
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO)
	for <gpsd-dev@nongnu.org>; Wed, 3 Aug 2016 14:38:50 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u73Lcicx006477
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1470260330; bh=laSN8XYtWWDHGL9VGxK+Pf0TcCuuTC0pqptO8uWK/RM=;
	h=Date:From:To:Subject:In-Reply-To:References;
	b=ly0fqdqkw/Qn6Gl6y+xlXqYjvCD1WCmuon23ixvekuVfNrhR+fKh16sHbFtTRd43p
	QJc+10WjyG7QpQ5OAhKHse3s1qsX1QjM/g/mzmTueEIZGLFTxo+nrzN+tgDE+rjgOA
	x9STb+ZKzToJhs2diqY6ssgJ50/9gy1Kr3pcDflg=
Date: Wed, 3 Aug 2016 14:38:44 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: gpsd dev <gpsd-dev@nongnu.org>
Message-ID: <20160803143844.156aca96@spidey.rellim.com>
In-Reply-To: <20160803130344.7566e728@spidey.rellim.com>
References: <20160803130344.7566e728@spidey.rellim.com>
Organization: Rellim
X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/exWCnouLWmMzTrePA_0dkyE";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Wed, 03 Aug 2016 14:38:50 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] =?utf-8?b?4pyYZ2l0IGJyb2tlbj8=?=
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Aug 2016 21:38:56 -0000

--Sig_/exWCnouLWmMzTrePA_0dkyE
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo All!

Working again.  Savannah admins claim they fixed it, no mention of
details.

On Wed, 3 Aug 2016 13:03:44 -0700
"Gary E. Miller" <gem@rellim.com> wrote:

> Yo All!
>=20
> I'm having trouble pulling git, same thing on 2 different machines:
>=20
> gpsd # git pull
> Enter passphrase for key '/root/.ssh/id_rsa':=20
> X11 forwarding request failed
> remote: Counting objects: 144, done.
> remote: fatal: unable to create thread: Resource temporarily
> unavailable error: git upload-pack: git-pack-objects died with error.
> fatal: git upload-pack: aborting due to possible repository
> corruption on the remote side. remote: aborting due to possible
> repository corruption on the remote side. fatal: protocol error: bad
> pack header
>=20
> Anyone else seeing this??
>=20
> RGDS
> GARY
> -------------------------------------------------------------------------=
--
> Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
> 	gem@rellim.com  Tel:+1 541 382 8588




RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/exWCnouLWmMzTrePA_0dkyE
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXomRkAAoJEA0O2UlB0XnYrfMH/0ANFmmr14vp84ssgu2PE+bl
RU01NeLe9tLVzef1WZ8LMsCuqa/GtbSM/pqkWRlUhbCRaX0slEDJJHIxtt/vtYA7
h846VNO5k/1tYanNZ7V+T1V9DsI0RdQaE892t3e2CjXVNcYIXGv8Be+xPBom/1Yq
7/0/4628SSqI3XVuT6TZr1PpswvCXH39vX9jZth+BdZMvE9gMifTY07+vA0geNRk
C4FKl0Q+Ydfc/Ja05EBvKc4zw671OBnu/R+x4htEP4QRuWYgdoxJ5TMlPSttfYB/
20UILtFW2GUoleJd7XDxwG75poPmZq63rRBxnIg83mTvQykVbT6RLPuK6RufGwc=
=7sWX
-----END PGP SIGNATURE-----

--Sig_/exWCnouLWmMzTrePA_0dkyE--


From MAILER-DAEMON Thu Aug 04 14:01:51 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bVMxr-0002Tb-I6
	for mharc-gpsd-dev@gnu.org; Thu, 04 Aug 2016 14:01:51 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:42105)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bVMxo-0002TO-Td
	for gpsd-dev@nongnu.org; Thu, 04 Aug 2016 14:01:49 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bVMxl-0005Yh-1G
	for gpsd-dev@nongnu.org; Thu, 04 Aug 2016 14:01:48 -0400
Received: from c.mail.sonic.net ([64.142.111.80]:49776)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bVMxk-0005Yd-OZ
	for gpsd-dev@nongnu.org; Thu, 04 Aug 2016 14:01:44 -0400
Received: from newshell.sonic.net (bolt.sonic.net [208.201.242.19])
	by c.mail.sonic.net (8.15.1/8.15.1) with ESMTPS id u74I1dP0014131
	(version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <gpsd-dev@nongnu.org>; Thu, 4 Aug 2016 11:01:39 -0700
Received: from bolt.sonic.net (localhost.localdomain [127.0.0.1])
	by newshell.sonic.net (8.13.6/8.12.1) with ESMTP id u74I1dg0028445
	for <gpsd-dev@nongnu.org>; Thu, 4 Aug 2016 11:01:39 -0700
Received: from localhost (fw@localhost)
	by bolt.sonic.net (8.13.6/8.12.1/Submit) with ESMTP id u74I1cHI028440
	for <gpsd-dev@nongnu.org>; Thu, 4 Aug 2016 11:01:39 -0700
X-Authentication-Warning: bolt.sonic.net: fw owned process doing -bs
Date: Thu, 4 Aug 2016 11:01:38 -0700 (PDT)
From: Fred Wright <fw@fwright.net>
X-X-Sender: fw@bolt.sonic.net
To: GPSD Developers List <gpsd-dev@nongnu.org>
In-Reply-To: <20160802174830.3e882554@spidey.rellim.com>
Message-ID: <Pine.LNX.4.58L1X.1608041055470.11701@bolt.sonic.net>
References: <20160802171551.76aa4692@spidey.rellim.com>
	<20160803004125.BCBAF406060@ip-64-139-1-69.sjc.megapath.net>
	<20160802174830.3e882554@spidey.rellim.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sonic-CAuth: UmFuZG9tSVZNh62V6JjkgM+n2pIlMcXz8VfxdQyHwpmNMkkShq5SFVyVweh+WzxSE9sSGlK9GQz/np6vtroPzi38st7TIu0o
X-Sonic-ID: C;eCLsfW1a5hGOBaDx2xNB0g== M;xNUPfm1a5hGOBaDx2xNB0g==
X-Sonic-Spam-Details: -1.5/5.0 by cerberusd
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.142.111.80
Subject: Re: [gpsd-dev] [PATCH] Improved resilience in gps_shm_close() in
 case it is called after an unsuccessful gps_shm_open()
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Thu, 04 Aug 2016 18:01:49 -0000


On Tue, 2 Aug 2016, Gary E. Miller wrote:
> On Tue, 02 Aug 2016 17:41:25 -0700
> Hal Murray <hmurray@megapathdsl.net> wrote:
>
> > I do a double take when I see it, but I smile as soon as I figure out
> > what's going on and that doesn't take long.  I figure I'll get used
> > to it before long, sooner if more people use it.
>
> IMHO, the double take is half the benefit.  Which does sort of
> diminish with familiarity.
>
> The first time it catches a typo you'll likely be sold.  How
> often have you spent hours looking for a bug like this:
>
> 	if ( my_pointer = NULL)

Not in a long time.  GCC has been giving warnings about that mistake for
at least a decade, so there's no longer much reason to write the
conditional in a way that reads less naturally (except, perhaps, to Yoda).

Fred Wright


From MAILER-DAEMON Fri Aug 05 20:21:18 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bVpMc-0004nT-Lv
	for mharc-gpsd-dev@gnu.org; Fri, 05 Aug 2016 20:21:18 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:36891)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bVpMa-0004mw-3g
	for gpsd-dev@nongnu.org; Fri, 05 Aug 2016 20:21:16 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bVpMW-0001ZZ-M9
	for gpsd-dev@nongnu.org; Fri, 05 Aug 2016 20:21:16 -0400
Received: from d.mail.sonic.net ([64.142.111.50]:35088)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bVpMW-0001Yj-D8
	for gpsd-dev@nongnu.org; Fri, 05 Aug 2016 20:21:12 -0400
Received: from localhost.localdomain
	(70-36-199-49.dsl.static.fusionbroadband.com [70.36.199.49])
	(authenticated bits=0)
	by d.mail.sonic.net (8.15.1/8.15.1) with ESMTPSA id u760Kqef001975
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); 
	Fri, 5 Aug 2016 17:21:07 -0700
From: Fred Wright <fw@fwright.net>
To: GPSD Developers List <gpsd-dev@nongnu.org>
Date: Fri,  5 Aug 2016 17:20:41 -0700
Message-Id: <20160806002041.20585-2-fw@fwright.net>
X-Mailer: git-send-email 2.9.2
In-Reply-To: <20160806002041.20585-1-fw@fwright.net>
References: <20160806002041.20585-1-fw@fwright.net>
X-Sonic-CAuth: UmFuZG9tSVYhCfbcrEercPXYjhxqxnXCXC3qdxn3f66aqZwWicWCZE7jgTaVlBu9wJHoTrzl68ZphSpNGinPMS1tMn1rQXFl
X-Sonic-ID: C;5nN3omtb5hGzHq/hcgQksw== M;wmk4q2tb5hGzHq/hcgQksw==
X-Sonic-Spam-Details: 0.0/5.0 by cerberusd
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.142.111.50
Subject: [gpsd-dev] [PATCH 2/2] Fixes compiler warning in ntpshmmon.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sat, 06 Aug 2016 00:21:17 -0000

Commit 2125024d47e9625d764464f7f8990610d8dcb39d added a call to
memset() without the needed include of string.h.

TESTED:
Now builds without the warning.
---
 ntpshmmon.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ntpshmmon.c b/ntpshmmon.c
index ec51d27..f810df8 100644
--- a/ntpshmmon.c
+++ b/ntpshmmon.c
@@ -6,6 +6,7 @@
  */
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <getopt.h>
 #include <limits.h>
 #include <unistd.h>
-- 
2.9.2



From MAILER-DAEMON Fri Aug 05 20:21:18 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bVpMc-0004nj-PZ
	for mharc-gpsd-dev@gnu.org; Fri, 05 Aug 2016 20:21:18 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:36890)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bVpMa-0004mu-3e
	for gpsd-dev@nongnu.org; Fri, 05 Aug 2016 20:21:17 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bVpMW-0001ZR-2I
	for gpsd-dev@nongnu.org; Fri, 05 Aug 2016 20:21:16 -0400
Received: from d.mail.sonic.net ([64.142.111.50]:35066)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bVpMV-0001Ya-Pq
	for gpsd-dev@nongnu.org; Fri, 05 Aug 2016 20:21:11 -0400
Received: from localhost.localdomain
	(70-36-199-49.dsl.static.fusionbroadband.com [70.36.199.49])
	(authenticated bits=0)
	by d.mail.sonic.net (8.15.1/8.15.1) with ESMTPSA id u760Kqee001975
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); 
	Fri, 5 Aug 2016 17:21:06 -0700
From: Fred Wright <fw@fwright.net>
To: GPSD Developers List <gpsd-dev@nongnu.org>
Date: Fri,  5 Aug 2016 17:20:40 -0700
Message-Id: <20160806002041.20585-1-fw@fwright.net>
X-Mailer: git-send-email 2.9.2
X-Sonic-CAuth: UmFuZG9tSVa1TVyVVaY7aE5Qnph/Y2en78Hpmv1cq2NqkOcJdheKIQO+hvohLBf0Wl/tl8/r7UBHN4xpUzrTf9QaJDvRNASo
X-Sonic-ID: C;5nN3omtb5hGzHq/hcgQksw== M;9FaDqmtb5hGzHq/hcgQksw==
X-Sonic-Spam-Details: 0.0/5.0 by cerberusd
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.142.111.50
Subject: [gpsd-dev] [PATCH 1/2] Moves Linux-only ppscheck program back to
 contrib/.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sat, 06 Aug 2016 00:21:17 -0000

This reverts commit 9a0920a90ca06fad897e4e6c25b773ac039eb3fa,
except for retaining the added man page source (now in contrib/).

Since the TIOCMIWAIT ioctl is Linux-only, and clock_gettime()
is also unavailable on some platforms, making ppscheck a "full-
fledged program" breaks the build on most non-Linux platforms.
Both of those things would need alternative implementations before
this program could be considered portable.
---
 .gitignore                           | 1 -
 SConstruct                           | 9 ++-------
 contrib/README                       | 6 ++++++
 ppscheck.c => contrib/ppscheck.c     | 0
 ppscheck.xml => contrib/ppscheck.xml | 0
 5 files changed, 8 insertions(+), 8 deletions(-)
 rename ppscheck.c => contrib/ppscheck.c (100%)
 rename ppscheck.xml => contrib/ppscheck.xml (100%)

diff --git a/.gitignore b/.gitignore
index 19ef772..2783e44 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,7 +12,6 @@ cgpxlogger
 gpspipe
 gps2udp
 ntpshmmon
-ppscheck
 *.exe
 # These are built from .in files
 jsongen.py
diff --git a/SConstruct b/SConstruct
index 213245e..2e88849 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1252,8 +1252,6 @@ cgps = env.Program('cgps', ['cgps.c'],
 ntpshmmon = env.Program('ntpshmmon', ['ntpshmmon.c'],
                         LIBS=['gps_static'], LIBPATH='.',
                         parse_flags=gpsflags)
-ppscheck = env.Program('ppscheck', ['ppscheck.c'],
-                        parse_flags=gpsflags)
 
 bin_binaries = []
 sbin_binaries = []
@@ -1263,7 +1261,7 @@ if env["gpsdclients"]:
     sbin_binaries += [gpsdctl]
     bin_binaries += [gpsdecode, gpsctl, gpspipe, gps2udp, gpxlogger, lcdgps]
 if env["timeservice"] or env["gpsdclients"]:
-    bin_binaries += [ntpshmmon, "ppscheck"]
+    bin_binaries += [ntpshmmon]
 if env["ncurses"]:
     if env["gpsdclients"]:
         bin_binaries += [cgps]
@@ -1552,7 +1550,6 @@ base_manpages = {
     "gpsdecode.1": "gpsdecode.xml",
     "srec.5": "srec.xml",
     "ntpshmmon.1": "ntpshmmon.xml",
-    "ppscheck.8": "ppscheck.xml",
     }
 python_manpages = {
     "gpsprof.1": "gpsprof.xml",
@@ -2063,7 +2060,6 @@ htmlpages = Split('''
     www/libgps.html
     www/libgpsmm.html
     www/ntpshmmon.html
-    www/ppscheck.html
     www/performance/performance.html
     www/replacing-nmea.html
     www/srec.html
@@ -2219,8 +2215,7 @@ else:
 
 # Tags for Emacs and vi
 misc_sources = ['cgps.c', 'gpsctl.c', 'gpsdctl.c', 'gpspipe.c',
-                'gps2udp.c', 'gpsdecode.c', 'gpxlogger.c', 'ntpshmmon.c',
-                'ppscheck.c']
+                'gps2udp.c', 'gpsdecode.c', 'gpxlogger.c', 'ntpshmmon.c']
 sources = libgpsd_sources + libgps_sources \
           + gpsd_sources + gpsmon_sources + misc_sources
 env.Command('TAGS', sources, ['etags ' + " ".join(sources)])
diff --git a/contrib/README b/contrib/README
index e069733..745d1d5 100644
--- a/contrib/README
+++ b/contrib/README
@@ -37,6 +37,12 @@ ntpoffset generate an estimate of your GPS's offset from a peerstats
 file.  For instructions on how to use this script, see the GPSD Time
 Service HOWTO in this distrubution, in the www/ subdirectory.
 
+ppscheck watches a specified serial device for changes in handshake lines
+CD, RI, and CTS by running ioctl(...., TIOCMIWAIT, ...) in a loop.  When it
+sees a state change it emits a timestamped line of output dumping the state
+of the handshake signals. It's useful for checking whether a device is
+emitting 1PPS.  There is troubleshooting advice in the header comment.
+  
 skyview.php is used to generate pictures of your skyview, and may be
 used to help determine if a given antenna placement is appropriate for
 some purpose. This tool take a count of samples to collect from GPSD, and
diff --git a/ppscheck.c b/contrib/ppscheck.c
similarity index 100%
rename from ppscheck.c
rename to contrib/ppscheck.c
diff --git a/ppscheck.xml b/contrib/ppscheck.xml
similarity index 100%
rename from ppscheck.xml
rename to contrib/ppscheck.xml
-- 
2.9.2



From MAILER-DAEMON Fri Aug 05 20:30:56 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bVpVw-0007O5-0l
	for mharc-gpsd-dev@gnu.org; Fri, 05 Aug 2016 20:30:56 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:38129)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bVpVu-0007Ns-9u
	for gpsd-dev@nongnu.org; Fri, 05 Aug 2016 20:30:55 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bVpVr-0003KU-TB
	for gpsd-dev@nongnu.org; Fri, 05 Aug 2016 20:30:53 -0400
Received: from rellim.com ([2001:470:e815::19]:38963 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bVpVr-0003Io-Ea
	for gpsd-dev@nongnu.org; Fri, 05 Aug 2016 20:30:51 -0400
Received: from spidey.rellim.com (rellim.com [IPv6:2001:470:e815:0:0:0:0:19])
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u760UTB1004161
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Fri, 5 Aug 2016 17:30:34 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u760UTB1004161
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1470443435; bh=hEXKCXM+NPUsiaaHlF9684p/Pz2oSKz7qm0afxEGrQk=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=l+cltIQQ7/e220Q1H68q1kBvdfK3Johu09+RBxNxaYwVwAUQD+Ugc5czGIkBB3kJh
	mWr2ShXdTryb122oq2nx9Z8C5VBUyscuEDL9nJNEoo1t9E+3CvMrnNsHkB3hAzhweJ
	Sok3VVEQKN5idm0QfrgistGHBlKnGS7ASBhblcvQ=
Date: Fri, 5 Aug 2016 17:30:29 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Fred Wright <fw@fwright.net>
Cc: GPSD Developers List <gpsd-dev@nongnu.org>
Message-ID: <20160805173029.1b154051@spidey.rellim.com>
In-Reply-To: <20160806002041.20585-1-fw@fwright.net>
References: <20160806002041.20585-1-fw@fwright.net>
Organization: Rellim
X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/zp2uGqRlM5G2Uaj=pd2JFCL";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Fri, 05 Aug 2016 17:30:35 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] [PATCH 1/2] Moves Linux-only ppscheck program back
 to contrib/.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sat, 06 Aug 2016 00:30:55 -0000

--Sig_/zp2uGqRlM5G2Uaj=pd2JFCL
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Fred!

It is too important to just remove.  Got a patch that selectively compiles
only on Linux?  Or, better yet, a patch to make it work on more OS?

On Fri,  5 Aug 2016 17:20:40 -0700
Fred Wright <fw@fwright.net> wrote:

> This reverts commit 9a0920a90ca06fad897e4e6c25b773ac039eb3fa,
> except for retaining the added man page source (now in contrib/).
>=20
> Since the TIOCMIWAIT ioctl is Linux-only, and clock_gettime()
> is also unavailable on some platforms, making ppscheck a "full-
> fledged program" breaks the build on most non-Linux platforms.
> Both of those things would need alternative implementations before
> this program could be considered portable.
> ---
>  .gitignore                           | 1 -
>  SConstruct                           | 9 ++-------
>  contrib/README                       | 6 ++++++
>  ppscheck.c =3D> contrib/ppscheck.c     | 0
>  ppscheck.xml =3D> contrib/ppscheck.xml | 0
>  5 files changed, 8 insertions(+), 8 deletions(-)
>  rename ppscheck.c =3D> contrib/ppscheck.c (100%)
>  rename ppscheck.xml =3D> contrib/ppscheck.xml (100%)
>=20
> diff --git a/.gitignore b/.gitignore
> index 19ef772..2783e44 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -12,7 +12,6 @@ cgpxlogger
>  gpspipe
>  gps2udp
>  ntpshmmon
> -ppscheck
>  *.exe
>  # These are built from .in files
>  jsongen.py
> diff --git a/SConstruct b/SConstruct
> index 213245e..2e88849 100644
> --- a/SConstruct
> +++ b/SConstruct
> @@ -1252,8 +1252,6 @@ cgps =3D env.Program('cgps', ['cgps.c'],
>  ntpshmmon =3D env.Program('ntpshmmon', ['ntpshmmon.c'],
>                          LIBS=3D['gps_static'], LIBPATH=3D'.',
>                          parse_flags=3Dgpsflags)
> -ppscheck =3D env.Program('ppscheck', ['ppscheck.c'],
> -                        parse_flags=3Dgpsflags)
> =20
>  bin_binaries =3D []
>  sbin_binaries =3D []
> @@ -1263,7 +1261,7 @@ if env["gpsdclients"]:
>      sbin_binaries +=3D [gpsdctl]
>      bin_binaries +=3D [gpsdecode, gpsctl, gpspipe, gps2udp, gpxlogger,
> lcdgps] if env["timeservice"] or env["gpsdclients"]:
> -    bin_binaries +=3D [ntpshmmon, "ppscheck"]
> +    bin_binaries +=3D [ntpshmmon]
>  if env["ncurses"]:
>      if env["gpsdclients"]:
>          bin_binaries +=3D [cgps]
> @@ -1552,7 +1550,6 @@ base_manpages =3D {
>      "gpsdecode.1": "gpsdecode.xml",
>      "srec.5": "srec.xml",
>      "ntpshmmon.1": "ntpshmmon.xml",
> -    "ppscheck.8": "ppscheck.xml",
>      }
>  python_manpages =3D {
>      "gpsprof.1": "gpsprof.xml",
> @@ -2063,7 +2060,6 @@ htmlpages =3D Split('''
>      www/libgps.html
>      www/libgpsmm.html
>      www/ntpshmmon.html
> -    www/ppscheck.html
>      www/performance/performance.html
>      www/replacing-nmea.html
>      www/srec.html
> @@ -2219,8 +2215,7 @@ else:
> =20
>  # Tags for Emacs and vi
>  misc_sources =3D ['cgps.c', 'gpsctl.c', 'gpsdctl.c', 'gpspipe.c',
> -                'gps2udp.c', 'gpsdecode.c', 'gpxlogger.c',
> 'ntpshmmon.c',
> -                'ppscheck.c']
> +                'gps2udp.c', 'gpsdecode.c', 'gpxlogger.c',
> 'ntpshmmon.c'] sources =3D libgpsd_sources + libgps_sources \
>            + gpsd_sources + gpsmon_sources + misc_sources
>  env.Command('TAGS', sources, ['etags ' + " ".join(sources)])
> diff --git a/contrib/README b/contrib/README
> index e069733..745d1d5 100644
> --- a/contrib/README
> +++ b/contrib/README
> @@ -37,6 +37,12 @@ ntpoffset generate an estimate of your GPS's
> offset from a peerstats file.  For instructions on how to use this
> script, see the GPSD Time Service HOWTO in this distrubution, in the
> www/ subdirectory.=20
> +ppscheck watches a specified serial device for changes in handshake
> lines +CD, RI, and CTS by running ioctl(...., TIOCMIWAIT, ...) in a
> loop.  When it +sees a state change it emits a timestamped line of
> output dumping the state +of the handshake signals. It's useful for
> checking whether a device is +emitting 1PPS.  There is
> troubleshooting advice in the header comment.
> + =20
>  skyview.php is used to generate pictures of your skyview, and may be
>  used to help determine if a given antenna placement is appropriate
> for some purpose. This tool take a count of samples to collect from
> GPSD, and diff --git a/ppscheck.c b/contrib/ppscheck.c
> similarity index 100%
> rename from ppscheck.c
> rename to contrib/ppscheck.c
> diff --git a/ppscheck.xml b/contrib/ppscheck.xml
> similarity index 100%
> rename from ppscheck.xml
> rename to contrib/ppscheck.xml




RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/zp2uGqRlM5G2Uaj=pd2JFCL
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXpS+lAAoJEA0O2UlB0XnYJzEH/ROkGo20fUiGJORpk7nyFhQB
AoD/cF2MAwneyrNtnNE2qHSSeFVv45tXj+Q7c9ZIxtKpmDFCUzLI5vvf0kFFex3q
Cmgkdr76paGF7W9ItaBtTdYbDOquEPwdK6qNa9PS3MfwRetMAIrRQdkjH6X0ESIp
Mf8vOjRknSpviy+Z9ery5yPMOgDnm2LvO5WUfan8Q87c0ctrxhVCLK6E+IwHB4TV
lfu2T3LBMZP6htEt9QBFva+HjpMHw/M5CnLvxduGXQbhPxOce0xQbu9dYhhseKoJ
us2u3kyWUm9QRcDry1rQ84vaNiaA9jt8Wu97Mgad5OGF16F9+OEDwJCyNBS+V3g=
=TKC8
-----END PGP SIGNATURE-----

--Sig_/zp2uGqRlM5G2Uaj=pd2JFCL--


From MAILER-DAEMON Sat Aug 06 04:52:48 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bVxLc-0004k2-CQ
	for mharc-gpsd-dev@gnu.org; Sat, 06 Aug 2016 04:52:48 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:60742)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bVxLa-0004jr-Of
	for gpsd-dev@nongnu.org; Sat, 06 Aug 2016 04:52:47 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bVxLX-0000tz-Ci
	for gpsd-dev@nongnu.org; Sat, 06 Aug 2016 04:52:46 -0400
Received: from ip-64-139-1-69.sjc.megapath.net ([64.139.1.69]:57257)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bVxLX-0000sY-4q
	for gpsd-dev@nongnu.org; Sat, 06 Aug 2016 04:52:43 -0400
Received: from shuksan (localhost [127.0.0.1])
	by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id 7C201406057; 
	Sat,  6 Aug 2016 01:52:30 -0700 (PDT)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: "Gary E. Miller" <gem@rellim.com>
cc: GPSD Developers List <gpsd-dev@nongnu.org>,
	hmurray@megapathdsl.net
From: Hal Murray <hmurray@megapathdsl.net>
In-Reply-To: Message from "Gary E. Miller" <gem@rellim.com> of "Fri,
	05 Aug 2016 17:30:29 PDT." <20160805173029.1b154051@spidey.rellim.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Sat, 06 Aug 2016 01:52:30 -0700
Message-Id: <20160806085230.7C201406057@ip-64-139-1-69.sjc.megapath.net>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.139.1.69
Subject: Re: [gpsd-dev] [PATCH 1/2] Moves Linux-only ppscheck program back
 to contrib/.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sat, 06 Aug 2016 08:52:47 -0000


gem@rellim.com said:
> It is too important to just remove.  Got a patch that selectively compiles
> only on Linux?  Or, better yet, a patch to make it work on more OS? 

The current setup is broken on NetBSD and FreeBSD.

ppscheck.c:107:16: error: use of undeclared identifier 'TIOCMIWAIT'
        if (ioctl(fd, TIOCMIWAIT, TIOCM_CD|TIOCM_DSR|TIOCM_RI|TIOCM_CTS) != 
0) {


-- 
These are my opinions.  I hate spam.





From MAILER-DAEMON Sat Aug 06 05:09:54 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bVxcA-0003CT-7T
	for mharc-gpsd-dev@gnu.org; Sat, 06 Aug 2016 05:09:54 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:34531)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bVxc7-0003CM-Ri
	for gpsd-dev@nongnu.org; Sat, 06 Aug 2016 05:09:53 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bVxc3-0003yu-Jm
	for gpsd-dev@nongnu.org; Sat, 06 Aug 2016 05:09:50 -0400
Received: from ip-64-139-1-69.sjc.megapath.net ([64.139.1.69]:57771)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bVxc3-0003ye-5P
	for gpsd-dev@nongnu.org; Sat, 06 Aug 2016 05:09:47 -0400
Received: from shuksan (localhost [127.0.0.1])
	by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id DFC53406057; 
	Sat,  6 Aug 2016 02:09:44 -0700 (PDT)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: gpsd-dev@nongnu.org
From: Hal Murray <hmurray@megapathdsl.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Sat, 06 Aug 2016 02:09:44 -0700
Message-Id: <20160806090944.DFC53406057@ip-64-139-1-69.sjc.megapath.net>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.139.1.69
Subject: [gpsd-dev] Lots of warnings
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sat, 06 Aug 2016 09:09:53 -0000


I thought gpsd was pretty clean, but I guess nobody has been looking 
carefully.

Here is my collection from various systems...  If it matters, I'll dig out 
the version of gcc and the distro.

bits.c:40:19: warning: left shift of negative value [-Wshift-negative-value]
bits.c:71:15: warning: left shift of negative value [-Wshift-negative-value]
bits.c:40:19: warning: left shift of negative value [-Wshift-negative-value]
bits.c:71:15: warning: left shift of negative value [-Wshift-negative-value]
ppscheck.c:58:1: warning: 'static' is not at beginning of declaration 
[-Wold-style-declaration]
ppscheck.c:65:6: warning: no previous prototype for 'usage' 
[-Wmissing-prototypes]
ppscheck.c:118:6: warning: format '%10ld' expects type 'long int', but 
argument 3 has type 'time_t'
ppscheck.c:129:1: warning: control reaches end of non-void function 
[-Wreturn-type]
gps2udp.c:302:18: warning: array subscript is above array bounds
ntpshmmon.c:34:5: warning: implicit declaration of function 'memset'
ntpshmmon.c:34:5: warning: incompatible implicit declaration of built-in 
function 'memset'
timespec_str.c:48:12: warning: absolute value function 'labs' given an 
argument of type 'const time_t' (aka 'const long long') but has parameter of 
type 'long' which may cause truncation of value [-Wabsolute-value]
driver_nmea0183.c:1255:10: warning: taking the absolute value of unsigned 
type 'unsigned int' has no effect [-Wabsolute-value]

gpsd_json.c:1996:13: warning: this 'else' clause does not guard... 
[-Wmisleading
-indentation]

cc1plus: warning: command line option "-Wmissing-declarations" is valid for 
C/ObjC but not for C++

A blizzard from FreeBSD 9.3-RELEASE-p33 i386

ais_json.i:324: warning: initialized field overwritten
ais_json.i:324: warning: (near initialization for 'json_ais6_fid25[13].addr.ar
ra
y')
ais_json.i:324: warning: initialized field overwritten
ais_json.i:324: warning: (near initialization for 'json_ais6_fid25[13].addr')
ais_json.i:324: warning: initialized field overwritten
ais_json.i:324: warning: (near initialization for 'json_ais6_fid25[13].addr.ar
ra
y.arr.objects')
ais_json.i:324: warning: initialized field overwritten
ais_json.i:324: warning: (near initialization for 'json_ais6_fid25[13].addr.ar
ra
y.arr')
ais_json.i:324: warning: initialized field overwritten
ais_json.i:324: warning: (near initialization for 'json_ais6_fid25[13].addr.ar
ra
y')

libgps_json.c:146: warning: initialized field overwritten
libgps_json.c:146: warning: (near initialization for 
'json_attrs_2[11].addr.arra
y')
libgps_json.c:146: warning: initialized field overwritten
libgps_json.c:146: warning: (near initialization for 'json_attrs_2[11].addr')
libgps_json.c:146: warning: initialized field overwritten
libgps_json.c:146: warning: (near initialization for 
'json_attrs_2[11].addr.arra
y.arr.objects')
libgps_json.c:146: warning: initialized field overwritten

rtcm2_json.c:62: warning: initialized field overwritten
rtcm2_json.c:62: warning: (near initialization for 'json_rtcm1[8].addr.array')
rtcm2_json.c:62: warning: initialized field overwritten
rtcm2_json.c:62: warning: (near initialization for 'json_rtcm1[8].addr')
rtcm2_json.c:62: warning: initialized field overwritten
rtcm2_json.c:62: warning: (near initialization for 
'json_rtcm1[8].addr.array.arr
.objects')
rtcm2_json.c:62: warning: initialized field overwritten

ais_json.i:324: warning: initialized field overwritten
ais_json.i:324: warning: (near initialization for 'json_ais6_fid25[13].addr.ar
ra
y')
ais_json.i:324: warning: initialized field overwritten
ais_json.i:324: warning: (near initialization for 'json_ais6_fid25[13].addr')
ais_json.i:324: warning: initialized field overwritten
ais_json.i:324: warning: (near initialization for 'json_ais6_fid25[13].addr.ar
ra
y.arr.objects')
ais_json.i:324: warning: initialized field overwritten

libgps_json.c:146: warning: initialized field overwritten
libgps_json.c:146: warning: (near initialization for 
'json_attrs_2[11].addr.arra
y')
libgps_json.c:146: warning: initialized field overwritten
libgps_json.c:146: warning: (near initialization for 'json_attrs_2[11].addr')
libgps_json.c:146: warning: initialized field overwritten
libgps_json.c:146: warning: (near initialization for 
'json_attrs_2[11].addr.arra
y.arr.objects')
libgps_json.c:146: warning: initialized field overwritten

and a ffew more



-- 
These are my opinions.  I hate spam.





From MAILER-DAEMON Sat Aug 06 12:47:26 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bW4kw-0002Qt-GV
	for mharc-gpsd-dev@gnu.org; Sat, 06 Aug 2016 12:47:26 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:38210)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bW4kr-0002Pl-MG
	for gpsd-dev@nongnu.org; Sat, 06 Aug 2016 12:47:25 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bW4ko-0005X7-HY
	for gpsd-dev@nongnu.org; Sat, 06 Aug 2016 12:47:21 -0400
Received: from d.mail.sonic.net ([64.142.111.50]:44386)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bW4ko-0005WT-89
	for gpsd-dev@nongnu.org; Sat, 06 Aug 2016 12:47:18 -0400
Received: from newshell.sonic.net (bolt.sonic.net [208.201.242.19])
	by d.mail.sonic.net (8.15.1/8.15.1) with ESMTPS id u76GlEsv011438
	(version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <gpsd-dev@nongnu.org>; Sat, 6 Aug 2016 09:47:15 -0700
Received: from bolt.sonic.net (localhost.localdomain [127.0.0.1])
	by newshell.sonic.net (8.13.6/8.12.1) with ESMTP id u76GlE9Z030549
	for <gpsd-dev@nongnu.org>; Sat, 6 Aug 2016 09:47:14 -0700
Received: from localhost (fw@localhost)
	by bolt.sonic.net (8.13.6/8.12.1/Submit) with ESMTP id u76GlDq4030529
	for <gpsd-dev@nongnu.org>; Sat, 6 Aug 2016 09:47:14 -0700
X-Authentication-Warning: bolt.sonic.net: fw owned process doing -bs
Date: Sat, 6 Aug 2016 09:47:13 -0700 (PDT)
From: Fred Wright <fw@fwright.net>
X-X-Sender: fw@bolt.sonic.net
To: GPSD Developers List <gpsd-dev@nongnu.org>
In-Reply-To: <20160805173029.1b154051@spidey.rellim.com>
Message-ID: <Pine.LNX.4.58L1X.1608060858220.872@bolt.sonic.net>
References: <20160806002041.20585-1-fw@fwright.net>
	<20160805173029.1b154051@spidey.rellim.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sonic-CAuth: UmFuZG9tSVYxgKmfa9r9MhPlrWBrgB1yNcNizItzpseqUc8IZbNN9RBLFGgOg7MasGyv3OxKD23iLdqXQvD3VypaVMZ4G+KY
X-Sonic-ID: C;vEPgbfVb5hGYSa/hcgQksw== M;UIb/bfVb5hGYSa/hcgQksw==
X-Sonic-Spam-Details: -1.5/5.0 by cerberusd
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.142.111.50
Subject: Re: [gpsd-dev] [PATCH 1/2] Moves Linux-only ppscheck program back
 to contrib/.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sat, 06 Aug 2016 16:47:25 -0000


On Fri, 5 Aug 2016, Gary E. Miller wrote:

> It is too important to just remove.

This patch doesn't "remove" it; it just *moves* it (back to where it was).

> Got a patch that selectively compiles only on Linux?  Or, better yet, a
> patch to make it work on more OS?

Those things are possible, but with more work and hence more time.  The
priority should be unbreaking the build ASAP.  Breaking all non-Linux
builds just so that a small subset of Linux users have a slightly easier
way to run a program that they can still run when it's in contrib/ doesn't
seem like a good tradeoff.

Software development should obey the Hippocratic oath:  "First do no
harm."

This issue might be partly Eric's fault, due to the following highly
misleading comment in ppscheck.c:

 * This code requires only ANSI/POSIX. If it doesn't compile and run
 * on your Unix there is something very wrong with your Unix.

In the case of clock_gettime(), I believe that that function is *now* part
of POSIX, but it's fairly recent and not necessarily present in all
"POSIX-compliant" OSes.  In fact, OSX is one of the few OSes that's
actually passed the official POSIX compliance test suite, and yet it lacks
that call.  Even in Linux, only fairly recent versions of libc include it;
otherwise you get link errors if you don't include "-lrt".

It's not even clear why clock_gettime was used here, since its only value
over the much more portable gettimeofday() is the nanosecond resolution,
and it's extremely unlikely that you're going to get sub-microsecond
timing accuracy without kernel timestamping, anyway.  However, gpsd
already has clock_gettime.c to handle the portability issue, so it could
be applied here as well.

TIOCMIWAIT is another story.  AFAICT it doesn't exist on any platform
other than Linux, and ppsthread.c seems to have quite a bit of code
associated with working around its unavailability.  In hindsight, it might
have been better to make the code in ppsthread.c usable in a standalone
program, which would not only avoid maintaining two separate sets of PPS
code, but also ensure that any bugs in the PPS handling behaved
consistently between the test program and gpsd itself.  But I suspect that
the current code isn't amenable to that approach.

There's also the matter of testing.  It requires a serial adapter with a
full complement of modem-control signals, and driver support in all
supported OSes.  It also requires a GPS receiver lame enough to use a
modem-control line for PPS, or some other serial-line PPS test setup.

Meanwhile, let's just fix the build, and worry about convenience of
building ppscheck later.  Someone incapable of cd'ing to contrib/ and
running "scons ppscheck" is probably a lost cause, anyway. :-)

BTW, my second patch is unrelated.

Fred Wright


From MAILER-DAEMON Sat Aug 06 12:52:38 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bW4px-0003gV-TH
	for mharc-gpsd-dev@gnu.org; Sat, 06 Aug 2016 12:52:37 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:38793)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bW4pw-0003gA-3L
	for gpsd-dev@nongnu.org; Sat, 06 Aug 2016 12:52:36 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bW4pr-0006nS-VH
	for gpsd-dev@nongnu.org; Sat, 06 Aug 2016 12:52:35 -0400
Received: from d.mail.sonic.net ([64.142.111.50]:47226)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bW4pr-0006nO-LM
	for gpsd-dev@nongnu.org; Sat, 06 Aug 2016 12:52:31 -0400
Received: from newshell.sonic.net (bolt.sonic.net [208.201.242.19])
	by d.mail.sonic.net (8.15.1/8.15.1) with ESMTPS id u76GqT3A015710
	(version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <gpsd-dev@nongnu.org>; Sat, 6 Aug 2016 09:52:29 -0700
Received: from bolt.sonic.net (localhost.localdomain [127.0.0.1])
	by newshell.sonic.net (8.13.6/8.12.1) with ESMTP id u76GqTbG000572
	for <gpsd-dev@nongnu.org>; Sat, 6 Aug 2016 09:52:29 -0700
Received: from localhost (fw@localhost)
	by bolt.sonic.net (8.13.6/8.12.1/Submit) with ESMTP id u76GqTKo000568
	for <gpsd-dev@nongnu.org>; Sat, 6 Aug 2016 09:52:29 -0700
X-Authentication-Warning: bolt.sonic.net: fw owned process doing -bs
Date: Sat, 6 Aug 2016 09:52:29 -0700 (PDT)
From: Fred Wright <fw@fwright.net>
X-X-Sender: fw@bolt.sonic.net
To: GPSD Developers List <gpsd-dev@nongnu.org>
In-Reply-To: <20160806090944.DFC53406057@ip-64-139-1-69.sjc.megapath.net>
Message-ID: <Pine.LNX.4.58L1X.1608060947480.872@bolt.sonic.net>
References: <20160806090944.DFC53406057@ip-64-139-1-69.sjc.megapath.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sonic-CAuth: UmFuZG9tSVbqhL6ZqBSyECd+DsVTnSD+IkZ/KEWehOsrGWokOwVDIUr45KaE4f+uex4NC4HHkNLNsE+L2TMx6I74jTvRCANd
X-Sonic-ID: C;nro0KfZb5hGW06/hcgQksw== M;9MRRKfZb5hGW06/hcgQksw==
X-Sonic-Spam-Details: -1.5/5.0 by cerberusd
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.142.111.50
Subject: Re: [gpsd-dev] Lots of warnings
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sat, 06 Aug 2016 16:52:37 -0000


On Sat, 6 Aug 2016, Hal Murray wrote:

> I thought gpsd was pretty clean, but I guess nobody has been looking
> carefully.
[...]

Part of the problem is that newer compiler versions often add new
warnings, so sometimes something that used to build clean no longer does
so.  I'm a big fan of getting rid of warnings (unlike a lot of people in
the FOSS community), especially since they occasionally uncover real
bugs, but it can take real work to keep up.

Fred Wright


From MAILER-DAEMON Mon Aug 08 18:59:52 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bWtWS-0007A1-12
	for mharc-gpsd-dev@gnu.org; Mon, 08 Aug 2016 18:59:52 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:47457)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bWtWP-00079v-Iq
	for gpsd-dev@nongnu.org; Mon, 08 Aug 2016 18:59:50 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bWtWO-0005un-CP
	for gpsd-dev@nongnu.org; Mon, 08 Aug 2016 18:59:49 -0400
Received: from rellim.com ([2001:470:e815::19]:60892 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bWtWO-0005ud-4H
	for gpsd-dev@nongnu.org; Mon, 08 Aug 2016 18:59:48 -0400
Received: from spidey.rellim.com (dave.rellim.com
	[IPv6:2001:470:e815:0:0:0:0:19] (may be forged))
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u78MxaNQ017109
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Mon, 8 Aug 2016 15:59:42 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u78MxaNQ017109
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1470697183; bh=Q3cIpcmzUXiUBzlU6xUbN7EPcpXHdGDViReHiTsDHtY=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=L9Mz/ND/QZRNltDFh5/Bj5BHlcSKF//vdR5XMoPrSP+40vfO1e7Aab3KNld828kGy
	rwVHo/77G9tDW4+1kpdBn/fhRP6cP7qRviH8o/w0gouEXWTXR/BZ0WT6/TUaL+gcq4
	9ujPNEnZbUTUuLHUKC8zOaKmYnL3uGvaVKCw/5Q0=
Date: Mon, 8 Aug 2016 15:59:36 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Fred Wright <fw@fwright.net>
Cc: GPSD Developers List <gpsd-dev@nongnu.org>
Message-ID: <20160808155936.732a57d3@spidey.rellim.com>
In-Reply-To: <Pine.LNX.4.58L1X.1608060858220.872@bolt.sonic.net>
References: <20160806002041.20585-1-fw@fwright.net>
	<20160805173029.1b154051@spidey.rellim.com>
	<Pine.LNX.4.58L1X.1608060858220.872@bolt.sonic.net>
Organization: Rellim
X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/7Bf+Q0lSVt5K0mRirzD/50C";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Mon, 08 Aug 2016 15:59:43 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] [PATCH 1/2] Moves Linux-only ppscheck program back
 to contrib/.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Aug 2016 22:59:50 -0000

--Sig_/7Bf+Q0lSVt5K0mRirzD/50C
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Fred!

On Sat, 6 Aug 2016 09:47:13 -0700 (PDT)
Fred Wright <fw@fwright.net> wrote:

> On Fri, 5 Aug 2016, Gary E. Miller wrote:
>=20
> > It is too important to just remove. =20
>=20
> This patch doesn't "remove" it; it just *moves* it (back to where it
> was).

If you thin of a move as a copy/delete then we are talking the same thing.

> > Got a patch that selectively compiles only on Linux?  Or, better
> > yet, a patch to make it work on more OS? =20
>=20
> Those things are possible, but with more work and hence more time.

Yup, and I'm gonna spend the time, when I get it, if no one beats me to it.

I'm sure you could make a patch in less time that your email took to write.

> The priority should be unbreaking the build ASAP.

Yup.  But not by trading one breakage for another.

> Breaking all
> non-Linux builds just so that a small subset of Linux users have a
> slightly easier way to run a program that they can still run when
> it's in contrib/ doesn't seem like a good tradeoff.

I can;t test everthing, and I'm pretty sure I did not break all non-Linux
builds.

> Software development should obey the Hippocratic oath:  "First do no
> harm."

Which only applies after you know what may cause harm.

> This issue might be partly Eric's fault, due to the following highly
> misleading comment in ppscheck.c:
>=20
>  * This code requires only ANSI/POSIX. If it doesn't compile and run
>  * on your Unix there is something very wrong with your Unix.

Got proof that is not true?  If so, I'll take a patch to fix it.

> In the case of clock_gettime(), I believe that=20

Belief is not a proof.  And how about we worry about making it
portable instead of worrying about water over the dam.

> It's not even clear why clock_gettime was used here, since its only
> value over the much more portable gettimeofday() is the nanosecond
> resolution, and it's extremely unlikely that you're going to get
> sub-microsecond timing accuracy without kernel timestamping, anyway.

I'll take a patch.

> There's also the matter of testing.  It requires a serial adapter
> with a full complement of modem-control signals, and driver support
> in all supported OSes.

Which is sort that point?  To test the modem control signals!

> Meanwhile, let's just fix the build, and worry about convenience of
> building ppscheck later.

I'll take patches, as long as the do not break the new functionality
where it is currently working.

> BTW, my second patch is unrelated.

I've been out for 3 days, prolly gonna be out another day, so nothing
gets patched until I get caught up.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/7Bf+Q0lSVt5K0mRirzD/50C
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXqQ7YAAoJEA0O2UlB0XnYC3EH/2w0PNNpNoVqMO3nRQcej9ou
5ed89z8+hOfAs1bNh5zN+eug7RaqouVEzSwxVKMrK1f5y3y6E/4yzkH1jR1SoCsq
/lKNBnxmpBZ31im784wtA+eUY4d37yheMk4Gy3ZRnVUjQzlwzXjSNWI8HoLbBA7W
27JHKF5R23IyyXiGQfpuxTGq2Uz4zmpEwjDU251agPjUbyeafTMbYctPBYkw7N3b
50KN2fz8T73i0poop9DFqf0m4N5Zy8a5E2z0bg2sX8Cw0PsoOxVVCVsIwYU3kr0i
fadIgLQxZh29f3v8kiZjJ167rkHslA4T+Wj47HgOUv2tRzesJfhQAUJts2npAoM=
=OcUr
-----END PGP SIGNATURE-----

--Sig_/7Bf+Q0lSVt5K0mRirzD/50C--


From MAILER-DAEMON Mon Aug 08 19:39:51 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bWu99-0001qJ-IH
	for mharc-gpsd-dev@gnu.org; Mon, 08 Aug 2016 19:39:51 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:54742)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <steven.f.lang@gmail.com>) id 1bWu96-0001qB-GN
	for gpsd-dev@nongnu.org; Mon, 08 Aug 2016 19:39:49 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <steven.f.lang@gmail.com>) id 1bWu95-00052z-1h
	for gpsd-dev@nongnu.org; Mon, 08 Aug 2016 19:39:48 -0400
Received: from mail-oi0-x235.google.com ([2607:f8b0:4003:c06::235]:32906)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <steven.f.lang@gmail.com>) id 1bWu94-00052v-Rt
	for gpsd-dev@nongnu.org; Mon, 08 Aug 2016 19:39:46 -0400
Received: by mail-oi0-x235.google.com with SMTP id c15so34919677oig.0
	for <gpsd-dev@nongnu.org>; Mon, 08 Aug 2016 16:39:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to; 
	bh=9if0qJfuSDzaHtv+8EI3PVVsViXj4naHFOE/tvAYvN0=;
	b=tal/n/Vh9ZJW9XbTCnhin6UnuyxZlfvpLXe+Fz2gf8UcpkMYTkMrQPVTdSeN/buOch
	+GQXr/DRTYk2GBrGJ96dThjI3wQtZFo0IgNW2t4id9IvlCFS9oxDtH6zUXi8TDivp3p3
	c6QqM/7AkAGvkFpg4Y6MtnabTznT+KzDtoJKzbjbh7sgf3BI7YyXq8YJ+vKGsgBl8kkg
	SyChQCcxubPesnN/HiG6awHiVdfv3QeGtWN2ft2eSyYzthAFEynnW39zaOIsZBTtRizC
	dqBV0g89ck2qLeI7hiq2+c4cZGBSL0nuugRqCLGUHQxPM2xryhom5lsGb/Yyjv6UHETA
	3ZEA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20130820;
	h=x-gm-message-state:mime-version:in-reply-to:references:from:date
	:message-id:subject:to;
	bh=9if0qJfuSDzaHtv+8EI3PVVsViXj4naHFOE/tvAYvN0=;
	b=KsNXzMcCoQMNlZSmoKDnxpg6Jn+Tpd664Y/x9hIZ0dy6xKFMVnWXl0aVh+6Z1u9oII
	Z7k8zZDByIgRF33TDr/bUU/7LQBl8NIFLdO8gMhsFl/MCwTqXYr2H9WEo0oj2C83OamQ
	q2Lvm7RKICUCAWDIfYB0+GXrXcXcKXYRvRtGWFnGr1aeO2CihB8MEcQoGUy1FQSNWfzT
	HXFqchMIPaDlDNgQyjjqdsQ/OFlNDBtKHX23oCuyLZzuYhMrjkhweJZCwMG5tupcwnHn
	kQF67P7+b5r+Wf0jj4b5NvJe51hDFi7RJMxwd3MVec8Lp65euYZxpVOhWCgWHoGZcDoZ
	vTNw==
X-Gm-Message-State: AEkoouuILcP6RrLodLjoYqnUdXrKhY3sgsmrL6HHiOanSQTE6ZmN3prHS84lC2MzQcgNMO8CJaDb8EGVBdE1RQ==
X-Received: by 10.157.49.25 with SMTP id e25mr61017647otc.38.1470699585828;
	Mon, 08 Aug 2016 16:39:45 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.202.108.71 with HTTP; Mon, 8 Aug 2016 16:39:45 -0700 (PDT)
In-Reply-To: <CAPHg4FpnMPuYPVPArVF9C9a3+HJJVmsAkyqmPFZexdvY+fCumg@mail.gmail.com>
References: <CAPHg4FpnMiEGgKKSnqPFo6PFNOLwcrLf8Hv24c+OEX7sn_svjA@mail.gmail.com>
	<20160713114048.025c6e00@spidey.rellim.com>
	<CAPHg4FpnMPuYPVPArVF9C9a3+HJJVmsAkyqmPFZexdvY+fCumg@mail.gmail.com>
From: Steve Lang <steven.f.lang@gmail.com>
Date: Mon, 8 Aug 2016 18:39:45 -0500
Message-ID: <CAPHg4Fp_ho8qi_H6c3_oo2QNNgBxn_hQbXfwD6GCEa330=idDQ@mail.gmail.com>
To: "Gary E. Miller" <gem@rellim.com>, gpsd-dev@nongnu.org
Content-Type: text/plain; charset=UTF-8
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2607:f8b0:4003:c06::235
Subject: Re: [gpsd-dev] Need p/d help with gpsd and or gps HW - no response
 after gps polling
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Aug 2016 23:39:49 -0000

We found out what was causing the problem. It appears to be user
error. User was executing:

gpsmon /dev/gpsd0 while gpsd was running.

ls -al /dev/gpsd0
/dev/gpsd0 -> ttyAMA0

I informed user that 2 programs can not access the same serial port at
the same time.

Once user stopped doing this the problem stopped,

Regards,

--Steve

On Wed, Jul 13, 2016 at 10:30 PM, Steve Lang <steven.f.lang@gmail.com> wrote:
> On Wed, Jul 13, 2016 at 1:40 PM, Gary E. Miller <gem@rellim.com> wrote:
>> Yo Steve!
>>
>> On Tue, 12 Jul 2016 22:47:19 -0500
>> Steve Lang <steven.f.lang@gmail.com> wrote:
>>
>>> HW Config: Pi 3, Adafruit GPS hat, and LNA
>>> SW Config: latest Jessi / clockmaker install script abd SW updates to
>>> support installing the following scons options:
>>
>> OK.  What kernel version?  What did you do to get systemd out of the way?
>
> Kernel version is 4.4.13-v7+
>
> I'll take a look at systemd. The service scripts were created by
> clockmaker and appear to be in-order but will take a look around at
> the common problems related to this in the forums.
>
>> I suspect that is your problem.  Systemd has been sabotaging many people.
>
> Great, I'll look into this.
>
>>
>> I have the same config, except I use Gentoo stable and kernel
>> 4.4.14-v7+.  No problems for me.  You can see how it works well here:
>>
>>     https://pi3.rellim.com/week/
>
> I have a working one also. I built 2 Pi3 GPS's. The difference between
> the 2 are physical location and the gps hat used. Same exact software
> setup though. The working hat is the uptronics hat where the poorly
> working one is the adafruit.
>
>>> scons timeservice=yes nmea0183=yes fixed_port_speed=9600
>>> fixed_stop_bits=1 xgps=yes leapfetch=yes qt=yes gpsdclients=yes
>>
>> The Adafruit is a mediatek chip, so you should also enable the
>> "mtk3301" support.
>>
>
> Fantastic, I'll add this into the build options. Thank you for
> pointing this out.
>
>>> Symptoms: gpsd appears to hang if gpsd does not receive data
>>
>> That is the design of gpsd.  Nothing in means nothing out.
>>
>> B why would you ever not have data in?
>>
>>> When the problem happens, ntp moves off the gps shm source to an
>>> external provider and the following is logged:
>>
>> That all looks good.
>>
>>> The last 4 lines are repeated for the remainder of the log file.
>>
>> Yeah, you still have PPS, but no serial data.
>
> I suspect that this was the case but was not sure.
>
>>
>>> ----------Cut------------
>>> gpsd:DATA: /dev/gpsd0 returned zero bytes
>>> gpsd:DATA: /dev/gpsd0 will be repolled in 0.010000 seconds
>>> ---------Cut-------------
>>
>> Yup, no serial data.  No data in, thus no data out.  As designed.
>>
>>> Due to lack of logging in this path I cant tell where we ended up and
>>> if an attempt was planned to resume IO to this GPS.
>>
>> Nothing to log.  No data in, thus no data out.
>>
>>> I ran gpsmon when this condition is happening.which seems to return
>>> valid data ..
>>
>> Forget gpsmon, it will just confuse the issue.  Use cgps.  If gpsd is
>> disconnected then gpsmon may directly connect to the GPS and mislead you
>> into thinking gpsd is fine.
>
> Thank you again for your time and incite into how gpsd works. So far
> the problem has not re-appeared but now I have the tools to move
> forward and possibility get this hat into a working state or at least
> have an idea of where the problem is located.
>
> Your help is very much appreciated over here.
>
> Regards,
>
> --Steve
>
>>
>> RGDS
>> GARY
>> ---------------------------------------------------------------------------
>> Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
>>         gem@rellim.com  Tel:+1 541 382 8588


From MAILER-DAEMON Mon Aug 08 19:44:07 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bWuDH-0004TJ-DG
	for mharc-gpsd-dev@gnu.org; Mon, 08 Aug 2016 19:44:07 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:55660)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bWuDF-0004T8-IN
	for gpsd-dev@nongnu.org; Mon, 08 Aug 2016 19:44:06 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bWuD9-0005pX-Nj
	for gpsd-dev@nongnu.org; Mon, 08 Aug 2016 19:44:04 -0400
Received: from ip-64-139-1-69.sjc.megapath.net ([64.139.1.69]:50329)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bWuD9-0005o9-GD
	for gpsd-dev@nongnu.org; Mon, 08 Aug 2016 19:43:59 -0400
Received: from shuksan (localhost [127.0.0.1])
	by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id 12F1B406057; 
	Mon,  8 Aug 2016 16:43:53 -0700 (PDT)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: "Gary E. Miller" <gem@rellim.com>
cc: GPSD Developers List <gpsd-dev@nongnu.org>,
	hmurray@megapathdsl.net
From: Hal Murray <hmurray@megapathdsl.net>
In-Reply-To: Message from "Gary E. Miller" <gem@rellim.com> of "Mon,
	08 Aug 2016 15:59:36 PDT." <20160808155936.732a57d3@spidey.rellim.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Mon, 08 Aug 2016 16:43:53 -0700
Message-Id: <20160808234353.12F1B406057@ip-64-139-1-69.sjc.megapath.net>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.139.1.69
Subject: Re: [gpsd-dev] [PATCH 1/2] Moves Linux-only ppscheck program back
 to contrib/.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Aug 2016 23:44:06 -0000


gem@rellim.com said:
> I can;t test everthing, and I'm pretty sure I did not break all non-Linux
> builds. 

I can confirm that you broke NetBSD and FreeBSD.

As far as I know, the ioctl it needs is only available on Linux.

ppscheck.c: In function 'main':
ppscheck.c:107:16: error: 'TIOCMIWAIT' undeclared (first use in this function)
  if (ioctl(fd, TIOCMIWAIT, TIOCM_CD|TIOCM_DSR|TIOCM_RI|TIOCM_CTS) != 0) {

It might work to replace that with a short wait - as long as the rest of the 
code ignores extra wakeups.

-- 
These are my opinions.  I hate spam.





From MAILER-DAEMON Mon Aug 08 20:35:34 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bWv13-0005v9-Vd
	for mharc-gpsd-dev@gnu.org; Mon, 08 Aug 2016 20:35:34 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:35692)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bWv10-0005uv-Ss
	for gpsd-dev@nongnu.org; Mon, 08 Aug 2016 20:35:32 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bWv0x-0006Wz-Nm
	for gpsd-dev@nongnu.org; Mon, 08 Aug 2016 20:35:30 -0400
Received: from c.mail.sonic.net ([64.142.111.80]:55008)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bWv0x-0006Wf-EQ
	for gpsd-dev@nongnu.org; Mon, 08 Aug 2016 20:35:27 -0400
Received: from newshell.sonic.net (bolt.sonic.net [208.201.242.19])
	by c.mail.sonic.net (8.15.1/8.15.1) with ESMTPS id u790ZLbZ025757
	(version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <gpsd-dev@nongnu.org>; Mon, 8 Aug 2016 17:35:21 -0700
Received: from bolt.sonic.net (localhost.localdomain [127.0.0.1])
	by newshell.sonic.net (8.13.6/8.12.1) with ESMTP id u790ZLR0012304
	for <gpsd-dev@nongnu.org>; Mon, 8 Aug 2016 17:35:21 -0700
Received: from localhost (fw@localhost)
	by bolt.sonic.net (8.13.6/8.12.1/Submit) with ESMTP id u790ZL7R012294
	for <gpsd-dev@nongnu.org>; Mon, 8 Aug 2016 17:35:21 -0700
X-Authentication-Warning: bolt.sonic.net: fw owned process doing -bs
Date: Mon, 8 Aug 2016 17:35:21 -0700 (PDT)
From: Fred Wright <fw@fwright.net>
X-X-Sender: fw@bolt.sonic.net
To: GPSD Developers List <gpsd-dev@nongnu.org>
In-Reply-To: <20160808234353.12F1B406057@ip-64-139-1-69.sjc.megapath.net>
Message-ID: <Pine.LNX.4.58L1X.1608081702260.15457@bolt.sonic.net>
References: <20160808234353.12F1B406057@ip-64-139-1-69.sjc.megapath.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sonic-CAuth: UmFuZG9tSVYwn8Dk0BFo0Ge6LefEU7mtldH0ZVr6Vqx1g0JcvZYzjbhDE+ygNA0IA+jsEzOJPRqwIWyjWcM2H7Uk4kjEA7dU
X-Sonic-ID: C;bvOoJ8ld5hGwh6Dx2xNB0g== M;iNnLJ8ld5hGwh6Dx2xNB0g==
X-Sonic-Spam-Details: -1.5/5.0 by cerberusd
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.142.111.80
Subject: Re: [gpsd-dev] [PATCH 1/2] Moves Linux-only ppscheck program back
 to contrib/.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Aug 2016 00:35:32 -0000


On Mon, 8 Aug 2016, Gary E. Miller wrote:
> On Sat, 6 Aug 2016 09:47:13 -0700 (PDT)
> Fred Wright <fw@fwright.net> wrote:
> > On Fri, 5 Aug 2016, Gary E. Miller wrote:

> > > Got a patch that selectively compiles only on Linux?  Or, better
> > > yet, a patch to make it work on more OS?
> >
> > Those things are possible, but with more work and hence more time.
>
> Yup, and I'm gonna spend the time, when I get it, if no one beats me to it.
>
> I'm sure you could make a patch in less time that your email took to write.

Make a patch?  Perhaps.  *Test* a patch across all OSes?  No way.

Those of us who used to write boot-critical code that had to run on every
single Google server (not to mention all StreetView cars) tend to pay
attention to details like testing. :-)

> > The priority should be unbreaking the build ASAP.
>
> Yup.  But not by trading one breakage for another.

In any area where people actually care about reliability, the first
response to discovering that a change broke something is *always* to roll
back the change first, and figure out how to redo it so that it doesn't
break things later.

> > Breaking all
> > non-Linux builds just so that a small subset of Linux users have a
> > slightly easier way to run a program that they can still run when
> > it's in contrib/ doesn't seem like a good tradeoff.
>
> I can;t test everthing, and I'm pretty sure I did not break all non-Linux
> builds.

It's unlikely that you didn't.  Feel free to post evidence to the
contrary.

> > Software development should obey the Hippocratic oath:  "First do no
> > harm."
>
> Which only applies after you know what may cause harm.

Or after one has thought about what *might* cause harm.

> > This issue might be partly Eric's fault, due to the following highly
> > misleading comment in ppscheck.c:
> >
> >  * This code requires only ANSI/POSIX. If it doesn't compile and run
> >  * on your Unix there is something very wrong with your Unix.
>
> Got proof that is not true?  If so, I'll take a patch to fix it.

The proof is the nonexistence of TIOCMIWAIT on most "ANSI/POSIX"
platforms.

> > In the case of clock_gettime(), I believe that
>
> Belief is not a proof.  And how about we worry about making it
> portable instead of worrying about water over the dam.

If that belief isn't true, it would make clock_gettime() even *less*
portable.

> > There's also the matter of testing.  It requires a serial adapter
> > with a full complement of modem-control signals, and driver support
> > in all supported OSes.
>
> Which is sort that point?  To test the modem control signals!

I mean testing the *code*.

> > Meanwhile, let's just fix the build, and worry about convenience of
> > building ppscheck later.
>
> I'll take patches, as long as the do not break the new functionality
> where it is currently working.

It's kind of a stretch to call something "broken" just because it has to
be built from contrib/.  The whole point of contrib/ is to have a place
for code that isn't ready for prime-time.

On Mon, 8 Aug 2016, Hal Murray wrote:
> gem@rellim.com said:
> > I can;t test everthing, and I'm pretty sure I did not break all non-Linux
> > builds.
>
> I can confirm that you broke NetBSD and FreeBSD.

And I'd be extremely surprised if OpenBSD were different, though I haven't
checked.

It certainly broke OSX, which is where I got bitten in the first place.

> As far as I know, the ioctl it needs is only available on Linux.

That's my understanding as well.

> It might work to replace that with a short wait - as long as the rest of the
> code ignores extra wakeups.

Indeed heavy-handed polling isn't necessarily unreasonable for a special
test program, but note that if the build procedure finds both TIOCMIWAIT
and kernel PPS support absent, it turns off PPS support in gpsd itself.
PPS support in the kernel can be tested via the ppstest program that's
part of the pps-tools package, so there's not a lot of motivation to have
a kernel-independent PPS test that doesn't use TIOCMIWAIT, just so that
you could test a PPS signal that gpsd won't use.

The "short" wait would need to be no wait at all if it's trying to catch
really narrow PPS pulses without the help of hardware edge detection.

Fred Wright


From MAILER-DAEMON Mon Aug 08 22:19:07 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bWwdH-0000jX-1J
	for mharc-gpsd-dev@gnu.org; Mon, 08 Aug 2016 22:19:07 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:52946)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris.kuethe@gmail.com>) id 1bWwdF-0000jQ-5P
	for gpsd-dev@nongnu.org; Mon, 08 Aug 2016 22:19:06 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chris.kuethe@gmail.com>) id 1bWwdD-0006Y7-0K
	for gpsd-dev@nongnu.org; Mon, 08 Aug 2016 22:19:04 -0400
Received: from mail-it0-x243.google.com ([2607:f8b0:4001:c0b::243]:33995)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris.kuethe@gmail.com>) id 1bWwdC-0006Y2-Qm
	for gpsd-dev@nongnu.org; Mon, 08 Aug 2016 22:19:02 -0400
Received: by mail-it0-x243.google.com with SMTP id u186so169171ita.1
	for <gpsd-dev@nongnu.org>; Mon, 08 Aug 2016 19:19:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc; bh=mSgtH9NKILJpRFwyAU7U4WAkYZsg1iafppiDE8IiRPk=;
	b=ugqlf5T//W1IZcEPzvq566In8W1vBfPVVIKrYmwhAeXcNqDawnppZrD32Ds3rJFOL5
	BHpwdn8tzenTF/BMDRkH19b1EiaxffvE1agNE4ON78/zTR9YT8s85jW6jdQQ7lscD1iJ
	Etfv+M0r4KYa00U2IkITHoQY0fn9DHagLjPFsetUsE91IL/JJpYmT5L7EyuxlNnAQzSK
	n7bcVIDrdkM+1cOzxx85vwZWT7rX0Jma+adSgTANtr7WOnnhVtNOD5LC/USfY/lp+cat
	T0jbz4hUcWN8/4FsIXBvg33pe7on7AS5czgGq0qoc1q/ngF4p2afbOiMnVAFKlxYKOc0
	f7Hw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20130820;
	h=x-gm-message-state:mime-version:in-reply-to:references:from:date
	:message-id:subject:to:cc;
	bh=mSgtH9NKILJpRFwyAU7U4WAkYZsg1iafppiDE8IiRPk=;
	b=Yh9yfjucUlbkR6gLZUw7Z4NKvDQzURbA0qUVTD2fGRlalXTAL2IuEUcfWU4KHPqToU
	XsW0Rx7kHiyT6AnPhWVkqkU/r8/wYoi1VkMQqkEkbGqXXsvIUJ9HCG+HuJfQ+7iEXdjI
	xIwe1Ajxm6YwhM7uvR0+8VpcJEZ0jaNyq4GKDOK1jFLKKuRzl4oD0nRg6eMtUKiBCQGo
	CdiN+6ZGZsppH2pSj5lh9I4mlRU+WxeBM8tzijeomd+UTFa9c++zuTc72VKoNmWqEYmG
	lBFqh1Kl9FCseRj7NyX6YSbkPkkyLzgNLR+eiKZ64ZeogMd5khkL4AZyJOkaMeG1OFe7
	Vy2Q==
X-Gm-Message-State: AEkoousGYgFFF8cNj91nSpncwVhsdr7USOxUfmBAOq5c1GAQxs/rTnkFbRweZtw+ed0WKSnxOGrODPatIcRfgQ==
X-Received: by 10.36.3.15 with SMTP id e15mr22794197ite.40.1470709142143; Mon,
	08 Aug 2016 19:19:02 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.64.63.16 with HTTP; Mon, 8 Aug 2016 19:18:41 -0700 (PDT)
In-Reply-To: <20160808234353.12F1B406057@ip-64-139-1-69.sjc.megapath.net>
References: <gem@rellim.com> <20160808155936.732a57d3@spidey.rellim.com>
	<20160808234353.12F1B406057@ip-64-139-1-69.sjc.megapath.net>
From: Chris Kuethe <chris.kuethe@gmail.com>
Date: Mon, 8 Aug 2016 19:18:41 -0700
Message-ID: <CAGHP0pKyMt49ssd_KrWZyp8-pXOimGDQUrOPTbKJ6BqeyBtGLA@mail.gmail.com>
To: Hal Murray <hmurray@megapathdsl.net>
Cc: "Gary E. Miller" <gem@rellim.com>,
	GPSD Developers List <gpsd-dev@nongnu.org>
Content-Type: multipart/alternative; boundary=001a11419f0efc47f005399a2797
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2607:f8b0:4001:c0b::243
Subject: Re: [gpsd-dev] [PATCH 1/2] Moves Linux-only ppscheck program back
 to contrib/.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Aug 2016 02:19:06 -0000

--001a11419f0efc47f005399a2797
Content-Type: text/plain; charset=UTF-8

TIOCMIWAIT doesn't exist on OSX, any of the BSDs or Solaris.  I can't find
any reference to it in POSIX.

On Mon, Aug 8, 2016 at 4:43 PM, Hal Murray <hmurray@megapathdsl.net> wrote:

>
> gem@rellim.com said:
> > I can;t test everthing, and I'm pretty sure I did not break all non-Linux
> > builds.
>
> I can confirm that you broke NetBSD and FreeBSD.
>
> As far as I know, the ioctl it needs is only available on Linux.
>
> ppscheck.c: In function 'main':
> ppscheck.c:107:16: error: 'TIOCMIWAIT' undeclared (first use in this
> function)
>   if (ioctl(fd, TIOCMIWAIT, TIOCM_CD|TIOCM_DSR|TIOCM_RI|TIOCM_CTS) != 0) {
>
> It might work to replace that with a short wait - as long as the rest of
> the
> code ignores extra wakeups.
>
> --
> These are my opinions.  I hate spam.
>
>
>
>
>


-- 
GDB has a 'break' feature; why doesn't it have 'fix' too?

--001a11419f0efc47f005399a2797
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><span style=3D"font-size:12.8px">TIOCMIWAIT d</span>oesn&#=
39;t exist on OSX, any of the BSDs or Solaris.=C2=A0 I can&#39;t find any r=
eference to it in POSIX.</div><div class=3D"gmail_extra"><br><div class=3D"=
gmail_quote">On Mon, Aug 8, 2016 at 4:43 PM, Hal Murray <span dir=3D"ltr">&=
lt;<a href=3D"mailto:hmurray@megapathdsl.net" target=3D"_blank">hmurray@meg=
apathdsl.net</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" sty=
le=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span =
class=3D""><br>
<a href=3D"mailto:gem@rellim.com">gem@rellim.com</a> said:<br>
&gt; I can;t test everthing, and I&#39;m pretty sure I did not break all no=
n-Linux<br>
&gt; builds.<br>
<br>
</span>I can confirm that you broke NetBSD and FreeBSD.<br>
<br>
As far as I know, the ioctl it needs is only available on Linux.<br>
<br>
ppscheck.c: In function &#39;main&#39;:<br>
ppscheck.c:107:16: error: &#39;TIOCMIWAIT&#39; undeclared (first use in thi=
s function)<br>
<span class=3D"">=C2=A0 if (ioctl(fd, TIOCMIWAIT, TIOCM_CD|TIOCM_DSR|TIOCM_=
RI|<wbr>TIOCM_CTS) !=3D 0) {<br>
<br>
</span>It might work to replace that with a short wait - as long as the res=
t of the<br>
code ignores extra wakeups.<br>
<div class=3D"HOEnZb"><div class=3D"h5"><br>
--<br>
These are my opinions.=C2=A0 I hate spam.<br>
<br>
<br>
<br>
<br>
</div></div></blockquote></div><br><br clear=3D"all"><div><br></div>-- <br>=
<div class=3D"gmail_signature" data-smartmail=3D"gmail_signature">GDB has a=
 &#39;break&#39; feature; why doesn&#39;t it have &#39;fix&#39; too?</div>
</div>

--001a11419f0efc47f005399a2797--


From MAILER-DAEMON Mon Aug 08 22:39:07 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bWwwd-00010E-Ca
	for mharc-gpsd-dev@gnu.org; Mon, 08 Aug 2016 22:39:07 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:34830)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bWwwb-0000xr-B1
	for gpsd-dev@nongnu.org; Mon, 08 Aug 2016 22:39:06 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bWwwX-0001x6-5y
	for gpsd-dev@nongnu.org; Mon, 08 Aug 2016 22:39:04 -0400
Received: from c.mail.sonic.net ([64.142.111.80]:57138)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bWwwW-0001wK-Sk
	for gpsd-dev@nongnu.org; Mon, 08 Aug 2016 22:39:01 -0400
Received: from newshell.sonic.net (bolt.sonic.net [208.201.242.19])
	by c.mail.sonic.net (8.15.1/8.15.1) with ESMTPS id u792cvhg007810
	(version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <gpsd-dev@nongnu.org>; Mon, 8 Aug 2016 19:38:57 -0700
Received: from bolt.sonic.net (localhost.localdomain [127.0.0.1])
	by newshell.sonic.net (8.13.6/8.12.1) with ESMTP id u792cvQK014529
	for <gpsd-dev@nongnu.org>; Mon, 8 Aug 2016 19:38:57 -0700
Received: from localhost (fw@localhost)
	by bolt.sonic.net (8.13.6/8.12.1/Submit) with ESMTP id u792cvFK014526
	for <gpsd-dev@nongnu.org>; Mon, 8 Aug 2016 19:38:57 -0700
X-Authentication-Warning: bolt.sonic.net: fw owned process doing -bs
Date: Mon, 8 Aug 2016 19:38:57 -0700 (PDT)
From: Fred Wright <fw@fwright.net>
X-X-Sender: fw@bolt.sonic.net
To: GPSD Developers List <gpsd-dev@nongnu.org>
In-Reply-To: <CAPHg4Fp_ho8qi_H6c3_oo2QNNgBxn_hQbXfwD6GCEa330=idDQ@mail.gmail.com>
Message-ID: <Pine.LNX.4.58L1X.1608081927340.7292@bolt.sonic.net>
References: <CAPHg4FpnMiEGgKKSnqPFo6PFNOLwcrLf8Hv24c+OEX7sn_svjA@mail.gmail.com>
	<20160713114048.025c6e00@spidey.rellim.com>
	<CAPHg4FpnMPuYPVPArVF9C9a3+HJJVmsAkyqmPFZexdvY+fCumg@mail.gmail.com>
	<CAPHg4Fp_ho8qi_H6c3_oo2QNNgBxn_hQbXfwD6GCEa330=idDQ@mail.gmail.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sonic-CAuth: UmFuZG9tSVaRs36mw9nqiRCEvThypG9N4UNElrEe3R16SQF7nAasHtg79jxA47l2zRBxQzmrH3ZU8GUU4IH6rg4Y/F2sA1ia
X-Sonic-ID: C;BL3ka9pd5hGOW6Dx2xNB0g== M;0nAIbNpd5hGOW6Dx2xNB0g==
X-Sonic-Spam-Details: -1.5/5.0 by cerberusd
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.142.111.80
Subject: Re: [gpsd-dev] Need p/d help with gpsd and or gps HW - no response
 after gps polling
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Aug 2016 02:39:06 -0000


On Mon, 8 Aug 2016, Steve Lang wrote:

> We found out what was causing the problem. It appears to be user
> error. User was executing:
>
> gpsmon /dev/gpsd0 while gpsd was running.
>
> ls -al /dev/gpsd0
> /dev/gpsd0 -> ttyAMA0
>
> I informed user that 2 programs can not access the same serial port at
> the same time.

Well, actually, the problem isn't that it doesn't work; it's that it
"works" but poorly. :-) Each program gets some of the characters, but
which one gets which characters is determined by the wakeup timing.

If the OS properly understood that the serial driver isn't usefully
shareable, it would just give "device or resource busy" to the second
program.  Unfortunately it doesn't, and the access works just well enough
to appear shareable to someone who isn't looking at the data too closely.

A good reason to run gpsd on a time server is so that one can check on the
GPS status at any time without interfering with NTP.

> Once user stopped doing this the problem stopped,

Ye olde PEBKAC issue. :-)

Fred Wright


From MAILER-DAEMON Tue Aug 09 18:35:43 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bXFcd-0007Wc-B3
	for mharc-gpsd-dev@gnu.org; Tue, 09 Aug 2016 18:35:43 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:47651)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bXFca-0007W5-V2
	for gpsd-dev@nongnu.org; Tue, 09 Aug 2016 18:35:41 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bXFcZ-0007TF-Tv
	for gpsd-dev@nongnu.org; Tue, 09 Aug 2016 18:35:40 -0400
Received: from rellim.com ([2001:470:e815::19]:34679 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bXFcZ-0007SC-Ku
	for gpsd-dev@nongnu.org; Tue, 09 Aug 2016 18:35:39 -0400
Received: from spidey.rellim.com (rellim.com [IPv6:2001:470:e815:0:0:0:0:19])
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u79MZRrE018028
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Tue, 9 Aug 2016 15:35:33 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u79MZRrE018028
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1470782133; bh=QgMneo2AN8GSQ9f/CtCeTt99pweFqDyNd5DSjIC+7tM=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=SXACQrGIlATfjIyq+ak/zfaT//NoSrq4wtVOD80M8O3q71zdbrfRbA6peGv2b7tAu
	U31KXOzxrllVqm65PF5SI6Wtns9PHYDjHEfsHEGatZbQGORymISmyh2t1wCWVOps9p
	IAGiWcpurIZ8wpH/yh2N3kYWt0sGYeDJA91E3WPs=
Date: Tue, 9 Aug 2016 15:35:27 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Chris Kuethe <chris.kuethe@gmail.com>
Cc: Hal Murray <hmurray@megapathdsl.net>, GPSD Developers List
	<gpsd-dev@nongnu.org>
Message-ID: <20160809153527.25d35ec6@spidey.rellim.com>
In-Reply-To: <CAGHP0pKyMt49ssd_KrWZyp8-pXOimGDQUrOPTbKJ6BqeyBtGLA@mail.gmail.com>
References: <gem@rellim.com> <20160808155936.732a57d3@spidey.rellim.com>
	<20160808234353.12F1B406057@ip-64-139-1-69.sjc.megapath.net>
	<CAGHP0pKyMt49ssd_KrWZyp8-pXOimGDQUrOPTbKJ6BqeyBtGLA@mail.gmail.com>
Organization: Rellim
X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/AVbxHUOewPMB7eVqvcRp=xp";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Tue, 09 Aug 2016 15:35:33 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] [PATCH 1/2] Moves Linux-only ppscheck program back
 to contrib/.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Aug 2016 22:35:42 -0000

--Sig_/AVbxHUOewPMB7eVqvcRp=xp
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Chris!

On Mon, 8 Aug 2016 19:18:41 -0700
Chris Kuethe <chris.kuethe@gmail.com> wrote:

> TIOCMIWAIT doesn't exist on OSX, any of the BSDs or Solaris.  I can't
> find any reference to it in POSIX.

All this chatter, to avoid the obvious 4 line patch.

I was holding off hoping someone would pick up on it, but not to be.

Patch pushed.  Now ppscheck is only built when TIOCMIWAIT is present.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/AVbxHUOewPMB7eVqvcRp=xp
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXqlqvAAoJEA0O2UlB0XnYmvQIAI1+5olEI3tiuu7AW0w2LOQD
ONmXEX1zzf9goKwx9DQW0FgmoIaC44vWsA3RBP2Jc+T7o+OPWb7gGlgV9g/EMNXr
5fYQMnZ/qbP83t9/oovdagksJVPf4JLiXN/9sbCS3JB06AI2k92KWH0lotDyRQwf
tnooKr63nLCY6NKNXQs2AAhrj2sraE4gQcOgnQvsBHYiumGzo+ZOFqnjzap3+6B1
tka/pGu7vEyxta+q0TCEbtFxexdZfKpYpUG88A1FC0mfI2MJvBTUvB/fqjoHpW12
5OVyje2US6IroYN7rTRcLZPFcT9fzLfT4QCxMhYJM1Pwte7doj4iW8WJWtXN41U=
=jXEP
-----END PGP SIGNATURE-----

--Sig_/AVbxHUOewPMB7eVqvcRp=xp--


From MAILER-DAEMON Tue Aug 09 18:39:53 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bXFgf-0000Mi-0B
	for mharc-gpsd-dev@gnu.org; Tue, 09 Aug 2016 18:39:53 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:48113)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bXFgc-0000MW-AH
	for gpsd-dev@nongnu.org; Tue, 09 Aug 2016 18:39:51 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bXFga-00083d-Bp
	for gpsd-dev@nongnu.org; Tue, 09 Aug 2016 18:39:49 -0400
Received: from rellim.com ([2001:470:e815::19]:58447 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bXFga-000837-4X
	for gpsd-dev@nongnu.org; Tue, 09 Aug 2016 18:39:48 -0400
Received: from spidey.rellim.com (rellim.com [IPv6:2001:470:e815:0:0:0:0:19])
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u79Mdeil019980
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Tue, 9 Aug 2016 15:39:45 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u79Mdeil019980
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1470782385; bh=dfIjGOu2HoTOIY5aZ//5JJ/UMIBokJ+91RRHX7tVGz8=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=KPAEHdf0duw3WJ0gEa/RFuAj1z+W23jrb1CDquIOu+anNC3vI4XpA1BrJgUhgP0i/
	E6E3eu8PLBGTgLPadeTwF5v7MUxW+b1Nxl7sutEooyZMUNqMEUQf+iKZN5hQ0xHOdQ
	KJA/rCl4t6jZPCQOYMY9I5uUVRj6iQyYwGcTiiWQ=
Date: Tue, 9 Aug 2016 15:39:40 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Fred Wright <fw@fwright.net>
Cc: GPSD Developers List <gpsd-dev@nongnu.org>
Message-ID: <20160809153940.597f18b7@spidey.rellim.com>
In-Reply-To: <Pine.LNX.4.58L1X.1608081927340.7292@bolt.sonic.net>
References: <CAPHg4FpnMiEGgKKSnqPFo6PFNOLwcrLf8Hv24c+OEX7sn_svjA@mail.gmail.com>
	<20160713114048.025c6e00@spidey.rellim.com>
	<CAPHg4FpnMPuYPVPArVF9C9a3+HJJVmsAkyqmPFZexdvY+fCumg@mail.gmail.com>
	<CAPHg4Fp_ho8qi_H6c3_oo2QNNgBxn_hQbXfwD6GCEa330=idDQ@mail.gmail.com>
	<Pine.LNX.4.58L1X.1608081927340.7292@bolt.sonic.net>
Organization: Rellim
X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/cII3JE=xYnTUxbGIv9Fjt4X";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Tue, 09 Aug 2016 15:39:45 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] Need p/d help with gpsd and or gps HW - no response
 after gps polling
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Aug 2016 22:39:51 -0000

--Sig_/cII3JE=xYnTUxbGIv9Fjt4X
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Fred!

On Mon, 8 Aug 2016 19:38:57 -0700 (PDT)
Fred Wright <fw@fwright.net> wrote:

> > I informed user that 2 programs can not access the same serial port
> > at the same time. =20
>=20
> Well, actually, the problem isn't that it doesn't work; it's that it
> "works" but poorly. :-)

That depends on the driver.  I find it works perfectly well on some
USB drivers.  Both clients get all the data.

I was thinking the O_EXCL parameter to open() migh fix this, but I=20
see it is only allowed with O_CREAT.

Is there an easy, mostly portable, way to open the port exclusively?

I'd rather not be ching the file permissions.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/cII3JE=xYnTUxbGIv9Fjt4X
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXqlusAAoJEA0O2UlB0XnYAA4H/iNMnhe+bjAwjLgLHq+mSl1g
KIgd1ldlhgEiaBJnYp5eIvxkdLLu1CB4ruO/9HRaV3fkvFV8F+2GKG/bkQo/PL88
ew17krosZPiRoHIEl87qiV/cy4oeYKzjMQMhVIaDdeTA3xLPTnRP2X4JLF33eNXa
AV/A2RUhFREnzs5XXW4dec8eA3HKltVyoZz8wznmqR4NH0o81e05zZKdnO1mw2D2
PBYd+kfrYMWTeyIbvcig1v2cuuqM8zXoEBOOY7/ROWZoH1HLLY3YxA7WYN+FsouQ
zoJnGFdC+Gby46iu5xpPa/Sp0Z/F5CwQlh9yAefv8zRluxlspZrTNTkqMMsJSHk=
=a6V+
-----END PGP SIGNATURE-----

--Sig_/cII3JE=xYnTUxbGIv9Fjt4X--


From MAILER-DAEMON Tue Aug 09 18:55:02 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bXFvK-0004aR-4q
	for mharc-gpsd-dev@gnu.org; Tue, 09 Aug 2016 18:55:02 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:50256)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bXFvH-0004Zp-FS
	for gpsd-dev@nongnu.org; Tue, 09 Aug 2016 18:55:00 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bXFvD-0002iw-Ff
	for gpsd-dev@nongnu.org; Tue, 09 Aug 2016 18:54:59 -0400
Received: from ip-64-139-1-69.sjc.megapath.net ([64.139.1.69]:61065)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bXFvD-0002iZ-97
	for gpsd-dev@nongnu.org; Tue, 09 Aug 2016 18:54:55 -0400
Received: from shuksan (localhost [127.0.0.1])
	by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id F0AC8406060; 
	Tue,  9 Aug 2016 15:54:52 -0700 (PDT)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: "Gary E. Miller" <gem@rellim.com>
cc: Hal Murray <hmurray@megapathdsl.net>,
	GPSD Developers List <gpsd-dev@nongnu.org>
From: Hal Murray <hmurray@megapathdsl.net>
In-Reply-To: Message from "Gary E. Miller" <gem@rellim.com> of "Tue,
	09 Aug 2016 15:35:27 PDT." <20160809153527.25d35ec6@spidey.rellim.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Tue, 09 Aug 2016 15:54:52 -0700
Message-Id: <20160809225452.F0AC8406060@ip-64-139-1-69.sjc.megapath.net>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.139.1.69
Subject: Re: [gpsd-dev] [PATCH 1/2] Moves Linux-only ppscheck program back
 to contrib/.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Aug 2016 22:55:00 -0000

You broke something else...

$ scons --clean
scons: Reading SConscript files ...
Obtaining Python exe path... ok
Obtaining Python lib dir... ok
Obtaining Python config vars... ok
NameError: name 'tiocmiwait' is not defined:
  File "/home/murray/gpsd/work/SConstruct", line 1267:
    if tiocmiwait:


-- 
These are my opinions.  I hate spam.





From MAILER-DAEMON Tue Aug 09 19:06:06 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bXG62-0007uc-IW
	for mharc-gpsd-dev@gnu.org; Tue, 09 Aug 2016 19:06:06 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:51585)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1bXG60-0007tX-IO
	for gpsd-dev@nongnu.org; Tue, 09 Aug 2016 19:06:05 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1bXG5x-0004z2-Ay
	for gpsd-dev@nongnu.org; Tue, 09 Aug 2016 19:06:04 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:54690 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1bXG5x-0004yJ-6M
	for gpsd-dev@nongnu.org; Tue, 09 Aug 2016 19:06:01 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id D756013A0C5E; Tue,  9 Aug 2016 19:05:25 -0400 (EDT)
Date: Tue, 9 Aug 2016 19:05:25 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: "Gary E. Miller" <gem@rellim.com>
Cc: Fred Wright <fw@fwright.net>,
	GPSD Developers List <gpsd-dev@nongnu.org>
Message-ID: <20160809230525.GB11565@thyrsus.com>
Reply-To: esr@thyrsus.com
References: <CAPHg4FpnMiEGgKKSnqPFo6PFNOLwcrLf8Hv24c+OEX7sn_svjA@mail.gmail.com>
	<20160713114048.025c6e00@spidey.rellim.com>
	<CAPHg4FpnMPuYPVPArVF9C9a3+HJJVmsAkyqmPFZexdvY+fCumg@mail.gmail.com>
	<CAPHg4Fp_ho8qi_H6c3_oo2QNNgBxn_hQbXfwD6GCEa330=idDQ@mail.gmail.com>
	<Pine.LNX.4.58L1X.1608081927340.7292@bolt.sonic.net>
	<20160809153940.597f18b7@spidey.rellim.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="mP3DRpeJDSE+ciuQ"
Content-Disposition: inline
In-Reply-To: <20160809153940.597f18b7@spidey.rellim.com>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.23 (2014-03-12)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 71.162.243.5
Subject: Re: [gpsd-dev] Need p/d help with gpsd and or gps HW - no response
 after gps polling
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Aug 2016 23:06:05 -0000


--mP3DRpeJDSE+ciuQ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Gary E. Miller <gem@rellim.com>:
> Is there an easy, mostly portable, way to open the port exclusively?

Probably not.  But look at serial.c:fusercount(), which might give you
a capability almost as interesting.
--=20
		<a href=3D"http://www.catb.org/~esr/">Eric S. Raymond</a>

--mP3DRpeJDSE+ciuQ
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIVAwUBV6phtezIII+MbHONAQKuLBAAqtS38LfejF950OA+baZwQUvPgY3nc9uj
b2hWeqYRqJbX4UadPnqB36fko0Pa5I+Tl7EUOqbsR3RYNQwzMiZPR8yw85hXq2wF
xDlfbXT9iLZ/xEyiGHQEKFlTECYZfQ6AtBwYv1mIklFg3VNATM3MP99AsHbyaeG7
aduOczNg2UVei/aJyhriZ6s4WcQFrlv+uu5slDW3ZdClu9KAALgjvLjixf45puCZ
ompKGvkhiN/OPNDIzO+X1EszXdLWF6pCUZ0w7bQgSqXhP8+3MJKhZ9k7+eyZr7Wf
ZcEeFrkpiWqTcVUQ9jzNPjP9UABBu/Ze0zdQ4WPjG1/JXj+3iqWcld/AzCRkloUE
5DEzpxj65t98GCoQhbG0CwkMhiHTd3o19/bsMs0SHBk4t6zkf4cPw7az0itf5poo
I9SqslTu18EN1FECt5Zy7iGczKUBvbvLxBM238F3OEHVmkIpj0BX8FoKb86DpfVw
c8vkTwffhq/yvRbjOqNIUbleaojiQr2ieLRAQivgcMWflHqjyATC+W5KAAj8BZrD
Meh2a5gTA+ap9uPMofTRbJfceInYwhincYM6zcXvr4uO8TIm7vknE0EH9V/fh+9P
ulWHEsYpIIf9qJtBzXaoYBlswRaQwcL/Hr1Q+qQD4my11wnCLsnzi1imE93WxaDb
01Up/bMcLZY=
=ySWr
-----END PGP SIGNATURE-----

--mP3DRpeJDSE+ciuQ--


From MAILER-DAEMON Tue Aug 09 19:29:49 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bXGSz-0003kQ-A1
	for mharc-gpsd-dev@gnu.org; Tue, 09 Aug 2016 19:29:49 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:54805)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bXGSx-0003kF-C9
	for gpsd-dev@nongnu.org; Tue, 09 Aug 2016 19:29:48 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bXGSw-0000zO-9M
	for gpsd-dev@nongnu.org; Tue, 09 Aug 2016 19:29:47 -0400
Received: from rellim.com ([2001:470:e815::19]:38987 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bXGSv-0000z9-Uu
	for gpsd-dev@nongnu.org; Tue, 09 Aug 2016 19:29:46 -0400
Received: from spidey.rellim.com (dave.rellim.com
	[IPv6:2001:470:e815:0:0:0:0:19] (may be forged))
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u79NTZVt004176
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Tue, 9 Aug 2016 16:29:40 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u79NTZVt004176
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1470785380; bh=FAyoHpp/aE6T9+vOARH2WjoaNSixSvcOClXNt5ukZZI=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=M20z0pWiz+SL6lfA/+rhLvd7ggFjuuCqs4ZcYe2X3vg0k1wYQ08GP8IsnTcaWNnPz
	FYnz0XuBFZfDkhd12CKjc4+4BGX6aTNkb0OmLvwCVgBXgQ/4PwUZYtP59JgZEbmXMe
	k4pynEOhTMaXNHL0tuLnqpG6WdfpzdvVfDDw+c/s=
Date: Tue, 9 Aug 2016 16:29:35 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Hal Murray <hmurray@megapathdsl.net>
Cc: GPSD Developers List <gpsd-dev@nongnu.org>
Message-ID: <20160809162935.5be16057@spidey.rellim.com>
In-Reply-To: <20160809225452.F0AC8406060@ip-64-139-1-69.sjc.megapath.net>
References: <20160809153527.25d35ec6@spidey.rellim.com>
	<20160809225452.F0AC8406060@ip-64-139-1-69.sjc.megapath.net>
Organization: Rellim
X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/.TsyVPTUwW.2eQ7DleuWiF.";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Tue, 09 Aug 2016 16:29:40 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] [PATCH 1/2] Moves Linux-only ppscheck program back
 to contrib/.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Aug 2016 23:29:48 -0000

--Sig_/.TsyVPTUwW.2eQ7DleuWiF.
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Hal!

Fix pushed, pleasse give it a try.

On Tue, 09 Aug 2016 15:54:52 -0700
Hal Murray <hmurray@megapathdsl.net> wrote:

> You broke something else...
>=20
> $ scons --clean
> scons: Reading SConscript files ...
> Obtaining Python exe path... ok
> Obtaining Python lib dir... ok
> Obtaining Python config vars... ok
> NameError: name 'tiocmiwait' is not defined:
>   File "/home/murray/gpsd/work/SConstruct", line 1267:
>     if tiocmiwait:
>=20
>=20




RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/.TsyVPTUwW.2eQ7DleuWiF.
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXqmdfAAoJEA0O2UlB0XnYQJwH/1WxopzL7K1qmBvujZG+nvst
YGJrLQxDdt1xhC8e3oI+5+YEvr06Nqn0OsriuBDwnoChhWvPWcHNgX+1/aHtyJKj
1hl/NeHCGIx5y7Nn08KcOhnWHTnqjTGR5mqdPumkaNTB0BTQX3LuX8FZZSCuslHu
t71Guo5stfJcBGN8anq+pJEbRlMLASirtvwCOY/Z9VCc5tns7CPivBt7fbUmck14
wZ3SSJXIoKF3nwl/26tUoyyVbqorxjnhMYeJAmg56OVbgOjYhyIZ2Bsn7VbmrNnF
Zpz9TbgZZqp++XkWEEdg2pCahMmUN3RYYS0x5tt/J6kCdZtV52DKc5T4Myp2nrQ=
=FFkn
-----END PGP SIGNATURE-----

--Sig_/.TsyVPTUwW.2eQ7DleuWiF.--


From MAILER-DAEMON Tue Aug 09 19:36:24 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bXGZM-0005OP-3n
	for mharc-gpsd-dev@gnu.org; Tue, 09 Aug 2016 19:36:24 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:55739)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bXGZK-0005NX-Ho
	for gpsd-dev@nongnu.org; Tue, 09 Aug 2016 19:36:23 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bXGZJ-0003ac-GQ
	for gpsd-dev@nongnu.org; Tue, 09 Aug 2016 19:36:22 -0400
Received: from rellim.com ([2001:470:e815::19]:46238 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bXGZJ-0003Z6-84
	for gpsd-dev@nongnu.org; Tue, 09 Aug 2016 19:36:21 -0400
Received: from spidey.rellim.com (rellim.com [IPv6:2001:470:e815:0:0:0:0:19])
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u79NaArJ007205
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Tue, 9 Aug 2016 16:36:15 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u79NaArJ007205
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1470785775; bh=p8ufqvl2Ruc+dlPtNbfIv+acnCvEFI2WxDzqbMV3SQI=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=U3knoH6iv7GCUbxeQpepSkSSrldsyyUlkP7LfsHjJPj2H9jIuWJHXwgDJqsLPWbMZ
	OIZwZ06PsFsNzmr0x18jJGxXQbKC0IlXtDkkU6acBerBcOBTYZPjeNobAsrm54ceBi
	Gdhdx7NiZMVMQGl/PlcBFsGBS15DaqB8dBtrhpng=
Date: Tue, 9 Aug 2016 16:36:10 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: "Eric S. Raymond" <esr@thyrsus.com>
Cc: Fred Wright <fw@fwright.net>, GPSD Developers List <gpsd-dev@nongnu.org>
Message-ID: <20160809163610.274f7d34@spidey.rellim.com>
In-Reply-To: <20160809230525.GB11565@thyrsus.com>
References: <CAPHg4FpnMiEGgKKSnqPFo6PFNOLwcrLf8Hv24c+OEX7sn_svjA@mail.gmail.com>
	<20160713114048.025c6e00@spidey.rellim.com>
	<CAPHg4FpnMPuYPVPArVF9C9a3+HJJVmsAkyqmPFZexdvY+fCumg@mail.gmail.com>
	<CAPHg4Fp_ho8qi_H6c3_oo2QNNgBxn_hQbXfwD6GCEa330=idDQ@mail.gmail.com>
	<Pine.LNX.4.58L1X.1608081927340.7292@bolt.sonic.net>
	<20160809153940.597f18b7@spidey.rellim.com>
	<20160809230525.GB11565@thyrsus.com>
Organization: Rellim
X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_//tCw18yY.EU2IzG=2Kn1ltZ";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Tue, 09 Aug 2016 16:36:15 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] Need p/d help with gpsd and or gps HW - no response
 after gps polling
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Aug 2016 23:36:23 -0000

--Sig_//tCw18yY.EU2IzG=2Kn1ltZ
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Eric!

Good hint.  It looks like Linux already uses fusercount() to see if
the device is already open.  So no action item, except maybe
make it an error?  I hate to do that since on some of my GPS I can
doulbe open just fine.

On Tue, 9 Aug 2016 19:05:25 -0400
"Eric S. Raymond" <esr@thyrsus.com> wrote:

> Gary E. Miller <gem@rellim.com>:
> > Is there an easy, mostly portable, way to open the port
> > exclusively? =20
>=20
> Probably not.  But look at serial.c:fusercount(), which might give you
> a capability almost as interesting.




RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_//tCw18yY.EU2IzG=2Kn1ltZ
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXqmjqAAoJEA0O2UlB0XnYU34H/0iyzW0AhyJmptazrPaXvb3a
LAXmfTXPDIjsRNmemWGmEomD+epcxGe4bj7WvKwB1uvpoM1lPlSYzP8SSQB5ZBou
BxUV4FYbQgyHNre4VC5CN89IHFrtqB2amv5gJjiSC0g/JH1vZDC4g7soO2TH5MLQ
aAvZzTGBrsk2Jv3XWkbR13/dTL3N8GGYB3P1D5a3Is2MmwNkCL8GGkuhWaqrlVdI
5kbW9TTsN8mgTuIsuMBQ9Nd1JAAXtpSJgqy9qaiE6heHeSfuDPmm5siAkIDoV7i6
+Y1ESuPRLcVb0LNuYZp7wsfE73YV3B2dKjcXCDBAn6f2XDTCO+jb8Anai9qOyRw=
=sFcg
-----END PGP SIGNATURE-----

--Sig_//tCw18yY.EU2IzG=2Kn1ltZ--


From MAILER-DAEMON Tue Aug 09 20:21:50 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bXHHK-00033p-0x
	for mharc-gpsd-dev@gnu.org; Tue, 09 Aug 2016 20:21:50 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:33284)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bXHHI-00033i-Be
	for gpsd-dev@nongnu.org; Tue, 09 Aug 2016 20:21:49 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bXHHF-0005Em-59
	for gpsd-dev@nongnu.org; Tue, 09 Aug 2016 20:21:48 -0400
Received: from ip-64-139-1-69.sjc.megapath.net ([64.139.1.69]:63740)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bXHHE-0005CC-Tz
	for gpsd-dev@nongnu.org; Tue, 09 Aug 2016 20:21:45 -0400
Received: from shuksan (localhost [127.0.0.1])
	by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id B3C1E406060; 
	Tue,  9 Aug 2016 17:21:39 -0700 (PDT)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: "Gary E. Miller" <gem@rellim.com>
cc: Hal Murray <hmurray@megapathdsl.net>,
	GPSD Developers List <gpsd-dev@nongnu.org>
From: Hal Murray <hmurray@megapathdsl.net>
In-Reply-To: Message from "Gary E. Miller" <gem@rellim.com> of "Tue,
	09 Aug 2016 16:29:35 PDT." <20160809162935.5be16057@spidey.rellim.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Tue, 09 Aug 2016 17:21:39 -0700
Message-Id: <20160810002139.B3C1E406060@ip-64-139-1-69.sjc.megapath.net>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.139.1.69
Subject: Re: [gpsd-dev] [PATCH 1/2] Moves Linux-only ppscheck program back
 to contrib/.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 10 Aug 2016 00:21:49 -0000

> Fix pushed, pleasse give it a try.

It builds and checks on Linux, NetBSD and FreeBSD.  I haven't tried running 
anything.

scons --clean doesn't get rid of ppscheck or ppscheck.o


-- 
These are my opinions.  I hate spam.





From MAILER-DAEMON Tue Aug 09 21:07:07 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bXHz8-0003Mo-UR
	for mharc-gpsd-dev@gnu.org; Tue, 09 Aug 2016 21:07:06 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:39140)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bXHz6-0003Ku-Dn
	for gpsd-dev@nongnu.org; Tue, 09 Aug 2016 21:07:05 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bXHz4-0005pd-BD
	for gpsd-dev@nongnu.org; Tue, 09 Aug 2016 21:07:03 -0400
Received: from rellim.com ([2001:470:e815::19]:48024 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bXHz4-0005ou-3O
	for gpsd-dev@nongnu.org; Tue, 09 Aug 2016 21:07:02 -0400
Received: from spidey.rellim.com (rellim.com [IPv6:2001:470:e815:0:0:0:0:19])
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u7A16mYa006128
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Tue, 9 Aug 2016 18:06:53 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u7A16mYa006128
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1470791214; bh=CTMLwCmvPLKJTCrZIR5tBCPoeMeQJ3/NDjFX/DXeohw=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=pFNjLkB+0GvrI9mIz4OvXqSN2/pNuXzdxeUBKpUwXu/VvyWf/91exOWhorPXrs3Kp
	cJ9/l9sH631b874Icl6f35wQv38PCp1GiSudP+9WBcz6o5l+s79L5IBAj/Ybgq39ms
	2KfpWNgpPtXCgNB5jr5ENBk5X1JruQ57SkTW29j0=
Date: Tue, 9 Aug 2016 18:06:48 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Hal Murray <hmurray@megapathdsl.net>
Cc: GPSD Developers List <gpsd-dev@nongnu.org>
Message-ID: <20160809180648.2591a284@spidey.rellim.com>
In-Reply-To: <20160810002139.B3C1E406060@ip-64-139-1-69.sjc.megapath.net>
References: <20160809162935.5be16057@spidey.rellim.com>
	<20160810002139.B3C1E406060@ip-64-139-1-69.sjc.megapath.net>
Organization: Rellim
X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/P+gQc1LEM.E8QSYUgiTahx8";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Tue, 09 Aug 2016 18:06:54 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] [PATCH 1/2] Moves Linux-only ppscheck program back
 to contrib/.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 10 Aug 2016 01:07:05 -0000

--Sig_/P+gQc1LEM.E8QSYUgiTahx8
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Hal!

On Tue, 09 Aug 2016 17:21:39 -0700
Hal Murray <hmurray@megapathdsl.net> wrote:

> > Fix pushed, pleasse give it a try. =20
>=20
> It builds and checks on Linux, NetBSD and FreeBSD.  I haven't tried
> running anything.

Cool.

> scons --clean doesn't get rid of ppscheck or ppscheck.o

I just looked at it.  I have no idea how scons decides what to clean, or
why it does not 'just work'.

Is this on a TIOMCIWAIT system where ppscheck works fine?  Or is this on
a non-TIOMCIWAIT where ppcheck got built but should not have been built?

Ideas?

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/P+gQc1LEM.E8QSYUgiTahx8
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXqn4oAAoJEA0O2UlB0XnY9toH/iNhBz3tpjVUIMsMtAaduEZF
0LQBrsodvw8bPCgCHEycwhvbEI/kNZMnRcPazg5QH/CzOX1Vtna/gi3n1/Mj3fIQ
Z4M//Ym2Vjrpg5razXkUeGApQTIAJfSas++2nm0XHO9yg/199zM3IibpjYmyq/a6
RQq1cAV+WVsQZNhP0ypzg1juK9hv4rI3tAUpq3Ivo7g/rkT4G2JqDyG5bsCBxifk
sFVEbtTe3NS3LDRIkk7fVLexaeBegwhIveumtT1UJ8MgyY4GRlmavP09lcnC+K0S
rQtKnqmqekKrOthhZ6ziQLCKLTXcRNW1t7APpKXDB2rmLXhHjIqMnHu3uDizcRM=
=imzV
-----END PGP SIGNATURE-----

--Sig_/P+gQc1LEM.E8QSYUgiTahx8--


From MAILER-DAEMON Tue Aug 09 21:50:10 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bXIeo-0004nw-Qo
	for mharc-gpsd-dev@gnu.org; Tue, 09 Aug 2016 21:50:10 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:48246)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bXIel-0004hw-ON
	for gpsd-dev@nongnu.org; Tue, 09 Aug 2016 21:50:08 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bXIej-00076y-Sh
	for gpsd-dev@nongnu.org; Tue, 09 Aug 2016 21:50:06 -0400
Received: from rellim.com ([2001:470:e815::19]:50470 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bXIej-00075v-Kw
	for gpsd-dev@nongnu.org; Tue, 09 Aug 2016 21:50:05 -0400
Received: from spidey.rellim.com (dave.rellim.com
	[IPv6:2001:470:e815:0:0:0:0:19] (may be forged))
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u7A1nqgo023902
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Tue, 9 Aug 2016 18:49:58 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u7A1nqgo023902
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1470793799; bh=ZgmEwM1dFoK6M4jC6FlJFImvwqDl6WkPFsZ5ZrQ/DmQ=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=QxFzXRM5jzWUiV8y01BqRPjdNN6eggPWUOhNMAkS6FtEJzj+7HJt31jiij5LD5RTy
	pZA4rFCMNuwtotu30pOOkzTb11cenj4eZw1CmvHshLWOqdYXpBFCi1Xc2lZYYop94J
	lG27M30jJDjEoW+X2uj8CV77+4Fkq78QP1tTFA8s=
Date: Tue, 9 Aug 2016 18:49:52 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Hal Murray <hmurray@megapathdsl.net>
Cc: gpsd-dev@nongnu.org
Message-ID: <20160809184952.16944964@spidey.rellim.com>
In-Reply-To: <20160806090944.DFC53406057@ip-64-139-1-69.sjc.megapath.net>
References: <20160806090944.DFC53406057@ip-64-139-1-69.sjc.megapath.net>
Organization: Rellim
X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/7oh23dNF.4VuTGQN2D1vqPx";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Tue, 09 Aug 2016 18:49:59 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] Lots of warnings
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 10 Aug 2016 01:50:08 -0000

--Sig_/7oh23dNF.4VuTGQN2D1vqPx
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Hal!

I pushed some fixes, give it another shot.

On Sat, 06 Aug 2016 02:09:44 -0700
Hal Murray <hmurray@megapathdsl.net> wrote:

> I thought gpsd was pretty clean, but I guess nobody has been looking=20
> carefully.

Clean on my compiler (gcc).  Yours is picky.

> Here is my collection from various systems...  If it matters, I'll
> dig out the version of gcc and the distro.

let's see how far we get first.

> bits.c:40:19: warning: left shift of negative value
> [-Wshift-negative-value] bits.c:71:15: warning: left shift of
> negative value [-Wshift-negative-value]
> bits.c:40:19: warning: left
> shift of negative value [-Wshift-negative-value]
> bits.c:71:15:
> warning: left shift of negative value [-Wshift-negative-value]

I remember Eric had something to say about this one, I'll leave it to him.

> ppscheck.c:58:1: warning: 'static' is not at beginning of declaration
> [-Wold-style-declaration] ppscheck.c:65:6: warning: no previous
> prototype for 'usage' [-Wmissing-prototypes]
> ppscheck.c:118:6: warning: format '%10ld' expects type 'long int',
> but argument 3 has type 'time_t'
> ppscheck.c:129:1: warning: control reaches end of non-void function=20
> [-Wreturn-type]

Eric got part of this, I think i got the last one.

> gps2udp.c:302:18: warning: array subscript is above array bounds

Now that is a good catch.  It really could have been an overrun!

> ntpshmmon.c:34:5: warning: implicit declaration of function 'memset'
> ntpshmmon.c:34:5: warning: incompatible implicit declaration of
> built-in function 'memset'

Fixed.

> timespec_str.c:48:12: warning: absolute value function 'labs' given
> an argument of type 'const time_t' (aka 'const long long') but has
> parameter of type 'long' which may cause truncation of value
> [-Wabsolute-value]=20

Huh???  time_t is a long!

> driver_nmea0183.c:1255:10: warning: taking the
> absolute value of unsigned type 'unsigned int' has no effect
> [-Wabsolute-value]

Duh.  Fixed.

> gpsd_json.c:1996:13: warning: this 'else' clause does not guard...=20
> [-Wmisleading
> -indentation]

Since when was indentation mandatory in C???  Fixed.

> cc1plus: warning: command line option "-Wmissing-declarations" is
> valid for C/ObjC but not for C++

Valid in gcc C++.  Can you come up with a patch do detect your non-gcc
conforming compiler?

> A blizzard from FreeBSD 9.3-RELEASE-p33 i386

Those are just weird...

> and a ffew more

Are we to guess?  Or are they too weird to bother?

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/7oh23dNF.4VuTGQN2D1vqPx
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXqohAAAoJEA0O2UlB0XnYD3IIAI78e25nfom5foKKBy31g9r+
eP65nSdrMlccv0a2BbG2bYV3XinGYdn9YoyXQDg0Uh1zx5ge+zeGhMKCpFJbtaZ7
/Jrfn/UBPb5qcpXY/BVxJmKf7t0ISupaziwTfmv/mGX+lAje5Y6KCfW3i071mwj/
WK1ogu3VtMyIObmevxZ/VOsvcMtzGHjvIJn/Hyj2gDivMZvN4BCixXGhy3D5DCuz
ib/daFDF6EroMFcAjTMYMJCLtDYu8sYqC0J4cR/eo017ysfgkzzwIC2FLgBJ6bA7
Qd1KrP/iFn20gsBmn3YcakmnqLcadNYFI/A7hSt4Sr0dTjOMdWLhMd2SUJy/ZRU=
=0lzg
-----END PGP SIGNATURE-----

--Sig_/7oh23dNF.4VuTGQN2D1vqPx--


From MAILER-DAEMON Wed Aug 10 02:26:38 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bXMyM-0004wV-Q8
	for mharc-gpsd-dev@gnu.org; Wed, 10 Aug 2016 02:26:38 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:37963)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bXMyK-0004wN-N4
	for gpsd-dev@nongnu.org; Wed, 10 Aug 2016 02:26:37 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bXMyG-0002Fg-IH
	for gpsd-dev@nongnu.org; Wed, 10 Aug 2016 02:26:35 -0400
Received: from ip-64-139-1-69.sjc.megapath.net ([64.139.1.69]:57636)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bXMyG-0002FP-BL
	for gpsd-dev@nongnu.org; Wed, 10 Aug 2016 02:26:32 -0400
Received: from shuksan (localhost [127.0.0.1])
	by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id 9D991406060; 
	Tue,  9 Aug 2016 23:26:30 -0700 (PDT)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: "Gary E. Miller" <gem@rellim.com>
cc: Hal Murray <hmurray@megapathdsl.net>,
	GPSD Developers List <gpsd-dev@nongnu.org>
From: Hal Murray <hmurray@megapathdsl.net>
In-Reply-To: Message from "Gary E. Miller" <gem@rellim.com> of "Tue,
	09 Aug 2016 18:06:48 PDT." <20160809180648.2591a284@spidey.rellim.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Tue, 09 Aug 2016 23:26:30 -0700
Message-Id: <20160810062630.9D991406060@ip-64-139-1-69.sjc.megapath.net>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.139.1.69
Subject: Re: [gpsd-dev] [PATCH 1/2] Moves Linux-only ppscheck program back
 to contrib/.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 10 Aug 2016 06:26:37 -0000


gem@rellim.com said:
>> scons --clean doesn't get rid of ppscheck or ppscheck.o
> I just looked at it.  I have no idea how scons decides what to clean, or why
> it does not 'just work'.

> Is this on a TIOMCIWAIT system where ppscheck works fine?  Or is this on a
> non-TIOMCIWAIT where ppcheck got built but should not have been built? 

It gets left on a system with TIOMCIWAIT.

-- 
These are my opinions.  I hate spam.





From MAILER-DAEMON Wed Aug 10 04:08:27 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bXOYs-0007oT-Vb
	for mharc-gpsd-dev@gnu.org; Wed, 10 Aug 2016 04:08:26 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:58707)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bXOYp-0007mE-3A
	for gpsd-dev@nongnu.org; Wed, 10 Aug 2016 04:08:23 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bXOYk-0001MS-4d
	for gpsd-dev@nongnu.org; Wed, 10 Aug 2016 04:08:23 -0400
Received: from ip-64-139-1-69.sjc.megapath.net ([64.139.1.69]:60902)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bXOYj-0001MB-TU
	for gpsd-dev@nongnu.org; Wed, 10 Aug 2016 04:08:18 -0400
Received: from shuksan (localhost [127.0.0.1])
	by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id DB86D406060; 
	Wed, 10 Aug 2016 01:08:15 -0700 (PDT)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: "Gary E. Miller" <gem@rellim.com>
cc: Hal Murray <hmurray@megapathdsl.net>, gpsd-dev@nongnu.org
From: Hal Murray <hmurray@megapathdsl.net>
In-Reply-To: Message from "Gary E. Miller" <gem@rellim.com> of "Tue,
	09 Aug 2016 18:49:52 PDT." <20160809184952.16944964@spidey.rellim.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Wed, 10 Aug 2016 01:08:15 -0700
Message-Id: <20160810080815.DB86D406060@ip-64-139-1-69.sjc.megapath.net>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.139.1.69
Subject: Re: [gpsd-dev] Lots of warnings
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 10 Aug 2016 08:08:24 -0000

> I pushed some fixes, give it another shot.

OK.  It will take a while.


> Huh???  time_t is a long!

Do you have any 32 bit systems?  Maybe a Raspberry Pi?


-- 
These are my opinions.  I hate spam.





From MAILER-DAEMON Wed Aug 10 09:01:34 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bXT8Y-0007p8-Kk
	for mharc-gpsd-dev@gnu.org; Wed, 10 Aug 2016 09:01:34 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:38607)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gdt@ir.bbn.com>) id 1bXT8W-0007p0-FK
	for gpsd-dev@nongnu.org; Wed, 10 Aug 2016 09:01:33 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gdt@ir.bbn.com>) id 1bXT8R-0008Q9-CB
	for gpsd-dev@nongnu.org; Wed, 10 Aug 2016 09:01:31 -0400
Received: from fnord.ir.bbn.com ([192.1.100.210]:49225)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gdt@ir.bbn.com>) id 1bXT8R-0008Pe-7z
	for gpsd-dev@nongnu.org; Wed, 10 Aug 2016 09:01:27 -0400
Received: by fnord.ir.bbn.com (Postfix, from userid 10853)
	id C8A99AF50; Wed, 10 Aug 2016 09:01:21 -0400 (EDT)
From: Greg Troxel <gdt@ir.bbn.com>
To: "Gary E. Miller" <gem@rellim.com>
Cc: Hal Murray <hmurray@megapathdsl.net>,  gpsd-dev@nongnu.org
References: <20160806090944.DFC53406057@ip-64-139-1-69.sjc.megapath.net>
	<20160809184952.16944964@spidey.rellim.com>
OpenPGP: id=32611E25
X-Hashcash: 1:20:160810:hmurray@megapathdsl.net::EVl8t5E4PiZxGDNh:000000000000000000000000000000000000000xkx
X-Hashcash: 1:20:160810:gem@rellim.com::fOlWnV/tjLtLJlJB:0004H30
X-Hashcash: 1:20:160810:gpsd-dev@nongnu.org::vA6QShds/fl/SRH1:000000000000000000000000000000000000000000Bd3n
Date: Wed, 10 Aug 2016 09:01:21 -0400
In-Reply-To: <20160809184952.16944964@spidey.rellim.com> (Gary E. Miller's
	message of "Tue, 9 Aug 2016 18:49:52 -0700")
Message-ID: <rmiy444hj6m.fsf@fnord.ir.bbn.com>
User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.5 (berkeley-unix)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
	micalg=pgp-sha1; protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 192.1.100.210
Subject: Re: [gpsd-dev] Lots of warnings
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 10 Aug 2016 13:01:33 -0000

--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable


"Gary E. Miller" <gem@rellim.com> writes:

>> timespec_str.c:48:12: warning: absolute value function 'labs' given
>> an argument of type 'const time_t' (aka 'const long long') but has
>> parameter of type 'long' which may cause truncation of value
>> [-Wabsolute-value]=20
>
> Huh???  time_t is a long!

No.  time_t is an "arithmetic types of an appropriate length".

http://pubs.opengroup.org/onlinepubs/007908775/xsh/systypes.h.html

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlerJaEACgkQ+vesoDJhHiUHkwCfSoQQSGDRPkxcGM2iau2wj9Wu
qlAAoIHzh3EyUCsvIePNgYzbq649VB17
=ELqg
-----END PGP SIGNATURE-----
--=-=-=--


From MAILER-DAEMON Wed Aug 10 09:46:21 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bXTpt-0003VY-Dj
	for mharc-gpsd-dev@gnu.org; Wed, 10 Aug 2016 09:46:21 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:47890)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rozzin@hackerposse.com>) id 1bXTpq-0003U7-Gw
	for gpsd-dev@nongnu.org; Wed, 10 Aug 2016 09:46:20 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rozzin@hackerposse.com>) id 1bXTpi-0004yf-1Q
	for gpsd-dev@nongnu.org; Wed, 10 Aug 2016 09:46:17 -0400
Received: from wobbly.hackerposse.com ([198.58.102.55]:45024)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rozzin@hackerposse.com>) id 1bXTph-0004we-Rz
	for gpsd-dev@nongnu.org; Wed, 10 Aug 2016 09:46:09 -0400
Received: from [192.168.1.138] (unknown [66.211.141.176])
	by wobbly.hackerposse.com (Postfix) with ESMTPSA id 42A1E10525;
	Wed, 10 Aug 2016 09:46:00 -0400 (EDT)
To: "Gary E. Miller" <gem@rellim.com>, Hal Murray <hmurray@megapathdsl.net>
References: <20160806090944.DFC53406057@ip-64-139-1-69.sjc.megapath.net>
	<20160809184952.16944964@spidey.rellim.com>
Cc: gpsd-dev@nongnu.org
From: Joshua Judson Rosen <rozzin@hackerposse.com>
X-Enigmail-Draft-Status: N1110
Message-ID: <e2e0e89b-5ff2-32de-c119-55f198dc5af3@hackerposse.com>
Date: Wed, 10 Aug 2016 09:45:54 -0400
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
	Icedove/45.1.0
MIME-Version: 1.0
In-Reply-To: <20160809184952.16944964@spidey.rellim.com>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 198.58.102.55
Subject: Re: [gpsd-dev] Lots of warnings
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 10 Aug 2016 13:46:20 -0000

On 08/09/2016 09:49 PM, Gary E. Miller wrote:
>> timespec_str.c:48:12: warning: absolute value function 'labs' given
>> an argument of type 'const time_t' (aka 'const long long') but has
>> parameter of type 'long' which may cause truncation of value
>> [-Wabsolute-value]=20
>=20
> Huh???  time_t is a long!

Not according to that error-message, which says that it's a *long long*
(like in the opening line of the song "American Pie", not in the
 opening line of the Star Wars Episode IV).

In order to have a 64-bit time_t and escape the 2038 problem,
wouldn't time_t have to be at least equivalent to "long long"
on 32-bit platforms where "long" is still only 32 bits?

I for example haven't had any desktops there were less than 64-bit for a =
while,
but I still have *lots* of 32-bit embedded Linux devices--ranging
from cheap routers to expensive robots.

--=20
"Don't be afraid to ask (=CE=BBf.((=CE=BBx.xx) (=CE=BBr.f(rr))))."


From MAILER-DAEMON Wed Aug 10 13:15:12 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bXX5z-0000Ry-Ul
	for mharc-gpsd-dev@gnu.org; Wed, 10 Aug 2016 13:15:11 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:57483)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rutsky.vladimir@gmail.com>) id 1bXWGT-0002sQ-Vz
	for gpsd-dev@nongnu.org; Wed, 10 Aug 2016 12:21:59 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rutsky.vladimir@gmail.com>) id 1bXWGQ-0005nJ-UF
	for gpsd-dev@nongnu.org; Wed, 10 Aug 2016 12:21:56 -0400
Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]:36435)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rutsky.vladimir@gmail.com>) id 1bXWGQ-0005n9-Ie
	for gpsd-dev@nongnu.org; Wed, 10 Aug 2016 12:21:54 -0400
Received: by mail-wm0-x231.google.com with SMTP id q128so103953496wma.1
	for <gpsd-dev@nongnu.org>; Wed, 10 Aug 2016 09:21:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:from:date:message-id:subject:to;
	bh=F4PtkW52IlgR6Edj0X5cYsaGzzYo+GVLkYG+tHBOQqk=;
	b=R/rQKDAD5XMXQOi3LkHrqaDFva6Dcqy/g1e/YviUUCBUGv3ZqemhQIajFXSsU5R7tw
	hLLJlca0RaHtPMi1UO56+tJqxNixAIoI9MUN4w2NghLJ+bag79DNQvg2lDEeuAsVSqUA
	BPh+aZAVvERJoe29O2TdLExNQ6snf63+OSTpNPcCK+jZtiBSwknxHNt/vNM2G+zYRrT3
	OUv1EwSkpdicf2dxzt3fP+ZO7HGVpJA5qeahtI9D4K4RB5N+0z7QgrqzO8Dsbj5lk95H
	2wbov13P91qfAOqsaoKzvU1SQgfx/mM9CMfVXm2nUHvsPCdXvX0MCVex/E9hCvpolwEe
	s9Fw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20130820;
	h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
	bh=F4PtkW52IlgR6Edj0X5cYsaGzzYo+GVLkYG+tHBOQqk=;
	b=aBZkCdymgKXPiF+Z9qw0mS4O5cAMD8eqtbwKcQpilGvYQMA9sDyZ+A6+hYYJtrYstR
	88HdQgezUQLSdqCbxMQgPZ5D3fck6HVNoQQhbZpZzgZ7PpJFy4lydaUQq7fgmRPP5/Fd
	U65RXJ0HU4GYm8pashdZO5lZqGdkta/YC+UjmDBlUnq8wKFndSBU0PzFKvKpiCsEGxvb
	g7shrdWNJmyEXtrKUnmyVCQIpfrDah+5SWAdx3MfzAqcxfZpNJJGLdprhLHEeviawUr0
	sSvkzQfVvv2f2kPZe+PatRnsKNi3ynFElYTHprLZgTpF4YiD0OYI/QZ7U7OHKRhhLRVZ
	1Ydg==
X-Gm-Message-State: AEkoouvjyBu0rk47m9WdRXfudqrzHeNJC6qc8fVG2PZDvtXWCAQHoDFwlMX/OlWBU/zbuea+WHEADEuvgf0MeA==
X-Received: by 10.25.25.133 with SMTP id 127mr776345lfz.14.1470846113102; Wed,
	10 Aug 2016 09:21:53 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.25.141.67 with HTTP; Wed, 10 Aug 2016 09:21:32 -0700 (PDT)
From: Vladimir Rutsky <rutsky.vladimir@gmail.com>
Date: Wed, 10 Aug 2016 19:21:32 +0300
Message-ID: <CAMwdcVaKmNhqCWwtrKePC=Ze076ZMEkq-O96ZqPKC7pBhQ9ksg@mail.gmail.com>
To: gpsd-dev@nongnu.org
Content-Type: multipart/mixed; boundary=001a11401d9c17a27f0539ba0cb1
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2a00:1450:400c:c09::231
X-Mailman-Approved-At: Wed, 10 Aug 2016 13:15:11 -0400
Subject: [gpsd-dev] [PATCH] fix several typos in AIVDM documentation
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 10 Aug 2016 16:22:00 -0000

--001a11401d9c17a27f0539ba0cb1
Content-Type: text/plain; charset=UTF-8

Hello,

I noticed several typos in AIVDM documentation and ran spell checker
on the rest of the file.
Please take a look.

Thanks,
Vladimir Rutsky

--001a11401d9c17a27f0539ba0cb1
Content-Type: text/x-patch; charset=US-ASCII; 
	name="0001-fix-several-typos-in-AIVDM-documentation.patch"
Content-Disposition: attachment; 
	filename="0001-fix-several-typos-in-AIVDM-documentation.patch"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_irp3qk4o0

RnJvbSAzMDhkYzc3YTZlZTc1NTNkMjFiZWMwZjEwYzA4MTkwNzc5MmQ4M2NiIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBWbGFkaW1pciBSdXRza3kgPHJ1dHNreS52bGFkaW1pckBnbWFp
bC5jb20+CkRhdGU6IFdlZCwgMTAgQXVnIDIwMTYgMTk6MTQ6NTQgKzAzMDAKU3ViamVjdDogW1BB
VENIXSBmaXggc2V2ZXJhbCB0eXBvcyBpbiBBSVZETSBkb2N1bWVudGF0aW9uCgpTaWduZWQtb2Zm
LWJ5OiBWbGFkaW1pciBSdXRza3kgPHJ1dHNreS52bGFkaW1pckBnbWFpbC5jb20+Ci0tLQogd3d3
L0FJVkRNLnR4dCB8IDUwICsrKysrKysrKysrKysrKysrKysrKysrKystLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tCiAxIGZpbGUgY2hhbmdlZCwgMjUgaW5zZXJ0aW9ucygrKSwgMjUgZGVsZXRpb25z
KC0pCgpkaWZmIC0tZ2l0IGEvd3d3L0FJVkRNLnR4dCBiL3d3dy9BSVZETS50eHQKaW5kZXggYjg2
OTRmYy4uMDFjYjc3YSAxMDA2NDQKLS0tIGEvd3d3L0FJVkRNLnR4dAorKysgYi93d3cvQUlWRE0u
dHh0CkBAIC0zMiw3ICszMiw3IEBAIGNlbGxwaG9uZXMgZG8gdG8gYXZvaWQgbXV0dWFsIGludGVy
ZmVyZW5jZS4gQUlTIHJlY2VpdmVycyBtYWtlIHRoaXMgZGF0YQogYXZhaWxhYmxlIGZvciBuYXZp
Z2F0aW9uLCBhbnRpLWNvbGxpc2lvbiBzeXN0ZW1zLCBhbmQgb3RoZXIgdXNlcy4KIAogVGhlIElu
dGVybmF0aW9uYWwgTWFyaXRpbWUgT3JnYW5pemF0aW9uJ3MgKElNTykgSW50ZXJuYXRpb25hbAot
Q29udmVudGlvbiBmb3IgdGhlIFNhZmV0eSBvZiBMaWZlIGF0IFNlYSAoU09MQVMpIHJlcWlyZXMg
b3BlcmF0aW5nIEFJUworQ29udmVudGlvbiBmb3IgdGhlIFNhZmV0eSBvZiBMaWZlIGF0IFNlYSAo
U09MQVMpIHJlcXVpcmVzIG9wZXJhdGluZyBBSVMKIHRyYW5zbWl0dGVycyBvbiBhbGwgaW50ZXJu
YXRpb25hbCBjYXJnbyB2ZXNzZWxzIG9mIG1vcmUgdGhhbiAzMDAgdG9ucwogZGlzcGxhY2VtZW50
LCBhbGwgY2FyZ28gdmVzc2VscyBvZiBtb3JlIHRoYW4gNTAwIHRvbnMgZGlzcGxhY2VtZW50LAog
YW5kIGFsbCBwYXNzZW5nZXIgdmVzc2Vsczsgc2VlIDw8U09MQVM+PiBmb3IgZGV0YWlscy4gIElu
ZGl2aWR1YWwKQEAgLTUyMiwxNCArNTIyLDE0IEBAIGZvciBhIGxpc3Qgb2YgTUlEcy4KIHwwME1J
RFhYWFggIHwgQ29hc3RhbCBzdGF0aW9ucwogfDExMU1JRFhYWCAgfCBTQVIgKFNlYXJjaCBhbmQg
UmVzY3VlKSBhaXJjcmFmdAogfDk5TUlEWFhYWCAgfCBBaWRzIHRvIE5hdmlnYXRpb24KLXw5OE1J
RFhYWFggIHwgQXV4aWxhcnkgY3JhZnQgYXNzb2NpYXRlZCB3aXRoIGEgcGFyZW50IHNoaXAKK3w5
OE1JRFhYWFggIHwgQXV4aWxpYXJ5IGNyYWZ0IGFzc29jaWF0ZWQgd2l0aCBhIHBhcmVudCBzaGlw
CiB8OTcwTUlEWFhYICB8IEFJUyBTQVJUIChTZWFyY2ggYW5kIFJlc2N1ZSBUcmFuc21pdHRlcikK
IHw5NzJYWFhYWFggIHwgTU9CIChNYW4gT3ZlcmJvYXJkKSBkZXZpY2UKIHw5NzRYWFhYWFggIHwg
RVBJUkIgKEVtZXJnZW5jeSBQb3NpdGlvbiBJbmRpY2F0aW5nIFJhZGlvIEJlYWNvbikgQUlTCiB8
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09CiAKIERldGFpbGVkIGRlc2NyaXB0aW9ucyBvZiBtZXNzYWdl
IHR5cGVzIDEtMjQgZm9sbG93LiBNZXNzYWdlIHR5cGVzIDEtMjIKLWFyZSBkZXJpdmVkIGZyb20g
PDxJQUxBPj4uIE1lc3NhZ2UgdHlwZSAyMyB3YXMgZGVjcmliZWQgdG8gbWUgYnkgTWlrZQorYXJl
IGRlcml2ZWQgZnJvbSA8PElBTEE+Pi4gTWVzc2FnZSB0eXBlIDIzIHdhcyBkZXNjcmliZWQgdG8g
bWUgYnkgTWlrZQogR3JlZW5lIGJhc2VkIG9uIDw8SUVDLTYyMjg3Pj4uICBNZXNzYWdlIHR5cGUg
MjQgd2FzIGRlc2NyaWJlZCB0byBtZSBieQogPDxTY2h3ZWhyPj4sIHdob3NlIFB5dGhvbiB0b29s
a2l0IGRlY29kZXMgaXQuIE1lc3NhZ2UgdHlwZXMgMjUtMjYgYXJlCiByZXBvcnRlZCBieSA8PFNj
aHdlaHI+Piwgd2hvIG9ic2VydmVzIHRoZXkgd2VyZSBhZGRlZCBpbiBWZXJzaW9uIDMgb2YKQEAg
LTk5Myw3ICs5OTMsNyBAQCBpbiB1c2UgZm9yIHR5cGUgNi4KIAogREFDL0ZJRCBwYWlycyBhcmUg
YXNzaWduZWQgc2VwYXJhdGVseSBwZXIgbWVzc2FnZSB0eXBlLgogCi1Ob3RlIHRoYXQgdGhlIGFw
cGFyZW50IHByZXNlbmNlIG9mIG9uZSBvZiB0aGVzZSBEQUMvRklEIHBhaXJzIGRvb2VzCitOb3Rl
IHRoYXQgdGhlIGFwcGFyZW50IHByZXNlbmNlIG9mIG9uZSBvZiB0aGVzZSBEQUMvRklEIHBhaXJz
IGRvZXMKIG5vdCBndWFyYW50ZWUgdGhhdCB0aGUgbWVzc2FnZSBpcyBzdHJ1Y3R1cmVkLiAgRGVj
b2RlcnMgc2hvdWxkCiBwZXJmb3JtIHJhbmdlIHZhbGlkYXRpb24gb24gdGhlIHN0cnVjdHVyZWQg
ZmllbGRzIGFuZCBpbnRlcnByZXQgdGhlCiBtZXNzYWdlIGFzIHVuc3RydWN0dXJlZCBpZiBhbnkg
Y2hlY2sgZmFpbHMuIChBcyBvZiBBdWcgMjAxNCBubyBzdWNoCkBAIC0xMjAwLDcgKzEyMDAsNyBA
QCBhdXRob3JpdHkgaXQgaXMgYSBiZXJ0aGluZyBhc3NpZ25tZW50LgogCiBBIG1lc3NhZ2UgNiBz
dWJ0eXBlLiBEQUMgPSAwMDEgRklEID0gMjAuIEZpeGVkIExlbmd0aDogMzYwIGJpdHMuCiAKLVRo
ZSAyLWJpdCBmaWVsZHMgYWZ0ZXIgImF2YWlsYWJpbHR5IiBkZXNjcmliZSBzZXJ2aWNlcyB3aGlj
aCBtYXkgYmUKK1RoZSAyLWJpdCBmaWVsZHMgYWZ0ZXIgImF2YWlsYWJpbGl0eSIgZGVzY3JpYmUg
c2VydmljZXMgd2hpY2ggbWF5IGJlCiBhdmFpbGFibGUgYXQgdGhlIGJlcnRoLiAgVGhleSBhcmUg
dmFsaWQgb25seSBpZiB0aGlzIG1hc3RlciBhdmFpbGFiaWxpdHkKIGJpdCBpcyBvbi4KIApAQCAt
MTg3NSw3ICsxODc1LDcgQEAgb25jZS4KIHwyNDMtMjQ3IHwgIDUgfFNwYXJlICAgICAgICAgICAg
ICB8ICAgICAgICAgIHx4fE5vdCB1c2VkCiB8PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09CiAKLTw8SU5M
QU5EPj4gc2F5cyBvZiB0aGUgRGVzdHVuYXRpb24gTU1TSSBmaWVsZCAiYSB2aXJ0dWFsIE1NU0kg
bnVtYmVyCis8PElOTEFORD4+IHNheXMgb2YgdGhlIERlc3RpbmF0aW9uIE1NU0kgZmllbGQgImEg
dmlydHVhbCBNTVNJIG51bWJlcgogc2hvdWxkIGJlIHVzZWQgZm9yIGVhY2ggY291bnRyeSwgZWFj
aCBuYXRpb25hbCBBSVMgbmV0d29yayBzaG91bGQKIHJvdXRlIG1lc3NhZ2VzIGFkZHJlc3NlZCB0
byBvdGhlciBjb3VudHJpZXMgdXNpbmcgdGhpcyB2aXJ0dWFsIE1NU0kKIG51bWJlciIuCkBAIC0y
MTIzLDcgKzIxMjMsNyBAQCBwZXJmb3JtIHJhbmdlIHZhbGlkYXRpb24gb24gdGhlIHN0cnVjdHVy
ZWQgZmllbGRzIGFuZCBpbnRlcnByZXQgdGhlCiBtZXNzYWdlIGFzIHVuc3RydWN0dXJlZCBpZiBh
bnkgY2hlY2sgZmFpbHMuIEFjdHVhbCBmYWxzZSBtYXRjaGVzIHdpdGgKIERBQy9GSUQgPSAyMDAv
MTAgaGF2ZSBiZWVuIG9ic2VydmVkIGluIHRoZSB3aWxkLgogCi1EQUMvRklEIHBhaXJzIDEvMjMs
IDEvMjgsIGFuZCAxLzMwIGhhdmUgYWRkcmVzc2VkIHZlcnNpb25zIGRlc2NydWJlZAorREFDL0ZJ
RCBwYWlycyAxLzIzLCAxLzI4LCBhbmQgMS8zMCBoYXZlIGFkZHJlc3NlZCB2ZXJzaW9ucyBkZXNj
cmliZWQKIHVuZGVyIHR5cGUgNi4KIAogRklEIHR5cGVzIDExLTE1IGFyZSBiZWluZyBwaGFzZWQg
b3V0IGFuZCBhcmUgbm90IHRvIGJlIHVzZWQgYWZ0ZXIgMQpAQCAtMjI0OSw3ICsyMjQ5LDcgQEAg
Zm9yIHdoYXRldmVyIHRoYXQgbWVhbnMuCiAKIFRoZSBzZWFzdGF0ZSBmaWVsZCBoYXMgYSBub3Rl
IGluIDw8SU1PMjM2Pj4gcmVhZGluZyAiKG1hbnVhbCBpbnB1dD8pIj8KIAotV01PIDMwNiBDb2Rl
IHRhYmxlIDQuMjAxIHNwZWNpZmllcyB0aGUgZm9sbG93aW5nIHByZWNpcGl0YXRpdW9uIHR5cGUg
dmFsdWVzOgorV01PIDMwNiBDb2RlIHRhYmxlIDQuMjAxIHNwZWNpZmllcyB0aGUgZm9sbG93aW5n
IHByZWNpcGl0YXRpb24gdHlwZSB2YWx1ZXM6CiAKIC5QcmVjaXBpdGF0aW9uIFR5cGVzCiBbd2lk
dGg9IjUwJSIsZnJhbWU9InRvcGJvdCIsb3B0aW9ucz0iaGVhZGVyIl0KQEAgLTIzMTIsOSArMjMx
Miw5IEBAIERlc2NyaWJlZCBpbiA8PElNTzIzNj4+IGJ1dCBkZXByZWNhdGVkIGJ5IDw8SU1PMjg5
Pj4uCiB8MzgtMzkgICB8ICAyIHxTcGFyZSAgICAgICAgICAgICAgICAgICB8ICAgICAgICAgfHh8
Tm90IHVzZWQKIHw0MC00OSAgIHwgMTAgfERBQyAgICAgICAgICAgICAgICAgICAgIHxkYWMgICAg
ICB8dXxEQUMgPSAwMDEKIHw1MC01NSAgIHwgIDYgfEZJRCAgICAgICAgICAgICAgICAgICAgIHxm
aWQgICAgICB8dXxGSUQgPSAxMwotfDU2LTE3NSAgfDEyMCB8UmVhc29uIEZvciBDbG9zaW5nICAg
ICAgfHJlYXNvbiAgIHx0fDIwIDYtYml0IGNoYXJhY2N0ZXJzCi18MTc2LTI5NSB8MTIwIHxMb2Nh
dGlvbiBPZiBDbG9zaW5nIEZyb218Y2xvc2Vmcm9tfHR8MjAgNi1iaXQgY2hhcmFjY3RlcnMKLXwy
OTYtNDE1IHwxMjAgfExvY2F0aW9uIG9mIENsb3NpbmcgVG8gIHxjbG9zZXRvICB8dHwyMCA2LWJp
dCBjaGFyYWNjdGVycworfDU2LTE3NSAgfDEyMCB8UmVhc29uIEZvciBDbG9zaW5nICAgICAgfHJl
YXNvbiAgIHx0fDIwIDYtYml0IGNoYXJhY3RlcnMKK3wxNzYtMjk1IHwxMjAgfExvY2F0aW9uIE9m
IENsb3NpbmcgRnJvbXxjbG9zZWZyb218dHwyMCA2LWJpdCBjaGFyYWN0ZXJzCit8Mjk2LTQxNSB8
MTIwIHxMb2NhdGlvbiBvZiBDbG9zaW5nIFRvICB8Y2xvc2V0byAgfHR8MjAgNi1iaXQgY2hhcmFj
dGVycwogfDQxNi00MjUgfCAxMCB8UmFkaXVzIGV4dGVuc2lvbiAgICAgICAgfHJhZGl1cyAgIHx1
fDAtMTAwMCwgMTAwMDEgPSBOL0EgKGRlZmF1bHQpCiB8NDI2LTQyNyB8ICAyIHxVbml0IG9mIGV4
dGVuc2lvbiAgICAgICB8ZXh0dW5pdCAgfHV8MD1tLCAxPWttLCAyPW5tLCAzPWNhYmxlcwogfDQy
OC00MzIgfCAgNSB8RnJvbSBkYXkgKFVUQykgICAgICAgICAgfGZkYXkgICAgIHx1fDEtMzEsIDA9
Ti9BIChkZWZhdWx0KQpAQCAtMzMyMSw3ICszMzIxLDcgQEAgVGhlIHN0YW5kYXJkIGRvZXMgbm90
IGZpeCB0aGUgbWVhbmluZyBvZiBhIHdhdGVyIHRlbXBlcmF0dXJlIGRlcHRoIG9mIDEyNy4KICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDUwNC01MTEg
cmVzZXJ2ZWQuCiB8NDUtNDYgICB8ICAyIHxTYWxpbml0eSBUeXBlICAgICAgfHNhbGluaXR5dHlw
ZXxlfDAgPSBtZWFzdXJlZCwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgMSA9IGNhbGN1bGF0ZWQgdXNpbmcgUFNTLTc4LAotICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAyID0gY2FsY2xhdGVkIHVzaW5nIG90
aGVyIG1ldGhvZCwKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgMiA9IGNhbGN1bGF0ZWQgdXNpbmcgb3RoZXIgbWV0aG9kLAogICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAzID0gcmVzZXJ2ZWQuCiB8NDctNDkg
ICB8ICAzIHxTZW5zb3IgRGVzY3JpcHRpb24gfHNlbnNvcnR5cGUgIHxlfFNlZSAiU2Vuc29yIFR5
cGVzIgogfDUwLTg0ICAgfCAzNSB8U3BhcmUgICAgICAgICAgICAgIHwgICAgICAgICAgICB8eHxO
b3QgdXNlZApAQCAtMzM1MCw4ICszMzUwLDggQEAgTm8gZGVmYXVsdCBpcyBzcGVjaWZpZWQgZm9y
IHNhbGluaXR5IHR5cGUuCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgIDI0NC0yNTUgcmVzZXJ2ZWQuCiB8MjQtMzMgICB8IDEwIHxEZXcgUG9pbnQgICAg
ICAgICAgIHxkZXdwb2ludCAgICB8aXwtMjAuMCB0byArNTAuMDogMC4xIGRlZyBDLAogICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA1MDEgPSBOL0EgKGRl
ZmF1bHQpLAotICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICA1MDItNTExIHJzc2VydmVkLAotICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAtNTExLS0yMDEgcnNzZXJ2ZWQuCisgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgIDUwMi01MTEgcmVzZXJ2ZWQsCisgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC01MTEtLTIwMSByZXNlcnZl
ZC4KIHwzNC0zNiAgIHwgIDMgfERld3BvaW50IFNlbnNvciBUeXBlfGRld3R5cGUgICAgIHxlfFNl
ZSAiU2Vuc29yIFR5cGVzIi4KIAogCkBAIC0zNjY2LDcgKzM2NjYsNyBAQCBleHBhbmQgYm90aC4g
IEZ1bGwgRVJJIGNvZGVzIGhhdmUgYmVlbiBvYnNlcnZlZCBpbiB0aGUgd2lsZC4KIHw4MjUwIHwg
IDc5ICAgfCBQdXNodG93LCBmaXZlIGNhcmdvIGJhcmdlcwogfDgyNjAgfCAgNzkgICB8IFB1c2h0
b3csIHNpeCBjYXJnbyBiYXJnZXMKIHw4MjcwIHwgIDc5ICAgfCBQdXNodG93LCBzZXZlbiBjYXJn
byBiYXJnZXMKLXw4MjgwIHwgIDc5ICAgfCBQdXNodG93LCBlaWd0aCBjYXJnbyBiYXJnZXMKK3w4
MjgwIHwgIDc5ICAgfCBQdXNodG93LCBlaWdodCBjYXJnbyBiYXJnZXMKIHw4MjkwIHwgIDc5ICAg
fCBQdXNodG93LCBuaW5lIG9yIG1vcmUgYmFyZ2VzCiB8ODMxMCB8ICA4MCAgIHwgUHVzaHRvdywg
b25lIHRhbmsvZ2FzIGJhcmdlCiB8ODMyMCB8ICA4MCAgIHwgUHVzaHRvdywgdHdvIGJhcmdlcyBh
dCBsZWFzdCBvbmUgdGFua2VyIG9yIGdhcyBiYXJnZQpAQCAtMzgyNiw3ICszODI2LDcgQEAgbWVz
c2FnZXMuCiB8NTYtNjcgICB8IDEyIHxVTiBDb3VudHJ5IENvZGUgICAgIHxjb3VudHJ5ICAgIHx0
fDIgc2l4LWJpdCBjaGFyYWN0ZXJzCiB8NjggICAgICB8ICAgIHwgICAgICAgICAgICAgICAgICAg
IHxnYXVnZXMgICAgIHxhNHxHYXVnZSBtZWFzdXJlbWVudCBhcnJheQogfDAtMTAgICAgfCAxMSB8
R2F1Z2UgSUQgICAgICAgICAgICB8aWQgICAgICAgICB8dXwwPXVua25vd24gKGRlZmF1bHQpCi18
MTEtMjQgICB8IDE0IHxXYXRlciBMZXZlbCAgICAgICAgIHxsZXZlbCAgICAgIHxpfGNtLCAwPXVu
a25vd24gKGRlZmFpbHQpCit8MTEtMjQgICB8IDE0IHxXYXRlciBMZXZlbCAgICAgICAgIHxsZXZl
bCAgICAgIHxpfGNtLCAwPXVua25vd24gKGRlZmF1bHQpCiB8PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PQogCiBXYXRlciBsZXZlbHMgYXJlIHJlbGF0aXZlIHRvIHRoZSBsb2NhbCBzdGFuZGFyZCwgZS5n
LiBHSVcgaW4gR2VybWFueQpAQCAtNDA3OSw3ICs0MDc5LDcgQEAgb25lIG1lc3NhZ2UgdHlwZS4g
IExlbmd0aCBpcyAxNjAgYml0cy4KIAogTWVzc2FnZSB0eXBlIDE2IGlzIHVzZWQgYnkgYSBiYXNl
IHN0YXRpb24gd2l0aCBjb250cm9sIGF1dGhvcml0eSB0bwogY29uZmlndXJlIHRoZSBzY2hlZHVs
aW5nIG9mIEFJUyBpbmZvcm1hdGlvbmFsIG1lc3NhZ2VzIGZyb20KLXN1Ym9yZGluYXRlIHN0YXRp
b25zLCBlaXRoZXIgYXMgYSBmcnF1ZW5jeSBwZXIgMTAtbWludXRlIGludGVydmFsIG9yCitzdWJv
cmRpbmF0ZSBzdGF0aW9ucywgZWl0aGVyIGFzIGEgZnJlcXVlbmN5IHBlciAxMC1taW51dGUgaW50
ZXJ2YWwgb3IKIGJ5IHNwZWNpZnlpbmcgdGhlIFRETUEgc2xvdChzKSBvZmZzZXQgb24gd2hpY2gg
dGhvc2UgbWVzc2FnZXMgc2hvdWxkCiBiZSB0cmFuc21pdHRlZC4gIEl0IGlzIHByb2JhYmx5IG5v
dCBvZiBpbnRlcmVzdCB1bmxlc3MgeW91IGFyZQogc3R1ZHlpbmcgdGhlIGludGVybmFsIG9wZXJh
dGlvbiBvZiBhbiBBSVMgYmFzZSBzdGF0aW9uIG5ldHdvcmsuCkBAIC00NDE4LDcgKzQ0MTgsNyBA
QCBuZXR3b3JrLgogfD09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQogCiBUaGUgdmFsdWVzIG9mIHRoZSBj
aGFubmVsX2EgYW5kIGNoYW5uZWxfYiBmaWVsZHMgYXJlIElUVSBmcmVxdWVuY3kKLWRlc2lnbmF0
b3JzIGZvciBjaGFubmVsYXMgQSBhbmQgQi4gTm9ybWFsbHkgdGhlc2Ugd2lsbCBiZSAyMDg3IGFu
ZAorZGVzaWduYXRvcnMgZm9yIGNoYW5uZWxzIEEgYW5kIEIuIE5vcm1hbGx5IHRoZXNlIHdpbGwg
YmUgMjA4NyBhbmQKIDIwODgsIHRoZSBBSVMgMSBhbmQgQUlTIDIgZnJlcXVlbmNpZXMgb2YgODdC
ICgxNjEuOTc1IE1IeikgYW5kIDg4QgogKDE2Mi4wMjUgTUh6KSByZXNwZWN0aXZlbHkuIFJlZ2lv
bmFsIGF1dGhvcml0aWVzIG1heSBzZXQgZGlmZmVyZW50CiBmcmVxdWVuY2llcy4KQEAgLTQ0ODEs
NyArNDQ4MSw3IEBAIHN0YXRpb24gbmV0d29yay4KIAogVGhlIHRhcmdldCBzZXQgb2YgbW9iaWxl
IHN0YXRpb25zIGlzIHNwZWNpZmllZCBieSB0aGUgc3RhdGlvbi10eXBlIGFuZAogc2hpcC10eXBl
IGZpZWxkcy4gQW4gYWRkcmVzc2VkIChub24tYnJvYWRjYXN0KSBtZXNzYWdlIDIyIG92ZXJyaWRl
cyBhCi1tZXNzYWdlIDIzLCBidXQgYSBtZXNzYWdlIDIzIG92ZXdycmlkZXMgYSBicm9hZGNhc3Qg
bWVzc2FnZSAyMi4KK21lc3NhZ2UgMjMsIGJ1dCBhIG1lc3NhZ2UgMjMgb3ZlcnJpZGVzIGEgYnJv
YWRjYXN0IG1lc3NhZ2UgMjIuCiAKIE5vdGUgdGhhdCB0aGUgJ25vdCBhdmFpbGFibGUnIHZhbHVl
cyBmb3IgbG9uZ2l0dWRlIGFuZCBsYXRpdHVkZXMKIG1hdGNoIHRoZSBzaG9ydCBvbmVzIHVzZWQg
aW4gbWVzc2FnZXMgMTcgYW5kIDIyLCBub3QgdGhlIGxvbmcgb25lcwpAQCAtNDU1Miw3ICs0NTUy
LDcgQEAgdXNlZCB0byBhc3NvY2lhdGUgYW4gTU1TSSB3aXRoIGEgbmFtZSBvbiBlaXRoZXIgY2xh
c3MgQSBvciBjbGFzcyBCIGVxdWlwbWVudC4KIEEgIlR5cGUgMjQiIG1heSBiZSBpbiBwYXJ0IEEg
b3IgcGFydCBCIGZvcm1hdDsgQWNjb3JkaW5nIHRvIHRoZQogc3RhbmRhcmQsIHBhcnRzIEEgYW5k
IEIgYXJlIGV4cGVjdGVkIHRvIGJlIGJyb2FkY2FzdCBpbiBhZGphY2VudAogcGFpcnM7IGluIHRo
ZSByZWFsIHdvcmxkIHRoZXkgbWF5IChkdWUgdG8gcXVpcmtzIGluIHZhcmlvdXMKLWFnZ3JlZ2F0
aW9uIG1ldGhvZHMpIGJlIHNlcGFyYXRlZCBieSBvdGhlciBzZW50YW5jZXMgb3IgZXZlbgorYWdn
cmVnYXRpb24gbWV0aG9kcykgYmUgc2VwYXJhdGVkIGJ5IG90aGVyIHNlbnRlbmNlcyBvciBldmVu
CiBpbnRlcmxlYXZlZCB3aXRoIGRpZmZlcmVudCBUeXBlIDI0IHBhaXJzOyBkZWNvZGVycyBtdXN0
IGNvcGUgd2l0aAogdGhpcy4gIFRoZSBpbnRlcnByZXRhdGlvbiBvZiBzb21lIGZpZWxkcyBpbiBU
eXBlIEIgZm9ybWF0IGNoYW5nZXMKIGRlcGVuZGluZyBvbiB0aGUgcmFuZ2Ugb2YgdGhlIFR5cGUg
QiBNTVNJIGZpZWxkLiAxNjAgYml0cyBmb3IgcGFydCBBLApAQCAtNDYxMCw3ICs0NjEwLDcgQEAg
ZGltZW5zaW9ucyBhcyBpbiBNZXNzYWdlIFR5cGUgNS4KIAogQWNjb3JkaW5nIHRvIDw8TU1TST4+
LCBhbiBNTVNJIGlzIGFzc29jaWF0ZWQgd2l0aCBhbiBhdXhpbGlhcnkgY3JhZnQKIHdoZW4gaXQg
aXMgb2YgdGhlIGZvcm0gOThYWFhZWVlZLCB3aGVyZSAoMSkgdGhlICc5OCcgaW4gcG9zaXRpb25z
IDEKLWFuZCAyIGlzIHJlcXVpcmVkIHRvIGRlc2lnbmF0ZSBhbiBhdXhpbGFyeSBjcmFmdCwgKDIp
IHRoZSBkaWdpdHMgWFhYCithbmQgMiBpcyByZXF1aXJlZCB0byBkZXNpZ25hdGUgYW4gYXV4aWxp
YXJ5IGNyYWZ0LCAoMikgdGhlIGRpZ2l0cyBYWFgKIGluIHRoZSAzLCA0IGFuZCA1IHBvc2l0aW9u
cyBhcmUgdGhlIE1JRCAodGhlIHRocmVlLWRpZ2l0IGNvdW50cnkgY29kZQogYXMgZGVzY3JpYmVk
IGluIDw8SVRVLU1JRD4+KSBhbmQgKDMpIFlZWVkgaXMgYW55IGRlY2ltYWwgbGl0ZXJhbCBmcm9t
CiAwMDAwIHRvIDk5OTkuCkBAIC00NjgxLDcgKzQ2ODEsNyBAQCBub3RlICJBbGxvd3MgZm9yIDMy
IGJpdHMgb2YgYml0LXN0dWZmaW5nLiIKIFRoZSAyMCByYWRpbyBzdGF0dXMgYml0cyBhcmUgYWx3
YXlzIHByZXNlbnQgYWZ0ZXIgZW5kLW9mLWRhdGEgaW4gdGhlCiBsYXN0IHNsb3QgYW5kIGFyZSBp
biB0aGUgZm9ybWF0IHNwZWNpZmllZCBieSA8PElBTEE+Pi4gIFRoZSByYWRpbwogc3RhdHVzIGlz
IDIwIGJpdHMgcmF0aGVyIHRoYW4gMTkgYmVjYXVzZSBhbiBleHRyYSBmaXJzdCBiaXQgc2VsZWN0
cwotd2hldGhlciBpdCBzaG91bGQgYmUgaW50ZXJwcmV0cmVkIGFzIGEgU09URE1BIG9yIElURE1B
IHN0YXRlLgord2hldGhlciBpdCBzaG91bGQgYmUgaW50ZXJwcmV0ZWQgYXMgYSBTT1RETUEgb3Ig
SVRETUEgc3RhdGUuCiBpCiBOb3RlOiBUeXBlIDI2IGlzIGV4dHJlbWVseSByYXJlLiBBcyBvZiBB
cHJpbCAyMDExIGl0IGhhcyBub3QgYmVlbgogb2JzZXJ2ZWQgZXZlbiBpbiBsb25nLWR1cmF0aW9u
IHNhbXBsZXMgZnJvbSBBSVNIdWIuCkBAIC00ODA0LDcgKzQ4MDQsNyBAQCB0aGUgdHlwZSBvZiBB
SVMgZXF1aXBtZW50LgogCiBCZWdpbm5pbmcgd2l0aCBOTUVBIDQuMTAsIHRoZSBzdGFuZGFyZCBk
ZXNjcmliZXMgYSB3YXkgdG8gaW50ZXJzcGVyc2UKICJ0YWcgYmxvY2tzIiB3aXRoIEFJUyBzZW50
ZW5jZXMgaW4gb3JkZXIgdG8gc3VwcGx5IGFkZGl0aW9uYWwKLW1ldGFkYXRhLCB1ZHVhbGx5IGEg
VW5peCB0aW1lc3RhbXAgdG8gYmUgYXNzb2NpYXRlZCB3aXRoIGEgc2VudGVuY2UKK21ldGFkYXRh
LCB1c3VhbGx5IGEgVW5peCB0aW1lc3RhbXAgdG8gYmUgYXNzb2NpYXRlZCB3aXRoIGEgc2VudGVu
Y2UKIChvciBjb250aWd1b3VzIGdyb3VwIG9mIHNlbnRlbmNlcyBzdWNoIGFzIGFuIGFybW9yZWQg
QUlTIFR5cGUgNSkuCiAKIFRoZSB0YWcgYmxvY2sgZmFjaWxpdHkgaXMgY29tcGxleCwgaW4gc29t
ZSByZXNwZWN0cyBwb29ybHkgc3BlY2lmaWVkLApAQCAtNDg5Myw3ICs0ODkzLDcgQEAgT25lIGlz
IGFuIGFwcGFyZW50IGVycm9yIGluIHRoZSBmb3JtYXQgZGVzaWduLiAgVGhlIHR5cGUgMTUgbWVz
c2FnZQogaGFzIGEgdmFyaWFudCB3aXRoIDEwOCBkYXRhIGJpdHMgYW5kIGEgdHJhaWxpbmcgMi1i
aXQgc3BhcmUgZmllbGQsIGZvcgogMTEwLiBUaGlzIHNwYXJlIHNob3VsZCBoYXZlIGJlZW4gNCBi
aXRzIHRvIGd1YXJhbnRlZSBhIGJ5dGUgYm91bmRhcnkKIGF0IDExMiBiaXRzLiBEZWNvZGVycyBu
ZWVkIHRvIGJlIHByZXBhcmVkIHRvIGVuY291bnRlciB0aGlzIGxlbmd0aAotaW4gY2FzZSB0aGUg
dHJhbnNtaXR0ZXIgaGFzIGltcGxlbWVudGVkIHRoZSBwYWRkaW5nIHJlcWlyZW1lbnQKK2luIGNh
c2UgdGhlIHRyYW5zbWl0dGVyIGhhcyBpbXBsZW1lbnRlZCB0aGUgcGFkZGluZyByZXF1aXJlbWVu
dAogcHJvcGVybHkuCiAKIFRoZSBvdGhlciBpcyBtZXNzYWdlcyBjb250YWluaW5nIHZhcmlhYmxl
LWxlbmd0aCB0ZXh0IHBhY2tlZCBpbnRvCkBAIC00OTkyLDcgKzQ5OTIsNyBAQCBGcmVlIFNhbiBG
cmFuY2lzY28gQmF5IEFyZWEgQUlTIGZlZWQuIEZvciBub24tY29tbWVyY2lhbCB1c2Ugb25seS4K
IEhlcmUgaXMgYW4gYXBwbGljYXRpb24gb2YgdGhlIEpTT04gbWV0YWZvcm1hdCB0byBwcmVzZW50
IEFJUyBkYXRhIGluIGEKIGZvcm0gbW9yZSBjb252ZW5pZW50IGZvciBhcHBsaWNhdGlvbiB1c2Ug
dGhhbiBBSVZETS9BSVZETyBzZW50ZW5jZXMuCiBUaGlzIGVuY29kaW5nIGlzIGltcGxlbWVudGVk
IGJ5IEdQU0QgYW5kIGl0cyBjbGllbnQgbGlicmFyaWVzLiAgSXQgaXMKLWRlY3JpYmVkIGhlcmUg
YmVjYXVzZSAoYSkgdGhlIHNwZWNpZmljYXRpb24gaXMgY2xvc2VseSB0aWVkIHRvIHRoZQorZGVz
Y3JpYmVkIGhlcmUgYmVjYXVzZSAoYSkgdGhlIHNwZWNpZmljYXRpb24gaXMgY2xvc2VseSB0aWVk
IHRvIHRoZQogZmllbGQgZW5jb2RpbmdzLCBhbmQgKGIpIHRoZSBhdXRob3Igd2lzaGVzIHRvIG9m
ZmVyIGl0IGFzIGFuCiBpbnRlcm9wZXJhYmlsaXR5IHN0YW5kYXJkIGZvciBvdGhlciBhcHBsaWNh
dGlvbnMuCiAKLS0gCjIuNy40Cgo=
--001a11401d9c17a27f0539ba0cb1--


From MAILER-DAEMON Wed Aug 10 15:09:01 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bXYs9-0006a6-D4
	for mharc-gpsd-dev@gnu.org; Wed, 10 Aug 2016 15:09:01 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:39343)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bXYs6-0006Xe-DR
	for gpsd-dev@nongnu.org; Wed, 10 Aug 2016 15:08:59 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bXYs5-0001kB-FR
	for gpsd-dev@nongnu.org; Wed, 10 Aug 2016 15:08:58 -0400
Received: from rellim.com ([2001:470:e815::19]:42727 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bXYs5-0001jd-6t
	for gpsd-dev@nongnu.org; Wed, 10 Aug 2016 15:08:57 -0400
Received: from spidey.rellim.com (dave.rellim.com
	[IPv6:2001:470:e815:0:0:0:0:19] (may be forged))
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u7AJ8lxF016872
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Wed, 10 Aug 2016 12:08:52 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u7AJ8lxF016872
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1470856133; bh=GdeaDsWeGQOv8KALiB/taBvd2dZQ1tP96OzblCdcovE=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=tmr6jD/9aE/brQQqFWeG+bNxMGghPI+r6YQe/LorRZcdHyRGf2e7zTQWyPTATXhR2
	G4yWCVwz1l/qUJomTRiHD6HhiGPUD+a6ZxtSgrue37PxLugGbKJ2MP/qkQHeL2wY0u
	ZEBQ9YKuCLmd0xIN+dAvaGbNSsIUSHyW+Bp0F3gU=
Date: Wed, 10 Aug 2016 12:08:47 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Vladimir Rutsky <rutsky.vladimir@gmail.com>
Cc: gpsd-dev@nongnu.org
Message-ID: <20160810120847.634436ed@spidey.rellim.com>
In-Reply-To: <CAMwdcVaKmNhqCWwtrKePC=Ze076ZMEkq-O96ZqPKC7pBhQ9ksg@mail.gmail.com>
References: <CAMwdcVaKmNhqCWwtrKePC=Ze076ZMEkq-O96ZqPKC7pBhQ9ksg@mail.gmail.com>
Organization: Rellim
X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/9pH3sw2modPnEQYp4AQTkLG";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Wed, 10 Aug 2016 12:08:53 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] [PATCH] fix several typos in AIVDM documentation
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 10 Aug 2016 19:08:59 -0000

--Sig_/9pH3sw2modPnEQYp4AQTkLG
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Vladimir!

On Wed, 10 Aug 2016 19:21:32 +0300
Vladimir Rutsky <rutsky.vladimir@gmail.com> wrote:

> I noticed several typos in AIVDM documentation and ran spell checker
> on the rest of the file.
> Please take a look.

Nice.  Thanks.  Applied and pushed.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/9pH3sw2modPnEQYp4AQTkLG
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXq3u/AAoJEA0O2UlB0XnY/MoH/1MmxB6ad/rYtn4PAPW83tN7
QD1l9Ohu/tEwA5IasS2G15GQcuhOowHe52LJSY7HKORtLWUoZUHrZerHq9JCu1LG
NjBdVScBEfuNpqtBSRhw/2irXUNXLyXhZcdEr5y4ou8rowpoM7biOysB/f/MZ8sH
+rRRazv/i/aSeqoUb4C0zTaCPyhofwjHXkKtNSupzZMV7jOLhE18QTx4+A8emEHI
h4eTNnIwPdMU++gOt+kN/Ivdj/rLXdA4sI/r2egcw5OEFwBbDfq3NlNrDlzXYnm9
lqmosKuLr++FGal2N0a6p3nSxO+vWAXAFXulGdhxCPvHSI+F16olYcyU1CN4ZyA=
=CulO
-----END PGP SIGNATURE-----

--Sig_/9pH3sw2modPnEQYp4AQTkLG--


From MAILER-DAEMON Wed Aug 10 15:42:35 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bXZOd-0000wc-TO
	for mharc-gpsd-dev@gnu.org; Wed, 10 Aug 2016 15:42:35 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:48046)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bXZOb-0000wN-GG
	for gpsd-dev@nongnu.org; Wed, 10 Aug 2016 15:42:34 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bXZOZ-0003TH-Dc
	for gpsd-dev@nongnu.org; Wed, 10 Aug 2016 15:42:32 -0400
Received: from rellim.com ([2001:470:e815::19]:44283 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bXZOZ-0003TA-58
	for gpsd-dev@nongnu.org; Wed, 10 Aug 2016 15:42:31 -0400
Received: from spidey.rellim.com (dave.rellim.com
	[IPv6:2001:470:e815:0:0:0:0:19] (may be forged))
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u7AJgIfA029548
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Wed, 10 Aug 2016 12:42:24 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u7AJgIfA029548
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1470858144; bh=Ye6mlTVEgGer9z6VB8yk/bh0qT5R0boLkCI+7hEvNog=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=ccyOSuxTwWthGfk3L9FHnt6AsMd3cTedZ6MfFZQGviGlKi+txyVCuiOUE8Kjpg+dY
	RP52/+GCG5ekR5AqQO0O3kyTsQIDlzIc3m0PH5qNV/+E5mw2X51OUSK7wK19q7sdfP
	RYz+dLtyD4nBtnuAVah3gyRHu/Ex6J7Kd6X6CtsM=
Date: Wed, 10 Aug 2016 12:42:18 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Joshua Judson Rosen <rozzin@hackerposse.com>
Cc: Hal Murray <hmurray@megapathdsl.net>, gpsd-dev@nongnu.org
Message-ID: <20160810124218.2538c143@spidey.rellim.com>
In-Reply-To: <e2e0e89b-5ff2-32de-c119-55f198dc5af3@hackerposse.com>
References: <20160806090944.DFC53406057@ip-64-139-1-69.sjc.megapath.net>
	<20160809184952.16944964@spidey.rellim.com>
	<e2e0e89b-5ff2-32de-c119-55f198dc5af3@hackerposse.com>
Organization: Rellim
X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/a.G2BIIXzAP_PBbLl_nV6cI";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Wed, 10 Aug 2016 12:42:24 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] Lots of warnings
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 10 Aug 2016 19:42:34 -0000

--Sig_/a.G2BIIXzAP_PBbLl_nV6cI
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Joshua!

On Wed, 10 Aug 2016 09:45:54 -0400
Joshua Judson Rosen <rozzin@hackerposse.com> wrote:

> On 08/09/2016 09:49 PM, Gary E. Miller wrote:
> >> timespec_str.c:48:12: warning: absolute value function 'labs' given
> >> an argument of type 'const time_t' (aka 'const long long') but has
> >> parameter of type 'long' which may cause truncation of value
> >> [-Wabsolute-value]  =20
> >=20
> > Huh???  time_t is a long! =20
>=20
> Not according to that error-message, which says that it's a *long
> long* (like in the opening line of the song "American Pie", not in the
>  opening line of the Star Wars Episode IV).

Well, I can not duplicate that error message on any 32 bit system I have.

> In order to have a 64-bit time_t and escape the 2038 problem,
> wouldn't time_t have to be at least equivalent to "long long"
> on 32-bit platforms where "long" is still only 32 bits?

I just ran a test, on my Pi system:

pi2 ~ # gcc --version
gcc (Gentoo 4.9.3 p1.5, pie-0.6.4) 4.9.3

sizeof(time_t) =3D 4
sizeof(long) =3D 4
sizeof(long long) =3D 8

So 32 bit Pi is broken past 2038.

> I for example haven't had any desktops there were less than 64-bit
> for a while, but I still have *lots* of 32-bit embedded Linux
> devices--ranging from cheap routers to expensive robots.

Have you seen anywhere that time_t is > long?

In any case, I just changed my patch to use long long.  Now timespec_str()
is good to: Sat Nov 20 09:46:39 PST 2286

I sure wish printf() understood uint64_t.

As I side note, I just checked GNU "date".  It breaks on dates past
2038 on the Pi.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/a.G2BIIXzAP_PBbLl_nV6cI
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXq4OaAAoJEA0O2UlB0XnYEOAH/3iuHo3BcKeLIYts/HAdncEA
1W0uEdB20V0WQefP4u+ziKb1Q+xXlfLsR0nXNHANJ9k6KMGRQFwlFDaUrx7tL3HD
Mq4xFWJtNGjZO1TiVT3KrOhcJ8tForHo3t5OFyX7x/ummI68C9loCNaUbH7ZR1B4
P0ddrsbJD8Mn5u32ot1MRfaQ9GrLqM82Y9v3omBg8fgQdFFeaGkhcVBAD5ST2rjk
4Ttplf8gmV7KdgzfQHTcONE5jRf8kwHFFnVhPKARukK/jIUQIbP4OwMuKeTcQy4I
MUW3IEB1Kaytjl+8gzCVCU0jSsuhTs76jQGjQ/h5kJ7+JBLTS766i3NBDlgif34=
=J6Ch
-----END PGP SIGNATURE-----

--Sig_/a.G2BIIXzAP_PBbLl_nV6cI--


From MAILER-DAEMON Wed Aug 10 18:06:16 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bXbdg-0001FR-Oy
	for mharc-gpsd-dev@gnu.org; Wed, 10 Aug 2016 18:06:16 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:45257)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1bXbde-0001FK-EJ
	for gpsd-dev@nongnu.org; Wed, 10 Aug 2016 18:06:15 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1bXbda-0001g4-5T
	for gpsd-dev@nongnu.org; Wed, 10 Aug 2016 18:06:13 -0400
Received: from bay004-omc1s10.hotmail.com ([65.54.190.21]:62460)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1bXbdZ-0001fH-Mn
	for gpsd-dev@nongnu.org; Wed, 10 Aug 2016 18:06:10 -0400
Received: from EUR01-HE1-obe.outbound.protection.outlook.com ([65.54.190.59])
	by BAY004-OMC1S10.hotmail.com over TLS secured channel with
	Microsoft SMTPSVC(7.5.7601.23008); Wed, 10 Aug 2016 15:06:08 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com;
	s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; 
	bh=WQ0P/01Y0bEjeoBZt33cDH/BFFjaiZ0vk2meZtibXDs=;
	b=X9zfgj61Rzzxi6jtkNc8NUrzAg/Kv5cZKT4RlcDMs14eLxakmIUxq12LqjKQPF9gT8wj6FstZAE+tWNQ6vZDaDBg/JgZgpVuOoT409OObuh9VHA+MZ4F2WdmbGswI78HUlOmBNUAwhpjc1tOI2pxFIWIQ174gGGzR5h4qt2/+wRproZ85qvHpvatFJfVgy7iwiW5ODAwFkin9SBdy4YcmukOYxp+3zlHht3QMpyHnNHtOvRIiVs4pWSTzLmqClzcpue46nlO5jsss1BtZcYHfSTJ4yTM4WHORiXMBG9NLL6y1AflrjMX3cUivw4OYY9168eVvRr6N6QZFUq6LFW2aQ==
Received: from HE1EUR01FT063.eop-EUR01.prod.protection.outlook.com
	(10.152.0.58) by HE1EUR01HT141.eop-EUR01.prod.protection.outlook.com
	(10.152.1.154) with Microsoft SMTP Server (version=TLS1_0,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.557.8;
	Wed, 10 Aug 2016 22:06:00 +0000
Received: from DB6PR0601MB2168.eurprd06.prod.outlook.com (10.152.0.59) by
	HE1EUR01FT063.mail.protection.outlook.com (10.152.1.51) with Microsoft
	SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id
	15.1.567.7 via Frontend Transport; Wed, 10 Aug 2016 22:06:00 +0000
Received: from DB6PR0601MB2168.eurprd06.prod.outlook.com ([10.168.57.27]) by
	DB6PR0601MB2168.eurprd06.prod.outlook.com ([10.168.57.27]) with mapi id
	15.01.0549.025; Wed, 10 Aug 2016 22:05:58 +0000
From: Robert Norris <rw_norris@hotmail.com>
CC: GPSD Developers List <gpsd-dev@nongnu.org>
Thread-Topic: [gpsd-dev] [PATCH 1/2] Moves Linux-only ppscheck program back to
	contrib/.
Thread-Index: AQHR8tAhhFpWdlpzUEKwL6xlrUnzPaBCvhVh
Date: Wed, 10 Aug 2016 22:05:58 +0000
Message-ID: <DB6PR0601MB21684F4A3162611362062E698E1D0@DB6PR0601MB2168.eurprd06.prod.outlook.com>
References: Message from "Gary E. Miller" <gem@rellim.com> of "Tue,	09 Aug
	2016 18:06:48 PDT." <20160809180648.2591a284@spidey.rellim.com>,
	<20160810062630.9D991406060@ip-64-139-1-69.sjc.megapath.net>
In-Reply-To: <20160810062630.9D991406060@ip-64-139-1-69.sjc.megapath.net>
Accept-Language: en-GB, en-US
Content-Language: en-GB
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: spf=softfail (sender IP is 10.152.0.59)
	smtp.mailfrom=hotmail.com; nongnu.org; dkim=none (message not signed)
	header.d=none; nongnu.org;
	dmarc=fail action=none header.from=hotmail.com; 
received-spf: SoftFail (protection.outlook.com: domain of transitioning
	hotmail.com discourages use of 10.152.0.59 as permitted sender)
x-ms-exchange-messagesentrepresentingtype: 1
x-tmn: [H4j+VtVIy/nZ8NhbxACjsZoi2IqSvQxJ]
x-eopattributedmessage: 0
x-forefront-antispam-report: CIP:10.152.0.59; IPV:NLI; CTRY:; EFV:NLI; SFV:NSPM;
	SFS:(10019020)(98900003); DIR:OUT; SFP:1102; SCL:1;
	SRVR:HE1EUR01HT141; H:DB6PR0601MB2168.eurprd06.prod.outlook.com;
	FPR:; SPF:None; LANG:en; 
x-microsoft-exchange-diagnostics: 1; HE1EUR01HT141;
	6:YTkXqi9huBsoUFGOYV1U+CUllIchY1jkQkzbaJ7snXl5M5FLgAdUnliXNCDLoTMO+X8U+iUEsnf+zc5X2Yc5EW5csNrrbsz4tXN++/AhSJXr7OoFkqK6/yuKzmXAqgE2Ro2hKmdeV9iBmX8g7PA717WeRhhFfOtm43kcR4IL5IAf//AI5psvSfuV6M5RycJ0fUbAbjJiUfxNzmhHJnhcH3sBDb5V51iNdROdYURZmN++xyoikcDlJqG775CDUdIBEWzHupns5k/y2biglXquGXjEygTLBSe2S0uFAlJyxwMea+7ZQPfqqcf3IHwQKr/k;
	5:Ko7JZ+wJFhsIoE/MmDqjcMUb58Ctg426dSQJ85aUA5cORFdlC1FhMY2QEg7tJiC2Ul+bQsxF4OVF/sJgdJfNpAZyAqII6OdnIi6n8XLc7KdYomKp3kgj03M1BrpQRo55RsLkN9EsOTLB7wzf6E8Nww==;
	24:kQ4z5jCfc26Y0CF5KSidDYHZxlmU993vqXC3fbEVLLVF6kBqeQZNgM8cVQ+uEIFlWxvikoH+A+2aQIOtL6bfmRrqSXoxP9lY1RqQSyAd4PE=;
	7:wrttfleChQJx/1PzMiKRoJLkZtTtJ8tMxk8oeWNfkhkOE/sRGysGtLKcL/yorNGXcZkLuQGVgKvJfuM3XDKkU8V5XzL11kWZcfOowmu/IzQ76OLpHMZHNSWEcfWPGyp3J168LWL65JnlIAUt620hCnkDMkw2OG6MboLlKV/MnZ2E8NiHgay4/Ky3X/Efrfm6POkTuBgFQdxpTTL8geuKVhSDLJYfp8jEs4KRYVXXI/KlnJJztXbeliKE9P9ldVnW
x-ms-office365-filtering-correlation-id: 38a00d29-599f-4d50-9e5b-08d3c16a8279
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(1601124038)(1601125047);
	SRVR:HE1EUR01HT141; 
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(432015012)(82015046);
	SRVR:HE1EUR01HT141; BCL:0; PCL:0; RULEID:; SRVR:HE1EUR01HT141; 
x-forefront-prvs: 0030839EEE
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative;
	boundary="_000_DB6PR0601MB21684F4A3162611362062E698E1D0DB6PR0601MB2168_"
MIME-Version: 1.0
X-OriginatorOrg: hotmail.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Aug 2016 22:05:58.6872 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Internet
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1EUR01HT141
X-OriginalArrivalTime: 10 Aug 2016 22:06:08.0530 (UTC)
	FILETIME=[65BEE720:01D1F353]
X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy]
X-Received-From: 65.54.190.21
Subject: Re: [gpsd-dev] [PATCH 1/2] Moves Linux-only ppscheck program back
 to contrib/.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 10 Aug 2016 22:06:15 -0000

--_000_DB6PR0601MB21684F4A3162611362062E698E1D0DB6PR0601MB2168_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Ah, the joy of scons!


AFAIK scons cleans/builds all the programs it knows about.

However in the gpsd SConstruct there are code paths for 'cleaning' and 'bui=
lding', so both paths must generate the same list of programs so they can b=
e built or cleaned.


I think the kpps and pps tests need to be available in both 'cleaning' and =
normal building paths.


ATM the pps test is only in the 'build' path, so it doesn't know about it t=
o clean it.


Thus I believe the pps (and so also the kpps) tests need to be before the "=
if cleaning or helping:" line 617, but after the variable config is made av=
ailable.


HTH.


--
Be Seeing You - Rob.
If at first you don't succeed,
then skydiving isn't for you.
________________________________
From: gpsd-dev <gpsd-dev-bounces+rw_norris=3Dhotmail.com@nongnu.org> on beh=
alf of Hal Murray <hmurray@megapathdsl.net>
Sent: 10 August 2016 07:26:30
To: Gary E. Miller
Cc: GPSD Developers List
Subject: Re: [gpsd-dev] [PATCH 1/2] Moves Linux-only ppscheck program back =
to contrib/.


gem@rellim.com said:
>> scons --clean doesn't get rid of ppscheck or ppscheck.o
> I just looked at it.  I have no idea how scons decides what to clean, or =
why
> it does not 'just work'.

> Is this on a TIOMCIWAIT system where ppscheck works fine?  Or is this on =
a
> non-TIOMCIWAIT where ppcheck got built but should not have been built?

It gets left on a system with TIOMCIWAIT.

--
These are my opinions.  I hate spam.





--_000_DB6PR0601MB21684F4A3162611362062E698E1D0DB6PR0601MB2168_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; pad=
ding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content=3D"text/html; charset=3DUTF-8">
<style type=3D"text/css" style=3D"">
<!--
p
	{margin-top:0;
	margin-bottom:0}
-->
</style>
<div dir=3D"ltr">
<div id=3D"x_divtagdefaultwrapper" style=3D"font-size:12pt; color:#000000; =
background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Ah, the joy of scons!</p>
<p><br>
</p>
<p></p>
<p>AFAIK scons cleans/builds all the programs it knows about.<br>
</p>
<p>However in the gpsd SConstruct there are code paths for 'cleaning' and '=
building', so both paths must generate the same list of programs so they ca=
n be built or cleaned.
<br>
</p>
<p><br>
</p>
I think the kpps and pps tests need to be available in both 'cleaning' and =
normal building paths.
<p></p>
<p><br>
</p>
<p>ATM the pps test is only in the 'build' path, so it doesn't know about i=
t to clean it.</p>
<p><br>
</p>
<p>Thus I believe the pps (and so also the kpps) tests need to be before th=
e &quot;if cleaning or helping:&quot; line 617, but after the variable conf=
ig is made available.</p>
<p><br>
</p>
<p>HTH.<br>
</p>
<p><br>
</p>
<div id=3D"x_Signature">-- <br>
Be Seeing You - Rob.<br>
If at first you don't succeed,<br>
then skydiving isn't for you. </div>
</div>
<hr tabindex=3D"-1" style=3D"display:inline-block; width:98%">
<div id=3D"x_divRplyFwdMsg" dir=3D"ltr"><font face=3D"Calibri, sans-serif" =
color=3D"#000000" style=3D"font-size:11pt"><b>From:</b> gpsd-dev &lt;gpsd-d=
ev-bounces&#43;rw_norris=3Dhotmail.com@nongnu.org&gt; on behalf of Hal Murr=
ay &lt;hmurray@megapathdsl.net&gt;<br>
<b>Sent:</b> 10 August 2016 07:26:30<br>
<b>To:</b> Gary E. Miller<br>
<b>Cc:</b> GPSD Developers List<br>
<b>Subject:</b> Re: [gpsd-dev] [PATCH 1/2] Moves Linux-only ppscheck progra=
m back to contrib/.</font>
<div>&nbsp;</div>
</div>
</div>
<font size=3D"2"><span style=3D"font-size:10pt;">
<div class=3D"PlainText"><br>
gem@rellim.com said:<br>
&gt;&gt; scons --clean doesn't get rid of ppscheck or ppscheck.o<br>
&gt; I just looked at it.&nbsp; I have no idea how scons decides what to cl=
ean, or why<br>
&gt; it does not 'just work'.<br>
<br>
&gt; Is this on a TIOMCIWAIT system where ppscheck works fine?&nbsp; Or is =
this on a<br>
&gt; non-TIOMCIWAIT where ppcheck got built but should not have been built?=
 <br>
<br>
It gets left on a system with TIOMCIWAIT.<br>
<br>
-- <br>
These are my opinions.&nbsp; I hate spam.<br>
<br>
<br>
<br>
<br>
</div>
</span></font>
</body>
</html>

--_000_DB6PR0601MB21684F4A3162611362062E698E1D0DB6PR0601MB2168_--


From MAILER-DAEMON Wed Aug 10 18:14:52 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bXbm0-0004dc-Py
	for mharc-gpsd-dev@gnu.org; Wed, 10 Aug 2016 18:14:52 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:46814)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bXblx-0004dS-JV
	for gpsd-dev@nongnu.org; Wed, 10 Aug 2016 18:14:50 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bXblt-0003mX-BN
	for gpsd-dev@nongnu.org; Wed, 10 Aug 2016 18:14:48 -0400
Received: from d.mail.sonic.net ([64.142.111.50]:55576)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bXblt-0003lt-2E
	for gpsd-dev@nongnu.org; Wed, 10 Aug 2016 18:14:45 -0400
Received: from newshell.sonic.net (bolt.sonic.net [208.201.242.19])
	by d.mail.sonic.net (8.15.1/8.15.1) with ESMTPS id u7AMEehI008068
	(version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <gpsd-dev@nongnu.org>; Wed, 10 Aug 2016 15:14:40 -0700
Received: from bolt.sonic.net (localhost.localdomain [127.0.0.1])
	by newshell.sonic.net (8.13.6/8.12.1) with ESMTP id u7AMEelB016092
	for <gpsd-dev@nongnu.org>; Wed, 10 Aug 2016 15:14:40 -0700
Received: from localhost (fw@localhost)
	by bolt.sonic.net (8.13.6/8.12.1/Submit) with ESMTP id u7AMEed9016089
	for <gpsd-dev@nongnu.org>; Wed, 10 Aug 2016 15:14:40 -0700
X-Authentication-Warning: bolt.sonic.net: fw owned process doing -bs
Date: Wed, 10 Aug 2016 15:14:40 -0700 (PDT)
From: Fred Wright <fw@fwright.net>
X-X-Sender: fw@bolt.sonic.net
To: GPSD Developers List <gpsd-dev@nongnu.org>
In-Reply-To: <e2e0e89b-5ff2-32de-c119-55f198dc5af3@hackerposse.com>
Message-ID: <Pine.LNX.4.58L1X.1608101443280.18725@bolt.sonic.net>
References: <20160806090944.DFC53406057@ip-64-139-1-69.sjc.megapath.net>
	<20160809184952.16944964@spidey.rellim.com>
	<e2e0e89b-5ff2-32de-c119-55f198dc5af3@hackerposse.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sonic-CAuth: UmFuZG9tSVbXewOJ7Qg/q9qq0UMvHYP7OyIA6XDun2WoSjEH6Ydp46oKX73/woTv0/Aat4Umfp3gnNZKRKJwWxUikAYgcuYU
X-Sonic-ID: C;EtRB1Udf5hGg2a/hcgQksw== M;ynxe1Udf5hGg2a/hcgQksw==
X-Sonic-Spam-Details: -1.5/5.0 by cerberusd
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.142.111.50
Subject: Re: [gpsd-dev] Lots of warnings
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 10 Aug 2016 22:14:50 -0000



On Wed, 10 Aug 2016, Joshua Judson Rosen wrote:

> On 08/09/2016 09:49 PM, Gary E. Miller wrote:
> >> timespec_str.c:48:12: warning: absolute value function 'labs' given
> >> an argument of type 'const time_t' (aka 'const long long') but has
> >> parameter of type 'long' which may cause truncation of value
> >> [-Wabsolute-value]
> >
> > Huh???  time_t is a long!
>
> Not according to that error-message, which says that it's a *long long*
> (like in the opening line of the song "American Pie", not in the
>  opening line of the Star Wars Episode IV).
>
> In order to have a 64-bit time_t and escape the 2038 problem,
> wouldn't time_t have to be at least equivalent to "long long"
> on 32-bit platforms where "long" is still only 32 bits?

Exactly.  Some OSes have been moving to 64-bit time_t in order to be
"2038-ready".  But it's not as simple as just changing the typedef, since
there are time_t fields in some structures whose binary layout is rendered
incompatible by the change.  OpenBSD decided to take the heavy-handed
approach and just make people fix anything that broke with a 64-bit
time_t.

There's a similar issue in moving to 64-bit inodes.  A nice side effect of
64-bit inodes is that they took advantage of the unavoidable breakage of
struct stat to add subsecond resolution to the timestamps, as well as
adding creation time in some cases.

OSX handled the switch fairly well, by making the inode size a compile
flag, initially defaulting to the backward-compatible 32 bits in 10.5, and
then defaulting to 64 bits in 10.6 and later.  Linux originally just tied
it to sizeof(long), but they seem to have relented more recently (on
ino_t, not time_t).

It's too bad that time_t wasn't changed at the same time, since struct
stat will need to change *again* when going to 64-bit time_t.

> I for example haven't had any desktops there were less than 64-bit for a while,
> but I still have *lots* of 32-bit embedded Linux devices--ranging
> from cheap routers to expensive robots.

Indeed.  As long as the OS folks accept the idea that 32-bit processors
may still be in use in 2038...

Fred Wright


From MAILER-DAEMON Wed Aug 10 18:24:12 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bXbv1-00085x-WA
	for mharc-gpsd-dev@gnu.org; Wed, 10 Aug 2016 18:24:12 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:49053)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bXbuz-00085Z-4H
	for gpsd-dev@nongnu.org; Wed, 10 Aug 2016 18:24:09 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bXbuu-0006BN-Sn
	for gpsd-dev@nongnu.org; Wed, 10 Aug 2016 18:24:08 -0400
Received: from c.mail.sonic.net ([64.142.111.80]:34330)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bXbuu-0006Ao-Jj
	for gpsd-dev@nongnu.org; Wed, 10 Aug 2016 18:24:04 -0400
Received: from newshell.sonic.net (bolt.sonic.net [208.201.242.19])
	by c.mail.sonic.net (8.15.1/8.15.1) with ESMTPS id u7AMO0ZP003031
	(version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <gpsd-dev@nongnu.org>; Wed, 10 Aug 2016 15:24:00 -0700
Received: from bolt.sonic.net (localhost.localdomain [127.0.0.1])
	by newshell.sonic.net (8.13.6/8.12.1) with ESMTP id u7AMNxlT029241
	for <gpsd-dev@nongnu.org>; Wed, 10 Aug 2016 15:23:59 -0700
Received: from localhost (fw@localhost)
	by bolt.sonic.net (8.13.6/8.12.1/Submit) with ESMTP id u7AMNxX0029235
	for <gpsd-dev@nongnu.org>; Wed, 10 Aug 2016 15:23:59 -0700
X-Authentication-Warning: bolt.sonic.net: fw owned process doing -bs
Date: Wed, 10 Aug 2016 15:23:59 -0700 (PDT)
From: Fred Wright <fw@fwright.net>
X-X-Sender: fw@bolt.sonic.net
To: GPSD Developers List <gpsd-dev@nongnu.org>
In-Reply-To: <DB6PR0601MB21684F4A3162611362062E698E1D0@DB6PR0601MB2168.eurprd06.prod.outlook.com>
Message-ID: <Pine.LNX.4.58L1X.1608101518020.18725@bolt.sonic.net>
References: Message from "Gary E. Miller" <gem@rellim.com> of "Tue, 09 Aug
	2016 18:06:48 PDT." <20160809180648.2591a284@spidey.rellim.com>,
	<20160810062630.9D991406060@ip-64-139-1-69.sjc.megapath.net>
	<DB6PR0601MB21684F4A3162611362062E698E1D0@DB6PR0601MB2168.eurprd06.prod.outlook.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sonic-CAuth: UmFuZG9tSVaMcxxiQFC0cvkBYaOQv+o9h6whJ6sjUK8HjEQPoPWAT2bxNZp979ng2zyLIMGva8w0z5n/+n3q77YcmXoQukCQ
X-Sonic-ID: C;xI2qIklf5hGAQKDx2xNB0g== M;qqPWIklf5hGAQKDx2xNB0g==
X-Sonic-Spam-Details: -1.5/5.0 by cerberusd
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.142.111.80
Subject: Re: [gpsd-dev] [PATCH 1/2] Moves Linux-only ppscheck program back
 to contrib/.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 10 Aug 2016 22:24:10 -0000


On Wed, 10 Aug 2016, Robert Norris wrote:

> AFAIK scons cleans/builds all the programs it knows about.
>
> However in the gpsd SConstruct there are code paths for 'cleaning' and
> 'building', so both paths must generate the same list of programs so
> they can be built or cleaned.

Generally speaking, yes, but the configure stuff is sufficiently slow and
verbose that it's mostly bypassed in the "cleaning or helping" cases.

> Thus I believe the pps (and so also the kpps) tests need to be before
> the "if cleaning or helping:" line 617, but after the variable config is
> made available.

It's much simpler to fix than that.  There's no problem *cleaning*
ppscheck on any platform.  Patch coming.

Fred Wright


From MAILER-DAEMON Wed Aug 10 19:02:10 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bXcVm-0005hf-O5
	for mharc-gpsd-dev@gnu.org; Wed, 10 Aug 2016 19:02:10 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:37397)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bXcVk-0005gU-Bk
	for gpsd-dev@nongnu.org; Wed, 10 Aug 2016 19:02:09 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bXcVg-0000Fm-2j
	for gpsd-dev@nongnu.org; Wed, 10 Aug 2016 19:02:07 -0400
Received: from d.mail.sonic.net ([64.142.111.50]:46230)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bXcVf-0000F6-QI
	for gpsd-dev@nongnu.org; Wed, 10 Aug 2016 19:02:04 -0400
Received: from localhost.localdomain
	(70-36-199-49.dsl.static.fusionbroadband.com [70.36.199.49])
	(authenticated bits=0)
	by d.mail.sonic.net (8.15.1/8.15.1) with ESMTPSA id u7AN1iWB027639
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); 
	Wed, 10 Aug 2016 16:02:00 -0700
From: Fred Wright <fw@fwright.net>
To: GPSD Developers List <gpsd-dev@nongnu.org>
Date: Wed, 10 Aug 2016 16:01:41 -0700
Message-Id: <20160810230141.41060-1-fw@fwright.net>
X-Mailer: git-send-email 2.9.2
X-Sonic-CAuth: UmFuZG9tSVaZOQQR/wmgx3guYKpRdCbQbdviTnlkiFaELTxbM1K5mvrC0eA5cgTwDMCcTT0u2dguGCp9r5/I5ujP4y5Jednl
X-Sonic-ID: C;lt+uaE5f5hGWvK/hcgQksw== M;Hl7lcU5f5hGWvK/hcgQksw==
X-Sonic-Spam-Details: 0.0/5.0 by cerberusd
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.142.111.50
Subject: [gpsd-dev] [PATCH] Fixes cleaning and manpage building for ppscheck.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 10 Aug 2016 23:02:09 -0000

For cleaning (and helping) purposes, tiocmiwait can be set
unconditionally true, since the (usually nonexistent) program
can be cleaned on any platform.

This change also avoids building (and installing) the ppscheck
manpage when the program isn't being built.

TESTED:
Ran "scons build-all check", "sudo scons install",
"sudo scons uninstall", "scons -h", and "scons -c" on both OSX and
Linux, verifying correct behavior.
---
 SConstruct | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/SConstruct b/SConstruct
index a7ea225..4153cd7 100644
--- a/SConstruct
+++ b/SConstruct
@@ -99,9 +99,6 @@ systemd = os.path.exists(systemd_dir)
 # Set distribution-specific defaults here
 imloads = True
 
-# default tiocmiwait to off, until we know better
-tiocmiwait = False
-
 boolopts = (
     # GPS protocols
     ("nmea0183",      True,  "NMEA0183 support"),
@@ -623,6 +620,7 @@ if cleaning or helping:
     confdefs = []
     manbuilder = False
     htmlbuilder = False
+    tiocmiwait = True  # For cleaning, which works on any OS
 else:
 
     # If supported by the compiler, enable all warnings except uninitialized and
@@ -1557,8 +1555,11 @@ base_manpages = {
     "gpsdecode.1": "gpsdecode.xml",
     "srec.5": "srec.xml",
     "ntpshmmon.1": "ntpshmmon.xml",
-    "ppscheck.8": "ppscheck.xml",
     }
+if tiocmiwait:
+    base_manpages.update({
+    "ppscheck.8": "ppscheck.xml",
+    })
 python_manpages = {
     "gpsprof.1": "gpsprof.xml",
     "gpsfake.1": "gpsfake.xml",
-- 
2.9.2



From MAILER-DAEMON Wed Aug 10 19:08:04 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bXcbU-0008CB-GZ
	for mharc-gpsd-dev@gnu.org; Wed, 10 Aug 2016 19:08:04 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:40756)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bXcbS-00088M-Mn
	for gpsd-dev@nongnu.org; Wed, 10 Aug 2016 19:08:03 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bXcbR-0003jx-LV
	for gpsd-dev@nongnu.org; Wed, 10 Aug 2016 19:08:02 -0400
Received: from rellim.com ([2001:470:e815::19]:39858 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bXcbR-0003g2-BP
	for gpsd-dev@nongnu.org; Wed, 10 Aug 2016 19:08:01 -0400
Received: from spidey.rellim.com (dave.rellim.com
	[IPv6:2001:470:e815:0:0:0:0:19] (may be forged))
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u7AN7e97004474
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Wed, 10 Aug 2016 16:07:45 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u7AN7e97004474
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1470870465; bh=r+CfM4qv4J+Pmm4OhNPgg7iBtC/EYwckdJ6FtX04Seg=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=jUTSdKoo8fgXSu4rLXMAjw6lyyR+NdfLBwNuaHGYs/BqWz2gxPXqEjRQy8Q5pppMi
	wmSCdNqBwWnyEgjYe2VzRiNLLqLpN+QZhynrbXT8iKPdyN0SR/l0Lou9cD0EQEwWBT
	sd+XfW3QkcZmB9h8BIsmM4z7JqeWykENzap36xWI=
Date: Wed, 10 Aug 2016 16:07:40 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Fred Wright <fw@fwright.net>
Cc: GPSD Developers List <gpsd-dev@nongnu.org>
Message-ID: <20160810160740.1f71af1d@spidey.rellim.com>
In-Reply-To: <20160810230141.41060-1-fw@fwright.net>
References: <20160810230141.41060-1-fw@fwright.net>
Organization: Rellim
X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/cyFMNjAmTINk0aQSdYt5caE";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Wed, 10 Aug 2016 16:07:45 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] [PATCH] Fixes cleaning and manpage building for
 ppscheck.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 10 Aug 2016 23:08:03 -0000

--Sig_/cyFMNjAmTINk0aQSdYt5caE
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Fred!

Nice.  Applied and pushed to head.  Thanks.

On Wed, 10 Aug 2016 16:01:41 -0700
Fred Wright <fw@fwright.net> wrote:

> For cleaning (and helping) purposes, tiocmiwait can be set
> unconditionally true, since the (usually nonexistent) program
> can be cleaned on any platform.
>=20
> This change also avoids building (and installing) the ppscheck
> manpage when the program isn't being built.
>=20
> TESTED:
> Ran "scons build-all check", "sudo scons install",
> "sudo scons uninstall", "scons -h", and "scons -c" on both OSX and
> Linux, verifying correct behavior.
> ---
>  SConstruct | 9 +++++----
>  1 file changed, 5 insertions(+), 4 deletions(-)
>=20
> diff --git a/SConstruct b/SConstruct
> index a7ea225..4153cd7 100644
> --- a/SConstruct
> +++ b/SConstruct
> @@ -99,9 +99,6 @@ systemd =3D os.path.exists(systemd_dir)
>  # Set distribution-specific defaults here
>  imloads =3D True
> =20
> -# default tiocmiwait to off, until we know better
> -tiocmiwait =3D False
> -
>  boolopts =3D (
>      # GPS protocols
>      ("nmea0183",      True,  "NMEA0183 support"),
> @@ -623,6 +620,7 @@ if cleaning or helping:
>      confdefs =3D []
>      manbuilder =3D False
>      htmlbuilder =3D False
> +    tiocmiwait =3D True  # For cleaning, which works on any OS
>  else:
> =20
>      # If supported by the compiler, enable all warnings except
> uninitialized and @@ -1557,8 +1555,11 @@ base_manpages =3D {
>      "gpsdecode.1": "gpsdecode.xml",
>      "srec.5": "srec.xml",
>      "ntpshmmon.1": "ntpshmmon.xml",
> -    "ppscheck.8": "ppscheck.xml",
>      }
> +if tiocmiwait:
> +    base_manpages.update({
> +    "ppscheck.8": "ppscheck.xml",
> +    })
>  python_manpages =3D {
>      "gpsprof.1": "gpsprof.xml",
>      "gpsfake.1": "gpsfake.xml",




RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/cyFMNjAmTINk0aQSdYt5caE
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXq7O8AAoJEA0O2UlB0XnYkgwH/iFcRV6LxI4e3SZy6hP65lsU
4cgL1tka9O3BJU26hIV6nscJECVlOkwMtgzndpRsfwZn1uQI9ePVEUl7j8vw67St
kxxmmgLYNJ1Xy03YU2p8xyoPwAEXPEmP2orUZFJ5HEt5nz6sf04XE6EBwPqm7RUC
yXZJUjO94vr8lOUYK4gw45yyOO017ERv/MLDPdY/Dgry2WBg7UHAy6T3/NdquDxa
T/Onr69/1bTWxo43U6LV1zKZMYYR3PzMSQu53z7aCOhTY/J1vPzeNMZ86Rgi0AaZ
RKvWaaqjZJNBrzyMTM8oKnqmf4jaUzl3ifaXTMbQ2KIFL5w+kEtBrJ9OZWwPxbo=
=GtMk
-----END PGP SIGNATURE-----

--Sig_/cyFMNjAmTINk0aQSdYt5caE--


From MAILER-DAEMON Wed Aug 10 19:28:52 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bXcvc-0007pQ-O1
	for mharc-gpsd-dev@gnu.org; Wed, 10 Aug 2016 19:28:52 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:49263)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <allen@huarp.harvard.edu>) id 1bXcvZ-0007nm-WC
	for gpsd-dev@nongnu.org; Wed, 10 Aug 2016 19:28:51 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <allen@huarp.harvard.edu>) id 1bXcvV-0002tk-0K
	for gpsd-dev@nongnu.org; Wed, 10 Aug 2016 19:28:49 -0400
Received: from endymion.arp.harvard.edu ([140.247.179.94]:60215)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <allen@huarp.harvard.edu>) id 1bXcvU-0002re-SO
	for gpsd-dev@nongnu.org; Wed, 10 Aug 2016 19:28:44 -0400
Received: from [192.168.2.5] (pool-96-252-13-147.bstnma.fios.verizon.net
	[96.252.13.147])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by endymion.arp.harvard.edu (Postfix) with ESMTPSA id 44CEF6C0036;
	Wed, 10 Aug 2016 19:28:42 -0400 (EDT)
To: Joshua Judson Rosen <rozzin@hackerposse.com>, gpsd-dev@nongnu.org
References: <20160806090944.DFC53406057@ip-64-139-1-69.sjc.megapath.net>
	<20160809184952.16944964@spidey.rellim.com>
	<e2e0e89b-5ff2-32de-c119-55f198dc5af3@hackerposse.com>
From: Norton Allen <allen@huarp.harvard.edu>
Message-ID: <13dc94b6-7908-037f-2ee9-3f5b75434d8f@huarp.harvard.edu>
Date: Wed, 10 Aug 2016 19:28:38 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101
	Thunderbird/45.2.0
MIME-Version: 1.0
In-Reply-To: <e2e0e89b-5ff2-32de-c119-55f198dc5af3@hackerposse.com>
Content-Type: multipart/alternative;
	boundary="------------37147058ED291C9CB6BF8382"
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 140.247.179.94
Subject: Re: [gpsd-dev] Lots of warnings
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 10 Aug 2016 23:28:51 -0000

This is a multi-part message in MIME format.
--------------37147058ED291C9CB6BF8382
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit

On 8/10/2016 9:45 AM, Joshua Judson Rosen wrote:
> On 08/09/2016 09:49 PM, Gary E. Miller wrote:
>>> >>timespec_str.c:48:12: warning: absolute value function 'labs' given
>>> >>an argument of type 'const time_t' (aka 'const long long') but has
>>> >>parameter of type 'long' which may cause truncation of value
>>> >>[-Wabsolute-value]
>> >
>> >Huh???  time_t is a long!
> Not according to that error-message, which says that it's a*long long*
> (like in the opening line of the song "American Pie", not in the
>   opening line of the Star Wars Episode IV).

That's an outstanding (and thoroughly accurate) cultural reference!

--------------37147058ED291C9CB6BF8382
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 8/10/2016 9:45 AM, Joshua Judson Rosen wrote:<br>
    <blockquote
      cite="mid:e2e0e89b-5ff2-32de-c119-55f198dc5af3@hackerposse.com"
      type="cite">
      <pre wrap="">On 08/09/2016 09:49 PM, Gary E. Miller wrote:
</pre>
      <blockquote type="cite" style="color: #000000;">
        <blockquote type="cite" style="color: #000000;">
          <pre wrap=""><span class="moz-txt-citetags">&gt;&gt; </span>timespec_str.c:48:12: warning: absolute value function 'labs' given
<span class="moz-txt-citetags">&gt;&gt; </span>an argument of type 'const time_t' (aka 'const long long') but has
<span class="moz-txt-citetags">&gt;&gt; </span>parameter of type 'long' which may cause truncation of value
<span class="moz-txt-citetags">&gt;&gt; </span>[-Wabsolute-value] 
</pre>
        </blockquote>
        <pre wrap=""><span class="moz-txt-citetags">&gt; </span>
<span class="moz-txt-citetags">&gt; </span>Huh???  time_t is a long!
</pre>
      </blockquote>
      <pre wrap="">Not according to that error-message, which says that it's a <b class="moz-txt-star"><span class="moz-txt-tag">*</span>long long<span class="moz-txt-tag">*</span></b>
(like in the opening line of the song "American Pie", not in the
 opening line of the Star Wars Episode IV).
</pre>
    </blockquote>
    <br>
    That's an outstanding (and thoroughly accurate) cultural reference!<br>
  </body>
</html>

--------------37147058ED291C9CB6BF8382--


From MAILER-DAEMON Wed Aug 10 20:08:57 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bXdYP-0000bg-Mi
	for mharc-gpsd-dev@gnu.org; Wed, 10 Aug 2016 20:08:57 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:35999)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bXdYN-0000bY-Up
	for gpsd-dev@nongnu.org; Wed, 10 Aug 2016 20:08:56 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bXdYJ-0005IT-O3
	for gpsd-dev@nongnu.org; Wed, 10 Aug 2016 20:08:54 -0400
Received: from ip-64-139-1-69.sjc.megapath.net ([64.139.1.69]:57347)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bXdYJ-0005IN-Gs
	for gpsd-dev@nongnu.org; Wed, 10 Aug 2016 20:08:51 -0400
Received: from shuksan (localhost [127.0.0.1])
	by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id D43A1406060; 
	Wed, 10 Aug 2016 17:08:49 -0700 (PDT)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: GPSD Developers List <gpsd-dev@nongnu.org>
From: Hal Murray <hmurray@megapathdsl.net>
In-Reply-To: Message from Fred Wright <fw@fwright.net> of "Wed,
	10 Aug 2016 15:14:40 PDT."
	<Pine.LNX.4.58L1X.1608101443280.18725@bolt.sonic.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Wed, 10 Aug 2016 17:08:49 -0700
Message-Id: <20160811000849.D43A1406060@ip-64-139-1-69.sjc.megapath.net>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.139.1.69
Subject: Re: [gpsd-dev] Lots of warnings
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Thu, 11 Aug 2016 00:08:56 -0000


fw@fwright.net said:
> Indeed.  As long as the OS folks accept the idea that 32-bit processors may
> still be in use in 2038... 

Or disks that were formatted on 32 bit systems.  Or copied from disks that 
were ....



-- 
These are my opinions.  I hate spam.





From MAILER-DAEMON Thu Aug 11 20:30:44 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bY0N2-0007OY-K9
	for mharc-gpsd-dev@gnu.org; Thu, 11 Aug 2016 20:30:44 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:56519)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gdt@ir.bbn.com>) id 1bY0N0-0007OM-1V
	for gpsd-dev@nongnu.org; Thu, 11 Aug 2016 20:30:43 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gdt@ir.bbn.com>) id 1bY0Mw-0004Y1-Qm
	for gpsd-dev@nongnu.org; Thu, 11 Aug 2016 20:30:41 -0400
Received: from fnord.ir.bbn.com ([192.1.100.210]:63068)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gdt@ir.bbn.com>) id 1bY0Mw-0004Ve-C3
	for gpsd-dev@nongnu.org; Thu, 11 Aug 2016 20:30:38 -0400
Received: by fnord.ir.bbn.com (Postfix, from userid 10853)
	id C97B5AF51; Thu, 11 Aug 2016 20:30:34 -0400 (EDT)
From: Greg Troxel <gdt@ir.bbn.com>
To: "Gary E. Miller" <gem@rellim.com>
Cc: Joshua Judson Rosen <rozzin@hackerposse.com>,  gpsd-dev@nongnu.org
References: <20160806090944.DFC53406057@ip-64-139-1-69.sjc.megapath.net>
	<20160809184952.16944964@spidey.rellim.com>
	<e2e0e89b-5ff2-32de-c119-55f198dc5af3@hackerposse.com>
	<20160810124218.2538c143@spidey.rellim.com>
OpenPGP: id=32611E25
X-Hashcash: 1:20:160812:gem@rellim.com::udJZJAkmYE/8MLCo:00009Tg
X-Hashcash: 1:20:160812:rozzin@hackerposse.com::X018vb8pAB3WHV/3:0000000000000000000000000000000000000006P4B
X-Hashcash: 1:20:160812:gpsd-dev@nongnu.org::SI8/XiKzQLm6v9pG:000000000000000000000000000000000000000000Aibv
Date: Thu, 11 Aug 2016 20:30:34 -0400
In-Reply-To: <20160810124218.2538c143@spidey.rellim.com> (Gary E. Miller's
	message of "Wed, 10 Aug 2016 12:42:18 -0700")
Message-ID: <rmifuqaakwl.fsf@fnord.ir.bbn.com>
User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.5 (berkeley-unix)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
	micalg=pgp-sha1; protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 192.1.100.210
Subject: Re: [gpsd-dev] Lots of warnings
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Aug 2016 00:30:43 -0000

--=-=-=
Content-Type: text/plain


"Gary E. Miller" <gem@rellim.com> writes:

>> Not according to that error-message, which says that it's a *long
>> long* (like in the opening line of the song "American Pie", not in the
>>  opening line of the Star Wars Episode IV).
>
> Well, I can not duplicate that error message on any 32 bit system I have.

This kind of thing needs to be done by reading specs, not trying
particular systems.  There are no guarantees on time_t other than that
it is a reasonable integer type.

>> In order to have a 64-bit time_t and escape the 2038 problem,
>> wouldn't time_t have to be at least equivalent to "long long"
>> on 32-bit platforms where "long" is still only 32 bits?
>
> I just ran a test, on my Pi system:
>
> pi2 ~ # gcc --version
> gcc (Gentoo 4.9.3 p1.5, pie-0.6.4) 4.9.3
>
> sizeof(time_t) = 4
> sizeof(long) = 4
> sizeof(long long) = 8
>
> So 32 bit Pi is broken past 2038.

On Linux/Pi; this is not about the hardware.  time_t is int64_t on
NetBSD/Pi.

On NetBSD, time_t used to be long, like it was everywhere else, and in 6
was changed to int64_t.  So regardless of CPU type, it's big enough.
I'm surprised this hasn't happened on the Linux/Pi system; 2038 is
starting to seem conceivable, now that 2000 is a distant memory.

>> I for example haven't had any desktops there were less than 64-bit
>> for a while, but I still have *lots* of 32-bit embedded Linux
>> devices--ranging from cheap routers to expensive robots.
>
> Have you seen anywhere that time_t is > long?

NetBSD 6/7/current anything.  I suspect FreeBSD and OpenBSD are the
same.

> In any case, I just changed my patch to use long long.  Now timespec_str()
> is good to: Sat Nov 20 09:46:39 PST 2286
>
> I sure wish printf() understood uint64_t.

It does; PRIu64.  See int_fmtio.h, which I think implements format
specifiers from 7.8.1 of C99.

http://stackoverflow.com/questions/16859500/mmh-who-are-you-priu64

If gpsd doesn't require C99, things are much harder.


I would recommend casting to int64_t and using PRId64.

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAletGKoACgkQ+vesoDJhHiUXlQCgmsdLBRZnOcbIDl1IuJTBnQBY
1e0AnRTXLnp15ZueMCnV8buVuLgOy6fH
=U9UI
-----END PGP SIGNATURE-----
--=-=-=--


From MAILER-DAEMON Thu Aug 11 21:14:15 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bY139-0003LY-1E
	for mharc-gpsd-dev@gnu.org; Thu, 11 Aug 2016 21:14:15 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:42477)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bY136-0003LS-Fq
	for gpsd-dev@nongnu.org; Thu, 11 Aug 2016 21:14:13 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bY134-0004kr-5N
	for gpsd-dev@nongnu.org; Thu, 11 Aug 2016 21:14:11 -0400
Received: from rellim.com ([2001:470:e815::19]:41680 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bY133-0004do-RX
	for gpsd-dev@nongnu.org; Thu, 11 Aug 2016 21:14:10 -0400
Received: from spidey.rellim.com (dave.rellim.com
	[IPv6:2001:470:e815:0:0:0:0:19] (may be forged))
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u7C1DMBi024510
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Thu, 11 Aug 2016 18:13:27 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u7C1DMBi024510
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1470964408; bh=rLM6jwcAdZn4jX5Z9Rn6cdpek5ZMf+pjXw12V/vCLyY=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=h1aGZR1ySWyci5APOF3XW71CGJpODZkMSbgDK03GsE0nuvCN0t7f2QvubeVxxvH+o
	IR6LjQGTGUKwx7ixpcaBA/CY5VWK8hB/azj5HYxAGr//XvboawNe0zLwCWiccIIGVC
	vb14rEgO1JEjUB2TcL9ALNOVEfCfuAlpeODtkJZs=
Date: Thu, 11 Aug 2016 18:13:05 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Greg Troxel <gdt@ir.bbn.com>
Cc: Joshua Judson Rosen <rozzin@hackerposse.com>, gpsd-dev@nongnu.org
Message-ID: <20160811181305.4c686b51@spidey.rellim.com>
In-Reply-To: <rmifuqaakwl.fsf@fnord.ir.bbn.com>
References: <20160806090944.DFC53406057@ip-64-139-1-69.sjc.megapath.net>
	<20160809184952.16944964@spidey.rellim.com>
	<e2e0e89b-5ff2-32de-c119-55f198dc5af3@hackerposse.com>
	<20160810124218.2538c143@spidey.rellim.com>
	<rmifuqaakwl.fsf@fnord.ir.bbn.com>
Organization: Rellim
X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/kWH40ZFVuT5o=xkv+0Q3PMr";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Thu, 11 Aug 2016 18:13:28 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] Lots of warnings
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Aug 2016 01:14:13 -0000

--Sig_/kWH40ZFVuT5o=xkv+0Q3PMr
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Yo Greg!

On Thu, 11 Aug 2016 20:30:34 -0400
Greg Troxel <gdt@ir.bbn.com> wrote:

> "Gary E. Miller" <gem@rellim.com> writes:
>=20
> >> Not according to that error-message, which says that it's a *long
> >> long* (like in the opening line of the song "American Pie", not in
> >> the opening line of the Star Wars Episode IV). =20
> >
> > Well, I can not duplicate that error message on any 32 bit system I
> > have. =20
>=20
> This kind of thing needs to be done by reading specs, not trying
> particular systems.  There are no guarantees on time_t other than that
> it is a reasonable integer type.

Actually, on some systems time_t is a float.  What spec says that?

Even GNU date does not get it right, so we need to reflect reality, not
wishful thinking.

> > So 32 bit Pi is broken past 2038. =20
>=20
> On Linux/Pi; this is not about the hardware.

Yeah, I should have mentioned Gnu/Linux Pi.

> time_t is int64_t on NetBSD/Pi.

my 'long long' patch covers that.

> On NetBSD, time_t used to be long, like it was everywhere else, and
> in 6 was changed to int64_t.  So regardless of CPU type, it's big
> enough. I'm surprised this hasn't happened on the Linux/Pi system;
> 2038 is starting to seem conceivable, now that 2000 is a distant
> memory.

Yeah, I was also surprised.  Sadly the Pi forks of most distros are
really out of daet and unpatched.

> > In any case, I just changed my patch to use long long.  Now
> > timespec_str() is good to: Sat Nov 20 09:46:39 PST 2286
> >
> > I sure wish printf() understood uint64_t. =20
>=20
> It does; PRIu64.  See int_fmtio.h, which I think implements format
> specifiers from 7.8.1 of C99.

I do not have that file anywhere.  Not in /usr/include or in the
glibc source.

I do find /usr/include/inttypes.h has what you are talking about.

> http://stackoverflow.com/questions/16859500/mmh-who-are-you-priu64

Interesting.

> If gpsd doesn't require C99, things are much harder.

gpsd does, but only the parts that actually work most places.

I notice that inttype.h calls it self an extention of C99.  Specifically
POSIX.1=E2=80=902008.  I'm not ready to enforce that in gpsd.

> I would recommend casting to int64_t and using PRId64.

I'll play with it, but until we can insist on POSIX 2008 I'm reluctant.

For example, it is not present in macports, which I use to compile gpsd
on OS X.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/kWH40ZFVuT5o=xkv+0Q3PMr
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXrSKsAAoJEA0O2UlB0XnY5BMH/jCSpxSw4du6R6vNefGniCg/
5mHghMJex2mlTfruIyNOKFXF2sEGFqgFubMzg9yhcFCQfRUsfgIVqCptAyElnqRq
HyOdN7q9f5hLpoI/nY5CbtBWlMsSwqa6J/qQf59XnPn4a7hGnSVYxpEvXOcxO3nw
Qch33jgX0L6mwk9SsGfq6RvzIBit/oeEs7OAJzXhqz4HL3InQ3jCZ5M0xVMPy46e
7QbgJIMqtU4SjqjXmtXwnUEe2u1+eCihYRjzM4jwlO8+vT+3/eG7NnfsXMB0h5hS
vVvUyOXKlH7p58FCqTI4vpulWAoRDGE9sxG4lmUfUgNIFtWkLs4Mj7kh8g9D1fY=
=oBCM
-----END PGP SIGNATURE-----

--Sig_/kWH40ZFVuT5o=xkv+0Q3PMr--


From MAILER-DAEMON Thu Aug 11 22:40:12 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bY2OK-0003eY-Ph
	for mharc-gpsd-dev@gnu.org; Thu, 11 Aug 2016 22:40:12 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:43998)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <frank@nicholasfamilycentral.com>) id 1bY2OI-0003bX-14
	for gpsd-dev@nongnu.org; Thu, 11 Aug 2016 22:40:11 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <frank@nicholasfamilycentral.com>) id 1bY2OD-0005Pe-PV
	for gpsd-dev@nongnu.org; Thu, 11 Aug 2016 22:40:08 -0400
Received: from mail-io0-x242.google.com ([2607:f8b0:4001:c06::242]:32829)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <frank@nicholasfamilycentral.com>) id 1bY2OD-0005PZ-Hy
	for gpsd-dev@nongnu.org; Thu, 11 Aug 2016 22:40:05 -0400
Received: by mail-io0-x242.google.com with SMTP id y195so890507iod.0
	for <gpsd-dev@nongnu.org>; Thu, 11 Aug 2016 19:40:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=nicholasfamilycentral-com.20150623.gappssmtp.com; s=20150623;
	h=mime-version:subject:from:in-reply-to:date:cc:message-id:references
	:to; bh=vI6aK4n3Hbld4gV2FG/afOa3p9YrRgJHL9W1iEAWPbk=;
	b=w7arzYE3w7vtn3q86fA84nfF0jkCMwxaexJ46Lr6dfzlfNvcXFoDTciclrNAQl3gOr
	6HEtd46s9t9vFroQXlREwQ1TpGiRkFjWfmLmISN61IWNTq5OTE6j+T6amay6l5VPvOd7
	rQQkfcBu2uuoNfL0D25C866LgjrhGgkbqdbxDG0TUVzFlx5udkDSJYAOfK5vo79nNKiH
	5HTk/EKbXnNyyDJLkk6lUL1mMRTo712v6FdY50bXTa+Nz62sb3zVwGkeMEWEY899ApKL
	dG6JJutW0FeS5plOBt6wH9qKNEiwVjndCA5lSgXq6jlkObdfC1iWBbELZQnW/4zii1Jw
	zdLA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20130820;
	h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc
	:message-id:references:to;
	bh=vI6aK4n3Hbld4gV2FG/afOa3p9YrRgJHL9W1iEAWPbk=;
	b=aQ0RmyB6z8fjWlOOtaSUS1v/cRe2Nr5uoukqP0THqzJhZeezBVPhIZ18KH8AuRDRex
	wnU9r1iR3UQ9LRL9V3SQh+d+UdNMIxoZLZzus42lIKAWQI/KnthfR9huKw6uUfjALYK3
	6UCi6B1b1YSpWzqrbuil8yXmRoob7IIq/i0NXWc1Eqc9WFdoCmwCvYbgO+74v7fXEURN
	G6VfZTNI003bnHucK5Ckk7vOSSNi/2UYOaS5hhLwnwL5hQKywdzr9z+3moMX9zFRi8os
	1DhPGfaQQJS+47vUOFQhUr+mQcxoIgbozRt+WFMbGLcxR9bNJDfKcCCcvsA8j5odM3VP
	iD4g==
X-Gm-Message-State: AEkoouugA1vphG0Kq5iGVBHrD8nIwQC6eTdQTCjP2aJFnWRu9+Zw+MVqiDWuOyl/+o58Vw==
X-Received: by 10.107.9.42 with SMTP id j42mr14715489ioi.33.1470969604186;
	Thu, 11 Aug 2016 19:40:04 -0700 (PDT)
Received: from lisa.springfield.com (c-68-50-91-109.hsd1.in.comcast.net.
	[68.50.91.109]) by smtp.gmail.com with ESMTPSA id
	k99sm2647028iod.25.2016.08.11.19.40.02
	(version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128);
	Thu, 11 Aug 2016 19:40:03 -0700 (PDT)
Content-Type: multipart/signed;
	boundary="Apple-Mail=_0574A9E7-4044-4FEE-B028-B094525A4AC5";
	protocol="application/pkcs7-signature"; micalg=sha1
Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\))
From: Frank Nicholas <frank@nicholasfamilycentral.com>
In-Reply-To: <20160811181305.4c686b51@spidey.rellim.com>
Date: Thu, 11 Aug 2016 22:40:02 -0400
Cc: Greg Troxel <gdt@ir.bbn.com>,
 gpsd-dev@nongnu.org
Message-Id: <E397B756-4E14-4D73-9E2F-761DD933915C@nicholasfamilycentral.com>
References: <20160806090944.DFC53406057@ip-64-139-1-69.sjc.megapath.net>
	<20160809184952.16944964@spidey.rellim.com>
	<e2e0e89b-5ff2-32de-c119-55f198dc5af3@hackerposse.com>
	<20160810124218.2538c143@spidey.rellim.com>
	<rmifuqaakwl.fsf@fnord.ir.bbn.com>
	<20160811181305.4c686b51@spidey.rellim.com>
To: "Gary E. Miller" <gem@rellim.com>
X-Mailer: Apple Mail (2.3124)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2607:f8b0:4001:c06::242
Subject: Re: [gpsd-dev] Lots of warnings
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Aug 2016 02:40:11 -0000


--Apple-Mail=_0574A9E7-4044-4FEE-B028-B094525A4AC5
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8


> On Aug 11, 2016, at 9:13 PM, Gary E. Miller <gem@rellim.com> wrote:
>=20
> Yo Greg!
>=20
> On Thu, 11 Aug 2016 20:30:34 -0400
> Greg Troxel <gdt@ir.bbn.com> wrote:
>=20
>> I would recommend casting to int64_t and using PRId64.
>=20
> I'll play with it, but until we can insist on POSIX 2008 I'm =
reluctant.
>=20
> For example, it is not present in macports, which I use to compile =
gpsd
> on OS X.

I can=E2=80=99t check this for a day or so, but have you tried Apple=E2=80=
=99s official developer tools?  They are free as a part of Xcode, and =
that=E2=80=99s what I=E2=80=99ve always successfully used for any open =
source projects.

Thanks,
Frank=

--Apple-Mail=_0574A9E7-4044-4FEE-B028-B094525A4AC5
Content-Disposition: attachment;
	filename=smime.p7s
Content-Type: application/pkcs7-signature;
	name=smime.p7s
Content-Transfer-Encoding: base64

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIILMTCCBUcw
ggQvoAMCAQICECWoG851LwZ2at3t1gpxgUYwDQYJKoZIhvcNAQELBQAwdTELMAkGA1UEBhMCSUwx
FjAUBgNVBAoTDVN0YXJ0Q29tIEx0ZC4xKTAnBgNVBAsTIFN0YXJ0Q29tIENlcnRpZmljYXRpb24g
QXV0aG9yaXR5MSMwIQYDVQQDExpTdGFydENvbSBDbGFzcyAxIENsaWVudCBDQTAeFw0xNjA3MDEx
MzQ5MjVaFw0xOTEwMDExMzQ5MjVaMIGCMSYwJAYDVQQNDB1Gb3IgbG9naW4gYXV0aGVudGljYXRp
b24gb25seTEoMCYGA1UEAwwfZnJhbmtAbmljaG9sYXNmYW1pbHljZW50cmFsLmNvbTEuMCwGCSqG
SIb3DQEJARYfZnJhbmtAbmljaG9sYXNmYW1pbHljZW50cmFsLmNvbTCCASIwDQYJKoZIhvcNAQEB
BQADggEPADCCAQoCggEBALtGc4+XIioqb7pIbDUP+zVyCYc2tHcxacpnd7RAecxm+qp5vG/nExWf
jnKf/HTfPzJMCANpPqYobb7A4sR9Spp+IAVCQ1LEA+QBjse5NInSgxvwVXlAidCf6yjFH3G9dfNG
u2177oTIHY4MH4Ls8kVtIuFpd1Y2mwAJL0eeyiryJr8hiWLF3AdiK1XAUiiwUAUK4r5rpsclAcf8
OCW0KiT55TUy8am2ABCqAeZeiwGgeYDY3LPGLCUPUoJogQaeaNhmeQHxI3g+Y/zG4oyRV2Dyl01V
V1PgutR0GwHcf4mafpHi326F/nyNBIx2OL291mYuE71bgPfFygLAzK5/qWcCAwEAAaOCAcMwggG/
MA4GA1UdDwEB/wQEAwIEsDAdBgNVHSUEFjAUBggrBgEFBQcDAgYIKwYBBQUHAwQwCQYDVR0TBAIw
ADAdBgNVHQ4EFgQUz1mjkrVtljUuKdNuB+CtWO6/OvgwHwYDVR0jBBgwFoAUJIFsOWG+SQ+PtxtG
K8kotSdIbWgwbwYIKwYBBQUHAQEEYzBhMCQGCCsGAQUFBzABhhhodHRwOi8vb2NzcC5zdGFydHNz
bC5jb20wOQYIKwYBBQUHMAKGLWh0dHA6Ly9haWEuc3RhcnRzc2wuY29tL2NlcnRzL3NjYS5jbGll
bnQxLmNydDA4BgNVHR8EMTAvMC2gK6AphidodHRwOi8vY3JsLnN0YXJ0c3NsLmNvbS9zY2EtY2xp
ZW50MS5jcmwwKgYDVR0RBCMwIYEfZnJhbmtAbmljaG9sYXNmYW1pbHljZW50cmFsLmNvbTAjBgNV
HRIEHDAahhhodHRwOi8vd3d3LnN0YXJ0c3NsLmNvbS8wRwYDVR0gBEAwPjA8BgsrBgEEAYG1NwEC
BTAtMCsGCCsGAQUFBwIBFh9odHRwczovL3d3dy5zdGFydHNzbC5jb20vcG9saWN5MA0GCSqGSIb3
DQEBCwUAA4IBAQAQAcXQKbjO+QQrg+An7XkQK9937B1qWJtkggun6fiwzuIrQTTlrWc1kgbAUhaC
qu4nczVADthm1iO0bNl8Ds9uz1UZqQ/wRkB9FoDgCVXFghOaTXIwppMgizYWfw+bp1lVplONT2+J
g3/NeahcvnykDpNm3AzdOCcU9+hfrCYRWLbi0K52aGi4EWsFiM7z17RROcpqwHogSntfHHa6JBEp
F3dW0mCv6ntmB36upU1v9ku76Pf191VAtVWKmQwQ9BXpv9EUH3PsuaHvXQaLo/tpaXOsFXv4LyjX
Ia71+i9vBntyeu7xHDtaOKdBh2tzQlyvliPo7ei/dqW4k207OPMqMIIF4jCCA8qgAwIBAgIQa6eK
fQrXiNZRCvlZ5Oe04TANBgkqhkiG9w0BAQsFADB9MQswCQYDVQQGEwJJTDEWMBQGA1UEChMNU3Rh
cnRDb20gTHRkLjErMCkGA1UECxMiU2VjdXJlIERpZ2l0YWwgQ2VydGlmaWNhdGUgU2lnbmluZzEp
MCcGA1UEAxMgU3RhcnRDb20gQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMTUxMjE2MDEwMDA1
WhcNMzAxMjE2MDEwMDA1WjB1MQswCQYDVQQGEwJJTDEWMBQGA1UEChMNU3RhcnRDb20gTHRkLjEp
MCcGA1UECxMgU3RhcnRDb20gQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkxIzAhBgNVBAMTGlN0YXJ0
Q29tIENsYXNzIDEgQ2xpZW50IENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvX3a
98OifYP2W4L921tfrh4bdcC1Ga+YJKy7V3nYNewJHnzMlBsK0Hb8Dm4Wo3FZpylcYa1MJGT10QMG
WaLER3xCIuRR+8eklf/EqeZWRLojJ7zBRtjMywPOCelrOU+DX12dKp+Ez4J6919rz1UudTO1GvZy
CYJ/I7062uHsskM8b7gPxmcCoO1UHwwpgkvpCArJWGFoFzjLdsZbErJcS3HtAhlkbE/BKTMrdYg3
5Uo12SLBO5tbk8h2imbKTC8iMs+pskrvI/AVlh6QoTTXk6xboVX6zgMgzxSVVLymQiygYYm0y5aM
svi2raFhC643SOGvErWWPPnSEfbeAD1xswIDAQABo4IBZDCCAWAwDgYDVR0PAQH/BAQDAgEGMB0G
A1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDBDASBgNVHRMBAf8ECDAGAQH/AgEAMDIGA1UdHwQr
MCkwJ6AloCOGIWh0dHA6Ly9jcmwuc3RhcnRzc2wuY29tL3Nmc2NhLmNybDBmBggrBgEFBQcBAQRa
MFgwJAYIKwYBBQUHMAGGGGh0dHA6Ly9vY3NwLnN0YXJ0c3NsLmNvbTAwBggrBgEFBQcwAoYkaHR0
cDovL2FpYS5zdGFydHNzbC5jb20vY2VydHMvY2EuY3J0MB0GA1UdDgQWBBQkgWw5Yb5JD4+3G0Yr
ySi1J0htaDAfBgNVHSMEGDAWgBROC+8apEBbpRdphzDKNGhD0EGu8jA/BgNVHSAEODA2MDQGBFUd
IAAwLDAqBggrBgEFBQcCARYeaHR0cDovL3d3dy5zdGFydHNzbC5jb20vcG9saWN5MA0GCSqGSIb3
DQEBCwUAA4ICAQCL4/eH7AGLhK0PAQJbnOEjJyMEvTTwcAJuUh/bodjQl06u4putYOxdSyIjSP/s
Kt+31LmjG8+IO1WqykE4H/Lm7NKezWVnCHuwb3ptgFmlwbMbGkU2MOZBtwzfKXdYUhFLhaE2uw5j
XhXvLYitQay962wP5uPI6eAIhV4L8aaya1u4s7MnrTq0Rz25FuGNO79vTHYWj797tSRC8rM16js4
yGKOLFpQvIg0F8IElv57b1stp+C7omqM5Qn15dePbSnqr8Jb65WtmJJbnv6rlqfY/aLuE/zmNAlz
LmPgfMDStKIXdg+EoYBZTEo8wBUaBxihfNbJ069ndQOxMNNqBelEMgpAtmjTbCuXFjqIwWq+XOx6
ZV/Wh2FAmaLsSHlNvEjjSQMZwE4EeHCdo66ZmEs/5JYlCeOkulKVQ6P3m5/XOj2jP17Q2AgmjP+1
1+sHN7PvrG0OwrQp9QMe3X+rn0G8MjtFfqBWvR9CgLIxzM3MJNxFdgdjS2rYnShP5uxvqwfZvhZV
YCIkqdJhpYON0DvSodfiar0wiM79mySZJjzC0CTbiisBzS/BeBhqeo2wFfli/iw3hn1XKvAx0ty6
w/scmBF0AYqmRHYj1TjMSw0lAl7AztLglqWjUPI+sukvadMRPxmtKXlS2nVR4an/Z16imsZ69+fF
YH68c1CK7zmjozGCA04wggNKAgEBMIGJMHUxCzAJBgNVBAYTAklMMRYwFAYDVQQKEw1TdGFydENv
bSBMdGQuMSkwJwYDVQQLEyBTdGFydENvbSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTEjMCEGA1UE
AxMaU3RhcnRDb20gQ2xhc3MgMSBDbGllbnQgQ0ECECWoG851LwZ2at3t1gpxgUYwCQYFKw4DAhoF
AKCCAZkwGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMTYwODEyMDI0
MDAyWjAjBgkqhkiG9w0BCQQxFgQUBPONBsxjwQZX9SOH0d0EdES4Fo4wgZoGCSsGAQQBgjcQBDGB
jDCBiTB1MQswCQYDVQQGEwJJTDEWMBQGA1UEChMNU3RhcnRDb20gTHRkLjEpMCcGA1UECxMgU3Rh
cnRDb20gQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkxIzAhBgNVBAMTGlN0YXJ0Q29tIENsYXNzIDEg
Q2xpZW50IENBAhAlqBvOdS8Gdmrd7dYKcYFGMIGcBgsqhkiG9w0BCRACCzGBjKCBiTB1MQswCQYD
VQQGEwJJTDEWMBQGA1UEChMNU3RhcnRDb20gTHRkLjEpMCcGA1UECxMgU3RhcnRDb20gQ2VydGlm
aWNhdGlvbiBBdXRob3JpdHkxIzAhBgNVBAMTGlN0YXJ0Q29tIENsYXNzIDEgQ2xpZW50IENBAhAl
qBvOdS8Gdmrd7dYKcYFGMA0GCSqGSIb3DQEBAQUABIIBALhQBza8/2DtXVFoA5wYRHrjZ63llMlj
oIYcl58lVCkmdM/SzBAl6ezbieE/CsOD7OwxES+qGNjTd2ACL7mQZzZwH3j3yPebJiqIDshUuAEo
0ACTUFY8nX2RtrGKLjjFwFn7v3Gte2yq3XSdVUjKm7pX9c0AV2/F+yJWsqdbr0KxjboZYa3e87cv
GO4Bg2BU7zbaLvORm3kburfUf+PtPhCHz+losgyjQSACFZtpibwXHpPaUOIipXxAqmjTviaxsSvp
i6f8p9srOAEUFIOU/dH/MlGcG2hR5fDb4rEFMRTqzl3zNi6B68Gyt9WrONEImJ+z3aeidXezD3Ta
EZnOe+sAAAAAAAA=
--Apple-Mail=_0574A9E7-4044-4FEE-B028-B094525A4AC5--


From MAILER-DAEMON Thu Aug 11 22:50:54 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bY2Yg-0004aS-4t
	for mharc-gpsd-dev@gnu.org; Thu, 11 Aug 2016 22:50:54 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:45414)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bY2Yd-0004a0-Qk
	for gpsd-dev@nongnu.org; Thu, 11 Aug 2016 22:50:52 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bY2Yc-00081N-Pu
	for gpsd-dev@nongnu.org; Thu, 11 Aug 2016 22:50:51 -0400
Received: from rellim.com ([2001:470:e815::19]:60754 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bY2Yc-00081H-Fo
	for gpsd-dev@nongnu.org; Thu, 11 Aug 2016 22:50:50 -0400
Received: from spidey.rellim.com (dave.rellim.com
	[IPv6:2001:470:e815:0:0:0:0:19] (may be forged))
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u7C2oO1c029771
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Thu, 11 Aug 2016 19:50:29 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u7C2oO1c029771
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1470970230; bh=wkYs4szMEKFc2ysb0bEf52yNMKrkFxxYdVkNBeiGZ2Y=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=er612ExFTGNsDPmhDpqlhuL12RxKaQsfFqVERJ1GpA2bDKK/skfV7U65UnAd/N7lM
	ItxOu/YZ88ICFf5QghKbV7DqC3W1okGW1DkxjcXbdAxL/JPsEF3mqqkI24d59bRVwJ
	jWiy0p0MeLm70IhpjZrso4Or4kHv9BDP2YFpyp/A=
Date: Thu, 11 Aug 2016 19:50:14 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Frank Nicholas <frank@nicholasfamilycentral.com>
Cc: Greg Troxel <gdt@ir.bbn.com>, gpsd-dev@nongnu.org
Message-ID: <20160811195014.4d918254@spidey.rellim.com>
In-Reply-To: <E397B756-4E14-4D73-9E2F-761DD933915C@nicholasfamilycentral.com>
References: <20160806090944.DFC53406057@ip-64-139-1-69.sjc.megapath.net>
	<20160809184952.16944964@spidey.rellim.com>
	<e2e0e89b-5ff2-32de-c119-55f198dc5af3@hackerposse.com>
	<20160810124218.2538c143@spidey.rellim.com>
	<rmifuqaakwl.fsf@fnord.ir.bbn.com>
	<20160811181305.4c686b51@spidey.rellim.com>
	<E397B756-4E14-4D73-9E2F-761DD933915C@nicholasfamilycentral.com>
Organization: Rellim
X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/cFhbK_cbNrYmCr60F45HlI3";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Thu, 11 Aug 2016 19:50:30 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] Lots of warnings
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Aug 2016 02:50:52 -0000

--Sig_/cFhbK_cbNrYmCr60F45HlI3
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Yo Frank!

On Thu, 11 Aug 2016 22:40:02 -0400
Frank Nicholas <frank@nicholasfamilycentral.com> wrote:

> > On Aug 11, 2016, at 9:13 PM, Gary E. Miller <gem@rellim.com> wrote:
> >=20
> > Yo Greg!
> >=20
> > On Thu, 11 Aug 2016 20:30:34 -0400
> > Greg Troxel <gdt@ir.bbn.com> wrote:
> >  =20
> >> I would recommend casting to int64_t and using PRId64. =20
> >=20
> > I'll play with it, but until we can insist on POSIX 2008 I'm
> > reluctant.
> >=20
> > For example, it is not present in macports, which I use to compile
> > gpsd on OS X. =20
>=20
> I can=E2=80=99t check this for a day or so, but have you tried Apple=E2=
=80=99s
> official developer tools?  They are free as a part of Xcode, and
> that=E2=80=99s what I=E2=80=99ve always successfully used for any open so=
urce
> projects.

Yes, inttypes.h is in Xcode.  Sadly, my xcode is broken right now and
I'm pulling my hair out about it...

xcode-select -p 	# says xcode is insalled fine
xcode-select --install 	# says my xcode is broken
xcode-select -r 	# says it reset my xcode to default
xcode-select -p 	# says xcode is insalled fine
xcode-select --install 	# says my xcode is broken

Around and around in circles....

I much prefer the familiarity, standards compliance and stability of
MacPorts.  I want my command line to work the same on Linux, OS X and
Windows.

But until 'xcode-select --install' works for me MacPorts barfs...

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/cFhbK_cbNrYmCr60F45HlI3
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXrTlrAAoJEA0O2UlB0XnYgY4IAJzoODQ665K+iPLpVDiunPZ0
5fesEXw37SL9+oV41DdX8KA/K9p32f6RnZ7wz/oR+gMoxYNfxqiUga1lqi3HiplG
GqwT/xy5Y4IYKGFShxAxALvzO3tPW4CqIof4xmH8LP7gjyIcpbeowe4WJnx6PLgV
QlQSLkzeKovdef3Hi5ErVqnqM78IFfjBxqZFpXTeKHaubY7yjnszc/ckpzu1cZWH
1FIKIc4kMC6VfCshoqKPVjnhqnkK/qBgw7PG34bgOZCb/z4RR1OhZz+pcfyWe+ep
t7chtHb1bJavLDd8kLmKgF3m182UcIkPvGG72ZCHPSeke1ZUQ27iaxqIzvGG7S0=
=sO/P
-----END PGP SIGNATURE-----

--Sig_/cFhbK_cbNrYmCr60F45HlI3--


From MAILER-DAEMON Thu Aug 11 23:22:45 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bY33V-0000C3-BY
	for mharc-gpsd-dev@gnu.org; Thu, 11 Aug 2016 23:22:45 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:56756)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <frank@nicholasfamilycentral.com>) id 1bY33Q-0000BJ-LG
	for gpsd-dev@nongnu.org; Thu, 11 Aug 2016 23:22:42 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <frank@nicholasfamilycentral.com>) id 1bY33M-0003ub-Cn
	for gpsd-dev@nongnu.org; Thu, 11 Aug 2016 23:22:39 -0400
Received: from mail-it0-x241.google.com ([2607:f8b0:4001:c0b::241]:34918)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <frank@nicholasfamilycentral.com>) id 1bY33M-0003uV-2B
	for gpsd-dev@nongnu.org; Thu, 11 Aug 2016 23:22:36 -0400
Received: by mail-it0-x241.google.com with SMTP id f6so216528ith.2
	for <gpsd-dev@nongnu.org>; Thu, 11 Aug 2016 20:22:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=nicholasfamilycentral-com.20150623.gappssmtp.com; s=20150623;
	h=mime-version:subject:from:in-reply-to:date:cc:message-id:references
	:to; bh=kV2A6a4KqBUwmthG4n6fHWjrUtc08SzgjKd5zLod3/w=;
	b=spSPJFYP0RkbKHURxe7daMnYGt7sAXkQyRC8hEZOMgSd32dBehu3KgItNkYFzDBGfp
	0mT08MNY9UbIrqeg2m5qp8VyyL2qHWVCjgd4dZoMO9yYCwJkmiYDRq8yDcyrsB1VascB
	Tk2dtYKqfZiIsacIPTjwuSKuCtYUjGVRbtS8gmg2koozaglSVhqdc84KRyqQ9vcSc4UR
	cgmbWT6S4p76Tm7+m2KDL2JrTJJbK4KNo04hhZrj+90A7P0nFuZCmnkzBZ+nmCa5Appw
	P8EZyJwqBK76X3RVDcc8Ln9PqAr0jVAdtdXAALr+oQ55kMVeqZVwIX+of1zVGK1lFL+G
	7xUA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20130820;
	h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc
	:message-id:references:to;
	bh=kV2A6a4KqBUwmthG4n6fHWjrUtc08SzgjKd5zLod3/w=;
	b=N8kWViP9JBaHHEH8CEeEk68nA/HmkjjyYWjDWz0Kaqf4W+/FCLbZ0PuVNKVGowDy5y
	Ng7HM7rPM/RtYrfRzJBObDLKk0u7S9Kxi9+xwqKeEb/MMYb/CSjyV8mJm2qMcQqVPOkn
	8cRkEKjGoKDpCVs7aRBKF9tS76gqR4B1LHVC4ZkUi6n2h0l/fVNLKpCRczgYpITiiVMX
	BE9h7c8Hmx3OmgnHYmJk2oixoU0sabfqjZIvh0B4cpnTQg7cPYmvIzTGj5uNvyZgZfE+
	mhSBoWoxOOmvXV8q4F4OP+6ka/nuCJZhnP66RNF8GS18XFnCeHY+2rGNfNbrqtPwJQS7
	bUTA==
X-Gm-Message-State: AEkoouvoq9rCsEEjONYYX8ckBnk/rD+YKGdZOw+2eseGJ5DDyrbJIvYLkxU7BBbplIxC7w==
X-Received: by 10.36.207.8 with SMTP id y8mr627114itf.63.1470972155208;
	Thu, 11 Aug 2016 20:22:35 -0700 (PDT)
Received: from lisa.springfield.com (c-68-50-91-109.hsd1.in.comcast.net.
	[68.50.91.109]) by smtp.gmail.com with ESMTPSA id
	o74sm2704119ioe.37.2016.08.11.20.22.33
	(version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128);
	Thu, 11 Aug 2016 20:22:33 -0700 (PDT)
Content-Type: multipart/signed;
	boundary="Apple-Mail=_D33F2F33-AA65-4879-86F3-0B288F7756A2";
	protocol="application/pkcs7-signature"; micalg=sha1
Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\))
From: Frank Nicholas <frank@nicholasfamilycentral.com>
In-Reply-To: <20160811195014.4d918254@spidey.rellim.com>
Date: Thu, 11 Aug 2016 23:22:32 -0400
Cc: Greg Troxel <gdt@ir.bbn.com>,
 gpsd-dev@nongnu.org
Message-Id: <7CCBBFB9-5B1E-487A-B40F-251D721E8AE1@nicholasfamilycentral.com>
References: <20160806090944.DFC53406057@ip-64-139-1-69.sjc.megapath.net>
	<20160809184952.16944964@spidey.rellim.com>
	<e2e0e89b-5ff2-32de-c119-55f198dc5af3@hackerposse.com>
	<20160810124218.2538c143@spidey.rellim.com>
	<rmifuqaakwl.fsf@fnord.ir.bbn.com>
	<20160811181305.4c686b51@spidey.rellim.com>
	<E397B756-4E14-4D73-9E2F-761DD933915C@nicholasfamilycentral.com>
	<20160811195014.4d918254@spidey.rellim.com>
To: "Gary E. Miller" <gem@rellim.com>
X-Mailer: Apple Mail (2.3124)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2607:f8b0:4001:c0b::241
Subject: Re: [gpsd-dev] Lots of warnings
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Aug 2016 03:22:42 -0000


--Apple-Mail=_D33F2F33-AA65-4879-86F3-0B288F7756A2
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_13845271-8EEC-4586-937B-1F4227E93050"


--Apple-Mail=_13845271-8EEC-4586-937B-1F4227E93050
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8


> On Aug 11, 2016, at 10:50 PM, Gary E. Miller <gem@rellim.com> wrote:
>=20
> Yo Frank!
>=20
> On Thu, 11 Aug 2016 22:40:02 -0400
> Frank Nicholas <frank@nicholasfamilycentral.com =
<mailto:frank@nicholasfamilycentral.com>> wrote:
>=20
>>> On Aug 11, 2016, at 9:13 PM, Gary E. Miller <gem@rellim.com> wrote:
>>>=20
>>> Yo Greg!
>>>=20
>>> On Thu, 11 Aug 2016 20:30:34 -0400
>>> Greg Troxel <gdt@ir.bbn.com> wrote:
>>>=20
>>>> I would recommend casting to int64_t and using PRId64. =20
>>>=20
>>> I'll play with it, but until we can insist on POSIX 2008 I'm
>>> reluctant.
>>>=20
>>> For example, it is not present in macports, which I use to compile
>>> gpsd on OS X. =20
>>=20
>> I can=E2=80=99t check this for a day or so, but have you tried =
Apple=E2=80=99s
>> official developer tools?  They are free as a part of Xcode, and
>> that=E2=80=99s what I=E2=80=99ve always successfully used for any =
open source
>> projects.
>=20
> Yes, inttypes.h is in Xcode.  Sadly, my xcode is broken right now and
> I'm pulling my hair out about it...
>=20
> xcode-select -p 	# says xcode is insalled fine
> xcode-select --install 	# says my xcode is broken
> xcode-select -r 	# says it reset my xcode to default
> xcode-select -p 	# says xcode is insalled fine
> xcode-select --install 	# says my xcode is broken
>=20
> Around and around in circles....
>=20
> I much prefer the familiarity, standards compliance and stability of
> MacPorts.  I want my command line to work the same on Linux, OS X and
> Windows.
>=20
> But until 'xcode-select --install' works for me MacPorts barfs=E2=80=A6

If MacPorts is barfing for you, how are you testing/compiling on OS X at =
all, or are you at a stand still on OS X?

I have never had any instability with Xcode or the command line =
utilities.  I=E2=80=99m not doubting your issue - just sharing my =
experience.

My limited experience with MacPorts has been the opposite - not like =
Linux (Gentoo) & not close to the standard OS X tools (form Xcode).  It =
was never exactly =E2=80=9Cstable=E2=80=9D in my use.  I always had to =
mess with it, even more than Gentoo installations.

I=E2=80=99m assuming you are on either Mavericks or El=E2=80=99Capitan.  =
For the past at least few (several?) versions/years, the standard path =
for the Xcode command line tools (not MacPorts) has been =
=E2=80=9C/Applications/Xcode.app/Contents/Developer=E2=80=9D.  If yours =
is anything different, then you probably have old versions or settings =
causing an issue.

=46rom Finder or Launchpad, try deleting the Xcode IDE completely (you =
do have it installed, right?  It=E2=80=99s the only officially supported =
developer tools for the past 2 x versions of OS X, I believe).  Then =
reinstall it from the App store.  Then try the command line tools (from =
a freshly opened shell).  Also, make sure you don=E2=80=99t have any =
Bash/shell manual settings that might be getting in the way.  If you =
have a current Xcode IDE, use the command =E2=80=98xcrun=E2=80=99 for =
more additional information about your command line environment.



--Apple-Mail=_13845271-8EEC-4586-937B-1F4227E93050
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><br class=3D""><div><blockquote type=3D"cite" class=3D""><div =
class=3D"">On Aug 11, 2016, at 10:50 PM, Gary E. Miller &lt;<a =
href=3D"mailto:gem@rellim.com" class=3D"">gem@rellim.com</a>&gt; =
wrote:</div><br class=3D"Apple-interchange-newline"><div class=3D""><span =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; float: none; display: inline =
!important;" class=3D"">Yo Frank!</span><br style=3D"font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; orphans: auto; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: =
0px;" class=3D""><br style=3D"font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant-caps: normal; font-weight: normal; =
letter-spacing: normal; orphans: auto; text-align: start; text-indent: =
0px; text-transform: none; white-space: normal; widows: auto; =
word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=3D""><span =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; float: none; display: inline =
!important;" class=3D"">On Thu, 11 Aug 2016 22:40:02 -0400</span><br =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px;" class=3D""><span style=3D"font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; orphans: auto; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
float: none; display: inline !important;" class=3D"">Frank Nicholas =
&lt;</span><a href=3D"mailto:frank@nicholasfamilycentral.com" =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px;" =
class=3D"">frank@nicholasfamilycentral.com</a><span style=3D"font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; orphans: auto; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
float: none; display: inline !important;" class=3D"">&gt; =
wrote:</span><br style=3D"font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant-caps: normal; font-weight: normal; =
letter-spacing: normal; orphans: auto; text-align: start; text-indent: =
0px; text-transform: none; white-space: normal; widows: auto; =
word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=3D""><br =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px;" class=3D""><blockquote type=3D"cite" =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px;" class=3D""><blockquote type=3D"cite" =
class=3D"">On Aug 11, 2016, at 9:13 PM, Gary E. Miller &lt;<a =
href=3D"mailto:gem@rellim.com" class=3D"">gem@rellim.com</a>&gt; =
wrote:<br class=3D""><br class=3D"">Yo Greg!<br class=3D""><br =
class=3D"">On Thu, 11 Aug 2016 20:30:34 -0400<br class=3D"">Greg Troxel =
&lt;<a href=3D"mailto:gdt@ir.bbn.com" class=3D"">gdt@ir.bbn.com</a>&gt; =
wrote:<br class=3D""><br class=3D""><blockquote type=3D"cite" class=3D"">I=
 would recommend casting to int64_t and using PRId64. &nbsp;<br =
class=3D""></blockquote><br class=3D"">I'll play with it, but until we =
can insist on POSIX 2008 I'm<br class=3D"">reluctant.<br class=3D""><br =
class=3D"">For example, it is not present in macports, which I use to =
compile<br class=3D"">gpsd on OS X. &nbsp;<br class=3D""></blockquote><br =
class=3D"">I can=E2=80=99t check this for a day or so, but have you =
tried Apple=E2=80=99s<br class=3D"">official developer tools? &nbsp;They =
are free as a part of Xcode, and<br class=3D"">that=E2=80=99s what =
I=E2=80=99ve always successfully used for any open source<br =
class=3D"">projects.<br class=3D""></blockquote><br style=3D"font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; orphans: auto; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: =
0px;" class=3D""><span style=3D"font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant-caps: normal; font-weight: normal; =
letter-spacing: normal; orphans: auto; text-align: start; text-indent: =
0px; text-transform: none; white-space: normal; widows: auto; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: =
inline !important;" class=3D"">Yes, inttypes.h is in Xcode. &nbsp;Sadly, =
my xcode is broken right now and</span><br style=3D"font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; orphans: auto; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: =
0px;" class=3D""><span style=3D"font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant-caps: normal; font-weight: normal; =
letter-spacing: normal; orphans: auto; text-align: start; text-indent: =
0px; text-transform: none; white-space: normal; widows: auto; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: =
inline !important;" class=3D"">I'm pulling my hair out about =
it...</span><br style=3D"font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant-caps: normal; font-weight: normal; =
letter-spacing: normal; orphans: auto; text-align: start; text-indent: =
0px; text-transform: none; white-space: normal; widows: auto; =
word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=3D""><br =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px;" class=3D""><span style=3D"font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; orphans: auto; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
float: none; display: inline !important;" class=3D"">xcode-select =
-p<span class=3D"Apple-converted-space">&nbsp;</span></span><span =
class=3D"Apple-tab-span" style=3D"font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; orphans: auto; text-align: start; =
text-indent: 0px; text-transform: none; white-space: pre; widows: auto; =
word-spacing: 0px; -webkit-text-stroke-width: 0px;">	</span><span =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; float: none; display: inline =
!important;" class=3D""># says xcode is insalled fine</span><br =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px;" class=3D""><span style=3D"font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; orphans: auto; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
float: none; display: inline !important;" class=3D"">xcode-select =
--install<span class=3D"Apple-converted-space">&nbsp;</span></span><span =
class=3D"Apple-tab-span" style=3D"font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; orphans: auto; text-align: start; =
text-indent: 0px; text-transform: none; white-space: pre; widows: auto; =
word-spacing: 0px; -webkit-text-stroke-width: 0px;">	</span><span =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; float: none; display: inline =
!important;" class=3D""># says my xcode is broken</span><br =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px;" class=3D""><span style=3D"font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; orphans: auto; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
float: none; display: inline !important;" class=3D"">xcode-select =
-r<span class=3D"Apple-converted-space">&nbsp;</span></span><span =
class=3D"Apple-tab-span" style=3D"font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; orphans: auto; text-align: start; =
text-indent: 0px; text-transform: none; white-space: pre; widows: auto; =
word-spacing: 0px; -webkit-text-stroke-width: 0px;">	</span><span =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; float: none; display: inline =
!important;" class=3D""># says it reset my xcode to default</span><br =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px;" class=3D""><span style=3D"font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; orphans: auto; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
float: none; display: inline !important;" class=3D"">xcode-select =
-p<span class=3D"Apple-converted-space">&nbsp;</span></span><span =
class=3D"Apple-tab-span" style=3D"font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; orphans: auto; text-align: start; =
text-indent: 0px; text-transform: none; white-space: pre; widows: auto; =
word-spacing: 0px; -webkit-text-stroke-width: 0px;">	</span><span =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; float: none; display: inline =
!important;" class=3D""># says xcode is insalled fine</span><br =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px;" class=3D""><span style=3D"font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; orphans: auto; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
float: none; display: inline !important;" class=3D"">xcode-select =
--install<span class=3D"Apple-converted-space">&nbsp;</span></span><span =
class=3D"Apple-tab-span" style=3D"font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; orphans: auto; text-align: start; =
text-indent: 0px; text-transform: none; white-space: pre; widows: auto; =
word-spacing: 0px; -webkit-text-stroke-width: 0px;">	</span><span =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; float: none; display: inline =
!important;" class=3D""># says my xcode is broken</span><br =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px;" class=3D""><br style=3D"font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; orphans: auto; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: =
0px;" class=3D""><span style=3D"font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant-caps: normal; font-weight: normal; =
letter-spacing: normal; orphans: auto; text-align: start; text-indent: =
0px; text-transform: none; white-space: normal; widows: auto; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: =
inline !important;" class=3D"">Around and around in =
circles....</span><br style=3D"font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant-caps: normal; font-weight: normal; =
letter-spacing: normal; orphans: auto; text-align: start; text-indent: =
0px; text-transform: none; white-space: normal; widows: auto; =
word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=3D""><br =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px;" class=3D""><span style=3D"font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; orphans: auto; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
float: none; display: inline !important;" class=3D"">I much prefer the =
familiarity, standards compliance and stability of</span><br =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px;" class=3D""><span style=3D"font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; orphans: auto; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
float: none; display: inline !important;" class=3D"">MacPorts. &nbsp;I =
want my command line to work the same on Linux, OS X and</span><br =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px;" class=3D""><span style=3D"font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; orphans: auto; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
float: none; display: inline !important;" class=3D"">Windows.</span><br =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px;" class=3D""><br style=3D"font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; orphans: auto; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: =
0px;" class=3D""><span style=3D"font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant-caps: normal; font-weight: normal; =
letter-spacing: normal; orphans: auto; text-align: start; text-indent: =
0px; text-transform: none; white-space: normal; widows: auto; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: =
inline !important;" class=3D"">But until 'xcode-select --install' works =
for me MacPorts barfs=E2=80=A6</span></div></blockquote><br =
class=3D""></div><div>If MacPorts is barfing for you, how are you =
testing/compiling on OS X at all, or are you at a stand still on OS =
X?</div><br class=3D""><div class=3D"">I have never had any instability =
with Xcode or the command line utilities. &nbsp;I=E2=80=99m not doubting =
your issue - just sharing my experience.</div><div class=3D""><br =
class=3D""></div><div class=3D"">My limited experience with MacPorts has =
been the opposite - not like Linux (Gentoo) &amp; not close to the =
standard OS X tools (form Xcode). &nbsp;It was never exactly =
=E2=80=9Cstable=E2=80=9D in my use. &nbsp;I always had to mess with it, =
even more than Gentoo installations.</div><div class=3D""><br =
class=3D""></div><div class=3D"">I=E2=80=99m assuming you are on either =
Mavericks or El=E2=80=99Capitan. &nbsp;For the past at least few =
(several?) versions/years, the standard path for the Xcode command line =
tools (not MacPorts) has been =E2=80=9C<span style=3D"font-family: =
Menlo; font-size: 11px;" =
class=3D"">/Applications/Xcode.app/Contents/Developer</span>=E2=80=9D. =
&nbsp;If yours is anything different, then you probably have old =
versions or settings causing an issue.</div><div class=3D""><br =
class=3D""></div><div class=3D"">=46rom Finder or Launchpad, try =
deleting the Xcode IDE completely (you do have it installed, right? =
&nbsp;It=E2=80=99s the only officially supported developer tools for the =
past 2 x versions of OS X, I believe). &nbsp;Then reinstall it from the =
App store. &nbsp;Then try the command line tools (from a freshly opened =
shell). &nbsp;Also, make sure you don=E2=80=99t have any Bash/shell =
manual settings that might be getting in the way. &nbsp;If you have a =
current Xcode IDE, use the command =E2=80=98<span style=3D"font-family: =
Menlo; font-size: 11px;" class=3D"">xcrun</span>=E2=80=99 for more =
additional information about your command line environment.</div><div =
class=3D""><br class=3D""></div><div class=3D""><br =
class=3D""></div></body></html>=

--Apple-Mail=_13845271-8EEC-4586-937B-1F4227E93050--

--Apple-Mail=_D33F2F33-AA65-4879-86F3-0B288F7756A2
Content-Disposition: attachment;
	filename=smime.p7s
Content-Type: application/pkcs7-signature;
	name=smime.p7s
Content-Transfer-Encoding: base64

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIILMTCCBUcw
ggQvoAMCAQICECWoG851LwZ2at3t1gpxgUYwDQYJKoZIhvcNAQELBQAwdTELMAkGA1UEBhMCSUwx
FjAUBgNVBAoTDVN0YXJ0Q29tIEx0ZC4xKTAnBgNVBAsTIFN0YXJ0Q29tIENlcnRpZmljYXRpb24g
QXV0aG9yaXR5MSMwIQYDVQQDExpTdGFydENvbSBDbGFzcyAxIENsaWVudCBDQTAeFw0xNjA3MDEx
MzQ5MjVaFw0xOTEwMDExMzQ5MjVaMIGCMSYwJAYDVQQNDB1Gb3IgbG9naW4gYXV0aGVudGljYXRp
b24gb25seTEoMCYGA1UEAwwfZnJhbmtAbmljaG9sYXNmYW1pbHljZW50cmFsLmNvbTEuMCwGCSqG
SIb3DQEJARYfZnJhbmtAbmljaG9sYXNmYW1pbHljZW50cmFsLmNvbTCCASIwDQYJKoZIhvcNAQEB
BQADggEPADCCAQoCggEBALtGc4+XIioqb7pIbDUP+zVyCYc2tHcxacpnd7RAecxm+qp5vG/nExWf
jnKf/HTfPzJMCANpPqYobb7A4sR9Spp+IAVCQ1LEA+QBjse5NInSgxvwVXlAidCf6yjFH3G9dfNG
u2177oTIHY4MH4Ls8kVtIuFpd1Y2mwAJL0eeyiryJr8hiWLF3AdiK1XAUiiwUAUK4r5rpsclAcf8
OCW0KiT55TUy8am2ABCqAeZeiwGgeYDY3LPGLCUPUoJogQaeaNhmeQHxI3g+Y/zG4oyRV2Dyl01V
V1PgutR0GwHcf4mafpHi326F/nyNBIx2OL291mYuE71bgPfFygLAzK5/qWcCAwEAAaOCAcMwggG/
MA4GA1UdDwEB/wQEAwIEsDAdBgNVHSUEFjAUBggrBgEFBQcDAgYIKwYBBQUHAwQwCQYDVR0TBAIw
ADAdBgNVHQ4EFgQUz1mjkrVtljUuKdNuB+CtWO6/OvgwHwYDVR0jBBgwFoAUJIFsOWG+SQ+PtxtG
K8kotSdIbWgwbwYIKwYBBQUHAQEEYzBhMCQGCCsGAQUFBzABhhhodHRwOi8vb2NzcC5zdGFydHNz
bC5jb20wOQYIKwYBBQUHMAKGLWh0dHA6Ly9haWEuc3RhcnRzc2wuY29tL2NlcnRzL3NjYS5jbGll
bnQxLmNydDA4BgNVHR8EMTAvMC2gK6AphidodHRwOi8vY3JsLnN0YXJ0c3NsLmNvbS9zY2EtY2xp
ZW50MS5jcmwwKgYDVR0RBCMwIYEfZnJhbmtAbmljaG9sYXNmYW1pbHljZW50cmFsLmNvbTAjBgNV
HRIEHDAahhhodHRwOi8vd3d3LnN0YXJ0c3NsLmNvbS8wRwYDVR0gBEAwPjA8BgsrBgEEAYG1NwEC
BTAtMCsGCCsGAQUFBwIBFh9odHRwczovL3d3dy5zdGFydHNzbC5jb20vcG9saWN5MA0GCSqGSIb3
DQEBCwUAA4IBAQAQAcXQKbjO+QQrg+An7XkQK9937B1qWJtkggun6fiwzuIrQTTlrWc1kgbAUhaC
qu4nczVADthm1iO0bNl8Ds9uz1UZqQ/wRkB9FoDgCVXFghOaTXIwppMgizYWfw+bp1lVplONT2+J
g3/NeahcvnykDpNm3AzdOCcU9+hfrCYRWLbi0K52aGi4EWsFiM7z17RROcpqwHogSntfHHa6JBEp
F3dW0mCv6ntmB36upU1v9ku76Pf191VAtVWKmQwQ9BXpv9EUH3PsuaHvXQaLo/tpaXOsFXv4LyjX
Ia71+i9vBntyeu7xHDtaOKdBh2tzQlyvliPo7ei/dqW4k207OPMqMIIF4jCCA8qgAwIBAgIQa6eK
fQrXiNZRCvlZ5Oe04TANBgkqhkiG9w0BAQsFADB9MQswCQYDVQQGEwJJTDEWMBQGA1UEChMNU3Rh
cnRDb20gTHRkLjErMCkGA1UECxMiU2VjdXJlIERpZ2l0YWwgQ2VydGlmaWNhdGUgU2lnbmluZzEp
MCcGA1UEAxMgU3RhcnRDb20gQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMTUxMjE2MDEwMDA1
WhcNMzAxMjE2MDEwMDA1WjB1MQswCQYDVQQGEwJJTDEWMBQGA1UEChMNU3RhcnRDb20gTHRkLjEp
MCcGA1UECxMgU3RhcnRDb20gQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkxIzAhBgNVBAMTGlN0YXJ0
Q29tIENsYXNzIDEgQ2xpZW50IENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvX3a
98OifYP2W4L921tfrh4bdcC1Ga+YJKy7V3nYNewJHnzMlBsK0Hb8Dm4Wo3FZpylcYa1MJGT10QMG
WaLER3xCIuRR+8eklf/EqeZWRLojJ7zBRtjMywPOCelrOU+DX12dKp+Ez4J6919rz1UudTO1GvZy
CYJ/I7062uHsskM8b7gPxmcCoO1UHwwpgkvpCArJWGFoFzjLdsZbErJcS3HtAhlkbE/BKTMrdYg3
5Uo12SLBO5tbk8h2imbKTC8iMs+pskrvI/AVlh6QoTTXk6xboVX6zgMgzxSVVLymQiygYYm0y5aM
svi2raFhC643SOGvErWWPPnSEfbeAD1xswIDAQABo4IBZDCCAWAwDgYDVR0PAQH/BAQDAgEGMB0G
A1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDBDASBgNVHRMBAf8ECDAGAQH/AgEAMDIGA1UdHwQr
MCkwJ6AloCOGIWh0dHA6Ly9jcmwuc3RhcnRzc2wuY29tL3Nmc2NhLmNybDBmBggrBgEFBQcBAQRa
MFgwJAYIKwYBBQUHMAGGGGh0dHA6Ly9vY3NwLnN0YXJ0c3NsLmNvbTAwBggrBgEFBQcwAoYkaHR0
cDovL2FpYS5zdGFydHNzbC5jb20vY2VydHMvY2EuY3J0MB0GA1UdDgQWBBQkgWw5Yb5JD4+3G0Yr
ySi1J0htaDAfBgNVHSMEGDAWgBROC+8apEBbpRdphzDKNGhD0EGu8jA/BgNVHSAEODA2MDQGBFUd
IAAwLDAqBggrBgEFBQcCARYeaHR0cDovL3d3dy5zdGFydHNzbC5jb20vcG9saWN5MA0GCSqGSIb3
DQEBCwUAA4ICAQCL4/eH7AGLhK0PAQJbnOEjJyMEvTTwcAJuUh/bodjQl06u4putYOxdSyIjSP/s
Kt+31LmjG8+IO1WqykE4H/Lm7NKezWVnCHuwb3ptgFmlwbMbGkU2MOZBtwzfKXdYUhFLhaE2uw5j
XhXvLYitQay962wP5uPI6eAIhV4L8aaya1u4s7MnrTq0Rz25FuGNO79vTHYWj797tSRC8rM16js4
yGKOLFpQvIg0F8IElv57b1stp+C7omqM5Qn15dePbSnqr8Jb65WtmJJbnv6rlqfY/aLuE/zmNAlz
LmPgfMDStKIXdg+EoYBZTEo8wBUaBxihfNbJ069ndQOxMNNqBelEMgpAtmjTbCuXFjqIwWq+XOx6
ZV/Wh2FAmaLsSHlNvEjjSQMZwE4EeHCdo66ZmEs/5JYlCeOkulKVQ6P3m5/XOj2jP17Q2AgmjP+1
1+sHN7PvrG0OwrQp9QMe3X+rn0G8MjtFfqBWvR9CgLIxzM3MJNxFdgdjS2rYnShP5uxvqwfZvhZV
YCIkqdJhpYON0DvSodfiar0wiM79mySZJjzC0CTbiisBzS/BeBhqeo2wFfli/iw3hn1XKvAx0ty6
w/scmBF0AYqmRHYj1TjMSw0lAl7AztLglqWjUPI+sukvadMRPxmtKXlS2nVR4an/Z16imsZ69+fF
YH68c1CK7zmjozGCA04wggNKAgEBMIGJMHUxCzAJBgNVBAYTAklMMRYwFAYDVQQKEw1TdGFydENv
bSBMdGQuMSkwJwYDVQQLEyBTdGFydENvbSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTEjMCEGA1UE
AxMaU3RhcnRDb20gQ2xhc3MgMSBDbGllbnQgQ0ECECWoG851LwZ2at3t1gpxgUYwCQYFKw4DAhoF
AKCCAZkwGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMTYwODEyMDMy
MjMzWjAjBgkqhkiG9w0BCQQxFgQUcqZETK2SRxbhiZk2p4w2QmRJ2NswgZoGCSsGAQQBgjcQBDGB
jDCBiTB1MQswCQYDVQQGEwJJTDEWMBQGA1UEChMNU3RhcnRDb20gTHRkLjEpMCcGA1UECxMgU3Rh
cnRDb20gQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkxIzAhBgNVBAMTGlN0YXJ0Q29tIENsYXNzIDEg
Q2xpZW50IENBAhAlqBvOdS8Gdmrd7dYKcYFGMIGcBgsqhkiG9w0BCRACCzGBjKCBiTB1MQswCQYD
VQQGEwJJTDEWMBQGA1UEChMNU3RhcnRDb20gTHRkLjEpMCcGA1UECxMgU3RhcnRDb20gQ2VydGlm
aWNhdGlvbiBBdXRob3JpdHkxIzAhBgNVBAMTGlN0YXJ0Q29tIENsYXNzIDEgQ2xpZW50IENBAhAl
qBvOdS8Gdmrd7dYKcYFGMA0GCSqGSIb3DQEBAQUABIIBAItCSe49UBNXHg8Co2bYb9aeY2ZyswaC
i3U77h9azWmJ1ksdWhHT1XNEx/XDE/0qSa71g3hDvD1DxUlPrd5VZlqoy2hJE4QAJjDqx+2hKnQ2
EMkawhRyoRSZsW+Iyv8DcHvB8BjtxWoaPf6bcm7cDWoDya/PImH1cn43vq6GYDs0g7ewJdpAa8oJ
DQaM67y2K012yUcDjEiIA2FIfFyACQ1uHb+tPMPJ+/sM/80CTv02ZhP2RN8WqXwb5cop9xOxEydb
dJWCmaBVKSXaVfmqqpSdlTdJUnfiJS9J+JOansmNjyLN5eoYITyDn3q659NpCCeRxuHV2/AyvzVE
/7tMrrQAAAAAAAA=
--Apple-Mail=_D33F2F33-AA65-4879-86F3-0B288F7756A2--


From MAILER-DAEMON Thu Aug 11 23:43:46 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bY3Nq-00028c-DP
	for mharc-gpsd-dev@gnu.org; Thu, 11 Aug 2016 23:43:46 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:37353)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bY3Nl-00028V-Ky
	for gpsd-dev@nongnu.org; Thu, 11 Aug 2016 23:43:42 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bY3Nj-0005gx-Ke
	for gpsd-dev@nongnu.org; Thu, 11 Aug 2016 23:43:40 -0400
Received: from rellim.com ([2001:470:e815::19]:59884 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bY3Nj-0005gq-9f
	for gpsd-dev@nongnu.org; Thu, 11 Aug 2016 23:43:39 -0400
Received: from spidey.rellim.com (rellim.com [IPv6:2001:470:e815:0:0:0:0:19])
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u7C3hBMH017851
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Thu, 11 Aug 2016 20:43:16 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u7C3hBMH017851
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1470973398; bh=xDbAayOTP19XUqjYDF0kobE7h5y/f14qoPCHKB8B9eA=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=UF00HTk+d7pnLcyoq3+Vz7fNcKIPk308kkO1iZ3O5m67s9KG4Gri+fjFbGob0vtpl
	f+ZDULiUCwRoK1KPmCSrS/Jtb5swJWe1rhbGVRXJstBUwZazUuqcCykLSzDdQrDUm+
	xF4Ou28fDHNaAgGnzEOSwOAludpFiAiNMvVRKttM=
Date: Thu, 11 Aug 2016 20:43:11 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Frank Nicholas <frank@nicholasfamilycentral.com>
Cc: Greg Troxel <gdt@ir.bbn.com>, gpsd-dev@nongnu.org
Message-ID: <20160811204311.2f1ceef1@spidey.rellim.com>
In-Reply-To: <7CCBBFB9-5B1E-487A-B40F-251D721E8AE1@nicholasfamilycentral.com>
References: <20160806090944.DFC53406057@ip-64-139-1-69.sjc.megapath.net>
	<20160809184952.16944964@spidey.rellim.com>
	<e2e0e89b-5ff2-32de-c119-55f198dc5af3@hackerposse.com>
	<20160810124218.2538c143@spidey.rellim.com>
	<rmifuqaakwl.fsf@fnord.ir.bbn.com>
	<20160811181305.4c686b51@spidey.rellim.com>
	<E397B756-4E14-4D73-9E2F-761DD933915C@nicholasfamilycentral.com>
	<20160811195014.4d918254@spidey.rellim.com>
	<7CCBBFB9-5B1E-487A-B40F-251D721E8AE1@nicholasfamilycentral.com>
Organization: Rellim
X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/0rr.GzgnR9QP3Cfi=zle7tP";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Thu, 11 Aug 2016 20:43:18 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] Lots of warnings
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Aug 2016 03:43:42 -0000

--Sig_/0rr.GzgnR9QP3Cfi=zle7tP
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Yo Frank!

On Thu, 11 Aug 2016 23:22:32 -0400
Frank Nicholas <frank@nicholasfamilycentral.com> wrote:

> If MacPorts is barfing for you, how are you testing/compiling on OS X
> at all, or are you at a stand still on OS X?

I'm at a stand still right now.  If I am the only one using gpsd on=20
OS X then hardly any point to testing it.

> I have never had any instability with Xcode or the command line
> utilities.  I=E2=80=99m not doubting your issue - just sharing my experie=
nce.

Not unstable, just broken...

> My limited experience with MacPorts has been the opposite - not like
> Linux (Gentoo) & not close to the standard OS X tools (form Xcode).
> It was never exactly =E2=80=9Cstable=E2=80=9D in my use.  I always had to=
 mess with
> it, even more than Gentoo installations.

Odd, since I find Gentoo unstable to be very stable.  Gentoo unstable
can be a bit hinky, when they do update it.

> I=E2=80=99m assuming you are on either Mavericks or El=E2=80=99Capitan.

El Capitan.

>  For the past
> at least few (several?) versions/years, the standard path for the
> Xcode command line tools (not MacPorts) has been
> =E2=80=9C/Applications/Xcode.app/Contents/Developer=E2=80=9D.

mini:~ root# xcode-select -p
/Applications/Xcode.app/Contents/Developer

Same as yours, but:

mini:~ root# xcode-select --install
xcode-select: error: no developer tools were found, and no install could be=
 requested (perhaps no UI is present), please install manually from 'develo=
per.apple.com'.


> From Finder or Launchpad, try deleting the Xcode IDE completely (you
> do have it installed, right?

It looks installed to me:

mini:~ root# xcode-select -v
xcode-select version 2343.

> Then
> reinstall it from the App store.

I do not see a 'reinstall' option.  Delete and reinstall

>  Also, make sure you don=E2=80=99t have any
> Bash/shell manual settings that might be getting in the way.

I'm a plain vanilla guy.  I always try to make the default work.

>  If you
> have a current Xcode IDE, use the command =E2=80=98xcrun=E2=80=99 for mor=
e additional
> information about your command line environment.

All xcrun gets me is a usage that confuses me....

I do all the 'show' options, but I have no idea what they mean.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/0rr.GzgnR9QP3Cfi=zle7tP
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXrUXPAAoJEA0O2UlB0XnYXykH+wepO8HJL0TjMDlVHd2+i7Xi
5Wc7/H8DltgoZoycCrzTEcbiL7g9Ex85Fd63D5g+OCaPEk53mfdjzv+vK5AkaRIl
K0awjY71uinPUe76DzxLDmA4O/v6ZV6+XuuSo9cQJaMxqeAklhkGQVy/TRRnXlkf
RxKyKyvORxLzgjA/CM9nV7sShyQToyQQz1mGh/LYvKIRsm8g7mOxvNFNo6NQzWiU
vuTZ/6rKeHeTYbUKhFAR4+dXU0FTUSe9v0iqs9OA6JzM3g51PJS1gh7G/PdXLn/V
gOKsKfokJF0+pC7piH+840lgkPfZZkrLsUk2CiZS5PqZSLxDKv7ijEJDqCB0kNw=
=u7qr
-----END PGP SIGNATURE-----

--Sig_/0rr.GzgnR9QP3Cfi=zle7tP--


From MAILER-DAEMON Fri Aug 12 10:30:35 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bYDTn-0004Wm-GO
	for mharc-gpsd-dev@gnu.org; Fri, 12 Aug 2016 10:30:35 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:51304)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bYDTk-0004U6-Oe
	for gpsd-dev@nongnu.org; Fri, 12 Aug 2016 10:30:33 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bYDTf-0002AR-Oi
	for gpsd-dev@nongnu.org; Fri, 12 Aug 2016 10:30:32 -0400
Received: from ip-64-139-1-69.sjc.megapath.net ([64.139.1.69]:56994)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bYDTf-00025c-HU
	for gpsd-dev@nongnu.org; Fri, 12 Aug 2016 10:30:27 -0400
Received: from shuksan (localhost [127.0.0.1])
	by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id 65752406076; 
	Fri, 12 Aug 2016 03:53:38 -0700 (PDT)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: gpsd-dev@nongnu.org
From: Hal Murray <hmurray@megapathdsl.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Fri, 12 Aug 2016 03:53:38 -0700
Message-Id: <20160812105338.65752406076@ip-64-139-1-69.sjc.megapath.net>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.139.1.69
Subject: [gpsd-dev] Today's warnings....
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Aug 2016 14:30:33 -0000


>From Fedora 24,
  cc (GCC) 6.1.1 20160621 (Red Hat 6.1.1-3)
bits.c:40:19: warning: left shift of negative value [-Wshift-negative-value]
bits.c:71:15: warning: left shift of negative value [-Wshift-negative-value]
bits.c:40:19: warning: left shift of negative value [-Wshift-negative-value]
bits.c:71:15: warning: left shift of negative value [-Wshift-negative-value]

>From NetBSD
  cc (nb2 20150115) 4.8.4
test_libgps.c:93:6: warning: array subscript has type 'char' 
[-Wchar-subscripts]


>From FreeBSD on ARM:
  FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM 
3.8.0)
  Target: armv6--freebsd11.0-gnueabi
  Thread model: posix
timespec_str.c:48:12: warning: absolute value function 'labs' given an 
argument of type 'const time_t' (aka 'const long long') but has parameter of 
type 'long' which may cause truncation of value [-Wabsolute-value]
gpsmon.c:244:21: warning: absolute value function 'labs' given an argument of type 'time_t' (aka 'long long') but has parameter of type 'long' which may cause truncation of value [-Wabsolute-value]
gpsmon.c:274:28: warning: absolute value function 'labs' given an argument of type 'time_t' (aka 'long long') but has parameter of type 'long' which may cause truncation of value [-Wabsolute-value]



-- 
These are my opinions.  I hate spam.





From MAILER-DAEMON Fri Aug 12 14:03:15 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bYGnb-0007ra-TD
	for mharc-gpsd-dev@gnu.org; Fri, 12 Aug 2016 14:03:15 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:34495)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bYGnZ-0007rP-Lx
	for gpsd-dev@nongnu.org; Fri, 12 Aug 2016 14:03:14 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bYGnX-0003Aw-Hf
	for gpsd-dev@nongnu.org; Fri, 12 Aug 2016 14:03:12 -0400
Received: from rellim.com ([2001:470:e815::19]:35685 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bYGnX-0003Am-7W
	for gpsd-dev@nongnu.org; Fri, 12 Aug 2016 14:03:11 -0400
Received: from spidey.rellim.com (dave.rellim.com
	[IPv6:2001:470:e815:0:0:0:0:19] (may be forged))
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u7CI2xXl028545
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Fri, 12 Aug 2016 11:03:04 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u7CI2xXl028545
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1471024984; bh=FB7A2d3GpEQewzZeUH2oO+QWrBTjzLQ55s9tKZg3L2E=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=u8KeajoHOPoJ+rt2xVElS6239d7jbL482K+V+DtVL9Nip8KQtrjJi3uGT67ZKT6DM
	AS0M8De1JXDg+ns6YAe/R6ZMAspWj5KLOwcQJmi6n94jNaKhQcNIsuFnnIwkp/NVrS
	pI8vgCHWzk6P3N5l4QhZXJIX2E87VCitf9OPqYOY=
Date: Fri, 12 Aug 2016 11:02:58 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Hal Murray <hmurray@megapathdsl.net>
Cc: gpsd-dev@nongnu.org
Message-ID: <20160812110258.6c4c84dc@spidey.rellim.com>
In-Reply-To: <20160812105338.65752406076@ip-64-139-1-69.sjc.megapath.net>
References: <20160812105338.65752406076@ip-64-139-1-69.sjc.megapath.net>
Organization: Rellim
X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/sKw6gnt2aFi5WWhS4N1dfjl";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Fri, 12 Aug 2016 11:03:04 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] Today's warnings....
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Aug 2016 18:03:14 -0000

--Sig_/sKw6gnt2aFi5WWhS4N1dfjl
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Hal!

On Fri, 12 Aug 2016 03:53:38 -0700
Hal Murray <hmurray@megapathdsl.net> wrote:

> From Fedora 24,
>   cc (GCC) 6.1.1 20160621 (Red Hat 6.1.1-3)=20
> bits.c:40:19: warning: left shift of negative value [-Wshift-negative-val=
ue]
> bits.c:71:15: warning: left shift of negative value [-Wshift-negative-val=
ue]
> bits.c:40:19: warning: left shift of negative value [-Wshift-negative-val=
ue]
> bits.c:71:15: warning: left shift of negative value [-Wshift-negative-val=
ue]

Eric had thoughts on that one, I'll leave it to him.

> From NetBSD
>   cc (nb2 20150115) 4.8.4
> test_libgps.c:93:6: warning: array subscript has type 'char'=20
> [-Wchar-subscripts]

            if (buf[0] =3D=3D '{' || isalpha(buf[0])) {

And that is wrong why?

> From FreeBSD on ARM:
>   FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based
> on LLVM 3.8.0)
>   Target: armv6--freebsd11.0-gnueabi
>   Thread model: posix
> timespec_str.c:48:12: warning: absolute value function 'labs' given

You are not on git head.  That was fixed.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/sKw6gnt2aFi5WWhS4N1dfjl
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXrg9TAAoJEA0O2UlB0XnYnpwH/2MjJI37d3lpuLm5h8/9kQsE
zcbV/Nam3Ob2tMijJNL3LmJ7br9j66RlTx8tGAYbL1HgwJ04y1FIIXt9NrjYbBqR
uPH+W5lXNH12e5WUob+6F8fifbIBZrxNx2P9G4/VSlX5b2goRVFX597YNc9+STto
jafU+of1ATODsS+IIW+TqWlG0qAeHTijNVmU/aO7dU8TfJhOGOimm8wxnTJY/e+h
wucDxmWyxjeL3iDHD9adCwKrGteUE5UdPoPrcLs692XKoPn7sdOUUQvVN4cfzvcW
kuqQfdsQifscwmfoXdFWpwZAHWmaFtqAZctvhnw8A/GDjFml+NTDChfqCr4nErw=
=kgDA
-----END PGP SIGNATURE-----

--Sig_/sKw6gnt2aFi5WWhS4N1dfjl--


From MAILER-DAEMON Fri Aug 12 14:35:16 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bYHIa-0002PJ-7w
	for mharc-gpsd-dev@gnu.org; Fri, 12 Aug 2016 14:35:16 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:40696)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gdt@ir.bbn.com>) id 1bYHIX-0002NX-99
	for gpsd-dev@nongnu.org; Fri, 12 Aug 2016 14:35:14 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gdt@ir.bbn.com>) id 1bYHIU-0001Sg-Vp
	for gpsd-dev@nongnu.org; Fri, 12 Aug 2016 14:35:12 -0400
Received: from fnord.ir.bbn.com ([2001:4978:1fb:6400::d2]:61137)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gdt@ir.bbn.com>) id 1bYHIU-0001Ry-PI
	for gpsd-dev@nongnu.org; Fri, 12 Aug 2016 14:35:10 -0400
Received: by fnord.ir.bbn.com (Postfix, from userid 10853)
	id 023E2AF51; Fri, 12 Aug 2016 14:35:10 -0400 (EDT)
From: Greg Troxel <gdt@ir.bbn.com>
To: "Gary E. Miller" <gem@rellim.com>
Cc: Hal Murray <hmurray@megapathdsl.net>,  gpsd-dev@nongnu.org
References: <20160812105338.65752406076@ip-64-139-1-69.sjc.megapath.net>
	<20160812110258.6c4c84dc@spidey.rellim.com>
OpenPGP: id=32611E25
X-Hashcash: 1:20:160812:gem@rellim.com::9UO4p3Mvc+ReM6ag:0000H5W
X-Hashcash: 1:20:160812:gpsd-dev@nongnu.org::U4CASVfA1Fj3zxVH:0000000000000000000000000000000000000000004akC
X-Hashcash: 1:20:160812:hmurray@megapathdsl.net::de6EHLa5BA+UdKFc:000000000000000000000000000000000000007Ys4
Date: Fri, 12 Aug 2016 14:35:09 -0400
In-Reply-To: <20160812110258.6c4c84dc@spidey.rellim.com> (Gary E. Miller's
	message of "Fri, 12 Aug 2016 11:02:58 -0700")
Message-ID: <rmiwpjl6dk2.fsf@fnord.ir.bbn.com>
User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.5 (berkeley-unix)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
	micalg=pgp-sha1; protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:4978:1fb:6400::d2
Subject: Re: [gpsd-dev] Today's warnings....
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Aug 2016 18:35:14 -0000

--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable


"Gary E. Miller" <gem@rellim.com> writes:

>> From NetBSD
>>   cc (nb2 20150115) 4.8.4
>> test_libgps.c:93:6: warning: array subscript has type 'char'=20
>> [-Wchar-subscripts]
>
>             if (buf[0] =3D=3D '{' || isalpha(buf[0])) {
>
> And that is wrong why?

This is complicated, but the basic point is that isalpha is defined to
take an int, or eof.  The routines, implemented as macros, assume an
int, and use that to index in a table which also has a slot for EOF
(-1).  I am not 100% clear on the fine points, but I've read C99
language lawyer text on this, and the conclusion is that calling
isalpha/etc. with a char is incorrect (IIRC< especially dangerous if it
is a signed type).

http://pubs.opengroup.org/onlinepubs/9699919799/functions/isalpha.html

and why using char is not ok is explained in many of the answers at:

http://stackoverflow.com/questions/23506902/c-programming-warning-array-sub=
script-has-type-char-wchar-subscripts

So I think you can cast to unsigned char, or to int.


--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAleuFt0ACgkQ+vesoDJhHiWfVACgoaQffSzcCS4Jx1WMFFdHbfTQ
+LQAn2epd4U90LnQUC6Pgh3XHwgfNVcA
=B4B5
-----END PGP SIGNATURE-----
--=-=-=--


From MAILER-DAEMON Fri Aug 12 14:40:09 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bYHNJ-0006nf-La
	for mharc-gpsd-dev@gnu.org; Fri, 12 Aug 2016 14:40:09 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:42248)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bYHNH-0006ih-6w
	for gpsd-dev@nongnu.org; Fri, 12 Aug 2016 14:40:08 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bYHNF-0002e5-B5
	for gpsd-dev@nongnu.org; Fri, 12 Aug 2016 14:40:06 -0400
Received: from rellim.com ([2001:470:e815::19]:41825 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bYHNF-0002dx-43
	for gpsd-dev@nongnu.org; Fri, 12 Aug 2016 14:40:05 -0400
Received: from spidey.rellim.com (dave.rellim.com
	[IPv6:2001:470:e815:0:0:0:0:19] (may be forged))
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u7CIdcEJ011171
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Fri, 12 Aug 2016 11:39:43 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u7CIdcEJ011171
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1471027183; bh=j7B/Sy7TKdEv57tiYTWslrU4ZSGcun+z223j4L1M0nY=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=VFM6qu3vZ5o19U3baOjaLKE6SJ4F5OWlkSJyEnA8v0HA7MMdBa7X/6KN/uf/feMjt
	Us9ea7gUGkh5Kn7wbXxA30Ia/RRIIjZzmR2qBY5mLGgbJwfO6NuGxb4PcAZCj105uI
	ct8UCNZ7fCL6gsT/IMHUAw2bKrl5I5aeRoQxRGTQ=
Date: Fri, 12 Aug 2016 11:39:38 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Greg Troxel <gdt@ir.bbn.com>
Cc: Hal Murray <hmurray@megapathdsl.net>, gpsd-dev@nongnu.org
Message-ID: <20160812113938.06b6dbd5@spidey.rellim.com>
In-Reply-To: <rmiwpjl6dk2.fsf@fnord.ir.bbn.com>
References: <20160812105338.65752406076@ip-64-139-1-69.sjc.megapath.net>
	<20160812110258.6c4c84dc@spidey.rellim.com>
	<rmiwpjl6dk2.fsf@fnord.ir.bbn.com>
Organization: Rellim
X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/yEFFRUSp=Cjqo4ZH0M27xs3";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Fri, 12 Aug 2016 11:39:43 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] Today's warnings....
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Aug 2016 18:40:08 -0000

--Sig_/yEFFRUSp=Cjqo4ZH0M27xs3
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Greg!

On Fri, 12 Aug 2016 14:35:09 -0400
Greg Troxel <gdt@ir.bbn.com> wrote:

> >             if (buf[0] =3D=3D '{' || isalpha(buf[0])) {
> > And that is wrong why? =20

> So I think you can cast to unsigned char, or to int.

Since you are gonna split this hair, pick one for us.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/yEFFRUSp=Cjqo4ZH0M27xs3
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXrhfqAAoJEA0O2UlB0XnY9jIH/2V0LSh6+wVdEcc/iWtFY3Dt
Onlq/RKcmzo8aKY+WRlQH7EwIsnjlzGSZ0TgnVQF1YuP4XSw+tPIohU/5jIAIRqK
gvHH1zBxC5/gBaJxzTIOn93vGk8gfwM4l227m21RTh6R6vR7K0SVjam62xEN75Aq
wJhylAMCgGl5p0M63L9ZB0ewxLBObzHDd9oBp3fnv/ZoK4JJzxxJ+gCJPP7RXPTv
hrBtReYPKmBSHJSYmBqNHNlaZP2RjCpR0Gll/9KRut4tktYcv0483tAKB41YbvU8
qsjnGpGGLbMxwR+W+aIByW1fVq6Jynh05jO93bakKYv8eaWRQszAvF0ScNTGem4=
=0AWw
-----END PGP SIGNATURE-----

--Sig_/yEFFRUSp=Cjqo4ZH0M27xs3--


From MAILER-DAEMON Fri Aug 12 14:57:49 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bYHeO-0004UE-RK
	for mharc-gpsd-dev@gnu.org; Fri, 12 Aug 2016 14:57:48 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:45845)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gdt@ir.bbn.com>) id 1bYHeM-0004Rs-4Y
	for gpsd-dev@nongnu.org; Fri, 12 Aug 2016 14:57:47 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gdt@ir.bbn.com>) id 1bYHeI-0006Kz-SL
	for gpsd-dev@nongnu.org; Fri, 12 Aug 2016 14:57:46 -0400
Received: from fnord.ir.bbn.com ([192.1.100.210]:61717)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gdt@ir.bbn.com>) id 1bYHeI-0006Kp-Mv
	for gpsd-dev@nongnu.org; Fri, 12 Aug 2016 14:57:42 -0400
Received: by fnord.ir.bbn.com (Postfix, from userid 10853)
	id 6CFF3AF51; Fri, 12 Aug 2016 14:57:41 -0400 (EDT)
From: Greg Troxel <gdt@ir.bbn.com>
To: "Gary E. Miller" <gem@rellim.com>
Cc: Joshua Judson Rosen <rozzin@hackerposse.com>,  gpsd-dev@nongnu.org
References: <20160806090944.DFC53406057@ip-64-139-1-69.sjc.megapath.net>
	<20160809184952.16944964@spidey.rellim.com>
	<e2e0e89b-5ff2-32de-c119-55f198dc5af3@hackerposse.com>
	<20160810124218.2538c143@spidey.rellim.com>
	<rmifuqaakwl.fsf@fnord.ir.bbn.com>
	<20160811181305.4c686b51@spidey.rellim.com>
OpenPGP: id=32611E25
X-Hashcash: 1:20:160812:gem@rellim.com::wYEerD9Bro+Jgby3:0003ZqY
X-Hashcash: 1:20:160812:gpsd-dev@nongnu.org::Ey/KIlqrXHp3y3Z1:000000000000000000000000000000000000000000130k
X-Hashcash: 1:20:160812:rozzin@hackerposse.com::X1yqyIoRf/ni7cTl:000000000000000000000000000000000000000CMfA
Date: Fri, 12 Aug 2016 14:57:41 -0400
In-Reply-To: <20160811181305.4c686b51@spidey.rellim.com> (Gary E. Miller's
	message of "Thu, 11 Aug 2016 18:13:05 -0700")
Message-ID: <rmir39t6cii.fsf@fnord.ir.bbn.com>
User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.5 (berkeley-unix)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
	micalg=pgp-sha1; protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 192.1.100.210
Subject: Re: [gpsd-dev] Lots of warnings
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Aug 2016 18:57:47 -0000

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable


"Gary E. Miller" <gem@rellim.com> writes:

> Yo Greg!
>
> On Thu, 11 Aug 2016 20:30:34 -0400
> Greg Troxel <gdt@ir.bbn.com> wrote:
>
>> "Gary E. Miller" <gem@rellim.com> writes:
>>=20
>> >> Not according to that error-message, which says that it's a *long
>> >> long* (like in the opening line of the song "American Pie", not in
>> >> the opening line of the Star Wars Episode IV).=20=20
>> >
>> > Well, I can not duplicate that error message on any 32 bit system I
>> > have.=20=20
>>=20
>> This kind of thing needs to be done by reading specs, not trying
>> particular systems.  There are no guarantees on time_t other than that
>> it is a reasonable integer type.
>
> Actually, on some systems time_t is a float.  What spec says that?

POSIX clearly says that time_t must be an integer type.  So systems that
have float time_t are incorrect per POSIX.   Do you mean clock_t, which
can be float?  What system?

http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_types.h.html

(To find what posix says, I search for

  site:opengroup.org 2013 time.h

and then I followed the link to sys/types.h.)

> Even GNU date does not get it right, so we need to reflect reality, not
> wishful thinking.

date (on systems with int32_t time_t) fails to work in 2038, but I think
it still conforms to POSIX.

POSIX is not wishful thinking; it is the dominant standard.  So code
should be first written relative to the standard, assuming only what the
standard guarantees.  Then, if there are systems that don't follow the
standard, workarounds can be added, as long as they don't break
conforming systems.  I am certainly not under the delusion that all
systems are 100% compliant.  But in reality most systems these days
(that are at all posixy) are very good about POSIX compliance.

>> > I sure wish printf() understood uint64_t.=20=20
>>=20
>> It does; PRIu64.  See int_fmtio.h, which I think implements format
>> specifiers from 7.8.1 of C99.
>
> I do not have that file anywhere.  Not in /usr/include or in the
> glibc source.

Sorry, I steered you wrong.  The presence of that file is an
implementation detail on BSD, which has a machine-independent header
inttypes.h as required by POSIX:

http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/inttypes.h.html

and some of the content is in various machine/foo.h headers that are
different for different CPU types.  I didn't realize that when grepping.

>> If gpsd doesn't require C99, things are much harder.
>
> gpsd does, but only the parts that actually work most places.
>
> I notice that inttype.h calls it self an extention of C99.  Specifically
> POSIX.1=E2=80=902008.  I'm not ready to enforce that in gpsd.

I had thought this was in C99.  Looking at the actual ISO C99 standard
(which I can't share, but you can probably find a draft), section 7.8 on
page 197 says that "hosted implementations" must provide PRIdN etc.  I
think gpsd is only targetted to hosted implementations, since it assumes
file IO, select, networking, etc. already.

Assuming for a moment that I am confused (ISO specs are hard to read)
and that PRId64 is a POSIX extension, that's mostly fair enough.  I
guess gpsd should depend on C99 only, plus insist that any features that
it uses from POSIX comply with POSIX.  Certainly things like select are
not in C99 though, so there is already some significant amount of POSIX
required.

>> I would recommend casting to int64_t and using PRId64.
>
> I'll play with it, but until we can insist on POSIX 2008 I'm reluctant.

If long long and %lld works on all systems anybody has, that seems like
an ok compromise.

> For example, it is not present in macports, which I use to compile gpsd
> on OS X.

That's bizarre.  I just wrote the following, and built it, using
command-line tools on OS X 10.9.  It also builds on NetBSD 7 with gcc
4.8 and NetBSD 5 with gcc 4.1.3.  I bet it's ok on all or your systems
too.

With macports, what is the compiler and where are the headers coming
from?  Mac has had this sort of thing for a long time.

=2D-----------------------------
#include <stdio.h>
#include <inttypes.h>

int
main(int argc, char **argv)
{
  int64_t foo;

  foo =3D 3;

  printf("foo is %" PRId64 "\n", foo);

  return 0;
}


--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAleuHCUACgkQ+vesoDJhHiVnhQCgpoi5u+rmJ+624dzyUq6kDmCS
pAoAnR6EI3uUhur9579KAl/nYikRCmKq
=+PkI
-----END PGP SIGNATURE-----
--=-=-=--


From MAILER-DAEMON Fri Aug 12 14:59:47 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bYHgI-0006Pg-TV
	for mharc-gpsd-dev@gnu.org; Fri, 12 Aug 2016 14:59:46 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:46276)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gdt@ir.bbn.com>) id 1bYHgH-0006OC-9k
	for gpsd-dev@nongnu.org; Fri, 12 Aug 2016 14:59:46 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gdt@ir.bbn.com>) id 1bYHgE-0006ta-6t
	for gpsd-dev@nongnu.org; Fri, 12 Aug 2016 14:59:45 -0400
Received: from fnord.ir.bbn.com ([192.1.100.210]:61716)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gdt@ir.bbn.com>) id 1bYHgE-0006tW-1J
	for gpsd-dev@nongnu.org; Fri, 12 Aug 2016 14:59:42 -0400
Received: by fnord.ir.bbn.com (Postfix, from userid 10853)
	id BCB6DAF51; Fri, 12 Aug 2016 14:59:41 -0400 (EDT)
From: Greg Troxel <gdt@ir.bbn.com>
To: "Gary E. Miller" <gem@rellim.com>
Cc: Hal Murray <hmurray@megapathdsl.net>,  gpsd-dev@nongnu.org
References: <20160812105338.65752406076@ip-64-139-1-69.sjc.megapath.net>
	<20160812110258.6c4c84dc@spidey.rellim.com>
	<rmiwpjl6dk2.fsf@fnord.ir.bbn.com>
	<20160812113938.06b6dbd5@spidey.rellim.com>
OpenPGP: id=32611E25
X-Hashcash: 1:20:160812:hmurray@megapathdsl.net::o3nNiFmCMCAEWrWV:000000000000000000000000000000000000000DCH
X-Hashcash: 1:20:160812:gpsd-dev@nongnu.org::e3bWgS09xczvP8Qz:0000000000000000000000000000000000000000002DdG
X-Hashcash: 1:20:160812:gem@rellim.com::o9G8TL5kslafOQSV:0008tBe
Date: Fri, 12 Aug 2016 14:59:41 -0400
In-Reply-To: <20160812113938.06b6dbd5@spidey.rellim.com> (Gary E. Miller's
	message of "Fri, 12 Aug 2016 11:39:38 -0700")
Message-ID: <rmimvkh6cf6.fsf@fnord.ir.bbn.com>
User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.5 (berkeley-unix)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
	micalg=pgp-sha1; protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 192.1.100.210
Subject: Re: [gpsd-dev] Today's warnings....
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Aug 2016 18:59:46 -0000

--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable


"Gary E. Miller" <gem@rellim.com> writes:

> Yo Greg!
>
> On Fri, 12 Aug 2016 14:35:09 -0400
> Greg Troxel <gdt@ir.bbn.com> wrote:
>
>> >             if (buf[0] =3D=3D '{' || isalpha(buf[0])) {
>> > And that is wrong why?=20=20
>
>> So I think you can cast to unsigned char, or to int.
>
> Since you are gonna split this hair, pick one for us.

I would go for int, since it is supposed to be an int.

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAleuHJ0ACgkQ+vesoDJhHiUXhgCdGyP2MgKLP3G32LJEjFlq0cKd
RV8AnR3u0DRPaJ+XzUOcdp882+5KGHFO
=cbBH
-----END PGP SIGNATURE-----
--=-=-=--


From MAILER-DAEMON Fri Aug 12 15:16:59 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bYHwx-0006vg-1Q
	for mharc-gpsd-dev@gnu.org; Fri, 12 Aug 2016 15:16:59 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:51036)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bYHwu-0006vY-MX
	for gpsd-dev@nongnu.org; Fri, 12 Aug 2016 15:16:57 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bYHwt-0001sx-I7
	for gpsd-dev@nongnu.org; Fri, 12 Aug 2016 15:16:56 -0400
Received: from rellim.com ([2001:470:e815::19]:53607 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bYHwt-0001sk-9p
	for gpsd-dev@nongnu.org; Fri, 12 Aug 2016 15:16:55 -0400
Received: from spidey.rellim.com (rellim.com [IPv6:2001:470:e815:0:0:0:0:19])
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u7CJGQV3025597
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Fri, 12 Aug 2016 12:16:34 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u7CJGQV3025597
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1471029395; bh=1JRNL7fwU+ziK+1wall8rxGKyMk83j0VaJ3r4Z9z6Ps=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=NLPHVhWdIusUVzMprnagjuNLEkul+2GgjmtTFYMIEUXpMLLI/7AsdhrkL5L2FqbHV
	HYRorw5cXN+KGRbQiEFwg8m6ToNqKoT2MRGXNpmlyORcG0K2HGI3tbkqIjH58f6BgU
	dzghufOR36+IjgwM9zSFaoF+GjuZ/oUbouAG/Xr0=
Date: Fri, 12 Aug 2016 12:16:26 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Greg Troxel <gdt@ir.bbn.com>
Cc: Joshua Judson Rosen <rozzin@hackerposse.com>, gpsd-dev@nongnu.org
Message-ID: <20160812121626.7b6065a7@spidey.rellim.com>
In-Reply-To: <rmir39t6cii.fsf@fnord.ir.bbn.com>
References: <20160806090944.DFC53406057@ip-64-139-1-69.sjc.megapath.net>
	<20160809184952.16944964@spidey.rellim.com>
	<e2e0e89b-5ff2-32de-c119-55f198dc5af3@hackerposse.com>
	<20160810124218.2538c143@spidey.rellim.com>
	<rmifuqaakwl.fsf@fnord.ir.bbn.com>
	<20160811181305.4c686b51@spidey.rellim.com>
	<rmir39t6cii.fsf@fnord.ir.bbn.com>
Organization: Rellim
X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/wFbpigBm1/e0U2C9zfq8sk7";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Fri, 12 Aug 2016 12:16:35 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] Lots of warnings
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Aug 2016 19:16:58 -0000

--Sig_/wFbpigBm1/e0U2C9zfq8sk7
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Yo Greg!

On Fri, 12 Aug 2016 14:57:41 -0400
Greg Troxel <gdt@ir.bbn.com> wrote:

> > Actually, on some systems time_t is a float.  What spec says that? =20
>=20
> POSIX clearly says that time_t must be an integer type.

gpsd runs on non-POSIX systems.  gpsd hopes for POSIX-2001, but does not
insist on it.

Plain C99 does not specifiy that time_t is an integer.

> > Even GNU date does not get it right, so we need to reflect reality,
> > not wishful thinking. =20
>=20
> date (on systems with int32_t time_t) fails to work in 2038, but I
> think it still conforms to POSIX.

Yes.  It is possible to be compliant and broken.

> > I notice that inttype.h calls it self an extention of C99.
> > Specifically POSIX.1=E2=80=902008.  I'm not ready to enforce that in gp=
sd. =20
>=20
> I had thought this was in C99.  Looking at the actual ISO C99 standard
> (which I can't share, but you can probably find a draft), section 7.8
> on page 197 says that "hosted implementations" must provide PRIdN
> etc.  I think gpsd is only targetted to hosted implementations, since
> it assumes file IO, select, networking, etc. already.

Good enough for me.  gpsd insists on C99 and you say C99 must have it.

> Assuming for a moment that I am confused (ISO specs are hard to read)
> and that PRId64 is a POSIX extension, that's mostly fair enough.  I
> guess gpsd should depend on C99 only, plus insist that any features
> that it uses from POSIX comply with POSIX.  Certainly things like
> select are not in C99 though, so there is already some significant
> amount of POSIX required.

select() is in POSIX-2001 and gpsd prefers that.

> > I'll play with it, but until we can insist on POSIX 2008 I'm
> > reluctant. =20
>=20
> If long long and %lld works on all systems anybody has, that seems
> like an ok compromise.

And if time_t is a float the truncation is a good thing.

> > For example, it is not present in macports, which I use to compile
> > gpsd on OS X. =20
>=20
> That's bizarre.  I just wrote the following, and built it, using
> command-line tools on OS X 10.9.  It also builds on NetBSD 7 with gcc
> 4.8 and NetBSD 5 with gcc 4.1.3.  I bet it's ok on all or your systems
> too.

I said 'not present', ad opposed to 'not working'.  MacPorts pulls in
a lot of stuff from OS X by way of Xcode.

My Xcode/MacPorts is broken right now.  So good to know it works.  Maybe
it is pulling it from the 'gcc' internals includes.

I still annows my they use 'gcc' for something not gcc.

> With macports, what is the compiler and where are the headers coming
> from?  Mac has had this sort of thing for a long time.

Latest Xcode, but until I get it working we know the problem is on my end.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/wFbpigBm1/e0U2C9zfq8sk7
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXriCKAAoJEA0O2UlB0XnYxMgH/1a++ZPWFM8/cRio8nznVN3u
vfZ6bCu/FUnJ1n+6HAypWGtivnBd7GH4ZDfCqqq658KA3rxe7cXUnhYtyHFuQTB/
MNIaPrvLp/KHyg9/uWYsMPRzt3H705+tCBFeYZVBEcySHHGWLj+S8nqFRbBtZm+K
8PaU0CwZAheLEBCg5qsH5srQkaLzoeaT5LFmE8yAFPMHiKkqf5QLGTlhCE/uidmN
NkTd5i/Zwch0CoBpZeMSNcPKdlkfHyzyJ2BmgPq06h4iukzZ6I5UhqdD+1GML1B2
VdI/ikDq0Mq9LK9uH9Zya375KfEONZMBuvL94Ii8BlqdlhMmTa3u54ageagGkE8=
=yD5q
-----END PGP SIGNATURE-----

--Sig_/wFbpigBm1/e0U2C9zfq8sk7--


From MAILER-DAEMON Fri Aug 12 15:25:50 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bYI5W-0001JZ-Fs
	for mharc-gpsd-dev@gnu.org; Fri, 12 Aug 2016 15:25:50 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:52530)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bYI5U-0001JM-4f
	for gpsd-dev@nongnu.org; Fri, 12 Aug 2016 15:25:49 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bYI5S-0004A1-8n
	for gpsd-dev@nongnu.org; Fri, 12 Aug 2016 15:25:47 -0400
Received: from rellim.com ([2001:470:e815::19]:40511 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bYI5S-00049w-0e
	for gpsd-dev@nongnu.org; Fri, 12 Aug 2016 15:25:46 -0400
Received: from spidey.rellim.com (rellim.com [IPv6:2001:470:e815:0:0:0:0:19])
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u7CJPJxs028971
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Fri, 12 Aug 2016 12:25:24 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u7CJPJxs028971
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1471029924; bh=VdbKI7M8eGzydryZ37YK1H+EtPB3xbHo802ug0j4bgQ=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=XRMMy4eBTYAg8SPJJ4kKogA6TBJYZsWlOiELp3HvdP4owq16hVQz3zR4Evjj+YGBU
	9PV4BFDjafgB9E+vNC8VofIxq7yE1d+DTURpyKRXo0xTZUPgIaYEc2fWedp7swtCmc
	J1AUCWkI3WTBaiqRHed1PJG8aI+0Gc50vc6/IlBY=
Date: Fri, 12 Aug 2016 12:25:18 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Greg Troxel <gdt@ir.bbn.com>
Cc: Hal Murray <hmurray@megapathdsl.net>, gpsd-dev@nongnu.org
Message-ID: <20160812122518.204b374f@spidey.rellim.com>
In-Reply-To: <rmimvkh6cf6.fsf@fnord.ir.bbn.com>
References: <20160812105338.65752406076@ip-64-139-1-69.sjc.megapath.net>
	<20160812110258.6c4c84dc@spidey.rellim.com>
	<rmiwpjl6dk2.fsf@fnord.ir.bbn.com>
	<20160812113938.06b6dbd5@spidey.rellim.com>
	<rmimvkh6cf6.fsf@fnord.ir.bbn.com>
Organization: Rellim
X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/P08O5pRiVHnZ4wz0B8lXTI+";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Fri, 12 Aug 2016 12:25:24 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] Today's warnings....
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Aug 2016 19:25:49 -0000

--Sig_/P08O5pRiVHnZ4wz0B8lXTI+
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Greg!

On Fri, 12 Aug 2016 14:59:41 -0400
Greg Troxel <gdt@ir.bbn.com> wrote:

> >> >             if (buf[0] =3D=3D '{' || isalpha(buf[0])) {
=20
> I would go for int, since it is supposed to be an int.

Done, pushed.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/P08O5pRiVHnZ4wz0B8lXTI+
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXriKeAAoJEA0O2UlB0XnYzFYIAJquyaV+Sm0pxHg56RV3J+iR
Wu/z8xVZK1MaWX6qSFhHvQh1bAw3UogIabMgvpBuR4wx32GEJ+/72hT6bsRp6BqX
G+loI6uqNeUCsXdi1b371mwZSmYP4+j1fxgZxIF0QkwuEU9eXzDpAPi9TELGDV5E
mdnMI5nzuiuTnCBWPU1AB4fvzBc3Gr4Dap9kJlnvBoDxpitlPQYMy+qbwbjBma2H
UWb0pKlay7WKaK4VbK5pctm1p/7WhO01hRqva2TUHaFS8YUSVmFeOR1K4X2UKWao
PqJYcaB2cOG39646NiON6KupYxYDJNuvGvAXe+ALnlp4oW/sH+4YsuCz0Tr1Fng=
=/ZYE
-----END PGP SIGNATURE-----

--Sig_/P08O5pRiVHnZ4wz0B8lXTI+--


From MAILER-DAEMON Fri Aug 12 16:19:34 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bYIvW-0007qq-9C
	for mharc-gpsd-dev@gnu.org; Fri, 12 Aug 2016 16:19:34 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:33210)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bYIvT-0007qU-Vp
	for gpsd-dev@nongnu.org; Fri, 12 Aug 2016 16:19:32 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bYIvO-0006SM-Vg
	for gpsd-dev@nongnu.org; Fri, 12 Aug 2016 16:19:30 -0400
Received: from ip-64-139-1-69.sjc.megapath.net ([64.139.1.69]:50805)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bYIvO-0006SC-OY
	for gpsd-dev@nongnu.org; Fri, 12 Aug 2016 16:19:26 -0400
Received: from shuksan (localhost [127.0.0.1])
	by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id 8DEA3406078; 
	Fri, 12 Aug 2016 13:19:25 -0700 (PDT)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: Greg Troxel <gdt@ir.bbn.com>
cc: gpsd-dev@nongnu.org, hmurray@megapathdsl.net
From: Hal Murray <hmurray@megapathdsl.net>
In-Reply-To: Message from Greg Troxel <gdt@ir.bbn.com>
	of "Fri, 12 Aug 2016 14:57:41 EDT." <rmir39t6cii.fsf@fnord.ir.bbn.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Fri, 12 Aug 2016 13:19:25 -0700
Message-Id: <20160812201925.8DEA3406078@ip-64-139-1-69.sjc.megapath.net>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.139.1.69
Subject: Re: [gpsd-dev] Lots of warnings
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Aug 2016 20:19:32 -0000


gdt@ir.bbn.com said:
> POSIX clearly says that time_t must be an integer type.  So systems that
> have float time_t are incorrect per POSIX.   Do you mean clock_t, which can
> be float?  What system? 

python uses double for time.time(), but that's neither POSIX nor time_t.

I haven't counted the bits to see when it starts dropping microseconds.  It's 
clearly no good if you expect nanosecond accuracy.



-- 
These are my opinions.  I hate spam.





From MAILER-DAEMON Fri Aug 12 19:09:04 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bYLZY-0001hz-Do
	for mharc-gpsd-dev@gnu.org; Fri, 12 Aug 2016 19:09:04 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:41348)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bYLZW-0001hl-Ag
	for gpsd-dev@nongnu.org; Fri, 12 Aug 2016 19:09:03 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bYLZR-0003gh-D6
	for gpsd-dev@nongnu.org; Fri, 12 Aug 2016 19:09:02 -0400
Received: from ip-64-139-1-69.sjc.megapath.net ([64.139.1.69]:57722)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bYLZQ-0003g0-KK
	for gpsd-dev@nongnu.org; Fri, 12 Aug 2016 19:08:57 -0400
Received: from shuksan (localhost [127.0.0.1])
	by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id B546D406075; 
	Fri, 12 Aug 2016 16:08:51 -0700 (PDT)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: "Gary E. Miller" <gem@rellim.com>
cc: Hal Murray <hmurray@megapathdsl.net>, gpsd-dev@nongnu.org
From: Hal Murray <hmurray@megapathdsl.net>
In-Reply-To: Message from "Gary E. Miller" <gem@rellim.com> of "Fri,
	12 Aug 2016 11:02:58 PDT." <20160812110258.6c4c84dc@spidey.rellim.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Fri, 12 Aug 2016 16:08:51 -0700
Message-Id: <20160812230851.B546D406075@ip-64-139-1-69.sjc.megapath.net>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.139.1.69
Subject: Re: [gpsd-dev] Today's warnings....
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Aug 2016 23:09:03 -0000


gem@rellim.com said:
>> timespec_str.c:48:12: warning: absolute value function 'labs' given
> You are not on git head.  That was fixed. 

I think you fixed something similar but missed this one.  The problem is that time_t is long long on FreeBSD but labs takes a long.  Patch after I test it.


New one...

NetBSD can't find llabs.  ????

timespec_str.c:52:6: warning: implicit declaration of function 'llabs' [-Wimplicit-function-declaration]

>From their stdlib.h:

/* 
 * ISO C99
 */   
#if defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L || \  
    defined(_NETBSD_SOURCE) || (__cplusplus - 0) >= 201103L
 
/* LONGLONG */
long long int   atoll(const char *);
/* LONGLONG */
long long int   llabs(long long int);
...



-- 
These are my opinions.  I hate spam.





From MAILER-DAEMON Fri Aug 12 19:18:25 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bYLib-00030D-O6
	for mharc-gpsd-dev@gnu.org; Fri, 12 Aug 2016 19:18:25 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:42706)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bYLiZ-0002z1-DE
	for gpsd-dev@nongnu.org; Fri, 12 Aug 2016 19:18:24 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bYLiX-0005Gv-Bp
	for gpsd-dev@nongnu.org; Fri, 12 Aug 2016 19:18:22 -0400
Received: from rellim.com ([2001:470:e815::19]:34658 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bYLiX-0005Gr-3u
	for gpsd-dev@nongnu.org; Fri, 12 Aug 2016 19:18:21 -0400
Received: from spidey.rellim.com (rellim.com [IPv6:2001:470:e815:0:0:0:0:19])
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u7CNI9xx013034
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Fri, 12 Aug 2016 16:18:14 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u7CNI9xx013034
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1471043895; bh=SRZEZxYwf/KFnEa2XM7Q6Y00WQ7c3tmCN0j2O++ymRI=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=NfjbBBqb6pKjnICd1eDezyCY29rYC7Gs2sMwYDZP4ckrA3a4m9oYkN0PhRZqF1tPL
	L7s8+ok02A+6+liqW67Mdu4lZNzxJ7Mf3/Q0w1cgE4OUgz7bpeDxTH8rVDA9roV35v
	Dmmj66I//QNR6FupMadWfg1x0UDBeDt0MIkeqCJQ=
Date: Fri, 12 Aug 2016 16:18:09 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Hal Murray <hmurray@megapathdsl.net>
Cc: gpsd-dev@nongnu.org
Message-ID: <20160812161809.4e3433a3@spidey.rellim.com>
In-Reply-To: <20160812230851.B546D406075@ip-64-139-1-69.sjc.megapath.net>
References: <20160812110258.6c4c84dc@spidey.rellim.com>
	<20160812230851.B546D406075@ip-64-139-1-69.sjc.megapath.net>
Organization: Rellim
X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/F_m9Uc=bT2teyi_TLJ0kNYz";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Fri, 12 Aug 2016 16:18:15 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] Today's warnings....
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Aug 2016 23:18:24 -0000

--Sig_/F_m9Uc=bT2teyi_TLJ0kNYz
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Hal!

On Fri, 12 Aug 2016 16:08:51 -0700
Hal Murray <hmurray@megapathdsl.net> wrote:

> gem@rellim.com said:
> >> timespec_str.c:48:12: warning: absolute value function 'labs'
> >> given =20
> > You are not on git head.  That was fixed.  =20
>=20
> I think you fixed something similar but missed this one.  The problem
> is that time_t is long long on FreeBSD but labs takes a long.  Patch
> after I test it.

I did that already, note the llabs(), not labs():

commit 290701e02dc3dbc2dc6e4ce5dce2a318d322459c
Author: Gary E. Miller <gem@rellim.com>
Date:   Wed Aug 10 12:40:43 2016 -0700

    (void) snprintf( buf, buf_size, "%c%lld.%09ld",
                          sign,
                          (long long)llabs(ts->tv_sec),
                          (long)labs(ts->tv_nsec));

So your git head is 2 days old.

> New one...

Same one, new to you.

> NetBSD can't find llabs.  ????
>=20
> timespec_str.c:52:6: warning: implicit declaration of function
> 'llabs' [-Wimplicit-function-declaration]

So, what's the fix?  I don't want to get sucked into patching an OS
I can't test.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/F_m9Uc=bT2teyi_TLJ0kNYz
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXrlkxAAoJEA0O2UlB0XnYzZIH/iy2RZW8xLyHs9gcYGofjUvL
I1X5ZGzdup3vqklZTAU5ZiYjOgdF2JlIhxvCZVBFPp2X1xuhaD07adCKLghVGMyd
Uz/XvPIQlVY+7vzcm0u84MPYML1GXNhn8yUVodlAT3GwIK6kE2wmr8uRVL4rm3/Z
AupK9dwR0GXyAR6ANDMkSxHnCxe7RohMyIj5mtsLNb8JEWNxYq3X5KXmeLB+ICT7
OKBZuKwSSx7qYsfMaHZmVsuzZzPBZ+Bh9Iw61X8QU1kq3MwrJMSskId4DKKh4/HT
yYzOfp0+Ys8ZoYNV15Uj1ya91zvEwAz+DTiO1/z4va2l4jYC3wfRAfqTXYdGFuc=
=XKA6
-----END PGP SIGNATURE-----

--Sig_/F_m9Uc=bT2teyi_TLJ0kNYz--


From MAILER-DAEMON Fri Aug 12 19:28:14 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bYLs6-0004QZ-Ip
	for mharc-gpsd-dev@gnu.org; Fri, 12 Aug 2016 19:28:14 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:43838)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bYLs4-0004QT-FW
	for gpsd-dev@nongnu.org; Fri, 12 Aug 2016 19:28:13 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bYLrz-0006tE-DF
	for gpsd-dev@nongnu.org; Fri, 12 Aug 2016 19:28:11 -0400
Received: from d.mail.sonic.net ([64.142.111.50]:35936)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bYLrz-0006t6-46
	for gpsd-dev@nongnu.org; Fri, 12 Aug 2016 19:28:07 -0400
Received: from newshell.sonic.net (bolt.sonic.net [208.201.242.19])
	by d.mail.sonic.net (8.15.1/8.15.1) with ESMTPS id u7CNS2Wu007151
	(version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <gpsd-dev@nongnu.org>; Fri, 12 Aug 2016 16:28:02 -0700
Received: from bolt.sonic.net (localhost.localdomain [127.0.0.1])
	by newshell.sonic.net (8.13.6/8.12.1) with ESMTP id u7CNS2hg007822
	for <gpsd-dev@nongnu.org>; Fri, 12 Aug 2016 16:28:02 -0700
Received: from localhost (fw@localhost)
	by bolt.sonic.net (8.13.6/8.12.1/Submit) with ESMTP id u7CNS182007774
	for <gpsd-dev@nongnu.org>; Fri, 12 Aug 2016 16:28:02 -0700
X-Authentication-Warning: bolt.sonic.net: fw owned process doing -bs
Date: Fri, 12 Aug 2016 16:28:01 -0700 (PDT)
From: Fred Wright <fw@fwright.net>
X-X-Sender: fw@bolt.sonic.net
To: GPSD Developers List <gpsd-dev@nongnu.org>
In-Reply-To: <20160812201925.8DEA3406078@ip-64-139-1-69.sjc.megapath.net>
Message-ID: <Pine.LNX.4.58L1X.1608121554470.5794@bolt.sonic.net>
References: <20160812201925.8DEA3406078@ip-64-139-1-69.sjc.megapath.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sonic-CAuth: UmFuZG9tSVYQlMzyKle3sMGTq5co/yzJki/NLe76++T+ZecsHBaS96sIBShxuT/PwoJrGcuQYy+SHKOtt+yg7LwbDp4MhAp7
X-Sonic-ID: C;4gTXaeRg5hGjxq/hcgQksw== M;uvz3aeRg5hGjxq/hcgQksw==
X-Sonic-Spam-Details: -1.5/5.0 by cerberusd
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.142.111.50
Subject: Re: [gpsd-dev] Today's warnings.... / Lots of warnings
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Aug 2016 23:28:13 -0000


On Fri, 12 Aug 2016, Gary E. Miller wrote:
> On Fri, 12 Aug 2016 03:53:38 -0700
> Hal Murray <hmurray@megapathdsl.net> wrote:
>
> > From Fedora 24,
> >   cc (GCC) 6.1.1 20160621 (Red Hat 6.1.1-3)
> > bits.c:40:19: warning: left shift of negative value [-Wshift-negative-value]
> > bits.c:71:15: warning: left shift of negative value [-Wshift-negative-value]
> > bits.c:40:19: warning: left shift of negative value [-Wshift-negative-value]
> > bits.c:71:15: warning: left shift of negative value [-Wshift-negative-value]
>
> Eric had thoughts on that one, I'll leave it to him.

I personally consider that one to be overly pedantic.  It's based on the
fact that the C standard considers that case to be undefined, but I don't
see any reason for the latter other than to allow for non-twos-complement
processors.  I would be very surprised if any twos-complement processor
gave different results for X << Y than for X * (1 << Y), at least in
non-overflowing cases.  Assuming GPSD isn't trying to be compatible with
non-twos-complement processors, it might make sense to disable that
warning when it exists.

On Fri, 12 Aug 2016, Greg Troxel wrote:
> "Gary E. Miller" <gem@rellim.com> writes:
>
> > Even GNU date does not get it right, so we need to reflect reality, not
> > wishful thinking.
>
> date (on systems with int32_t time_t) fails to work in 2038, but I think
> it still conforms to POSIX.

And even so, if it fails on 64-bit times then it's because of *its own*
Y2038 bug, which *also* needs to be fixed.  If everyone adopted the
philosophy of not fixing their Y2038 bugs until everyone else had fixed
*their* Y2038 bugs, then that would constitute what hardware designers
refer to as a latch. :-)

> If long long and %lld works on all systems anybody has, that seems like
> an ok compromise.

Given that any C99 system should have "long long", that's a less demanding
approach.  For actual 64-bit values, casting [u]int64_t to [unsigned] long
long is a NOP anyway.  For 32-bit values, gratuitous 64-bit promotion does
add overhead, but most uses of printf() and friends aren't expected to be
really fast, anyway.  If there were a time-critical case, a bitness
conditional would be justifiable.

It should be noted that stdint.h typically won't compile with a pre-C99
compiler (at least 32-bit targets), due to the use of "long long".  So
anything using the stdint types can reasonably assume the availability of
"long long".

On Fri, 12 Aug 2016, Hal Murray wrote:
> gdt@ir.bbn.com said:
> > POSIX clearly says that time_t must be an integer type.  So systems that
> > have float time_t are incorrect per POSIX.   Do you mean clock_t, which can
> > be float?  What system?
>
> python uses double for time.time(), but that's neither POSIX nor time_t.

Indeed.  Actually, my recollection is that time.time() was originally an
int, and later changed to be a float (Python float, i.e., double), but I
haven't had any luck digging up that bit of history.

> I haven't counted the bits to see when it starts dropping microseconds.  It's
> clearly no good if you expect nanosecond accuracy.

The IEEE-754 64-bit format has a 52-bit mantissa (not including the sign),
which loses microsecond precision after about 142.7 years.

It only takes 52 days to lose nanosecond precision.

Some things that aren't constrained by compatibility have adopted 64-bit
nanoseconds as a time representation.  Even as a signed quantity, that's
good for 292 years.

Fred Wright


From MAILER-DAEMON Fri Aug 12 20:25:07 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bYMl9-0000zK-MQ
	for mharc-gpsd-dev@gnu.org; Fri, 12 Aug 2016 20:25:07 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:50551)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bYMl7-0000xt-JK
	for gpsd-dev@nongnu.org; Fri, 12 Aug 2016 20:25:06 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bYMl4-0000F2-8z
	for gpsd-dev@nongnu.org; Fri, 12 Aug 2016 20:25:05 -0400
Received: from ip-64-139-1-69.sjc.megapath.net ([64.139.1.69]:60208)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bYMl2-0000EO-V5
	for gpsd-dev@nongnu.org; Fri, 12 Aug 2016 20:25:02 -0400
Received: from shuksan (localhost [127.0.0.1])
	by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id 068BF406075; 
	Fri, 12 Aug 2016 17:24:56 -0700 (PDT)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: "Gary E. Miller" <gem@rellim.com>
cc: Hal Murray <hmurray@megapathdsl.net>, gpsd-dev@nongnu.org
From: Hal Murray <hmurray@megapathdsl.net>
In-Reply-To: Message from "Gary E. Miller" <gem@rellim.com> of "Fri,
	12 Aug 2016 16:18:09 PDT." <20160812161809.4e3433a3@spidey.rellim.com>
Mime-Version: 1.0
Content-Type: multipart/mixed ;
	boundary="==_Exmh_1471045793_104970"
Date: Fri, 12 Aug 2016 17:24:55 -0700
Message-Id: <20160813002456.068BF406075@ip-64-139-1-69.sjc.megapath.net>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.139.1.69
Subject: Re: [gpsd-dev] Today's warnings....
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sat, 13 Aug 2016 00:25:06 -0000

This is a multipart MIME message.

--==_Exmh_1471045793_104970
Content-Type: text/plain; charset=us-ascii


gem@rellim.com said:
>> I think you fixed something similar but missed this one.  The problem
>> is that time_t is long long on FreeBSD but labs takes a long.  Patch
>> after I test it.
> I did that already, note the llabs(), not labs(): 

Sorry, I fatfingered a copy/paste.  You missed the pair in gpsmon.  Patch 
attached.


gem@rellim.com said:
>> timespec_str.c:52:6: warning: implicit declaration of function
>> 'llabs' [-Wimplicit-function-declaration]
> So, what's the fix?  I don't want to get sucked into patching an OS I can't
> test. 

I have no idea.  From a glance at the header file, I assume it expects 
somebody to define some magic symbol.  That's lawyer land that I don't 
understand.

#if defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L || \  
    defined(_NETBSD_SOURCE) || (__cplusplus - 0) >= 201103L
...
/* LONGLONG */
long long int   llabs(long long int);

This may be one of those cases that is best ignored.  If not, how about:
#ifndef llabs
extern long long int   llabs(long long int);
#endif


--==_Exmh_1471045793_104970
Content-Type: application/x-patch ; name="0001-Fix-warning-on-FreeBSD.patch"
Content-Description: 0001-Fix-warning-on-FreeBSD.patch
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment; filename="0001-Fix-warning-on-FreeBSD.patch"

>From a683a2fe98ce3c9f304e4c9422e287c9ff3474f3 Mon Sep 17 00:00:00 2001
From: Hal Murray <hmurray=40megapathdsl.net>
Date: Fri, 12 Aug 2016 16:16:15 -0700
Subject: =5BPATCH=5D Fix warning on FreeBSD

---
 gpsmon.c =7C 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gpsmon.c b/gpsmon.c
index ee4aaeb..5e41f1e 100644
--- a/gpsmon.c
+++ b/gpsmon.c
=40=40 -241,7 +241,7 =40=40 void toff_update(WINDOW *win, int y, int x)
 	for (i =3D 0; i < TIMESPEC_LEN-4 && x + i < xmax - 1; i++)
 	    (void)waddch(win, ' ');
 	TS_SUB(&timedelta, &time_offset.clock, &time_offset.real);
-	if ( 86400 < (long)labs(timedelta.tv_sec) ) =7B
+	if ( 86400 < llabs((long long)timedelta.tv_sec) ) =7B
 	    /* more than one day off, overflow */
 	    /* need a bigger field to show it */
 	    (void)mvwaddstr(win, y, x, =22> 1 day=22);
=40=40 -271,7 +271,7 =40=40 void pps_update(WINDOW *win, int y, int x)
 	for (i =3D 0; i < TIMESPEC_LEN-4 && x + i < xmax - 1; i++)
 	    (void)waddch(win, ' ');
 	TS_SUB( &timedelta, &ppstimes.clock, &ppstimes.real);
-        if ( 86400 < (long)labs(timedelta.tv_sec) ) =7B
+        if ( 86400 < llabs((long long)timedelta.tv_sec) ) =7B
 	    /* more than one day off, overflow */
             /* need a bigger field to show it */
 	    (void)mvwaddstr(win, y, x, =22> 1 day=22);
--=20
2.7.4


--==_Exmh_1471045793_104970
Content-Type: text/plain; charset=us-ascii

-- 
These are my opinions.  I hate spam.


--==_Exmh_1471045793_104970--




From MAILER-DAEMON Fri Aug 12 22:30:27 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bYOiR-0004oX-0G
	for mharc-gpsd-dev@gnu.org; Fri, 12 Aug 2016 22:30:27 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:35534)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bYOiO-0004oM-Qo
	for gpsd-dev@nongnu.org; Fri, 12 Aug 2016 22:30:25 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bYOiK-0004Tl-LM
	for gpsd-dev@nongnu.org; Fri, 12 Aug 2016 22:30:23 -0400
Received: from c.mail.sonic.net ([64.142.111.80]:56912)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bYOiK-0004TV-CO
	for gpsd-dev@nongnu.org; Fri, 12 Aug 2016 22:30:20 -0400
Received: from newshell.sonic.net (bolt.sonic.net [208.201.242.19])
	by c.mail.sonic.net (8.15.1/8.15.1) with ESMTPS id u7D2UF9K017240
	(version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <gpsd-dev@nongnu.org>; Fri, 12 Aug 2016 19:30:15 -0700
Received: from bolt.sonic.net (localhost.localdomain [127.0.0.1])
	by newshell.sonic.net (8.13.6/8.12.1) with ESMTP id u7D2UFJo003736
	for <gpsd-dev@nongnu.org>; Fri, 12 Aug 2016 19:30:15 -0700
Received: from localhost (fw@localhost)
	by bolt.sonic.net (8.13.6/8.12.1/Submit) with ESMTP id u7D2UEMm003732
	for <gpsd-dev@nongnu.org>; Fri, 12 Aug 2016 19:30:15 -0700
X-Authentication-Warning: bolt.sonic.net: fw owned process doing -bs
Date: Fri, 12 Aug 2016 19:30:14 -0700 (PDT)
From: Fred Wright <fw@fwright.net>
X-X-Sender: fw@bolt.sonic.net
To: GPSD Developers List <gpsd-dev@nongnu.org>
In-Reply-To: <20160813002456.068BF406075@ip-64-139-1-69.sjc.megapath.net>
Message-ID: <Pine.LNX.4.58L1X.1608121926320.27628@bolt.sonic.net>
References: <20160813002456.068BF406075@ip-64-139-1-69.sjc.megapath.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sonic-CAuth: UmFuZG9tSVZzQcmitjkP/Z5hki1kvpETpPuQeAgzCSIa/vqtfewxBDGPjy+UrCOhKqggFkhlK7vCOjh00Q7VcBQYPAwoxpcA
X-Sonic-ID: C;sGEt3v1g5hGgYKDx2xNB0g== M;cM9Z3v1g5hGgYKDx2xNB0g==
X-Sonic-Spam-Details: -1.5/5.0 by cerberusd
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.142.111.80
Subject: Re: [gpsd-dev] Today's warnings....
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sat, 13 Aug 2016 02:30:25 -0000


On Fri, 12 Aug 2016, Hal Murray wrote:

> gem@rellim.com said:
> >> timespec_str.c:52:6: warning: implicit declaration of function
> >> 'llabs' [-Wimplicit-function-declaration]
> > So, what's the fix?  I don't want to get sucked into patching an OS I can't
> > test.
>
> I have no idea.  From a glance at the header file, I assume it expects
> somebody to define some magic symbol.  That's lawyer land that I don't
> understand.
>
> #if defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L || \
>     defined(_NETBSD_SOURCE) || (__cplusplus - 0) >= 201103L
> ...
> /* LONGLONG */
> long long int   llabs(long long int);
>
> This may be one of those cases that is best ignored.  If not, how about:
> #ifndef llabs
> extern long long int   llabs(long long int);
> #endif

You can't use #ifdef on a function.

AFAICT the issue is __LONG_LONG_SUPPORTED, which in turn isn't set if it's
not C99 and either -ansi or -posix is specified.

Fred Wright


From MAILER-DAEMON Mon Aug 15 13:08:53 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZLNc-0008O1-VI
	for mharc-gpsd-dev@gnu.org; Mon, 15 Aug 2016 13:08:52 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:41526)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rozzin@hackerposse.com>) id 1bZLNa-0008Nq-Uo
	for gpsd-dev@nongnu.org; Mon, 15 Aug 2016 13:08:51 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rozzin@hackerposse.com>) id 1bZLNU-0006AD-S2
	for gpsd-dev@nongnu.org; Mon, 15 Aug 2016 13:08:49 -0400
Received: from wobbly.hackerposse.com ([198.58.102.55]:51520)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rozzin@hackerposse.com>) id 1bZLNU-00069F-Md
	for gpsd-dev@nongnu.org; Mon, 15 Aug 2016 13:08:44 -0400
Received: from [192.168.1.138] (176.141.211.66.inaddr.G4.NET [66.211.141.176])
	by wobbly.hackerposse.com (Postfix) with ESMTPSA id CB17310532;
	Mon, 15 Aug 2016 13:08:38 -0400 (EDT)
To: "Gary E. Miller" <gem@rellim.com>, Greg Troxel <gdt@ir.bbn.com>
References: <20160806090944.DFC53406057@ip-64-139-1-69.sjc.megapath.net>
	<20160809184952.16944964@spidey.rellim.com>
	<e2e0e89b-5ff2-32de-c119-55f198dc5af3@hackerposse.com>
	<20160810124218.2538c143@spidey.rellim.com>
	<rmifuqaakwl.fsf@fnord.ir.bbn.com>
	<20160811181305.4c686b51@spidey.rellim.com>
	<rmir39t6cii.fsf@fnord.ir.bbn.com>
	<20160812121626.7b6065a7@spidey.rellim.com>
Cc: gpsd-dev@nongnu.org
From: Joshua Judson Rosen <rozzin@hackerposse.com>
Message-ID: <06605053-d6b5-5ffb-a6ec-3cff5ca6525a@hackerposse.com>
Date: Mon, 15 Aug 2016 13:08:37 -0400
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
	Icedove/45.1.0
MIME-Version: 1.0
In-Reply-To: <20160812121626.7b6065a7@spidey.rellim.com>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 198.58.102.55
Subject: Re: [gpsd-dev] Lots of warnings
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Aug 2016 17:08:51 -0000

On 08/12/2016 03:16 PM, Gary E. Miller wrote:
> Yo Greg!
>=20
> On Fri, 12 Aug 2016 14:57:41 -0400
> Greg Troxel <gdt@ir.bbn.com> wrote:
>=20
>>> Actually, on some systems time_t is a float.  What spec says that? =20
>>
>> POSIX clearly says that time_t must be an integer type.
>=20
> gpsd runs on non-POSIX systems.  gpsd hopes for POSIX-2001, but does no=
t
> insist on it.
>=20
> Plain C99 does not specifiy that time_t is an integer.

So..., on what systems is time_t a float? I'd really like
to know how likely I am to run into that situation....

--=20
"Don't be afraid to ask (=CE=BBf.((=CE=BBx.xx) (=CE=BBr.f(rr))))."


From MAILER-DAEMON Mon Aug 15 13:21:02 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZLZO-00034u-Ig
	for mharc-gpsd-dev@gnu.org; Mon, 15 Aug 2016 13:21:02 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:44107)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZLZM-00031N-7Y
	for gpsd-dev@nongnu.org; Mon, 15 Aug 2016 13:21:01 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZLZK-0000EW-39
	for gpsd-dev@nongnu.org; Mon, 15 Aug 2016 13:20:59 -0400
Received: from rellim.com ([2001:470:e815::19]:39098 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZLZJ-0000EC-Qe
	for gpsd-dev@nongnu.org; Mon, 15 Aug 2016 13:20:58 -0400
Received: from spidey.rellim.com (rellim.com [IPv6:2001:470:e815:0:0:0:0:19])
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u7FHKFaA025314
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Mon, 15 Aug 2016 10:20:20 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u7FHKFaA025314
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1471281621; bh=h7QoroDyQetsSt2Ss7McCMx9y61FKNX1oo0RMvv+k6g=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=lnrIMSSsUHfUsfspFqem2VgGDtDVGahK6PoBQ6mGhaJVnuy3RvRPgPm63ZGurjrIi
	N0Wb1FHCOjuWlikDqLoodLvP5/xAeXq9AnZ+Ot5BR8k4/Iy31GNkYdrvrmEkZhHmfw
	h96AxgsBTa+i/qcGhbuIrAc8mZ/vwecNCIzy/rQg=
Date: Mon, 15 Aug 2016 10:20:15 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Joshua Judson Rosen <rozzin@hackerposse.com>
Cc: Greg Troxel <gdt@ir.bbn.com>, gpsd-dev@nongnu.org
Message-ID: <20160815102015.389571c3@spidey.rellim.com>
In-Reply-To: <06605053-d6b5-5ffb-a6ec-3cff5ca6525a@hackerposse.com>
References: <20160806090944.DFC53406057@ip-64-139-1-69.sjc.megapath.net>
	<20160809184952.16944964@spidey.rellim.com>
	<e2e0e89b-5ff2-32de-c119-55f198dc5af3@hackerposse.com>
	<20160810124218.2538c143@spidey.rellim.com>
	<rmifuqaakwl.fsf@fnord.ir.bbn.com>
	<20160811181305.4c686b51@spidey.rellim.com>
	<rmir39t6cii.fsf@fnord.ir.bbn.com>
	<20160812121626.7b6065a7@spidey.rellim.com>
	<06605053-d6b5-5ffb-a6ec-3cff5ca6525a@hackerposse.com>
Organization: Rellim
X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/mH_ce.1tNhhDxyCnU72y.f9";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Mon, 15 Aug 2016 10:20:21 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] Lots of warnings
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Aug 2016 17:21:01 -0000

--Sig_/mH_ce.1tNhhDxyCnU72y.f9
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Joshua!

On Mon, 15 Aug 2016 13:08:37 -0400
Joshua Judson Rosen <rozzin@hackerposse.com> wrote:

> > Plain C99 does not specifiy that time_t is an integer. =20
>=20
> So..., on what systems is time_t a float? I'd really like
> to know how likely I am to run into that situation....


LMGTFY:

https://support.sas.com/documentation/onlinedoc/sasc/doc700/html/lr1/z20568=
69.htm



RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/mH_ce.1tNhhDxyCnU72y.f9
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXsfnPAAoJEA0O2UlB0XnYyjoIAJnQKKmI29saPPv9fxpHPRDb
4KNuNB9JJOlI8x59l6Jq/w2qUpSC6uhoDP0hZ9Bcu3PifwTCJKCA3XVbQvJ41Kk3
+2zN/i9sDTdAQ+j23eWKha4SeMK8AIsUCRllYk7UJPlTnPOn4JwrP9BZzx+s26f6
xr03eL6zl6CX4nyYTel8/PY9/gODz5fEmy9dRyIeJSHw3dviJn6ZrxbWmcP67yXj
yMNkq7+fe7MmpJTmrxSpUdQGFa7HlDrP+ZT4iXGjGj95cVckDR5ukJI3IbOQR532
7zChHQ0qL3uO8a92pBpQC2zIk3bwsJIozAnctJXbgEQEGl0ijXUmV+SRLVjVxC8=
=Maxz
-----END PGP SIGNATURE-----

--Sig_/mH_ce.1tNhhDxyCnU72y.f9--


From MAILER-DAEMON Mon Aug 15 16:44:50 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZOkc-00088b-Qc
	for mharc-gpsd-dev@gnu.org; Mon, 15 Aug 2016 16:44:50 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:56637)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bZOkY-00086y-Db
	for gpsd-dev@nongnu.org; Mon, 15 Aug 2016 16:44:47 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bZOkV-0004Bm-Ca
	for gpsd-dev@nongnu.org; Mon, 15 Aug 2016 16:44:46 -0400
Received: from c.mail.sonic.net ([64.142.111.80]:43414)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bZOkV-00049c-3l
	for gpsd-dev@nongnu.org; Mon, 15 Aug 2016 16:44:43 -0400
Received: from newshell.sonic.net (bolt.sonic.net [208.201.242.19])
	by c.mail.sonic.net (8.15.1/8.15.1) with ESMTPS id u7FKiZpm023898
	(version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <gpsd-dev@nongnu.org>; Mon, 15 Aug 2016 13:44:35 -0700
Received: from bolt.sonic.net (localhost.localdomain [127.0.0.1])
	by newshell.sonic.net (8.13.6/8.12.1) with ESMTP id u7FKiZYi026972
	for <gpsd-dev@nongnu.org>; Mon, 15 Aug 2016 13:44:35 -0700
Received: from localhost (fw@localhost)
	by bolt.sonic.net (8.13.6/8.12.1/Submit) with ESMTP id u7FKiZgh026968
	for <gpsd-dev@nongnu.org>; Mon, 15 Aug 2016 13:44:35 -0700
X-Authentication-Warning: bolt.sonic.net: fw owned process doing -bs
Date: Mon, 15 Aug 2016 13:44:35 -0700 (PDT)
From: Fred Wright <fw@fwright.net>
X-X-Sender: fw@bolt.sonic.net
To: GPSD Developers List <gpsd-dev@nongnu.org>
In-Reply-To: <20160815102015.389571c3@spidey.rellim.com>
Message-ID: <Pine.LNX.4.58L1X.1608151335490.29603@bolt.sonic.net>
References: <20160806090944.DFC53406057@ip-64-139-1-69.sjc.megapath.net>
	<20160809184952.16944964@spidey.rellim.com>
	<e2e0e89b-5ff2-32de-c119-55f198dc5af3@hackerposse.com>
	<20160810124218.2538c143@spidey.rellim.com>
	<rmifuqaakwl.fsf@fnord.ir.bbn.com>
	<20160811181305.4c686b51@spidey.rellim.com>
	<rmir39t6cii.fsf@fnord.ir.bbn.com>
	<20160812121626.7b6065a7@spidey.rellim.com>
	<06605053-d6b5-5ffb-a6ec-3cff5ca6525a@hackerposse.com>
	<20160815102015.389571c3@spidey.rellim.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sonic-CAuth: UmFuZG9tSVaXCaHAS9bGLxVtbAjLWY9l0DlR05jsACaOhizFRoGpPlz4gRRgNW4nX+BDyF1QYVeknVx04Wi8iFuOOGo4gW/d
X-Sonic-ID: C;2OCvEylj5hGSAqDx2xNB0g== M;BNzTEylj5hGSAqDx2xNB0g==
X-Sonic-Spam-Details: -1.5/5.0 by cerberusd
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.142.111.80
Subject: Re: [gpsd-dev] Lots of warnings
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Aug 2016 20:44:47 -0000


On Mon, 15 Aug 2016, Gary E. Miller wrote:
> On Mon, 15 Aug 2016 13:08:37 -0400
> Joshua Judson Rosen <rozzin@hackerposse.com> wrote:
>
> > > Plain C99 does not specifiy that time_t is an integer.
> >
> > So..., on what systems is time_t a float? I'd really like
> > to know how likely I am to run into that situation....
>
>
> LMGTFY:
>
> https://support.sas.com/documentation/onlinedoc/sasc/doc700/html/lr1/z2056869.htm

It's not even consistent across SAS/C, though.  SAS/C on the Amiga defines
it as a long as usual.  I'm not sure the IBM 370 is a terribly useful
target for GPSD. :-)

Fred Wright


From MAILER-DAEMON Mon Aug 15 17:21:29 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZPK5-00085y-HO
	for mharc-gpsd-dev@gnu.org; Mon, 15 Aug 2016 17:21:29 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:33483)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1bZPK3-00085r-OJ
	for gpsd-dev@nongnu.org; Mon, 15 Aug 2016 17:21:28 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1bZPJz-0001bb-E3
	for gpsd-dev@nongnu.org; Mon, 15 Aug 2016 17:21:26 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:45158 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1bZPJz-0001b5-9t
	for gpsd-dev@nongnu.org; Mon, 15 Aug 2016 17:21:23 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 3D20013A0E7D; Mon, 15 Aug 2016 17:21:18 -0400 (EDT)
Date: Mon, 15 Aug 2016 17:21:18 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: Fred Wright <fw@fwright.net>
Cc: GPSD Developers List <gpsd-dev@nongnu.org>
Message-ID: <20160815212118.GD19860@thyrsus.com>
Reply-To: esr@thyrsus.com
References: <20160809184952.16944964@spidey.rellim.com>
	<e2e0e89b-5ff2-32de-c119-55f198dc5af3@hackerposse.com>
	<20160810124218.2538c143@spidey.rellim.com>
	<rmifuqaakwl.fsf@fnord.ir.bbn.com>
	<20160811181305.4c686b51@spidey.rellim.com>
	<rmir39t6cii.fsf@fnord.ir.bbn.com>
	<20160812121626.7b6065a7@spidey.rellim.com>
	<06605053-d6b5-5ffb-a6ec-3cff5ca6525a@hackerposse.com>
	<20160815102015.389571c3@spidey.rellim.com>
	<Pine.LNX.4.58L1X.1608151335490.29603@bolt.sonic.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <Pine.LNX.4.58L1X.1608151335490.29603@bolt.sonic.net>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.23 (2014-03-12)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 71.162.243.5
Subject: Re: [gpsd-dev] Lots of warnings
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Aug 2016 21:21:29 -0000

Fred Wright <fw@fwright.net>:
> It's not even consistent across SAS/C, though.  SAS/C on the Amiga defines
> it as a long as usual.  I'm not sure the IBM 370 is a terribly useful
> target for GPSD. :-)

You'll laugh, but I once found an actual signedness problem in the
GPSD code for interpolating geodetic deviation only because I compiled
it against S370 in the Debian server farm.

S370 may not be an interesting deployment target, but I'm sold on it
as a torture test for our assumptions.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Mon Aug 15 17:43:38 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZPfW-000582-Bu
	for mharc-gpsd-dev@gnu.org; Mon, 15 Aug 2016 17:43:38 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:38007)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZPfU-000541-6M
	for gpsd-dev@nongnu.org; Mon, 15 Aug 2016 17:43:37 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZPfR-0005Ww-Rv
	for gpsd-dev@nongnu.org; Mon, 15 Aug 2016 17:43:35 -0400
Received: from rellim.com ([2001:470:e815::19]:60043 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZPfR-0005Ws-Kp
	for gpsd-dev@nongnu.org; Mon, 15 Aug 2016 17:43:33 -0400
Received: from spidey.rellim.com (rellim.com [IPv6:2001:470:e815:0:0:0:0:19])
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u7FLhOnG022387
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Mon, 15 Aug 2016 14:43:29 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u7FLhOnG022387
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1471297410; bh=0N4mReHU7x/FBZi+wAgz1FcHwOv39RBjgorHrMpajs0=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=APnH4coEITtWMy91haK6ySXur5WSGmRUvWlSbnKQ6vN7HSYf1xWZ2FWW77K0Kc7lA
	91nGKph4s1KjpnxA68FF+5xQSh2adgewoRnXKMY1MWTd+l6N8Hwyd7OhQbiTwg3TA0
	e8V7eyHyXqgjoh9NYYZFBXDm73652sCD9OkbT62E=
Date: Mon, 15 Aug 2016 14:43:24 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Fred Wright <fw@fwright.net>
Cc: GPSD Developers List <gpsd-dev@nongnu.org>
Message-ID: <20160815144324.1733ee83@spidey.rellim.com>
In-Reply-To: <Pine.LNX.4.58L1X.1608151335490.29603@bolt.sonic.net>
References: <20160806090944.DFC53406057@ip-64-139-1-69.sjc.megapath.net>
	<20160809184952.16944964@spidey.rellim.com>
	<e2e0e89b-5ff2-32de-c119-55f198dc5af3@hackerposse.com>
	<20160810124218.2538c143@spidey.rellim.com>
	<rmifuqaakwl.fsf@fnord.ir.bbn.com>
	<20160811181305.4c686b51@spidey.rellim.com>
	<rmir39t6cii.fsf@fnord.ir.bbn.com>
	<20160812121626.7b6065a7@spidey.rellim.com>
	<06605053-d6b5-5ffb-a6ec-3cff5ca6525a@hackerposse.com>
	<20160815102015.389571c3@spidey.rellim.com>
	<Pine.LNX.4.58L1X.1608151335490.29603@bolt.sonic.net>
Organization: Rellim
X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/ON=MgE1Ao7EIwOhpu+Zrm8S";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Mon, 15 Aug 2016 14:43:30 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] Lots of warnings
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Aug 2016 21:43:37 -0000

--Sig_/ON=MgE1Ao7EIwOhpu+Zrm8S
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Fred!

On Mon, 15 Aug 2016 13:44:35 -0700 (PDT)
Fred Wright <fw@fwright.net> wrote:

> On Mon, 15 Aug 2016, Gary E. Miller wrote:
> > On Mon, 15 Aug 2016 13:08:37 -0400
> > Joshua Judson Rosen <rozzin@hackerposse.com> wrote:
> > =20
> > > > Plain C99 does not specifiy that time_t is an integer. =20
> > >
> > > So..., on what systems is time_t a float? I'd really like
> > > to know how likely I am to run into that situation.... =20
> >
> >
> > LMGTFY:
> >
> > https://support.sas.com/documentation/onlinedoc/sasc/doc700/html/lr1/z2=
056869.htm =20
>=20
> It's not even consistent across SAS/C, though.  SAS/C on the Amiga
> defines it as a long as usual.  I'm not sure the IBM 370 is a
> terribly useful target for GPSD. :-)

But that is the point.  time_t is not consistent, it is all over the map.

gpsd can not insist on any behavior not specified in a standard gpsd
purports to follow.  And often not even then.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/ON=MgE1Ao7EIwOhpu+Zrm8S
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXsjd8AAoJEA0O2UlB0XnYKjMIALQbi5S25egj056GNRKaDM8A
Jzq1yCZsGCr1+11QyABTpnA+IaoFwIB3rIJBJUSFPj76i47DSUTM1q7cW7me3TJd
zvs+zYEFAXYzuBr54GqxMsc7zS/X7HiQeC4Fu48hIGdZF0UYwzXhBuDCKWrHlni0
29ViRucTS+4cVXki7QVKryzBesskr8gDAiECA/rzIwWEocOzytEY4DiUXH/YaMA+
ZgFpdgRLP7PCeSJFJh7y+NPOtg/OhjKs/xvI5Iry+s7XQ60PxqbWXP4Intu3tRcf
U2jxeKSWtUuzZdjF+d4xNYH3bRu0gvE7480z+WD7vTD3lSoC5U4jlqqxT57M7EQ=
=49JV
-----END PGP SIGNATURE-----

--Sig_/ON=MgE1Ao7EIwOhpu+Zrm8S--


From MAILER-DAEMON Mon Aug 15 18:45:04 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZQcy-0002hs-GU
	for mharc-gpsd-dev@gnu.org; Mon, 15 Aug 2016 18:45:04 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:47986)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bZQcv-0002hA-Py
	for gpsd-dev@nongnu.org; Mon, 15 Aug 2016 18:45:02 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bZQcr-0007bb-Ob
	for gpsd-dev@nongnu.org; Mon, 15 Aug 2016 18:45:00 -0400
Received: from d.mail.sonic.net ([64.142.111.50]:52460)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bZQcr-0007bV-FI
	for gpsd-dev@nongnu.org; Mon, 15 Aug 2016 18:44:57 -0400
Received: from newshell.sonic.net (bolt.sonic.net [208.201.242.19])
	by d.mail.sonic.net (8.15.1/8.15.1) with ESMTPS id u7FMitnj000490
	(version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <gpsd-dev@nongnu.org>; Mon, 15 Aug 2016 15:44:55 -0700
Received: from bolt.sonic.net (localhost.localdomain [127.0.0.1])
	by newshell.sonic.net (8.13.6/8.12.1) with ESMTP id u7FMishZ008005
	for <gpsd-dev@nongnu.org>; Mon, 15 Aug 2016 15:44:54 -0700
Received: from localhost (fw@localhost)
	by bolt.sonic.net (8.13.6/8.12.1/Submit) with ESMTP id u7FMisRE008002
	for <gpsd-dev@nongnu.org>; Mon, 15 Aug 2016 15:44:54 -0700
X-Authentication-Warning: bolt.sonic.net: fw owned process doing -bs
Date: Mon, 15 Aug 2016 15:44:54 -0700 (PDT)
From: Fred Wright <fw@fwright.net>
X-X-Sender: fw@bolt.sonic.net
To: GPSD Developers List <gpsd-dev@nongnu.org>
In-Reply-To: <20160815212118.GD19860@thyrsus.com>
Message-ID: <Pine.LNX.4.58L1X.1608151526030.30044@bolt.sonic.net>
References: <20160809184952.16944964@spidey.rellim.com>
	<e2e0e89b-5ff2-32de-c119-55f198dc5af3@hackerposse.com>
	<20160810124218.2538c143@spidey.rellim.com>
	<rmifuqaakwl.fsf@fnord.ir.bbn.com>
	<20160811181305.4c686b51@spidey.rellim.com>
	<rmir39t6cii.fsf@fnord.ir.bbn.com>
	<20160812121626.7b6065a7@spidey.rellim.com>
	<06605053-d6b5-5ffb-a6ec-3cff5ca6525a@hackerposse.com>
	<20160815102015.389571c3@spidey.rellim.com>
	<Pine.LNX.4.58L1X.1608151335490.29603@bolt.sonic.net>
	<20160815212118.GD19860@thyrsus.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sonic-CAuth: UmFuZG9tSVZfZ9fZ/AwSnUKWNledgOaTBuVhMii2WcJhu1PErxOUokgM9RImFVkegqsqDH701Vdi+Z1mok4/v37eLttlCKkF
X-Sonic-ID: C;nFnK4jlj5hGfQK/hcgQksw== M;mG/q4jlj5hGfQK/hcgQksw==
X-Sonic-Spam-Details: -1.5/5.0 by cerberusd
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.142.111.50
Subject: Re: [gpsd-dev] several messages
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Aug 2016 22:45:03 -0000


On Mon, 15 Aug 2016, Eric S. Raymond wrote:
> Fred Wright <fw@fwright.net>:
> > It's not even consistent across SAS/C, though.  SAS/C on the Amiga defines
> > it as a long as usual.  I'm not sure the IBM 370 is a terribly useful
> > target for GPSD. :-)
>
> You'll laugh, but I once found an actual signedness problem in the
> GPSD code for interpolating geodetic deviation only because I compiled
> it against S370 in the Debian server farm.

Because it didn't work, or because of stricter compiler warnings?  The 370
is a big-endian twos-complement machine with 8-bit-byte-oriented memory
addressing, which isn't terribly unusual.  Though I suppose there's the
usual issue of whether char is signed or unsigned by default.

> S370 may not be an interesting deployment target, but I'm sold on it
> as a torture test for our assumptions.

If you *really* want a torture test, try building it for a PDP-10. :-)

On Fri, 12 Aug 2016, Fred Wright wrote:

> AFAICT the issue is __LONG_LONG_SUPPORTED, which in turn isn't set if it's
> not C99 and either -ansi or -posix is specified.

More generally, the problem is that even compilers that support C99
features aren't necessarily in "C99 mode" by default.  Typically, the
compiler isn't picky about letting you use such features even when not in
"C99 mode", except that if you enable strict warnings then it assumes that
you really want strict warnings.

It appears that the "officially recommended" way to get a C99-compliant
compiler is to invoke it as 'c99', rather than as 'cc' (or 'gcc').  Often
this is just a wrapper that supplies the appropriate option(s).  But the
'c99' command doesn't necessarily exist on all platforms, even with C99
support, so as usual the "official way" isn't the most portable way.  And
the cross-building toolchains I've looked at don't include a <prefix>-c99
command, either.

So having something which is both highly portable and warning-free is
somewhat of a battle.

Fred Wright


From MAILER-DAEMON Mon Aug 15 18:54:10 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZQlm-0005kt-Da
	for mharc-gpsd-dev@gnu.org; Mon, 15 Aug 2016 18:54:10 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:49394)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZQlk-0005jg-L8
	for gpsd-dev@nongnu.org; Mon, 15 Aug 2016 18:54:09 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZQlj-0000h4-RH
	for gpsd-dev@nongnu.org; Mon, 15 Aug 2016 18:54:08 -0400
Received: from rellim.com ([2001:470:e815::19]:52716 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZQlj-0000go-Ib
	for gpsd-dev@nongnu.org; Mon, 15 Aug 2016 18:54:07 -0400
Received: from spidey.rellim.com (dave.rellim.com
	[IPv6:2001:470:e815:0:0:0:0:19] (may be forged))
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u7FMrwoL013524
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Mon, 15 Aug 2016 15:54:03 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u7FMrwoL013524
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1471301643; bh=Cux7byuHAcAv8N/Cqtr/zkTtN42umhtNS0uWna5GA7Q=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=DX/cknC6ohry5NQwhXASOR5i3gr5YT63d4AM8OCZJNe6XBXnhfkt7tWf9jyP5R1MS
	YfGMo77PcvH1ajeCjUJcV72TzxJ9TDh4RzsU+J20+P+SCaF+T9pIJowBQv/EauTUdq
	Jdj2G+bK8nyG0LZ9Kr4pYPggO5Ubgo3yGEntGpsI=
Date: Mon, 15 Aug 2016 15:53:58 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Fred Wright <fw@fwright.net>
Cc: GPSD Developers List <gpsd-dev@nongnu.org>
Message-ID: <20160815155358.2ba54bdd@spidey.rellim.com>
In-Reply-To: <Pine.LNX.4.58L1X.1608151526030.30044@bolt.sonic.net>
References: <20160809184952.16944964@spidey.rellim.com>
	<e2e0e89b-5ff2-32de-c119-55f198dc5af3@hackerposse.com>
	<20160810124218.2538c143@spidey.rellim.com>
	<rmifuqaakwl.fsf@fnord.ir.bbn.com>
	<20160811181305.4c686b51@spidey.rellim.com>
	<rmir39t6cii.fsf@fnord.ir.bbn.com>
	<20160812121626.7b6065a7@spidey.rellim.com>
	<06605053-d6b5-5ffb-a6ec-3cff5ca6525a@hackerposse.com>
	<20160815102015.389571c3@spidey.rellim.com>
	<Pine.LNX.4.58L1X.1608151335490.29603@bolt.sonic.net>
	<20160815212118.GD19860@thyrsus.com>
	<Pine.LNX.4.58L1X.1608151526030.30044@bolt.sonic.net>
Organization: Rellim
X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/8AW=BRrD.2K3Iw9HYDSUABB";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Mon, 15 Aug 2016 15:54:03 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] several messages
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Aug 2016 22:54:09 -0000

--Sig_/8AW=BRrD.2K3Iw9HYDSUABB
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Fred!

On Mon, 15 Aug 2016 15:44:54 -0700 (PDT)
Fred Wright <fw@fwright.net> wrote:

> It appears that the "officially recommended" way to get a
> C99-compliant compiler is to invoke it as 'c99', rather than as
> 'cc' (or 'gcc').

Not that I can see.  The official way, the C99 specified way, is to
declare this define: _ISOC99_SOURCE

Since gpsd requires C99 compliance, annd that is part of the C99 standard,
I'm gonna add it to the Sonstruct right now.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/8AW=BRrD.2K3Iw9HYDSUABB
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXskgGAAoJEA0O2UlB0XnYQY4H/2KG/fHAfXbjgQw9yiv519Wg
0AXmsb+6TB/3aLpJG6CvzrCrE8+QkVecgB58yfnovvPLReUsIhgBzkmN9e8x1QR2
yVMSVYYHABcDaHWOOl4BJG5gwTJGYsEBtgthxK63zjsWYENBQlD250veJ5s2q6bY
3Dbli3fiND+4plEKaHWgPaix8oYAsWa3TOdbXn7o5e+4dxuZUijeMfxqpL/Qcndf
gBc/ce+nmkKE3jgeYnIXewRAi01Rqtm7hc256xsYlS1Dk8eVAbcr3rAql9WMIIoV
2e4ThPja6JiogedFE48pxunfiIzsAB5hdPkZBt+F7k8RCsyLsUzZfQrfADGI1qQ=
=QtuC
-----END PGP SIGNATURE-----

--Sig_/8AW=BRrD.2K3Iw9HYDSUABB--


From MAILER-DAEMON Mon Aug 15 19:41:12 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZRVH-0001SV-WA
	for mharc-gpsd-dev@gnu.org; Mon, 15 Aug 2016 19:41:12 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:57302)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gdt@ir.bbn.com>) id 1bZRVE-0001Pz-V1
	for gpsd-dev@nongnu.org; Mon, 15 Aug 2016 19:41:09 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gdt@ir.bbn.com>) id 1bZRVA-0000TF-LE
	for gpsd-dev@nongnu.org; Mon, 15 Aug 2016 19:41:07 -0400
Received: from fnord.ir.bbn.com ([192.1.100.210]:56545)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gdt@ir.bbn.com>) id 1bZRVA-0000T7-Gj
	for gpsd-dev@nongnu.org; Mon, 15 Aug 2016 19:41:04 -0400
Received: by fnord.ir.bbn.com (Postfix, from userid 10853)
	id D7E44AF53; Mon, 15 Aug 2016 19:41:01 -0400 (EDT)
From: Greg Troxel <gdt@ir.bbn.com>
To: "Gary E. Miller" <gem@rellim.com>
Cc: Fred Wright <fw@fwright.net>,  GPSD Developers List <gpsd-dev@nongnu.org>
References: <20160809184952.16944964@spidey.rellim.com>
	<e2e0e89b-5ff2-32de-c119-55f198dc5af3@hackerposse.com>
	<20160810124218.2538c143@spidey.rellim.com>
	<rmifuqaakwl.fsf@fnord.ir.bbn.com>
	<20160811181305.4c686b51@spidey.rellim.com>
	<rmir39t6cii.fsf@fnord.ir.bbn.com>
	<20160812121626.7b6065a7@spidey.rellim.com>
	<06605053-d6b5-5ffb-a6ec-3cff5ca6525a@hackerposse.com>
	<20160815102015.389571c3@spidey.rellim.com>
	<Pine.LNX.4.58L1X.1608151335490.29603@bolt.sonic.net>
	<20160815212118.GD19860@thyrsus.com>
	<Pine.LNX.4.58L1X.1608151526030.30044@bolt.sonic.net>
	<20160815155358.2ba54bdd@spidey.rellim.com>
OpenPGP: id=32611E25
X-Hashcash: 1:20:160815:gpsd-dev@nongnu.org::EVHB/TCf+O0/+qDY:0000000000000000000000000000000000000000000cTX
X-Hashcash: 1:20:160815:gem@rellim.com::0bRXKoDy+p0s0PDf:0004GmS
X-Hashcash: 1:20:160815:fw@fwright.net::+2MlGloV2m3mhXmx:0004kX4
Date: Mon, 15 Aug 2016 19:41:01 -0400
In-Reply-To: <20160815155358.2ba54bdd@spidey.rellim.com> (Gary E. Miller's
	message of "Mon, 15 Aug 2016 15:53:58 -0700")
Message-ID: <rmi1t1p1tyq.fsf@fnord.ir.bbn.com>
User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.5 (berkeley-unix)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
	micalg=pgp-sha1; protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 192.1.100.210
Subject: Re: [gpsd-dev] several messages
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Aug 2016 23:41:10 -0000

--=-=-=
Content-Type: text/plain


"Gary E. Miller" <gem@rellim.com> writes:

>> It appears that the "officially recommended" way to get a
>> C99-compliant compiler is to invoke it as 'c99', rather than as
>> 'cc' (or 'gcc').
>
> Not that I can see.  The official way, the C99 specified way, is to
> declare this define: _ISOC99_SOURCE
>
> Since gpsd requires C99 compliance, annd that is part of the C99 standard,
> I'm gonna add it to the Sonstruct right now.

The other thing that works with gcc and clang is to add --std=c99.  I am
not sure if that is duplicative with the define you mentioned, but it
seems to be the normal way to tell the compiler to disable gcc
extensions and to follow the C99 standard as strictly as it can.

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAleyUw0ACgkQ+vesoDJhHiX15QCfU9obsiqPoUCz4df/57k8nI8Y
iCgAmwWVoQIOliHL7ZWMgcDKnUTr30qr
=85LX
-----END PGP SIGNATURE-----
--=-=-=--


From MAILER-DAEMON Mon Aug 15 19:53:55 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZRhb-0002sO-Ao
	for mharc-gpsd-dev@gnu.org; Mon, 15 Aug 2016 19:53:55 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:58301)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZRhY-0002sA-GZ
	for gpsd-dev@nongnu.org; Mon, 15 Aug 2016 19:53:53 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZRhW-00025x-DP
	for gpsd-dev@nongnu.org; Mon, 15 Aug 2016 19:53:51 -0400
Received: from rellim.com ([2001:470:e815::19]:56128 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZRhW-00025o-2n
	for gpsd-dev@nongnu.org; Mon, 15 Aug 2016 19:53:50 -0400
Received: from spidey.rellim.com (rellim.com [IPv6:2001:470:e815:0:0:0:0:19])
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u7FNrM5b000460
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Mon, 15 Aug 2016 16:53:27 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u7FNrM5b000460
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1471305209; bh=g0uzY21BomgQrk0VtTCrDlBxNKJP0yi9G7F7TdVoxCE=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=PgJ7HhkhHpZapMdO8ht8QFfI5h7+SsAxalQY18UR33QSIXwvUVzh4bXb5edk59TuD
	GZoDoIfvcK6yqBXe4rC7fYr1zxndg57EXdbef5qmguDGP+AbjMJkg3B50QwMHgSaIq
	P358jzXIcM5vIR70HjusiYasxMTdoB9cFPhU9OKI=
Date: Mon, 15 Aug 2016 16:53:22 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Greg Troxel <gdt@ir.bbn.com>
Cc: Fred Wright <fw@fwright.net>, GPSD Developers List <gpsd-dev@nongnu.org>
Message-ID: <20160815165322.1220fe25@spidey.rellim.com>
In-Reply-To: <rmi1t1p1tyq.fsf@fnord.ir.bbn.com>
References: <20160809184952.16944964@spidey.rellim.com>
	<e2e0e89b-5ff2-32de-c119-55f198dc5af3@hackerposse.com>
	<20160810124218.2538c143@spidey.rellim.com>
	<rmifuqaakwl.fsf@fnord.ir.bbn.com>
	<20160811181305.4c686b51@spidey.rellim.com>
	<rmir39t6cii.fsf@fnord.ir.bbn.com>
	<20160812121626.7b6065a7@spidey.rellim.com>
	<06605053-d6b5-5ffb-a6ec-3cff5ca6525a@hackerposse.com>
	<20160815102015.389571c3@spidey.rellim.com>
	<Pine.LNX.4.58L1X.1608151335490.29603@bolt.sonic.net>
	<20160815212118.GD19860@thyrsus.com>
	<Pine.LNX.4.58L1X.1608151526030.30044@bolt.sonic.net>
	<20160815155358.2ba54bdd@spidey.rellim.com>
	<rmi1t1p1tyq.fsf@fnord.ir.bbn.com>
Organization: Rellim
X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/xXSK0EQUHcnrNMAJCukUsmo";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Mon, 15 Aug 2016 16:53:29 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] several messages
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Aug 2016 23:53:53 -0000

--Sig_/xXSK0EQUHcnrNMAJCukUsmo
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Greg!

On Mon, 15 Aug 2016 19:41:01 -0400
Greg Troxel <gdt@ir.bbn.com> wrote:

> "Gary E. Miller" <gem@rellim.com> writes:
>=20
> >> It appears that the "officially recommended" way to get a
> >> C99-compliant compiler is to invoke it as 'c99', rather than as
> >> 'cc' (or 'gcc'). =20
> >
> > Not that I can see.  The official way, the C99 specified way, is to
> > declare this define: _ISOC99_SOURCE
> >
> > Since gpsd requires C99 compliance, annd that is part of the C99
> > standard, I'm gonna add it to the Sonstruct right now. =20
>=20
> The other thing that works with gcc and clang is to add --std=3Dc99.  I
> am not sure if that is duplicative with the define you mentioned, but
> it seems to be the normal way to tell the compiler to disable gcc
> extensions and to follow the C99 standard as strictly as it can.

At this point I'm more worried about libc as it applies to gpsd.  AFAIK
our C99 problems are libc related.

I just found that turning on C99 breaks gpsd.  It turns out gpsd uses
many functions, like usleep(), daemon(), that are deprecated in C99!

Several of these new C99 warnings match up with warnings I get on OS X,=20
so worth fixing.

Patches in progress....

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/xXSK0EQUHcnrNMAJCukUsmo
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXslXyAAoJEA0O2UlB0XnY8LoIAKhT/Gt+lYV6yXaywTIgG93s
H7TZhfI2uF5YzQvGy0JKaHmpL1FK6/dZihO58k27JtWO88e6ATQsBi9fvIJxJjpz
kaDJaNJa/ZPdVbnZ3UCchjwPnOz2QZLzGpYvZcX0RBAswsWtorHUWe/yIH7h2d6l
eEemdy+L4JZkKCMSMygp1qXcbXpal0qxdYaKSep/8EO9zpGQspyUuGWc9nCu3mn3
NMtqioTWU+nSKT99u9BPfSO4dDErh0EM8r8jdzY9mBx29jtmPhR0SCXZq9Pu0/hm
Jq3jw/W9wVaA2aSBvqExsItXpuDeC5/kLiglcC0wI+Pl7k2tiA+tAly07St8cJE=
=pxne
-----END PGP SIGNATURE-----

--Sig_/xXSK0EQUHcnrNMAJCukUsmo--


From MAILER-DAEMON Mon Aug 15 20:07:58 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZRvC-0007CI-PF
	for mharc-gpsd-dev@gnu.org; Mon, 15 Aug 2016 20:07:58 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:60747)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bZRvA-00079u-PN
	for gpsd-dev@nongnu.org; Mon, 15 Aug 2016 20:07:57 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bZRv7-0004WD-K6
	for gpsd-dev@nongnu.org; Mon, 15 Aug 2016 20:07:56 -0400
Received: from d.mail.sonic.net ([64.142.111.50]:58280)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bZRv7-0004Vw-BA
	for gpsd-dev@nongnu.org; Mon, 15 Aug 2016 20:07:53 -0400
Received: from newshell.sonic.net (bolt.sonic.net [208.201.242.19])
	by d.mail.sonic.net (8.15.1/8.15.1) with ESMTPS id u7G07m8D025019
	(version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <gpsd-dev@nongnu.org>; Mon, 15 Aug 2016 17:07:48 -0700
Received: from bolt.sonic.net (localhost.localdomain [127.0.0.1])
	by newshell.sonic.net (8.13.6/8.12.1) with ESMTP id u7G07m5Q005400
	for <gpsd-dev@nongnu.org>; Mon, 15 Aug 2016 17:07:48 -0700
Received: from localhost (fw@localhost)
	by bolt.sonic.net (8.13.6/8.12.1/Submit) with ESMTP id u7G07l0X005397
	for <gpsd-dev@nongnu.org>; Mon, 15 Aug 2016 17:07:48 -0700
X-Authentication-Warning: bolt.sonic.net: fw owned process doing -bs
Date: Mon, 15 Aug 2016 17:07:47 -0700 (PDT)
From: Fred Wright <fw@fwright.net>
X-X-Sender: fw@bolt.sonic.net
To: GPSD Developers List <gpsd-dev@nongnu.org>
In-Reply-To: <rmi1t1p1tyq.fsf@fnord.ir.bbn.com>
Message-ID: <Pine.LNX.4.58L1X.1608151705470.3172@bolt.sonic.net>
References: <20160809184952.16944964@spidey.rellim.com>
	<e2e0e89b-5ff2-32de-c119-55f198dc5af3@hackerposse.com>
	<20160810124218.2538c143@spidey.rellim.com>
	<rmifuqaakwl.fsf@fnord.ir.bbn.com>
	<20160811181305.4c686b51@spidey.rellim.com>
	<rmir39t6cii.fsf@fnord.ir.bbn.com>
	<20160812121626.7b6065a7@spidey.rellim.com>
	<06605053-d6b5-5ffb-a6ec-3cff5ca6525a@hackerposse.com>
	<20160815102015.389571c3@spidey.rellim.com>
	<Pine.LNX.4.58L1X.1608151335490.29603@bolt.sonic.net>
	<20160815212118.GD19860@thyrsus.com>
	<Pine.LNX.4.58L1X.1608151526030.30044@bolt.sonic.net>
	<20160815155358.2ba54bdd@spidey.rellim.com>
	<rmi1t1p1tyq.fsf@fnord.ir.bbn.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sonic-CAuth: UmFuZG9tSVZvati5ZMXQ/Bp/YlezIdjCRIZtlWX9QVasp6V2mV0rJBQTInNFh8C8f/U8Y+v47hJETzDL/XS20hdzOIYiY7U/
X-Sonic-ID: C;yG/3dkVj5hGLOK/hcgQksw== M;9BkSd0Vj5hGLOK/hcgQksw==
X-Sonic-Spam-Details: -1.5/5.0 by cerberusd
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.142.111.50
Subject: Re: [gpsd-dev] several messages
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Aug 2016 00:07:57 -0000


On Mon, 15 Aug 2016, Greg Troxel wrote:
> "Gary E. Miller" <gem@rellim.com> writes:
>
> >> It appears that the "officially recommended" way to get a
> >> C99-compliant compiler is to invoke it as 'c99', rather than as
> >> 'cc' (or 'gcc').
> >
> > Not that I can see.  The official way, the C99 specified way, is to
> > declare this define: _ISOC99_SOURCE
> >
> > Since gpsd requires C99 compliance, annd that is part of the C99 standard,
> > I'm gonna add it to the Sonstruct right now.
>
> The other thing that works with gcc and clang is to add --std=c99.  I am
> not sure if that is duplicative with the define you mentioned, but it
> seems to be the normal way to tell the compiler to disable gcc
> extensions and to follow the C99 standard as strictly as it can.

However, that's specific to gcc/clang.  The point of the POSIX 'c99'
command (when it exists) is to hide such details.

http://pubs.opengroup.org/onlinepubs/9699919799/utilities/c99.html

Fred Wright


From MAILER-DAEMON Mon Aug 15 20:13:23 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZS0R-0007q5-Md
	for mharc-gpsd-dev@gnu.org; Mon, 15 Aug 2016 20:13:23 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:33416)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gdt@ir.bbn.com>) id 1bZS0P-0007po-Dk
	for gpsd-dev@nongnu.org; Mon, 15 Aug 2016 20:13:22 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gdt@ir.bbn.com>) id 1bZS0M-0005Qr-8R
	for gpsd-dev@nongnu.org; Mon, 15 Aug 2016 20:13:21 -0400
Received: from fnord.ir.bbn.com ([192.1.100.210]:56486)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gdt@ir.bbn.com>) id 1bZS0M-0005Qn-46
	for gpsd-dev@nongnu.org; Mon, 15 Aug 2016 20:13:18 -0400
Received: by fnord.ir.bbn.com (Postfix, from userid 10853)
	id C8541AF53; Mon, 15 Aug 2016 20:13:17 -0400 (EDT)
From: Greg Troxel <gdt@ir.bbn.com>
To: Fred Wright <fw@fwright.net>
Cc: GPSD Developers List <gpsd-dev@nongnu.org>
References: <20160809184952.16944964@spidey.rellim.com>
	<e2e0e89b-5ff2-32de-c119-55f198dc5af3@hackerposse.com>
	<20160810124218.2538c143@spidey.rellim.com>
	<rmifuqaakwl.fsf@fnord.ir.bbn.com>
	<20160811181305.4c686b51@spidey.rellim.com>
	<rmir39t6cii.fsf@fnord.ir.bbn.com>
	<20160812121626.7b6065a7@spidey.rellim.com>
	<06605053-d6b5-5ffb-a6ec-3cff5ca6525a@hackerposse.com>
	<20160815102015.389571c3@spidey.rellim.com>
	<Pine.LNX.4.58L1X.1608151335490.29603@bolt.sonic.net>
	<20160815212118.GD19860@thyrsus.com>
	<Pine.LNX.4.58L1X.1608151526030.30044@bolt.sonic.net>
	<20160815155358.2ba54bdd@spidey.rellim.com>
	<rmi1t1p1tyq.fsf@fnord.ir.bbn.com>
	<Pine.LNX.4.58L1X.1608151705470.3172@bolt.sonic.net>
OpenPGP: id=32611E25
X-Hashcash: 1:20:160816:gpsd-dev@nongnu.org::MZTJDTrAwFRR4Hy6:00000000000000000000000000000000000000000010B2
X-Hashcash: 1:20:160816:fw@fwright.net::kAvtamLS2elQ7giG:0002MRF
Date: Mon, 15 Aug 2016 20:13:17 -0400
In-Reply-To: <Pine.LNX.4.58L1X.1608151705470.3172@bolt.sonic.net> (Fred
	Wright's message of "Mon, 15 Aug 2016 17:07:47 -0700 (PDT)")
Message-ID: <rmiwpjhy3j6.fsf@fnord.ir.bbn.com>
User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.5 (berkeley-unix)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
	micalg=pgp-sha1; protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 192.1.100.210
Subject: Re: [gpsd-dev] several messages
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Aug 2016 00:13:22 -0000

--=-=-=
Content-Type: text/plain


Fred Wright <fw@fwright.net> writes:

>> The other thing that works with gcc and clang is to add --std=c99.  I am
>> not sure if that is duplicative with the define you mentioned, but it
>> seems to be the normal way to tell the compiler to disable gcc
>> extensions and to follow the C99 standard as strictly as it can.
>
> However, that's specific to gcc/clang.  The point of the POSIX 'c99'
> command (when it exists) is to hide such details.
>
> http://pubs.opengroup.org/onlinepubs/9699919799/utilities/c99.html

Totally fair, but in configure.ac, if you don't find c99, but do find
clang or gcc, and add --std=c99, that helps.

On NetBSD from 5 onward, there is /usr/bin/c99:

#!/bin/sh
exec /usr/bin/cc -std=c99 "$@"

OS X 10.9 has a /usr/bin/c99 that is documented to conform to POSIX.

So I agree it is worth checking for c99 as you say.

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAleyWp0ACgkQ+vesoDJhHiWPYACfRe4zZ22LhB/3W/JU/dVE+Gb0
UbUAn1wISUJkfcFAbdoF4Va+gGzk9F/Q
=pOVY
-----END PGP SIGNATURE-----
--=-=-=--


From MAILER-DAEMON Mon Aug 15 20:20:35 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZS7P-0001Gz-LD
	for mharc-gpsd-dev@gnu.org; Mon, 15 Aug 2016 20:20:35 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:34308)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZS7N-0001Ge-1h
	for gpsd-dev@nongnu.org; Mon, 15 Aug 2016 20:20:34 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZS7K-0006dd-LF
	for gpsd-dev@nongnu.org; Mon, 15 Aug 2016 20:20:31 -0400
Received: from rellim.com ([2001:470:e815::19]:39820 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZS7K-0006dT-Cj
	for gpsd-dev@nongnu.org; Mon, 15 Aug 2016 20:20:30 -0400
Received: from spidey.rellim.com (dave.rellim.com
	[IPv6:2001:470:e815:0:0:0:0:19] (may be forged))
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u7G0K4qG009892
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Mon, 15 Aug 2016 17:20:09 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u7G0K4qG009892
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1471306809; bh=RxA8gbabCQK9lVF/9MA2iQcDJbCQmO4196uWeDxcJZk=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=QXzno+eHLmIhxNdl5yTDR8ohDuaadRDqa7rwJTkibjnSdqPScB5m+OIYMnUOJOXDX
	DvGsZCg3vPmtU2YmtCh8jPJeIPCy1RkBGIjFX0c1M7zIusJRSmNupIz1OlnEnwFdHK
	LwjDvXbLMa2r5UYVHP+HAq8THrO88j9yAiBKbpXw=
Date: Mon, 15 Aug 2016 17:20:04 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Greg Troxel <gdt@ir.bbn.com>
Cc: Fred Wright <fw@fwright.net>, GPSD Developers List <gpsd-dev@nongnu.org>
Message-ID: <20160815172004.6fbbe6f3@spidey.rellim.com>
In-Reply-To: <rmiwpjhy3j6.fsf@fnord.ir.bbn.com>
References: <20160809184952.16944964@spidey.rellim.com>
	<e2e0e89b-5ff2-32de-c119-55f198dc5af3@hackerposse.com>
	<20160810124218.2538c143@spidey.rellim.com>
	<rmifuqaakwl.fsf@fnord.ir.bbn.com>
	<20160811181305.4c686b51@spidey.rellim.com>
	<rmir39t6cii.fsf@fnord.ir.bbn.com>
	<20160812121626.7b6065a7@spidey.rellim.com>
	<06605053-d6b5-5ffb-a6ec-3cff5ca6525a@hackerposse.com>
	<20160815102015.389571c3@spidey.rellim.com>
	<Pine.LNX.4.58L1X.1608151335490.29603@bolt.sonic.net>
	<20160815212118.GD19860@thyrsus.com>
	<Pine.LNX.4.58L1X.1608151526030.30044@bolt.sonic.net>
	<20160815155358.2ba54bdd@spidey.rellim.com>
	<rmi1t1p1tyq.fsf@fnord.ir.bbn.com>
	<Pine.LNX.4.58L1X.1608151705470.3172@bolt.sonic.net>
	<rmiwpjhy3j6.fsf@fnord.ir.bbn.com>
Organization: Rellim
X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/bq5PP0FkxXfPo3B4f7ygzN/";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Mon, 15 Aug 2016 17:20:09 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] several messages
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Aug 2016 00:20:34 -0000

--Sig_/bq5PP0FkxXfPo3B4f7ygzN/
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Greg!

On Mon, 15 Aug 2016 20:13:17 -0400
Greg Troxel <gdt@ir.bbn.com> wrote:

> Fred Wright <fw@fwright.net> writes:
>=20
> >> The other thing that works with gcc and clang is to add
> >> --std=3Dc99.  I am not sure if that is duplicative with the define
> >> you mentioned, but it seems to be the normal way to tell the
> >> compiler to disable gcc extensions and to follow the C99 standard
> >> as strictly as it can. =20
> >
> > However, that's specific to gcc/clang.  The point of the POSIX 'c99'
> > command (when it exists) is to hide such details.
> >
> > http://pubs.opengroup.org/onlinepubs/9699919799/utilities/c99.html =20
>=20
> Totally fair, but in configure.ac, if you don't find c99, but do find
> clang or gcc, and add --std=3Dc99, that helps.
>=20
> On NetBSD from 5 onward, there is /usr/bin/c99:
>=20
> #!/bin/sh
> exec /usr/bin/cc -std=3Dc99 "$@"
>=20
> OS X 10.9 has a /usr/bin/c99 that is documented to conform to POSIX.
>=20
> So I agree it is worth checking for c99 as you say.

Two things.=20

It fixes a problem I have not seen yet.  Yes my head is in the sand.

I puts a cap at c99, not a floor at c99.

And sadly, I'm finding a ton of code that is not C99 compliant, many
patches in progress.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/bq5PP0FkxXfPo3B4f7ygzN/
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXslw0AAoJEA0O2UlB0XnYKsUH/1l/opoyD3frrkdPy4/7VxVc
n5TlxJWP7X2JwoBoDUR6EgU8H+oKo2/upO1g55+dTg1bZ/fkU9xaWp1FAR+MfXhy
SD2VM3ChsVevIH4QpHFID50KStcVkH5t9TPx9TT2k83NWwjD2pkSeZzUIwBQE2rr
SaFMGnxF/RpSpXH2VJ3C/wdcobvn0s74VQ9bSY6/tKbZ8x+8hbFZ4zyrxlGYideB
DSRsUTY0Xm5WR4EAXImQ6XwKQp3LhPIRwuaxt2zj99PybEyJmnEH38ROSNsF1QNY
3iVBupmiAL6Dq8k2kUOM8tyuZW83s7iLdlL6ZRH65U+abUs35QJw6KZKjWcl5Dk=
=po14
-----END PGP SIGNATURE-----

--Sig_/bq5PP0FkxXfPo3B4f7ygzN/--


From MAILER-DAEMON Tue Aug 16 00:59:14 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZWT4-0006Nt-KQ
	for mharc-gpsd-dev@gnu.org; Tue, 16 Aug 2016 00:59:14 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:41612)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZWT3-0006Nc-1P
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 00:59:13 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZWT1-0007gV-5D
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 00:59:11 -0400
Received: from rellim.com ([2001:470:e815::19]:49757 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZWT0-0007ft-Rn
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 00:59:11 -0400
Received: from spidey.rellim.com (dave.rellim.com
	[IPv6:2001:470:e815:0:0:0:0:19] (may be forged))
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u7G4x2lW004944
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO)
	for <gpsd-dev@nongnu.org>; Mon, 15 Aug 2016 21:59:07 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u7G4x2lW004944
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1471323548; bh=c79kJZ7kFoDYaHvbc1OBKISJYXRKpRoUMmBgjO6cy54=;
	h=Date:From:To:Subject;
	b=bbAiEYg0q2A18l7QeH6U5m0y8b/30l7dwWtOJNTc9OE7vucFEZaWTQrFcb3fTrKx3
	lNi+SVYcEDC+mcUCDcugZIVJHCiTt1knOaB+wQnRyTNcDSbXXvu8wsNNJFhPkPE2SJ
	+legYDKHyX8TuJkz8ReSwMK9RGPkccso3WH81J3U=
Date: Mon, 15 Aug 2016 21:59:02 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: gpsd dev <gpsd-dev@nongnu.org>
Message-ID: <20160815215902.1ce55893@spidey.rellim.com>
Organization: Rellim
X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/21pvG23trbgnRLiAzg91jqI";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Mon, 15 Aug 2016 21:59:08 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: [gpsd-dev] =?utf-8?b?4pyYZ3BzZCBpcyBub3cgQzk5LCByZWFsbHku?=
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Aug 2016 04:59:13 -0000

--Sig_/21pvG23trbgnRLiAzg91jqI
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo All!

I just enabled -D_ISOC99_SOURCE in gpsd.  That smoked out a ton
of deprecated and obsolete functions.

bcopy(), bzero, usleep(), uint,  etc.

All regression tests pass, but I'm sure some port got broken.

I'm interested in removing things removed from C in C99.  I'm
not interested in removing anything newer than C99 that is not
generating complaints.

Please test.

Now I have a lot more work to get -D_POSIX_C_SOURCE=3D200112L to work.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/21pvG23trbgnRLiAzg91jqI
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXsp2WAAoJEA0O2UlB0XnYIxQH/RWRXFUgcCwm1AQ+35/ANOvv
0UhmmsMI3vF69O/xRvL44A0BmPz1I+2oNzy+nfsb0cNnKNbVNiIVE11AupxoC4gL
zbNQ7PlrFR/QaCSAy9CGXS0iez4hY6tQ2/9BJEEqVP7koJvGa0Kc/ILZIms2yF/a
e7ZV2DtHZTghR6OekBBP+SalEwoajwf6imirXFyIdxfo4Z4w3I0G3fe0z1io4U6Y
A/ZbWP8xhktTRH6els5GQrJWQWYfu/ogJ01MigfhFSskdAoyI6+F8GXxumEzQ4ZX
A6jQvdBOYGvcPUPxqebgWiGQQl23UE9nh6r8l5dEb4agjLkaBBbVoDiafnFuCRI=
=pYDF
-----END PGP SIGNATURE-----

--Sig_/21pvG23trbgnRLiAzg91jqI--


From MAILER-DAEMON Tue Aug 16 02:39:48 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZY2O-000804-RB
	for mharc-gpsd-dev@gnu.org; Tue, 16 Aug 2016 02:39:48 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:54114)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bZY2L-0007zw-Bk
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 02:39:46 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bZY2G-0005IL-Vr
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 02:39:44 -0400
Received: from ip-64-139-1-69.sjc.megapath.net ([64.139.1.69]:64445)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bZY2G-0005H7-I5
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 02:39:40 -0400
Received: from shuksan (localhost [127.0.0.1])
	by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id 7832A406077; 
	Mon, 15 Aug 2016 23:39:31 -0700 (PDT)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: "Gary E. Miller" <gem@rellim.com>
cc: gpsd dev <gpsd-dev@nongnu.org>, hmurray@megapathdsl.net
From: Hal Murray <hmurray@megapathdsl.net>
In-Reply-To: Message from "Gary E. Miller" <gem@rellim.com> of "Mon,
	15 Aug 2016 21:59:02 PDT." <20160815215902.1ce55893@spidey.rellim.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Mon, 15 Aug 2016 23:39:31 -0700
Message-Id: <20160816063931.7832A406077@ip-64-139-1-69.sjc.megapath.net>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.139.1.69
Subject: Re: [gpsd-dev] =?utf-8?b?4pyYZ3BzZCBpcyBub3cgQzk5LCByZWFsbHku?=
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Aug 2016 06:39:46 -0000

Lots and lots of troubles.  Here is the first batch.

>From centos 7:
gpsd.c: In function 'main':
gpsd.c:1993:2: warning: implicit declaration of function 'daemon' 
[-Wimplicit-function-declaration]
  if (daemon(0, 0) != 0)
  ^
gpsd.c:2109:2: warning: implicit declaration of function 'setgroups' 
[-Wimplicit-function-declaration]
  if (setgroups(0, NULL) != 0)
  ^

serial.c: In function 'gpsd_set_raw':
serial.c:248:5: warning: implicit declaration of function 'cfmakeraw' 
[-Wimplicit-function-declaration]
     (void)cfmakeraw(&session->ttyset);
     ^
gpspipe.c: In function 'open_serial':
gpspipe.c:89:5: warning: implicit declaration of function 'cfmakeraw' 
[-Wimplicit-function-declaration]
     (void)cfmakeraw(&newtio);
     ^
gpspipe.c: In function 'main':
gpspipe.c:254:2: warning: implicit declaration of function 'daemon' 
[-Wimplicit-function-declaration]
  if (daemon(0, 0) != 0)
  ^

gps2udp.c: In function 'open_udp':
gps2udp.c:144:8: warning: implicit declaration of function 'strsep' 
[-Wimplicit-function-declaration]
        hostname = strsep(&hostport[channel], ":");
        ^
gps2udp.c:144:17: warning: assignment makes pointer from integer without a 
cast [enabled by default]
        hostname = strsep(&hostport[channel], ":");
                 ^
gps2udp.c:145:17: warning: assignment makes pointer from integer without a 
cast [enabled by default]
        portname = strsep(&hostport[channel], ":");
                 ^
gps2udp.c:171:45: error: 'struct hostent' has no member named 'h_addr'
        memcpy( &remote[channel].sin_addr, hp->h_addr, hp->h_length);
                                             ^
gps2udp.c: In function 'main':
gps2udp.c:431:2: warning: implicit declaration of function 'daemon' 
[-Wimplicit-function-declaration]
  if (daemon(0, 0) != 0) {
  ^
gps2udp.c:467:14: warning: cast to pointer from integer of different size 
[-Wint-to-pointer-cast]
    info[j] = (unsigned char *)strsep((char **)&adrpkt, ",");
              ^

Same stuff on Debian 7 (wheezy)

-------

>From NetBSD, 32 bit if that matters.

gpsd.c: In function 'filesock':
gpsd.c:267:5: warning: implicit declaration of function 'strlcpy' 
[-Wimplicit-fu
nction-declaration]
     (void)strlcpy(addr.sun_path, filename, sizeof(addr.sun_path));
     ^
gpsd.c: In function 'json_devicelist_dump':
gpsd.c:1079:6: warning: implicit declaration of function 'strlcat' 
[-Wimplicit-f
unction-declaration]
      (void)strlcat(reply, ",", replylen);
      ^
gpsd.c: In function 'main':
gpsd.c:1993:2: warning: implicit declaration of function 'daemon' 
[-Wimplicit-fu
nction-declaration]
  if (daemon(0, 0) != 0)
  ^
gpsd.c:2109:2: warning: implicit declaration of function 'setgroups' 
[-Wimplicit
-function-declaration]
  if (setgroups(0, NULL) != 0)
  ^

In file included from timehint.c:25:0:
timespec.h:31:36: warning: 'struct timespec' declared inside parameter list 
[ena
bled by default]
 static inline void TS_NORM( struct timespec *ts)
                                    ^
timespec.h:31:36: warning: its scope is only this definition or declaration, 
whi
ch is probably not what you want [enabled by default]
timespec.h: In function 'TS_NORM':
timespec.h:33:20: error: dereferencing pointer to incomplete type
     if ( (  1 <= ts->tv_sec ) ||
                    ^
timespec.h:34:20: error: dereferencing pointer to incomplete type
          ( (0 == ts->tv_sec ) && (0 <= ts->tv_nsec ) ) ) {
                    ^
timespec.h:34:42: error: dereferencing pointer to incomplete type
          ( (0 == ts->tv_sec ) && (0 <= ts->tv_nsec ) ) ) {
                                          ^
timespec.h:36:22: error: dereferencing pointer to incomplete type
  if ( NS_IN_SEC <= ts->tv_nsec ) {
                      ^
timespec.h:38:8: error: dereferencing pointer to incomplete type
      ts->tv_nsec -= NS_IN_SEC;
        ^
...

------------

>From FreeBSD, 32 bit.

In file included from gpsd.c:50:
./sockaddr.h:7:25: error: field has incomplete type 'struct sockaddr_in6'
    struct sockaddr_in6 sa_in6;
                        ^
./sockaddr.h:7:12: note: forward declaration of 'struct sockaddr_in6'
    struct sockaddr_in6 sa_in6;
           ^
In file included from gpsd.c:53:
./strfuncs.h:28:12: warning: implicitly declaring library function 
'vsnprintf' w
ith type 'int (char *, unsigned int, const char *, __builtin_va_list)'
    (void) vsnprintf(str + strlen(str), alloc_size - strlen(str), format, ap);
           ^
./strfuncs.h:28:12: note: please include the header <stdio.h> or explicitly 
prov
ide a declaration for 'vsnprintf'
gpsd.c:267:11: warning: implicitly declaring library function 'strlcpy' with 
typ
e 'unsigned int (char *, const char *, unsigned int)'
    (void)strlcpy(addr.sun_path, filename, sizeof(addr.sun_path));
          ^
gpsd.c:267:11: note: please include the header <string.h> or explicitly 
provide
a declaration for 'strlcpy'
gpsd.c:365:40: error: use of undeclared identifier 'INADDR_LOOPBACK'
            sat.sa_in.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
                                              ^
/usr/include/arpa/inet.h:170:26: note: expanded from macro 'htonl'
#define htonl(x)        __htonl(x)
                                ^
/usr/include/x86/endian.h:126:30: note: expanded from macro '__htonl'
#define __htonl(x)      __bswap32(x)
                                  ^
/usr/include/x86/endian.h:77:24: note: expanded from macro '__bswap32'
        (__builtin_constant_p(x) ?      \
...



-- 
These are my opinions.  I hate spam.





From MAILER-DAEMON Tue Aug 16 02:43:02 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZY5W-0008Jk-JG
	for mharc-gpsd-dev@gnu.org; Tue, 16 Aug 2016 02:43:02 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:54399)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZY5T-0008Hi-Ty
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 02:43:01 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZY5R-0005iY-GU
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 02:42:58 -0400
Received: from rellim.com ([2001:470:e815::19]:36618 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZY5R-0005iO-1r
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 02:42:57 -0400
Received: from spidey.rellim.com (rellim.com [IPv6:2001:470:e815:0:0:0:0:19])
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u7G6gjfb007408
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Mon, 15 Aug 2016 23:42:50 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u7G6gjfb007408
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1471329770; bh=Di3D6unQDboKWDMUaxLr0fqZX1UDdj/wtzQBwD2MI34=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=p8t1v4lU/BHlzu0+OsrfJ8nfTmBp+1pObfSQiPNf4efYgegv7XKNpS4r8VHQ3eCur
	qI30YNuKZtXS0PAZz75ZZRlk3aMPxgtQ3vmA/CG8pVq4/Su79nkbSPsGeBppDDpBRd
	diK3Kwnv0L0FKpLa2kDB6+PokiRF+PEAdmfCloEs=
Date: Mon, 15 Aug 2016 23:42:45 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Hal Murray <hmurray@megapathdsl.net>
Cc: gpsd dev <gpsd-dev@nongnu.org>
Message-ID: <20160815234245.58dffda8@spidey.rellim.com>
In-Reply-To: <20160816063931.7832A406077@ip-64-139-1-69.sjc.megapath.net>
References: <20160815215902.1ce55893@spidey.rellim.com>
	<20160816063931.7832A406077@ip-64-139-1-69.sjc.megapath.net>
Organization: Rellim
X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/ktea.VP9xQoOue.TlpaIv45";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Mon, 15 Aug 2016 23:42:50 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] =?utf-8?b?4pyYZ3BzZCBpcyBub3cgQzk5LCByZWFsbHku?=
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Aug 2016 06:43:01 -0000

--Sig_/ktea.VP9xQoOue.TlpaIv45
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Hal!

Can you tell me how daemon(), setgroups(), cfmaeraw() and others
need to be called?

Clearly your system is not POSIX 2001 compatible...

On Mon, 15 Aug 2016 23:39:31 -0700
Hal Murray <hmurray@megapathdsl.net> wrote:

> Lots and lots of troubles.  Here is the first batch.
>=20
> From centos 7:
> gpsd.c: In function 'main':
> gpsd.c:1993:2: warning: implicit declaration of function 'daemon'=20
> [-Wimplicit-function-declaration]
>   if (daemon(0, 0) !=3D 0)
>   ^
> gpsd.c:2109:2: warning: implicit declaration of function 'setgroups'=20
> [-Wimplicit-function-declaration]
>   if (setgroups(0, NULL) !=3D 0)
>   ^
>=20
> serial.c: In function 'gpsd_set_raw':
> serial.c:248:5: warning: implicit declaration of function 'cfmakeraw'=20
> [-Wimplicit-function-declaration]
>      (void)cfmakeraw(&session->ttyset);
>      ^
> gpspipe.c: In function 'open_serial':
> gpspipe.c:89:5: warning: implicit declaration of function 'cfmakeraw'=20
> [-Wimplicit-function-declaration]
>      (void)cfmakeraw(&newtio);
>      ^
> gpspipe.c: In function 'main':
> gpspipe.c:254:2: warning: implicit declaration of function 'daemon'=20
> [-Wimplicit-function-declaration]
>   if (daemon(0, 0) !=3D 0)
>   ^
>=20
> gps2udp.c: In function 'open_udp':
> gps2udp.c:144:8: warning: implicit declaration of function 'strsep'=20
> [-Wimplicit-function-declaration]
>         hostname =3D strsep(&hostport[channel], ":");
>         ^
> gps2udp.c:144:17: warning: assignment makes pointer from integer
> without a cast [enabled by default]
>         hostname =3D strsep(&hostport[channel], ":");
>                  ^
> gps2udp.c:145:17: warning: assignment makes pointer from integer
> without a cast [enabled by default]
>         portname =3D strsep(&hostport[channel], ":");
>                  ^
> gps2udp.c:171:45: error: 'struct hostent' has no member named 'h_addr'
>         memcpy( &remote[channel].sin_addr, hp->h_addr, hp->h_length);
>                                              ^
> gps2udp.c: In function 'main':
> gps2udp.c:431:2: warning: implicit declaration of function 'daemon'=20
> [-Wimplicit-function-declaration]
>   if (daemon(0, 0) !=3D 0) {
>   ^
> gps2udp.c:467:14: warning: cast to pointer from integer of different
> size [-Wint-to-pointer-cast]
>     info[j] =3D (unsigned char *)strsep((char **)&adrpkt, ",");
>               ^
>=20
> Same stuff on Debian 7 (wheezy)
>=20
> -------
>=20
> From NetBSD, 32 bit if that matters.
>=20
> gpsd.c: In function 'filesock':
> gpsd.c:267:5: warning: implicit declaration of function 'strlcpy'=20
> [-Wimplicit-fu
> nction-declaration]
>      (void)strlcpy(addr.sun_path, filename, sizeof(addr.sun_path));
>      ^
> gpsd.c: In function 'json_devicelist_dump':
> gpsd.c:1079:6: warning: implicit declaration of function 'strlcat'=20
> [-Wimplicit-f
> unction-declaration]
>       (void)strlcat(reply, ",", replylen);
>       ^
> gpsd.c: In function 'main':
> gpsd.c:1993:2: warning: implicit declaration of function 'daemon'=20
> [-Wimplicit-fu
> nction-declaration]
>   if (daemon(0, 0) !=3D 0)
>   ^
> gpsd.c:2109:2: warning: implicit declaration of function 'setgroups'=20
> [-Wimplicit
> -function-declaration]
>   if (setgroups(0, NULL) !=3D 0)
>   ^
>=20
> In file included from timehint.c:25:0:
> timespec.h:31:36: warning: 'struct timespec' declared inside
> parameter list [ena
> bled by default]
>  static inline void TS_NORM( struct timespec *ts)
>                                     ^
> timespec.h:31:36: warning: its scope is only this definition or
> declaration, whi
> ch is probably not what you want [enabled by default]
> timespec.h: In function 'TS_NORM':
> timespec.h:33:20: error: dereferencing pointer to incomplete type
>      if ( (  1 <=3D ts->tv_sec ) ||
>                     ^
> timespec.h:34:20: error: dereferencing pointer to incomplete type
>           ( (0 =3D=3D ts->tv_sec ) && (0 <=3D ts->tv_nsec ) ) ) {
>                     ^
> timespec.h:34:42: error: dereferencing pointer to incomplete type
>           ( (0 =3D=3D ts->tv_sec ) && (0 <=3D ts->tv_nsec ) ) ) {
>                                           ^
> timespec.h:36:22: error: dereferencing pointer to incomplete type
>   if ( NS_IN_SEC <=3D ts->tv_nsec ) {
>                       ^
> timespec.h:38:8: error: dereferencing pointer to incomplete type
>       ts->tv_nsec -=3D NS_IN_SEC;
>         ^
> ...
>=20
> ------------
>=20
> From FreeBSD, 32 bit.
>=20
> In file included from gpsd.c:50:
> ./sockaddr.h:7:25: error: field has incomplete type 'struct
> sockaddr_in6' struct sockaddr_in6 sa_in6;
>                         ^
> ./sockaddr.h:7:12: note: forward declaration of 'struct sockaddr_in6'
>     struct sockaddr_in6 sa_in6;
>            ^
> In file included from gpsd.c:53:
> ./strfuncs.h:28:12: warning: implicitly declaring library function=20
> 'vsnprintf' w
> ith type 'int (char *, unsigned int, const char *, __builtin_va_list)'
>     (void) vsnprintf(str + strlen(str), alloc_size - strlen(str),
> format, ap); ^
> ./strfuncs.h:28:12: note: please include the header <stdio.h> or
> explicitly prov
> ide a declaration for 'vsnprintf'
> gpsd.c:267:11: warning: implicitly declaring library function
> 'strlcpy' with typ
> e 'unsigned int (char *, const char *, unsigned int)'
>     (void)strlcpy(addr.sun_path, filename, sizeof(addr.sun_path));
>           ^
> gpsd.c:267:11: note: please include the header <string.h> or
> explicitly provide
> a declaration for 'strlcpy'
> gpsd.c:365:40: error: use of undeclared identifier 'INADDR_LOOPBACK'
>             sat.sa_in.sin_addr.s_addr =3D htonl(INADDR_LOOPBACK);
>                                               ^
> /usr/include/arpa/inet.h:170:26: note: expanded from macro 'htonl'
> #define htonl(x)        __htonl(x)
>                                 ^
> /usr/include/x86/endian.h:126:30: note: expanded from macro '__htonl'
> #define __htonl(x)      __bswap32(x)
>                                   ^
> /usr/include/x86/endian.h:77:24: note: expanded from macro '__bswap32'
>         (__builtin_constant_p(x) ?      \
> ...
>=20
>=20
>=20




RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/ktea.VP9xQoOue.TlpaIv45
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXsrXlAAoJEA0O2UlB0XnY3BYH/ipKPqaPGss3Sz4e7MJj/Wq2
EFhqGXZNF6wn4taYw1CDZYMHrv7zyt2fiYhOQCgVHuIJlTpaMoFW38UVrzG5oHZ3
r3/Cp4sfMP6LPONv83a0gP4WfedgMw+uD/p8O/lusJorOXgSnVXfROB+CC8jLVH3
gk7lF+LrJ2+uXutDeLwLBQqF1mEmJqQWlBRCmtoTrL68bfwNwz8GUI+nWgGPuZGa
7Tog1HIEE4Ek2mBO4BeG41RmNke4qw9ZjotNL21rAJUYayGS5meq4scaqqzr2DCM
3E+C5Q2yPvBNQF1GQH6CT+MU3H0N//pkTlnwVRgs4Q5nusil9/fziyDEXfY7kIo=
=2Jb/
-----END PGP SIGNATURE-----

--Sig_/ktea.VP9xQoOue.TlpaIv45--


From MAILER-DAEMON Tue Aug 16 03:03:32 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZYPM-0006J7-OB
	for mharc-gpsd-dev@gnu.org; Tue, 16 Aug 2016 03:03:32 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:57712)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bZYPK-0006Iz-HE
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 03:03:31 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bZYPG-0000S7-DR
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 03:03:29 -0400
Received: from ip-64-139-1-69.sjc.megapath.net ([64.139.1.69]:65241)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bZYPG-0000Rk-6o
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 03:03:26 -0400
Received: from shuksan (localhost [127.0.0.1])
	by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id DA661406077; 
	Tue, 16 Aug 2016 00:03:22 -0700 (PDT)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: "Gary E. Miller" <gem@rellim.com>
cc: Hal Murray <hmurray@megapathdsl.net>, gpsd dev <gpsd-dev@nongnu.org>
From: Hal Murray <hmurray@megapathdsl.net>
In-Reply-To: Message from "Gary E. Miller" <gem@rellim.com> of "Mon,
	15 Aug 2016 23:42:45 PDT." <20160815234245.58dffda8@spidey.rellim.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Tue, 16 Aug 2016 00:03:22 -0700
Message-Id: <20160816070322.DA661406077@ip-64-139-1-69.sjc.megapath.net>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.139.1.69
Subject: Re: [gpsd-dev] =?utf-8?b?4pyYZ3BzZCBpcyBub3cgQzk5LCByZWFsbHku?=
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Aug 2016 07:03:31 -0000


> Can you tell me how daemon(), setgroups(), cfmaeraw() and others need to be
> called? 

The old stuff worked.  :)


>From cenos 7 man pages

   Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
       daemon(): _BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE < 500)
       setgroups(): _BSD_SOURCE
       cfsetspeed(), cfmakeraw(): _BSD_SOURCE


> Clearly your system is not POSIX 2001 compatible...

I didn't say it was.



-- 
These are my opinions.  I hate spam.





From MAILER-DAEMON Tue Aug 16 03:14:53 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZYaL-00014O-Q7
	for mharc-gpsd-dev@gnu.org; Tue, 16 Aug 2016 03:14:53 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:60677)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZYaJ-00014A-I7
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 03:14:52 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZYaH-0002uG-HL
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 03:14:50 -0400
Received: from rellim.com ([2001:470:e815::19]:33426 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZYaH-0002u5-97
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 03:14:49 -0400
Received: from spidey.rellim.com (rellim.com [IPv6:2001:470:e815:0:0:0:0:19])
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u7G7EbFv018309
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Tue, 16 Aug 2016 00:14:42 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u7G7EbFv018309
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1471331682; bh=PMZSq31imQXNPIvuAbHSnn/ZvGnBQUL2HORdA0TnY38=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=hkZHd+udDmq2DAnFANPIvWVfiJn9YEcZ1saPDmosm4ahLvhuSz3TsNW5jNdO/TlwP
	2ZqSA/eMDUFPvMUSQmqq8p9S3S3zw/mbBxEJH9qx6oYY9Cxyu94witxPVlB4iV/r7t
	/xTA8qu9/Q2Ohq/FuBVeVrLQ1SHgpzqinXGscLf4=
Date: Tue, 16 Aug 2016 00:14:36 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Hal Murray <hmurray@megapathdsl.net>
Cc: gpsd dev <gpsd-dev@nongnu.org>
Message-ID: <20160816001436.03a25a22@spidey.rellim.com>
In-Reply-To: <20160816070322.DA661406077@ip-64-139-1-69.sjc.megapath.net>
References: <20160815234245.58dffda8@spidey.rellim.com>
	<20160816070322.DA661406077@ip-64-139-1-69.sjc.megapath.net>
Organization: Rellim
X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/ANiFahn//oowh0l86oCza+c";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Tue, 16 Aug 2016 00:14:42 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] =?utf-8?b?4pyYZ3BzZCBpcyBub3cgQzk5LCByZWFsbHku?=
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Aug 2016 07:14:52 -0000

--Sig_/ANiFahn//oowh0l86oCza+c
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Hal!

On Tue, 16 Aug 2016 00:03:22 -0700
Hal Murray <hmurray@megapathdsl.net> wrote:

> > Can you tell me how daemon(), setgroups(), cfmaeraw() and others
> > need to be called?  =20
>=20
> The old stuff worked.  :)

Sort of.  But yes, I knew it was a risk.

> From cenos 7 man pages
>=20
>    Feature Test Macro Requirements for glibc (see
> feature_test_macros(7)): daemon(): _BSD_SOURCE || (_XOPEN_SOURCE &&
> _XOPEN_SOURCE < 500) setgroups(): _BSD_SOURCE
>        cfsetspeed(), cfmakeraw(): _BSD_SOURCE

Well, that does not match up with XOPEN docs.

_BSD_SOURCE has been deprecated for over a decade...

> > Clearly your system is not POSIX 2001 compatible... =20
>=20
> I didn't say it was.

So what is it compatible with?

I'll work on this in the morning, I expected badness....

Do you have an online source for the relevant man pages?

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/ANiFahn//oowh0l86oCza+c
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXsr1cAAoJEA0O2UlB0XnYVOgIAJcg5nI2dpxbpl9d371sZ4WT
cFezZaQucFRPRlh+nhtI4GmKpJlD7H/92TLQD9QNDU02WxRsasn1u0h1lH99/1pv
c3xmvbnsbKzGH23wqiazNcvnrarX0OCvOr7xt14aYT9gC2vZsZEk6iRKoqMTX+tZ
zE89HiLvcEJrWH36Pcmolxm46aFmg5KKEQ8WXQF7bqtuv6zoO8AXMduipCs6Hxe+
TQoYENEhWBH9nu5/ToPPPhWl8VDBqFSpd4sUazkDOBUb+c3LP9mQJ5+gibDiyqsn
kIJPWLAiJ5nJz0GZFa66LsLEXoEwijJBMd6ycHZkzLewCgxqf5GzfPXg59GqSII=
=9xxz
-----END PGP SIGNATURE-----

--Sig_/ANiFahn//oowh0l86oCza+c--


From MAILER-DAEMON Tue Aug 16 03:18:38 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZYdy-0001ev-96
	for mharc-gpsd-dev@gnu.org; Tue, 16 Aug 2016 03:18:38 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:33028)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bZYdw-0001em-5T
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 03:18:37 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bZYdq-0003QJ-7d
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 03:18:35 -0400
Received: from c.mail.sonic.net ([64.142.111.80]:58720)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bZYdp-0003PP-Ul
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 03:18:30 -0400
Received: from newshell.sonic.net (bolt.sonic.net [208.201.242.19])
	by c.mail.sonic.net (8.15.1/8.15.1) with ESMTPS id u7G7IQKr029784
	(version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <gpsd-dev@nongnu.org>; Tue, 16 Aug 2016 00:18:26 -0700
Received: from bolt.sonic.net (localhost.localdomain [127.0.0.1])
	by newshell.sonic.net (8.13.6/8.12.1) with ESMTP id u7G7IQkq017534
	for <gpsd-dev@nongnu.org>; Tue, 16 Aug 2016 00:18:26 -0700
Received: from localhost (fw@localhost)
	by bolt.sonic.net (8.13.6/8.12.1/Submit) with ESMTP id u7G7IQG9017531
	for <gpsd-dev@nongnu.org>; Tue, 16 Aug 2016 00:18:26 -0700
X-Authentication-Warning: bolt.sonic.net: fw owned process doing -bs
Date: Tue, 16 Aug 2016 00:18:26 -0700 (PDT)
From: Fred Wright <fw@fwright.net>
X-X-Sender: fw@bolt.sonic.net
To: gpsd dev <gpsd-dev@nongnu.org>
In-Reply-To: <20160816070322.DA661406077@ip-64-139-1-69.sjc.megapath.net>
Message-ID: <Pine.LNX.4.58L1X.1608160007490.8118@bolt.sonic.net>
References: <20160816070322.DA661406077@ip-64-139-1-69.sjc.megapath.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sonic-CAuth: UmFuZG9tSVaEqENMCpcNTHvsg8YOQruA0PQ8CSIjsMqi7JsbANMzWXklDomanzG/0Ol4bUlka3HyD/D0DbBZAcrhRaDlqlwa
X-Sonic-ID: C;9gXYn4Fj5hGKzqDx2xNB0g== M;PLMMoIFj5hGKzqDx2xNB0g==
X-Sonic-Spam-Details: -1.5/5.0 by cerberusd
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.142.111.80
Subject: Re: [gpsd-dev] =?utf-8?b?4pyYZ3BzZCBpcyBub3cgQzk5LCByZWFsbHku?=
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Aug 2016 07:18:37 -0000


On Tue, 16 Aug 2016, Hal Murray wrote:

> > Can you tell me how daemon(), setgroups(), cfmaeraw() and others need to be
> > called?
>
> The old stuff worked.  :)

And OSX is now totally broken as well, not only with lots more warnings,
but with a bunch of out-and-out errors.  Just a couple of preliminary
observations:

1) Nothing in OSX looks at _ISOC99_SOURCE.  This is true across six
different versions of XCode.

2) OSX doesn't have the infamous sys/sysmacros.h.  And it's apparently
downright poison on SVR4, according to this:

https://www.cygwin.com/ml/cygwin-developers/2002-05/msg00007.html

Fred Wright


From MAILER-DAEMON Tue Aug 16 03:20:21 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZYfd-0001sH-RZ
	for mharc-gpsd-dev@gnu.org; Tue, 16 Aug 2016 03:20:21 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:33588)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bZYfb-0001s9-Qa
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 03:20:20 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bZYfV-00040y-Qz
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 03:20:18 -0400
Received: from d.mail.sonic.net ([64.142.111.50]:38474)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bZYfV-00040l-IU
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 03:20:13 -0400
Received: from newshell.sonic.net (bolt.sonic.net [208.201.242.19])
	by d.mail.sonic.net (8.15.1/8.15.1) with ESMTPS id u7G7KBft026287
	(version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <gpsd-dev@nongnu.org>; Tue, 16 Aug 2016 00:20:11 -0700
Received: from bolt.sonic.net (localhost.localdomain [127.0.0.1])
	by newshell.sonic.net (8.13.6/8.12.1) with ESMTP id u7G7KBmE018457
	for <gpsd-dev@nongnu.org>; Tue, 16 Aug 2016 00:20:11 -0700
Received: from localhost (fw@localhost)
	by bolt.sonic.net (8.13.6/8.12.1/Submit) with ESMTP id u7G7KBbQ018454
	for <gpsd-dev@nongnu.org>; Tue, 16 Aug 2016 00:20:11 -0700
X-Authentication-Warning: bolt.sonic.net: fw owned process doing -bs
Date: Tue, 16 Aug 2016 00:20:11 -0700 (PDT)
From: Fred Wright <fw@fwright.net>
X-X-Sender: fw@bolt.sonic.net
To: gpsd dev <gpsd-dev@nongnu.org>
In-Reply-To: <20160816001436.03a25a22@spidey.rellim.com>
Message-ID: <Pine.LNX.4.58L1X.1608160019240.8118@bolt.sonic.net>
References: <20160815234245.58dffda8@spidey.rellim.com>
	<20160816070322.DA661406077@ip-64-139-1-69.sjc.megapath.net>
	<20160816001436.03a25a22@spidey.rellim.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sonic-CAuth: UmFuZG9tSVa/HbtUry+tOQpppLLnOjslstoOBJGicC/dI7UM2EsE6NtNBj3MkDoAMWUnWfWFr/9XZPJwJOK2v3ZJyWSrnJCg
X-Sonic-ID: C;5gR43oFj5hGTlK/hcgQksw== M;nu+T3oFj5hGTlK/hcgQksw==
X-Sonic-Spam-Details: -1.5/5.0 by cerberusd
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.142.111.50
Subject: Re: [gpsd-dev] =?utf-8?b?4pyYZ3BzZCBpcyBub3cgQzk5LCByZWFsbHku?=
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Aug 2016 07:20:20 -0000


On Tue, 16 Aug 2016, Gary E. Miller wrote:
> On Tue, 16 Aug 2016 00:03:22 -0700
> Hal Murray <hmurray@megapathdsl.net> wrote:
>
> > > Can you tell me how daemon(), setgroups(), cfmaeraw() and others
> > > need to be called?
> >
> > The old stuff worked.  :)
>
> Sort of.  But yes, I knew it was a risk.

That's what development branches are for. :-)

Fred Wright


From MAILER-DAEMON Tue Aug 16 03:42:53 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZZ1R-0007zC-Kb
	for mharc-gpsd-dev@gnu.org; Tue, 16 Aug 2016 03:42:53 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:37420)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bZZ1Q-0007yY-3j
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 03:42:52 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bZZ1L-0007cb-V9
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 03:42:51 -0400
Received: from ip-64-139-1-69.sjc.megapath.net ([64.139.1.69]:50139)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bZZ1L-0007cW-O0
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 03:42:47 -0400
Received: from shuksan (localhost [127.0.0.1])
	by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id 0716C406077; 
	Tue, 16 Aug 2016 00:42:46 -0700 (PDT)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: "Gary E. Miller" <gem@rellim.com>
cc: Hal Murray <hmurray@megapathdsl.net>, gpsd dev <gpsd-dev@nongnu.org>
From: Hal Murray <hmurray@megapathdsl.net>
In-Reply-To: Message from "Gary E. Miller" <gem@rellim.com> of "Tue,
	16 Aug 2016 00:14:36 PDT." <20160816001436.03a25a22@spidey.rellim.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Tue, 16 Aug 2016 00:42:45 -0700
Message-Id: <20160816074246.0716C406077@ip-64-139-1-69.sjc.megapath.net>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.139.1.69
Subject: Re: [gpsd-dev] =?utf-8?b?4pyYZ3BzZCBpcyBub3cgQzk5LCByZWFsbHku?=
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Aug 2016 07:42:53 -0000

> Do you have an online source for the relevant man pages?

I didn't find anything for centos.

The NetBSD man pages don't have that section.

/usr/include/stdlib.h says:
#if defined(_NETBSD_SOURCE)
...
int      daemon(int, int);


FreeBSD has
#if __BSD_VISIBLE


-- 
These are my opinions.  I hate spam.





From MAILER-DAEMON Tue Aug 16 07:16:07 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZcLn-0007xt-Da
	for mharc-gpsd-dev@gnu.org; Tue, 16 Aug 2016 07:16:07 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:53650)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jason@azze.org>) id 1bZcLk-0007xM-O6
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 07:16:05 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jason@azze.org>) id 1bZcLg-0001wc-Fq
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 07:16:03 -0400
Received: from s404.sureserver.com ([216.35.197.80]:35248)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jason@azze.org>) id 1bZcLg-0001wL-Ak
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 07:16:00 -0400
Received: (qmail 2095 invoked by uid 504); 16 Aug 2016 11:15:52 -0000
Received: from unknown (HELO mail-ua0-f180.google.com) (jason@209.85.217.180)
	by s404.sureserver.com with ESMTPA; 16 Aug 2016 11:15:52 -0000
Received: by mail-ua0-f180.google.com with SMTP id k90so115756925uak.1
	for <gpsd-dev@nongnu.org>; Tue, 16 Aug 2016 04:15:52 -0700 (PDT)
X-Gm-Message-State: AEkoouvo7hffLEZZYlPXnL+DNKwWq8opOVNalgc7PkklNBPinNK6gMAF8r4yUmUsYYjBxu9eqAqZXgQ2BcjiXw==
X-Received: by 10.176.68.36 with SMTP id m33mr2283400uam.81.1471346152523;
	Tue, 16 Aug 2016 04:15:52 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.103.46.203 with HTTP; Tue, 16 Aug 2016 04:15:32 -0700 (PDT)
In-Reply-To: <20160815215902.1ce55893@spidey.rellim.com>
References: <20160815215902.1ce55893@spidey.rellim.com>
From: Jason Azze <jason@azze.org>
Date: Tue, 16 Aug 2016 07:15:32 -0400
X-Gmail-Original-Message-ID: <CADCwCjEq=7+RvOt-QmeunniGvRyPoOXAnfGNuJ=F1EebHg7Vxg@mail.gmail.com>
Message-ID: <CADCwCjEq=7+RvOt-QmeunniGvRyPoOXAnfGNuJ=F1EebHg7Vxg@mail.gmail.com>
To: gpsd dev <gpsd-dev@nongnu.org>
Content-Type: text/plain; charset=UTF-8
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 216.35.197.80
Subject: Re: [gpsd-dev] =?utf-8?b?4pyYZ3BzZCBpcyBub3cgQzk5LCByZWFsbHku?=
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Aug 2016 11:16:05 -0000

On Tue, Aug 16, 2016 at 12:59 AM, Gary E. Miller <gem@rellim.com> wrote:
> I just enabled -D_ISOC99_SOURCE in gpsd.  That smoked out a ton
> of deprecated and obsolete functions.
[snip]
> Please test.

I'm getting this from 32-bit CentOS 6.8.

driver_nmea2000.c: In function 'hnd_129038':
driver_nmea2000.c:480: warning: integer constant is too large for 'long' type
driver_nmea2000.c:481: warning: integer constant is too large for 'long' type
driver_nmea2000.c: In function 'hnd_129039':
driver_nmea2000.c:513: warning: integer constant is too large for 'long' type
driver_nmea2000.c:514: warning: integer constant is too large for 'long' type
driver_nmea2000.c: In function 'hnd_129040':
driver_nmea2000.c:555: warning: integer constant is too large for 'long' type
driver_nmea2000.c:556: warning: integer constant is too large for 'long' type
driver_nmea2000.c: In function 'hnd_129793':
driver_nmea2000.c:615: warning: integer constant is too large for 'long' type
driver_nmea2000.c:616: warning: integer constant is too large for 'long' type
driver_nmea2000.c: In function 'hnd_129798':
driver_nmea2000.c:798: warning: integer constant is too large for 'long' type
driver_nmea2000.c:799: warning: integer constant is too large for 'long' type
driver_nmea2000.c: In function 'nmea2000_open':
driver_nmea2000.c:1587: error: storage size of 'ifr' isn't known
driver_nmea2000.c:1600: warning: implicit declaration of function 'strnlen'
driver_nmea2000.c:1600: warning: comparison between signed and
unsigned integer expressions
driver_nmea2000.c:1587: warning: unused variable 'ifr'


From MAILER-DAEMON Tue Aug 16 07:46:07 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZcoo-0000fV-TS
	for mharc-gpsd-dev@gnu.org; Tue, 16 Aug 2016 07:46:07 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:58674)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gdt@ir.bbn.com>) id 1bZcom-0000e2-Ih
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 07:46:05 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gdt@ir.bbn.com>) id 1bZcoi-0007LT-Dt
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 07:46:03 -0400
Received: from fnord.ir.bbn.com ([192.1.100.210]:55624)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gdt@ir.bbn.com>) id 1bZcoi-0007LP-9J
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 07:46:00 -0400
Received: by fnord.ir.bbn.com (Postfix, from userid 10853)
	id E4FA3AF53; Tue, 16 Aug 2016 07:45:59 -0400 (EDT)
From: Greg Troxel <gdt@ir.bbn.com>
To: "Gary E. Miller" <gem@rellim.com>
Cc: Fred Wright <fw@fwright.net>,  GPSD Developers List <gpsd-dev@nongnu.org>
References: <20160809184952.16944964@spidey.rellim.com>
	<e2e0e89b-5ff2-32de-c119-55f198dc5af3@hackerposse.com>
	<20160810124218.2538c143@spidey.rellim.com>
	<rmifuqaakwl.fsf@fnord.ir.bbn.com>
	<20160811181305.4c686b51@spidey.rellim.com>
	<rmir39t6cii.fsf@fnord.ir.bbn.com>
	<20160812121626.7b6065a7@spidey.rellim.com>
	<06605053-d6b5-5ffb-a6ec-3cff5ca6525a@hackerposse.com>
	<20160815102015.389571c3@spidey.rellim.com>
	<Pine.LNX.4.58L1X.1608151335490.29603@bolt.sonic.net>
	<20160815212118.GD19860@thyrsus.com>
	<Pine.LNX.4.58L1X.1608151526030.30044@bolt.sonic.net>
	<20160815155358.2ba54bdd@spidey.rellim.com>
	<rmi1t1p1tyq.fsf@fnord.ir.bbn.com>
	<Pine.LNX.4.58L1X.1608151705470.3172@bolt.sonic.net>
	<rmiwpjhy3j6.fsf@fnord.ir.bbn.com>
	<20160815172004.6fbbe6f3@spidey.rellim.com>
OpenPGP: id=32611E25
X-Hashcash: 1:20:160816:fw@fwright.net::xkUMEIDulMAApGoM:0000ATi
X-Hashcash: 1:20:160816:gpsd-dev@nongnu.org::lk5ETvXwnaoH1QgM:0000000000000000000000000000000000000000000drT
X-Hashcash: 1:20:160816:gem@rellim.com::RghRriVObvDwrCzl:0006+99
Date: Tue, 16 Aug 2016 07:45:56 -0400
In-Reply-To: <20160815172004.6fbbe6f3@spidey.rellim.com> (Gary E. Miller's
	message of "Mon, 15 Aug 2016 17:20:04 -0700")
Message-ID: <rmishu5x7gr.fsf@fnord.ir.bbn.com>
User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.5 (berkeley-unix)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
	micalg=pgp-sha1; protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 192.1.100.210
Subject: Re: [gpsd-dev] several messages
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Aug 2016 11:46:05 -0000

--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable


"Gary E. Miller" <gem@rellim.com> writes:

>> [/usr/bin/c99]
>
> Two things.=20
>
> It fixes a problem I have not seen yet.  Yes my head is in the sand.

fair enough on this point

> I puts a cap at c99, not a floor at c99.

For portability, it's important to refrain from using features not
guaranteed by the standard.  So a cap is right.

> And sadly, I'm finding a ton of code that is not C99 compliant, many
> patches in progress.

That's interesting, and probably useful.

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=3Dc99 on many
systems except Linux, where it would blow up in pthread.h.  So we left
it --std=3Dgnu99 on Linux, and ensured portability with the others.

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAley/PQACgkQ+vesoDJhHiV85wCdGVTkoXElohthHVWrT3pSY9Dm
sGYAoIK1R5nEs/T+jKrPZu4u2BzLd3fY
=dBUr
-----END PGP SIGNATURE-----
--=-=-=--


From MAILER-DAEMON Tue Aug 16 08:04:57 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZd73-0001Kz-Qy
	for mharc-gpsd-dev@gnu.org; Tue, 16 Aug 2016 08:04:57 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:35881)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ghane0@gmail.com>) id 1bZd6y-0001HK-Do
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 08:04:56 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ghane0@gmail.com>) id 1bZd6r-00035d-6o
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 08:04:51 -0400
Received: from mail-ua0-x232.google.com ([2607:f8b0:400c:c08::232]:34760)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ghane0@gmail.com>) id 1bZd6r-00035Y-1S
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 08:04:45 -0400
Received: by mail-ua0-x232.google.com with SMTP id k90so117480268uak.1
	for <gpsd-dev@nongnu.org>; Tue, 16 Aug 2016 05:04:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc; bh=GZgz00qeXJUzTwQreg+hM2RCP7h4kGcMo/AhkfBTauU=;
	b=FdE2YupPP386+G57+jVSGNSP6PtrpsZ4akrwhGKvldbsLLTOb+XFs9RnFvnNWaclAM
	K2knngDIpid7EzkILXPr1NfN/vWTDOR//TvQjVmE0PUJU0zYpQlD7EVtAj806an2RJzt
	7X9wOF6BGutefzlsuXahigrZRkqux3vzbtJyITUvy/B5UShHGjG+y/iXw+UGYhhY5BjF
	1zgocLLZW/52HOeIjbc+6hwQjqRocPQPN2vS3zgbZeh/2nV0KjTr/rEnDpPZYTUdz8Ym
	23v163bpv14XzO5j6q2QNOxgeUq65RpHs04OafJUw9eHXpsqE6FRPXa66Gqdyu26dAOe
	1NKA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20130820;
	h=x-gm-message-state:mime-version:in-reply-to:references:from:date
	:message-id:subject:to:cc;
	bh=GZgz00qeXJUzTwQreg+hM2RCP7h4kGcMo/AhkfBTauU=;
	b=WhSLict0JeVm9YSVugZzqo+0n9Ol7LfvyqnToJnxmvCw4aOU2VIACHAD5Dod1+XmqW
	RLR1SfXhsjMS1fS/c1DP17u7ra6LzNVzFUJsSlQ3iNmJbCYOOboTFaKABu96JQo3ifyf
	LNLRrdtlvo48PXytFnl4ZAfLWAZv29NKt0kqSAso3k1wnmK52hmFYay96N+NQGVH1t5m
	iaLj/AXiWlTIejjhlmi9zVUm2PYna8HU6NjBQlY+tbcfrQgxV3iUp/EvZ+0SLfouJKQd
	RGxP2gtHmmfpoeFr8g6iv2xIncJOaPWd87bXtnUBSO6KXTXnmxSx+Hgh0jJ1TPSiXGnu
	Yyfw==
X-Gm-Message-State: AEkooutiAu8mxeBaVbFKws4Srh9RpO/51FXytNR49OABzkLhm/b/nnGaoLTWFtIdV5p43t5QVlQg+UhXX1unaA==
X-Received: by 10.159.54.225 with SMTP id p88mr7045688uap.83.1471349084253;
	Tue, 16 Aug 2016 05:04:44 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.103.29.65 with HTTP; Tue, 16 Aug 2016 05:04:23 -0700 (PDT)
In-Reply-To: <rmishu5x7gr.fsf@fnord.ir.bbn.com>
References: <20160809184952.16944964@spidey.rellim.com>
	<e2e0e89b-5ff2-32de-c119-55f198dc5af3@hackerposse.com>
	<20160810124218.2538c143@spidey.rellim.com>
	<rmifuqaakwl.fsf@fnord.ir.bbn.com>
	<20160811181305.4c686b51@spidey.rellim.com>
	<rmir39t6cii.fsf@fnord.ir.bbn.com>
	<20160812121626.7b6065a7@spidey.rellim.com>
	<06605053-d6b5-5ffb-a6ec-3cff5ca6525a@hackerposse.com>
	<20160815102015.389571c3@spidey.rellim.com>
	<Pine.LNX.4.58L1X.1608151335490.29603@bolt.sonic.net>
	<20160815212118.GD19860@thyrsus.com>
	<Pine.LNX.4.58L1X.1608151526030.30044@bolt.sonic.net>
	<20160815155358.2ba54bdd@spidey.rellim.com>
	<rmi1t1p1tyq.fsf@fnord.ir.bbn.com>
	<Pine.LNX.4.58L1X.1608151705470.3172@bolt.sonic.net>
	<rmiwpjhy3j6.fsf@fnord.ir.bbn.com>
	<20160815172004.6fbbe6f3@spidey.rellim.com>
	<rmishu5x7gr.fsf@fnord.ir.bbn.com>
From: Sanjeev Gupta <ghane0@gmail.com>
Date: Tue, 16 Aug 2016 05:04:23 -0700
Message-ID: <CAHZk5WdJFHzQDMfeaaPaEfumDXEpVPOvyfNsOtaJY5HeF_Q0cw@mail.gmail.com>
To: Greg Troxel <gdt@ir.bbn.com>
Cc: "Gary E. Miller" <gem@rellim.com>,
	GPSD Developers List <gpsd-dev@nongnu.org>
Content-Type: multipart/alternative; boundary=94eb2c03c0de8202f5053a2f2761
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2607:f8b0:400c:c08::232
Subject: Re: [gpsd-dev] several messages
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Aug 2016 12:04:56 -0000

--94eb2c03c0de8202f5053a2f2761
Content-Type: text/plain; charset=UTF-8

On Tue, Aug 16, 2016 at 4:45 AM, Greg Troxel <gdt@ir.bbn.com> 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

--94eb2c03c0de8202f5053a2f2761
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">=
On Tue, Aug 16, 2016 at 4:45 AM, Greg Troxel <span dir=3D"ltr">&lt;<a href=
=3D"mailto:gdt@ir.bbn.com" target=3D"_blank">gdt@ir.bbn.com</a>&gt;</span> =
wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8=
ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div id=3D":2h1=
" class=3D"">One issue that may or may not arise, is that I found (in anoth=
er<br>
context) that some headers on Linux are not C99 compliant, I think in<br>
pthread.h.=C2=A0 We had code that we could compile with --std=3Dc99 on many=
<br>
systems except Linux, where it would blow up in pthread.h.=C2=A0 So we left=
<br>
it --std=3Dgnu99 on Linux, and ensured portability with the others.</div></=
blockquote></div><br></div><div class=3D"gmail_extra">This may be related:=
=C2=A0 On an Ubuntu 16.10-dev, with<br>CC=3D/usr/bin/gcc-6 scons check<br><=
br></div><div class=3D"gmail_extra">I get:<br>=C2=A0...<br>/usr/bin/gcc-6 -=
o shared_json.o -c -Wmissing-prototypes -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=
=3D200112L -Wmissing-declarations -O2 shared_json.c<br>/usr/bin/gcc-6 -o st=
rl.o -c -Wmissing-prototypes -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=3D200112L -=
Wmissing-declarations -O2 strl.c<br>/usr/bin/gcc-6 -o test_packet test_pack=
et.o -L. -lgpsd -lgps_static -lm<br>./libgpsd.a(ppsthread.o): In function `=
pps_thread_activate&#39;:<br>ppsthread.c:(.text+0xfc2): undefined reference=
 to `pthread_create&#39;<br>collect2: error: ld returned 1 exit status<br>s=
cons: *** [test_packet] Error 1<br>scons: building terminated because of er=
rors.<br><br></div><div class=3D"gmail_extra"><br clear=3D"all"><div><div c=
lass=3D"gmail_signature" data-smartmail=3D"gmail_signature">-- <br>Sanjeev =
Gupta<br>+65 98551208=C2=A0 =C2=A0=C2=A0 <a href=3D"http://www.linkedin.com=
/in/ghane" target=3D"_blank">http://www.linkedin.com/in/ghane</a></div></di=
v>
</div></div>

--94eb2c03c0de8202f5053a2f2761--


From MAILER-DAEMON Tue Aug 16 15:20:43 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZjul-0007sp-MO
	for mharc-gpsd-dev@gnu.org; Tue, 16 Aug 2016 15:20:43 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:58233)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZjuj-0007ra-HZ
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 15:20:42 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZjui-0007KL-9q
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 15:20:41 -0400
Received: from rellim.com ([2001:470:e815::19]:52437 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZjuh-0007K7-R4
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 15:20:40 -0400
Received: from spidey.rellim.com (rellim.com [IPv6:2001:470:e815:0:0:0:0:19])
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u7GJKQ0g009692
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Tue, 16 Aug 2016 12:20:32 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u7GJKQ0g009692
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1471375232; bh=FPorlOZj8QvdcluVo/rQAPo1UHL5f6nxMeXHKBW1ovI=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=QMNRaZ1oawxu5Rlr65l8FW3F1D/uQw70JPmtAu6tdP6VpsfQ6zXIP1xRVjmA6KS+f
	eOOkjTKEKCApajIeMRXyVq6rQCRwWALXLUVJdK5gPY+eazMSUp5bNU125wG+Ri7Xa+
	YVAReL9BXCsFUbdNUdCAhcnqh5QT5OnYyvQbjQSo=
Date: Tue, 16 Aug 2016 12:20:26 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Hal Murray <hmurray@megapathdsl.net>
Cc: gpsd dev <gpsd-dev@nongnu.org>
Message-ID: <20160816122026.60a30ff3@spidey.rellim.com>
In-Reply-To: <20160816063931.7832A406077@ip-64-139-1-69.sjc.megapath.net>
References: <20160815215902.1ce55893@spidey.rellim.com>
	<20160816063931.7832A406077@ip-64-139-1-69.sjc.megapath.net>
Organization: Rellim
X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/_F9Qb2JbMu=YbWc8FCpUBlA";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Tue, 16 Aug 2016 12:20:32 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] =?utf-8?b?4pyYZ3BzZCBpcyBub3cgQzk5LCByZWFsbHku?=
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Aug 2016 19:20:42 -0000

--Sig_/_F9Qb2JbMu=YbWc8FCpUBlA
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Hal!

On Mon, 15 Aug 2016 23:39:31 -0700
Hal Murray <hmurray@megapathdsl.net> wrote:

> Lots and lots of troubles.  Here is the first batch.

Gack.  I just pushed a new SConstruct that does not set:
    -D_ISOC99_SOURCE
    -D_POSIX_C_SOURCE=3D200112L

So C99 and POSIX-2001 will not be enforced.  I think most of the
changes, like killing bcopy(), will still be OK.  That gets closer to
C99.

I'm sure a few of the other changes will still be a problem.

I guess I gotta dust off an XCode, a Wheezy, etc...

Send in the bug reports...

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/_F9Qb2JbMu=YbWc8FCpUBlA
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXs2d6AAoJEA0O2UlB0XnY6LsH/RqyvWud3sktjdEU48UB5EXU
P/B5VcUXG8s+wSjeFkjvVC4LQd11J4Tg4b7qaAYPR2V0BWwW9eKAfacWzr8jGiZ3
xnk1cQH/c1CXvUp+vlQbpAtRqrCazBj5YkxZmYVsm4oH1laskjyMq5DEo4j9t2sc
0TswZil2KvqyFOlLH6iBV5htECQAtNp3p8qjsK9e0FKB37sRpCLZDdYlS1et4hEm
uX3YYorQrdTnvQwFO9dkRDYpB3aPnJT/YpzrL/yBMYfIr4Q69dI5HEh5LI+30Aev
JTzSsHsLC98yajiZ/7pF1OQdmHgZzvuvagWxw+v5jQwgTazqnejmGufkDeUea2A=
=0bRp
-----END PGP SIGNATURE-----

--Sig_/_F9Qb2JbMu=YbWc8FCpUBlA--


From MAILER-DAEMON Tue Aug 16 15:44:32 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZkHo-0006Qx-4r
	for mharc-gpsd-dev@gnu.org; Tue, 16 Aug 2016 15:44:32 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:35301)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bZkHm-0006Qp-NT
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 15:44:31 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bZkHi-0003UN-JS
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 15:44:29 -0400
Received: from ip-64-139-1-69.sjc.megapath.net ([64.139.1.69]:58784)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bZkHh-0003U5-Lo
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 15:44:26 -0400
Received: from shuksan (localhost [127.0.0.1])
	by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id 868EB406062; 
	Tue, 16 Aug 2016 12:44:21 -0700 (PDT)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: "Gary E. Miller" <gem@rellim.com>
cc: Hal Murray <hmurray@megapathdsl.net>, gpsd dev <gpsd-dev@nongnu.org>
From: Hal Murray <hmurray@megapathdsl.net>
In-Reply-To: Message from "Gary E. Miller" <gem@rellim.com> of "Tue,
	16 Aug 2016 12:20:26 PDT." <20160816122026.60a30ff3@spidey.rellim.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Tue, 16 Aug 2016 12:44:21 -0700
Message-Id: <20160816194421.868EB406062@ip-64-139-1-69.sjc.megapath.net>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.139.1.69
Subject: Re: [gpsd-dev] =?utf-8?b?4pyYZ3BzZCBpcyBub3cgQzk5LCByZWFsbHku?=
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Aug 2016 19:44:31 -0000


On Raspbian:

./libgpsd.a(libgpsd_core.o): In function `gpsd_poll':
libgpsd_core.c:(.text+0x2200): undefined reference to `isfinite'
libgpsd_core.c:(.text+0x2220): undefined reference to `isfinite'
libgpsd_core.c:(.text+0x223c): undefined reference to `isfinite'
libgpsd_core.c:(.text+0x2290): undefined reference to `isfinite'
collect2: error: ld returned 1 exit status
scons: *** [gpsd] Error 1

libgpsd_core.c: In function 'gpsd_error_model':
libgpsd_core.c:933:2: warning: implicit declaration of function 'isfinite' 
[-Wimplicit-function-declaration]
  if (isnan(fix->epx) != 0 && isfinite(session->gpsdata.dop.hdop) != 0)
  ^
libgpsd_core.c: In function 'gpsd_await_data':
libgpsd_core.c:1036:5: warning: implicit declaration of function 'pselect' 
[-Wimplicit-function-declaration]
     status = pselect(maxfd + 1, rfds, NULL, NULL, NULL, NULL);
     ^
man page says:
       fpclassify(), isfinite(), isnormal():
           _XOPEN_SOURCE >= 600 || _ISOC99_SOURCE ||
           _POSIX_C_SOURCE >= 200112L;
           or cc -std=c99

--------

On Fedora 24:

libgpsd_core.c: In function 'gpsd_await_data':
libgpsd_core.c:1036:14: warning: implicit declaration of function 'pselect' 
[-Wimplicit-function-declaration]
     status = pselect(maxfd + 1, rfds, NULL, NULL, NULL, NULL);

Man page says:
       pselect(): _POSIX_C_SOURCE >= 200112L


-- 
These are my opinions.  I hate spam.





From MAILER-DAEMON Tue Aug 16 15:50:30 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZkNa-0007my-2v
	for mharc-gpsd-dev@gnu.org; Tue, 16 Aug 2016 15:50:30 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:37581)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZkNX-0007lE-Sk
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 15:50:28 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZkNV-00057i-Rp
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 15:50:26 -0400
Received: from rellim.com ([2001:470:e815::19]:45217 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZkNV-00057B-JU
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 15:50:25 -0400
Received: from spidey.rellim.com (dave.rellim.com
	[IPv6:2001:470:e815:0:0:0:0:19] (may be forged))
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u7GJoFPj020427
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Tue, 16 Aug 2016 12:50:20 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u7GJoFPj020427
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1471377020; bh=HPMwWdNSxkr5jaW9WJ0zqdlMM9Y6fCVlT4ZnQ6RDDBs=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=Vjgjf2SAms5gB608c3o9dPe46F0g7sc1R0RU8ji1MsuQzcfZ3jFhd0O5vr7RWDq+N
	TvZDb+jamEwVHnx6l+6jMAoP2OFjho7CzcawbW23OOlOnNMSS61oZ3fPeR2VlOtI9X
	RzJPJPrgoHt6wXykIT0Euc68gKBB3SNehkYy4V/k=
Date: Tue, 16 Aug 2016 12:50:14 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Hal Murray <hmurray@megapathdsl.net>
Cc: gpsd dev <gpsd-dev@nongnu.org>
Message-ID: <20160816125014.0a9de0dd@spidey.rellim.com>
In-Reply-To: <20160816194421.868EB406062@ip-64-139-1-69.sjc.megapath.net>
References: <20160816122026.60a30ff3@spidey.rellim.com>
	<20160816194421.868EB406062@ip-64-139-1-69.sjc.megapath.net>
Organization: Rellim
X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/3Y=EQ9BDQ6ub7F5hC+HsLeu";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Tue, 16 Aug 2016 12:50:20 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] =?utf-8?b?4pyYZ3BzZCBpcyBub3cgQzk5LCByZWFsbHku?=
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Aug 2016 19:50:29 -0000

--Sig_/3Y=EQ9BDQ6ub7F5hC+HsLeu
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Hal!

Yeah, I also see those on 32 bit Gentoo RasPi.  Patch coming.

It seems like once you start to specify standards define's you gotta
specify them all.

On Tue, 16 Aug 2016 12:44:21 -0700
Hal Murray <hmurray@megapathdsl.net> wrote:

> On Raspbian:
>=20
> ./libgpsd.a(libgpsd_core.o): In function `gpsd_poll':
> libgpsd_core.c:(.text+0x2200): undefined reference to `isfinite'
> libgpsd_core.c:(.text+0x2220): undefined reference to `isfinite'
> libgpsd_core.c:(.text+0x223c): undefined reference to `isfinite'
> libgpsd_core.c:(.text+0x2290): undefined reference to `isfinite'
> collect2: error: ld returned 1 exit status
> scons: *** [gpsd] Error 1
>=20
> libgpsd_core.c: In function 'gpsd_error_model':
> libgpsd_core.c:933:2: warning: implicit declaration of function
> 'isfinite' [-Wimplicit-function-declaration]
>   if (isnan(fix->epx) !=3D 0 && isfinite(session->gpsdata.dop.hdop) !=3D
> 0) ^
> libgpsd_core.c: In function 'gpsd_await_data':
> libgpsd_core.c:1036:5: warning: implicit declaration of function
> 'pselect' [-Wimplicit-function-declaration]
>      status =3D pselect(maxfd + 1, rfds, NULL, NULL, NULL, NULL);
>      ^
> man page says:
>        fpclassify(), isfinite(), isnormal():
>            _XOPEN_SOURCE >=3D 600 || _ISOC99_SOURCE ||
>            _POSIX_C_SOURCE >=3D 200112L;
>            or cc -std=3Dc99
>=20
> --------
>=20
> On Fedora 24:
>=20
> libgpsd_core.c: In function 'gpsd_await_data':
> libgpsd_core.c:1036:14: warning: implicit declaration of function
> 'pselect' [-Wimplicit-function-declaration]
>      status =3D pselect(maxfd + 1, rfds, NULL, NULL, NULL, NULL);
>=20
> Man page says:
>        pselect(): _POSIX_C_SOURCE >=3D 200112L
>=20
>=20




RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/3Y=EQ9BDQ6ub7F5hC+HsLeu
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXs252AAoJEA0O2UlB0XnY15MIALjFGwkSat6hvpJfQslT3toP
j60kxvouZxVUuhp+M64rX0c0zOhwEwLEVye053IgV13tc9uT+v3v3eDpTe5N3ScR
paR77MobSHsWuFDcuieNXz2D9JzTrhljJ7Fuc6AyY4v0Jbh+T2zg00ex+iZzkQrC
T0vc0JmC0EO3/nCjabYd+edZCpc2entHIUsRpGjlUq41S45zsvqYix6iKihJ9Dkg
m2q81X/9csXcZMlBNYBmsyWEhhytyIiRd+kZ9NPQv4uPx3J7QLHlRI5vyl98jwXu
E0MJnKkVAMx3tixOS2FnAoVelkByVaZ0QdsXAkbzU159bU/aHhTABHQxt7GAb9k=
=DjwA
-----END PGP SIGNATURE-----

--Sig_/3Y=EQ9BDQ6ub7F5hC+HsLeu--


From MAILER-DAEMON Tue Aug 16 16:01:27 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZkYB-0002hi-4s
	for mharc-gpsd-dev@gnu.org; Tue, 16 Aug 2016 16:01:27 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:43272)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZkY8-0002hT-DU
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 16:01:25 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZkY7-0000En-BR
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 16:01:24 -0400
Received: from rellim.com ([2001:470:e815::19]:58149 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZkY7-0000Ej-3K
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 16:01:23 -0400
Received: from spidey.rellim.com (dave.rellim.com
	[IPv6:2001:470:e815:0:0:0:0:19] (may be forged))
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u7GK1Cbi024030
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Tue, 16 Aug 2016 13:01:17 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u7GK1Cbi024030
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1471377677; bh=ajxcnoIDH12m/LtuhFhJJ2x7/AUTkxOf3XFlOpZ5LYA=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=NjdrAPxhAZFZhYVnQjoZvc6WcR8lBMG5QHsanfUKMe64SnAQAOANZS2RijQqzU/Eq
	193nz+gOJUWMzew/m6qDwSq7GbKHNXZgQouWKpBT9oE57imDXLBcyhEGUT5jDo8Msq
	6iO15A3sx26Vn/yhKLwF9M0SBl2qJz9cOrA2iaJ4=
Date: Tue, 16 Aug 2016 13:01:11 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Hal Murray <hmurray@megapathdsl.net>
Cc: gpsd dev <gpsd-dev@nongnu.org>
Message-ID: <20160816130111.080a5fce@spidey.rellim.com>
In-Reply-To: <20160816125014.0a9de0dd@spidey.rellim.com>
References: <20160816122026.60a30ff3@spidey.rellim.com>
	<20160816194421.868EB406062@ip-64-139-1-69.sjc.megapath.net>
	<20160816125014.0a9de0dd@spidey.rellim.com>
Organization: Rellim
X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/qz=IYhonMumzFD5.JbJweow";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Tue, 16 Aug 2016 13:01:17 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] =?utf-8?b?4pyYZ3BzZCBpcyBub3cgQzk5LCByZWFsbHku?=
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Aug 2016 20:01:25 -0000

--Sig_/qz=IYhonMumzFD5.JbJweow
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Gary!

On Tue, 16 Aug 2016 12:50:14 -0700
"Gary E. Miller" <gem@rellim.com> wrote:

> Yeah, I also see those on 32 bit Gentoo RasPi.  Patch coming.

Patch pushed.  Now I'll test on XCode.

It seems on some systems, if you specify XOPEN version then you must
also specify POSIX version, but if you specify neither you get a default
version.  And that version is different between 32-bit and 64-bit
Gentoo.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/qz=IYhonMumzFD5.JbJweow
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXs3EHAAoJEA0O2UlB0XnYKd0IALFNr9i8UiSavKC+K/m40Mu9
hdXSRyDqmZrS3IBx6vIjnaxGZ0LIqsS8hf+ZCPrXHGG4zCbal+HhDYeJLBLD0pEy
+R6qCyyu4iZZFDxYflhmjQ2M2ZxCjryGBnCqtktWy88CQqwwvKupLTNxCWq7qyT6
PKglyyK4Pvej23jEVvl3a4BMWn9EIbfRijsRTna8vaQzxoDFSW/8XfZE5nlir6sz
GnEzToby9jMlAhtpR+hNguaZHr5Jiulh83xSdqmAt1Ngx6ahlZa6Hh+7iXUTxmuu
wjY1lDynNPtxIUEP6Pf4n32/m7DFVAv8R8nkUwqEaRH7QKeHZU3uY8ifK2QKsn8=
=0ji8
-----END PGP SIGNATURE-----

--Sig_/qz=IYhonMumzFD5.JbJweow--


From MAILER-DAEMON Tue Aug 16 16:59:35 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZlSR-0005WF-As
	for mharc-gpsd-dev@gnu.org; Tue, 16 Aug 2016 16:59:35 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:56551)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZlSK-0005Vx-5S
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 16:59:33 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZlSA-0003Cf-8x
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 16:59:27 -0400
Received: from rellim.com ([2001:470:e815::19]:48689 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZlS9-00039u-F6
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 16:59:18 -0400
Received: from spidey.rellim.com (rellim.com [IPv6:2001:470:e815:0:0:0:0:19])
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u7GKx7nQ011827
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO)
	for <gpsd-dev@nongnu.org>; Tue, 16 Aug 2016 13:59:12 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u7GKx7nQ011827
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1471381152; bh=XSQ41wt50tbBQKY8t94ClLEjxvc8iZavzPAxTgKffqc=;
	h=Date:From:To:Subject;
	b=ChZkQx2LUk9ivG4fLXt1OTc+0yv/bPjR0TYHeecJaW6yEDIM0H/bVAPTq/4kGfaYV
	kXeT8TjcwPUj6V3rfoosi7wPzTvueP17gloZ4fPPYvZvLG5AhhAeFnoN4cgMbLvSnD
	xKt18JQsvFF+GI49MguDWCW0HDwJy4L/PGqyQe5Q=
Date: Tue, 16 Aug 2016 13:59:06 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: gpsd dev <gpsd-dev@nongnu.org>
Message-ID: <20160816135906.62814817@spidey.rellim.com>
Organization: Rellim
X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/7U+c3.7+=nqi9LpOP=4YQ_m";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Tue, 16 Aug 2016 13:59:12 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: [gpsd-dev] =?utf-8?q?=E2=9C=98XCode_works_again?=
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Aug 2016 20:59:33 -0000

--Sig_/7U+c3.7+=nqi9LpOP=4YQ_m
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo All!

I just pushed XCode fixes for OS X.  Some new errors, and old
warnings are now gone.

Last warning:

gpsd.c:1997:6: warning: 'daemon' is deprecated: first deprecated in OS X 10=
.5 - Use posix_spawn APIs instead. [-Wdeprecated-declarations]
        if (daemon(0, 0) !=3D 0)
            ^
/usr/include/stdlib.h:267:6: note: 'daemon' has been explicitly marked depr=
ecated here
int      daemon(int, int) __DARWIN_1050(daemon) __OSX_AVAILABLE_BUT_DEPRECA=
TED_MSG(__MAC_10_0, __MAC_10_5, __IPHONE_2_0, __IPHONE_2_0, "Use posix_spaw=
n APIs instead.") __WATCHOS_PROHIBITED __TVOS_PROHIBITED;

daemon() is about the only portable thing, and all OS seem to hate
it.

I'd like it is someone that knows XCode could fix that for OS X.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/7U+c3.7+=nqi9LpOP=4YQ_m
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXs36aAAoJEA0O2UlB0XnYmekH/1GpG9j28uHz5sNZt5CjXlbR
c3rxkk5bkjBfzjpOWFr66yc3re7kOmdVFVz0cF9p5N4ScVGZDZJrQt9pGn+dlA+m
byJKzFOFda+4Mx1G6LfLvKK6KHPmh6Op2Ad8P2tRmLwb8Qz14TXmmIosVCQBQmch
JjF919X8NHUNECqt3rYE3dHkJCXR0CbtxRismbpscsWiKnpyqLXL57lPUkLbKnEY
iauxiak8bLsB6YgisgnvTnJp9mN8YT3JLhGInTmeJ+fbVFv7zH2Md10x8U5o4vHe
YM5159VPY1TwVJsyN7/NbNY2+U5vhqVPgH+wzWOTmWRcTxhaejhs6bxKPCI+CR4=
=bKLQ
-----END PGP SIGNATURE-----

--Sig_/7U+c3.7+=nqi9LpOP=4YQ_m--


From MAILER-DAEMON Tue Aug 16 17:09:35 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZlc7-0000Rw-IR
	for mharc-gpsd-dev@gnu.org; Tue, 16 Aug 2016 17:09:35 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:58803)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZlc1-0000Rl-PF
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 17:09:33 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZlbz-0005fP-QN
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 17:09:28 -0400
Received: from rellim.com ([2001:470:e815::19]:56175 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZlbz-0005fA-Gu
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 17:09:27 -0400
Received: from spidey.rellim.com (dave.rellim.com
	[IPv6:2001:470:e815:0:0:0:0:19] (may be forged))
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u7GL9JkX015957
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Tue, 16 Aug 2016 14:09:25 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u7GL9JkX015957
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1471381766; bh=ZNRgegZX39dAiJSgGdJWe7WWnb6LmXQxk8lI/Lyfng0=;
	h=Date:From:To:Cc:Subject;
	b=S6LqbWU0xnjfAuYsxssLybuX8FKaKkGGR2EI1MWRHoLgOXfY2jwT+TTAsmcDFAKiQ
	+gJn56ox3YAHucEbz2gGELAWOAdn/qcgyEOrp84O85BIIJutdwlL0wGO8eV2qFJOZS
	nEn8/mWSREH8UQNVcppz1pzRrNH5rGM4EgxC/+H8=
Date: Tue, 16 Aug 2016 14:09:19 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: gpsd dev <gpsd-dev@nongnu.org>
Message-ID: <20160816140919.701d99a8@spidey.rellim.com>
Organization: Rellim
X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/vk.liNAwyJDV4sLFjj+CfyV";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Tue, 16 Aug 2016 14:09:26 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: [gpsd-dev] =?utf-8?q?=E2=9C=98Python_maidenhead_fails_on_XCode?=
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Aug 2016 21:09:33 -0000

--Sig_/vk.liNAwyJDV4sLFjj+CfyV
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo All!

I got a Python failure in 'scons check' on XCode:

Testing the Maidenhead Locator conversion...
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Pytho=
n.app/Contents/MacOS/Python ./test_maidenhead.py >/dev/null
maidenhead test: from 48.86471 2.37305 (Paris) expected JN18eu got JJ00aa
maidenhead test: from 41.93498 12.43652 (Rome) expected JN61fw got JJ00aa
maidenhead test: from 39.9771 -75.1685 (Philadelphia) expected FM29jx got J=
J00aa
maidenhead test: from -23.4028 -50.9766 (Sao Paulo) expected GG46mo got JJ0=
0aa
scons: *** [maidenhead-locator-regress] Error 1

Not being a Python or maindenhead person, anyone have a clue?

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/vk.liNAwyJDV4sLFjj+CfyV
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEbBAEBCAAGBQJXs4D/AAoJEA0O2UlB0XnYrpUH+KxjIaDniM16WAOkMTgO+TJ+
TPXmF+XmBLfn+Dwflg3uaXrxxTqyNlerA7AAjZyV6kM09oTg+fBsLaqIvxmCI5WM
2u2+gwMxpqZWqpIcRSGdtALU6AEvgevvNyJqAIzv04oRwgpUzZjE9POhfRacQSzR
ilgvmyDGyp5yZYYwVuzkvfVaHjS4nKgAc7SVztbIvs2/GAIQ1sm2wP7OtPgLfFfj
Ekzfnp90d842Q9r6u9Ksq89ZKKdfii3PAzDN02nywEJ5GAvGO9cb/TN1jU6NpKsq
QcXtuEO2a0YjrWntjALx518rOuy+fSnF5EKI7c+MZy/DsnZv+s5tKuXbjB3IhA==
=q01O
-----END PGP SIGNATURE-----

--Sig_/vk.liNAwyJDV4sLFjj+CfyV--


From MAILER-DAEMON Tue Aug 16 17:43:59 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZm9P-0000Fj-3F
	for mharc-gpsd-dev@gnu.org; Tue, 16 Aug 2016 17:43:59 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:35311)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bZm9J-0000FJ-7X
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 17:43:57 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bZm9G-0002UM-1i
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 17:43:53 -0400
Received: from ip-64-139-1-69.sjc.megapath.net ([64.139.1.69]:62363)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bZm9F-0002UH-OZ
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 17:43:49 -0400
Received: from shuksan (localhost [127.0.0.1])
	by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id E442E406062; 
	Tue, 16 Aug 2016 14:43:47 -0700 (PDT)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: "Gary E. Miller" <gem@rellim.com>
cc: gpsd dev <gpsd-dev@nongnu.org>, hmurray@megapathdsl.net
From: Hal Murray <hmurray@megapathdsl.net>
In-Reply-To: Message from "Gary E. Miller" <gem@rellim.com> of "Tue,
	16 Aug 2016 13:59:06 PDT." <20160816135906.62814817@spidey.rellim.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Tue, 16 Aug 2016 14:43:47 -0700
Message-Id: <20160816214347.E442E406062@ip-64-139-1-69.sjc.megapath.net>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.139.1.69
Subject: Re: [gpsd-dev] =?utf-8?q?=E2=9C=98XCode_works_again?=
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Aug 2016 21:43:57 -0000

Still horribly messed up.

timehint.c doesn't include time.h

That screws up horribly on NetBSD.


After fixing that, on NetBSD:

libgpsd_core.c:40:50: fatal error: alloca.h: No such file or directory
 #include <alloca.h> /* for alloca(), not POSIX */

On NetBSD, it's in
  #include <stdlib.h>


On FreeBSD:

In file included from gpsd.c:54:
./sockaddr.h:7:25: error: field has incomplete type 'struct sockaddr_in6'
    struct sockaddr_in6 sa_in6;
                        ^
./sockaddr.h:7:12: note: forward declaration of 'struct sockaddr_in6'
    struct sockaddr_in6 sa_in6;
           ^
In file included from gpsd.c:57:
./strfuncs.h:28:12: warning: implicitly declaring library function 
'vsnprintf' w
ith type 'int (char *, unsigned int, const char *, __builtin_va_list)'
    (void) vsnprintf(str + strlen(str), alloc_size - strlen(str), format, ap);
           ^
./strfuncs.h:28:12: note: please include the header <stdio.h> or explicitly 
prov
ide a declaration for 'vsnprintf'
gpsd.c:271:11: warning: implicitly declaring library function 'strlcpy' with 
typ
e 'unsigned int (char *, const char *, unsigned int)'
    (void)strlcpy(addr.sun_path, filename, sizeof(addr.sun_path));
          ^
gpsd.c:271:11: note: please include the header <string.h> or explicitly 
provide
a declaration for 'strlcpy'
gpsd.c:369:40: error: use of undeclared identifier 'INADDR_LOOPBACK'
            sat.sa_in.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
                                              ^
/usr/include/arpa/inet.h:170:26: note: expanded from macro 'htonl'
#define htonl(x)        __htonl(x)
                                ^
/usr/include/x86/endian.h:126:30: note: expanded from macro '__htonl'
#define __htonl(x)      __bswap32(x)
                                  ^
/usr/include/x86/endian.h:77:24: note: expanded from macro '__bswap32'
        (__builtin_constant_p(x) ?      \


-- 
These are my opinions.  I hate spam.





From MAILER-DAEMON Tue Aug 16 17:44:36 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZmA0-0000LZ-80
	for mharc-gpsd-dev@gnu.org; Tue, 16 Aug 2016 17:44:36 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:35365)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bZm9y-0000LT-AJ
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 17:44:35 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bZm9u-0002dU-4G
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 17:44:33 -0400
Received: from d.mail.sonic.net ([64.142.111.50]:43098)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bZm9t-0002dO-R5
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 17:44:30 -0400
Received: from newshell.sonic.net (bolt.sonic.net [208.201.242.19])
	by d.mail.sonic.net (8.15.1/8.15.1) with ESMTPS id u7GLiPY1016677
	(version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <gpsd-dev@nongnu.org>; Tue, 16 Aug 2016 14:44:25 -0700
Received: from bolt.sonic.net (localhost.localdomain [127.0.0.1])
	by newshell.sonic.net (8.13.6/8.12.1) with ESMTP id u7GLiOFT008592
	for <gpsd-dev@nongnu.org>; Tue, 16 Aug 2016 14:44:25 -0700
Received: from localhost (fw@localhost)
	by bolt.sonic.net (8.13.6/8.12.1/Submit) with ESMTP id u7GLiNLV008579
	for <gpsd-dev@nongnu.org>; Tue, 16 Aug 2016 14:44:24 -0700
X-Authentication-Warning: bolt.sonic.net: fw owned process doing -bs
Date: Tue, 16 Aug 2016 14:44:23 -0700 (PDT)
From: Fred Wright <fw@fwright.net>
X-X-Sender: fw@bolt.sonic.net
To: gpsd dev <gpsd-dev@nongnu.org>
In-Reply-To: <20160816135906.62814817@spidey.rellim.com>
Message-ID: <Pine.LNX.4.58L1X.1608161436190.11838@bolt.sonic.net>
References: <20160816135906.62814817@spidey.rellim.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sonic-CAuth: UmFuZG9tSVYLbMcKo/TGgQ1oZobHFaDazJeKzOUc3lcYh3ZeNzS8Q0KXMDnIm6RVXfbyM/IbFeSnofHtJQooaZMSQdjL/wqm
X-Sonic-ID: C;Duujmfpj5hGGWK/hcgQksw== M;koO+mfpj5hGGWK/hcgQksw==
X-Sonic-Spam-Details: -1.5/5.0 by cerberusd
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.142.111.50
Subject: Re: [gpsd-dev] =?utf-8?q?=E2=9C=98XCode_works_again?=
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Aug 2016 21:44:35 -0000


On Tue, 16 Aug 2016, Gary E. Miller wrote:
> I just pushed XCode fixes for OS X.  Some new errors, and old
> warnings are now gone.
>
> Last warning:
>
> gpsd.c:1997:6: warning: 'daemon' is deprecated: first deprecated in OS X 10.5 - Use posix_spawn APIs instead. [-Wdeprecated-declarations]
>         if (daemon(0, 0) != 0)
>             ^
> /usr/include/stdlib.h:267:6: note: 'daemon' has been explicitly marked deprecated here
> int      daemon(int, int) __DARWIN_1050(daemon) __OSX_AVAILABLE_BUT_DEPRECATED_MSG(__MAC_10_0, __MAC_10_5, __IPHONE_2_0, __IPHONE_2_0, "Use posix_spawn APIs instead.") __WATCHOS_PROHIBITED __TVOS_PROHIBITED;
>
> daemon() is about the only portable thing, and all OS seem to hate
> it.
>
> I'd like it is someone that knows XCode could fix that for OS X.

That's been on my list of things to fix for a while, though it hasn't been
a high priority.

I'm not sure about the "posix_spawn" aspect, but in general, daemons on
OSX are expected to run as children of launchd, rather than as detached
processes, and hence daemon() wouldn't be used.  So the basic idea is to
have a build option to disable the whole daemonization feature,
essentially with -N being implied (but keeping the option for command-line
compatibility).  Right now, I think OSX is the only OS where that build
option would be appropriate, but one could imagine other OSes moving to a
"managed daemon" approach at some point.

A related cleanup would be to arrange to have only one place in the source
that calls daemon().

Fred Wright


From MAILER-DAEMON Tue Aug 16 17:53:04 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZmIC-0002QE-Lb
	for mharc-gpsd-dev@gnu.org; Tue, 16 Aug 2016 17:53:04 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:36716)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bZmIA-0002My-6L
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 17:53:03 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bZmI6-000402-0P
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 17:53:01 -0400
Received: from c.mail.sonic.net ([64.142.111.80]:35614)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bZmI5-0003zu-NL
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 17:52:57 -0400
Received: from newshell.sonic.net (bolt.sonic.net [208.201.242.19])
	by c.mail.sonic.net (8.15.1/8.15.1) with ESMTPS id u7GLqrWL005436
	(version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <gpsd-dev@nongnu.org>; Tue, 16 Aug 2016 14:52:53 -0700
Received: from bolt.sonic.net (localhost.localdomain [127.0.0.1])
	by newshell.sonic.net (8.13.6/8.12.1) with ESMTP id u7GLqrsT019522
	for <gpsd-dev@nongnu.org>; Tue, 16 Aug 2016 14:52:53 -0700
Received: from localhost (fw@localhost)
	by bolt.sonic.net (8.13.6/8.12.1/Submit) with ESMTP id u7GLqre4019518
	for <gpsd-dev@nongnu.org>; Tue, 16 Aug 2016 14:52:53 -0700
X-Authentication-Warning: bolt.sonic.net: fw owned process doing -bs
Date: Tue, 16 Aug 2016 14:52:53 -0700 (PDT)
From: Fred Wright <fw@fwright.net>
X-X-Sender: fw@bolt.sonic.net
To: gpsd dev <gpsd-dev@nongnu.org>
In-Reply-To: <20160816140919.701d99a8@spidey.rellim.com>
Message-ID: <Pine.LNX.4.58L1X.1608161445260.11838@bolt.sonic.net>
References: <20160816140919.701d99a8@spidey.rellim.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sonic-CAuth: UmFuZG9tSVZogdHnRIzxDlLhmpRsy4iDA2RCsvjsWDzyrHpru2h4BeL+M7RX8tnrVl5HV1yp/thfM9UZGOCF8GCtX0Wp/15d
X-Sonic-ID: C;QMR3yPtj5hGcJ6Dx2xNB0g== M;QCWjyPtj5hGcJ6Dx2xNB0g==
X-Sonic-Spam-Details: -1.5/5.0 by cerberusd
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.142.111.80
Subject: Re: [gpsd-dev] 
 =?utf-8?q?=E2=9C=98Python_maidenhead_fails_on_XCode?=
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Aug 2016 21:53:03 -0000


On Tue, 16 Aug 2016, Gary E. Miller wrote:

> I got a Python failure in 'scons check' on XCode:
>
> Testing the Maidenhead Locator conversion...
> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python ./test_maidenhead.py >/dev/null
> maidenhead test: from 48.86471 2.37305 (Paris) expected JN18eu got JJ00aa
> maidenhead test: from 41.93498 12.43652 (Rome) expected JN61fw got JJ00aa
> maidenhead test: from 39.9771 -75.1685 (Philadelphia) expected FM29jx got JJ00aa
> maidenhead test: from -23.4028 -50.9766 (Sao Paulo) expected GG46mo got JJ00aa
> scons: *** [maidenhead-locator-regress] Error 1
>
> Not being a Python or maindenhead person, anyone have a clue?

I'm only marginally familiar with the maidenhead stuff, but I believe it's
something that maps lat/lon to some sort of location identifiers.  My
guess is that some calculations got screwed up (and note that all four of
the error cases are producing the same result).  There's probably too
much intermediate breakage to make "git bisect" useful, but one could
compare intermediate results between working and non-working cases.

Fred Wright


From MAILER-DAEMON Tue Aug 16 18:00:08 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZmP2-0003yZ-J7
	for mharc-gpsd-dev@gnu.org; Tue, 16 Aug 2016 18:00:08 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:38031)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <oh5nxo@gmail.com>) id 1bZmOz-0003wi-U0
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 18:00:06 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <oh5nxo@gmail.com>) id 1bZmOv-0005Oz-Pi
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 18:00:04 -0400
Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]:37372)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <oh5nxo@gmail.com>) id 1bZmOv-0005OO-Jw
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 18:00:01 -0400
Received: by mail-wm0-x232.google.com with SMTP id i5so196335782wmg.0
	for <gpsd-dev@nongnu.org>; Tue, 16 Aug 2016 15:00:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=date:from:cc:subject:message-id:in-reply-to:references:mime-version
	:content-transfer-encoding;
	bh=yDk1Oxu86yrm3XyllVEzfLxZ68uDbGDLj3p+tPqMNa8=;
	b=CuWv2JiR23t5RZeW9w6Ax/D03GVl98WLeXCa+dH4Yp3Fq1bbUPjeWGYYChYSNiN7ZN
	tbKEYeij0B+YLo/EWKmfCvx7/lNzTfO3HwfOeTccVcxe9RSsM87jQjAF0OV2UzQYHYgC
	G9/10hj9OWz/ixsHxoJKr6fGc2w1/qnbcpy+LsB7tACwQkm5sxCUjq0c8UivVSLoquFA
	WBC6KcjXw0Qa5iNfHm6yKyeuOu3OewgEBl3AYRwB0K86G8tQ51aYXFRoPN5JI5A8NGAq
	aMB5XkYk92eUmN4/M26Nq53BKff16588X/K5cBWfLEFYpkOJH0m2ApxD9/ISkSmrlRrc
	WRRg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20130820;
	h=x-gm-message-state:date:from:cc:subject:message-id:in-reply-to
	:references:mime-version:content-transfer-encoding;
	bh=yDk1Oxu86yrm3XyllVEzfLxZ68uDbGDLj3p+tPqMNa8=;
	b=fUuWWb/om8M/UuzNazu2tnnsQKa6DsvROrQLS/IPJqW9MzJFPOAJ10/Q4UeDEnGXtU
	vu2go2YEcvuxR01kdJz/9DXgjBohlx6qyBn5fzSKg0x5EpaOlwCuAvtRPMdSkJUdaUUz
	loEbi8GrDtoCqSIy6G9TQbw64hptzCJhyF3KDx4p0lYb9pZX8QRQEi8moHTI0DIIyowz
	TOv+NGFaRXomc1et+JkCZnqjxWIghSO0oKVtfTev+MCgVvtoBS4bKUD6KRtjFG5viYim
	7G5V5mpbnDugG5vC9tzmiR4vFSQmMA0BCwyK5dQEpGf8rO++2ZQOJkWNHbzm5DF7xVaB
	So4A==
X-Gm-Message-State: AEkoout0EdP2l+kdnUAfWIZkst7HG/3kAlq8hlBfX7paCSvHCZneYbFdvRRsxmPHRbPm5A==
X-Received: by 10.46.32.68 with SMTP id g65mr6498895ljg.51.1471384799933;
	Tue, 16 Aug 2016 14:59:59 -0700 (PDT)
Received: from hopo (85-76-96-12-nat.elisa-mobile.fi. [85.76.96.12])
	by smtp.gmail.com with ESMTPSA id 29sm4459739lfu.43.2016.08.16.14.59.58
	for <gpsd-dev@nongnu.org>
	(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
	Tue, 16 Aug 2016 14:59:59 -0700 (PDT)
Date: Wed, 17 Aug 2016 00:59:57 +0300
From: Juha Nurmela <oh5nxo@gmail.com>
Cc: gpsd dev <gpsd-dev@nongnu.org>
Message-Id: <20160817005957.ac6767a292e03c3ab76ee56c@gmail.com>
In-Reply-To: <Pine.LNX.4.58L1X.1608161445260.11838@bolt.sonic.net>
References: <20160816140919.701d99a8@spidey.rellim.com>
	<Pine.LNX.4.58L1X.1608161445260.11838@bolt.sonic.net>
X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.29; i386-portbld-freebsd10.1)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2a00:1450:400c:c09::232
Subject: Re: [gpsd-dev] =?iso-8859-1?q?=3FPython_maidenhead_fails_on_XCode?=
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Aug 2016 22:00:06 -0000


> On Tue, 16 Aug 2016, Gary E. Miller wrote:

> > maidenhead test: from -23.4028 -50.9766 (Sao Paulo) expected GG46mo got JJ00aa

JJ00AA is the MH gridsquare at latitude 0.0, longitude 0.0, middle of Atlantic Ocean.

Juha (@KP41bb)


From MAILER-DAEMON Tue Aug 16 18:01:48 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZmQe-0004B0-RM
	for mharc-gpsd-dev@gnu.org; Tue, 16 Aug 2016 18:01:48 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:38294)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZmQc-0004Ad-8Z
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 18:01:47 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZmQb-0005iw-6M
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 18:01:46 -0400
Received: from rellim.com ([2001:470:e815::19]:40756 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZmQa-0005hy-UR
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 18:01:45 -0400
Received: from spidey.rellim.com (dave.rellim.com
	[IPv6:2001:470:e815:0:0:0:0:19] (may be forged))
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u7GM1NC1006948
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Tue, 16 Aug 2016 15:01:28 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u7GM1NC1006948
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1471384888; bh=w+fc2WzvnBTwZLSoahip7P4QAXi/zwc8TAztpYmKMYI=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=EXF6i5CynBWN9vpnn/s+bdKACee96dwEasImEeyAUue6IzATja3pOEhGCj6xGzMD4
	snz2J7tsW5o7Siy/AlQMvXgmzY0d5v0Nah3IBSqe1Cnc+9pqF/BQA/GZBzmVU7yKMx
	pN/yzPx8yYio2nA8bzzVFnazytXLvzoiR2YlLcH8=
Date: Tue, 16 Aug 2016 15:01:22 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Hal Murray <hmurray@megapathdsl.net>
Cc: gpsd dev <gpsd-dev@nongnu.org>
Message-ID: <20160816150122.78b1a7fe@spidey.rellim.com>
In-Reply-To: <20160816214347.E442E406062@ip-64-139-1-69.sjc.megapath.net>
References: <20160816135906.62814817@spidey.rellim.com>
	<20160816214347.E442E406062@ip-64-139-1-69.sjc.megapath.net>
Organization: Rellim
X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/TLrtF7F0ayiXueS_E8fDejW";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Tue, 16 Aug 2016 15:01:28 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] =?utf-8?q?=E2=9C=98XCode_works_again?=
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Aug 2016 22:01:47 -0000

--Sig_/TLrtF7F0ayiXueS_E8fDejW
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Hal!

On Tue, 16 Aug 2016 14:43:47 -0700
Hal Murray <hmurray@megapathdsl.net> wrote:

> Still horribly messed up.
>=20
> timehint.c doesn't include time.h

For the comments, which function needs time.h?

> libgpsd_core.c:40:50: fatal error: alloca.h: No such file or directory
>  #include <alloca.h> /* for alloca(), not POSIX */
>=20
> On NetBSD, it's in
>   #include <stdlib.h>

Ah, if I set __USE_MISC, then glibc stdlib.h includes alloca.h.

I just pushed the above, for NetBSD should be good.

> On FreeBSD:

Do you have any idea what defines these need to get included?

These are similar to the XCode errors, they needed the secret code
to unlock.

> In file included from gpsd.c:54:
> ./sockaddr.h:7:25: error: field has incomplete type 'struct
> sockaddr_in6' struct sockaddr_in6 sa_in6;
>                         ^
> ./sockaddr.h:7:12: note: forward declaration of 'struct sockaddr_in6'
>     struct sockaddr_in6 sa_in6;
>            ^
> In file included from gpsd.c:57:
> ./strfuncs.h:28:12: warning: implicitly declaring library function=20
> 'vsnprintf' w
> ith type 'int (char *, unsigned int, const char *, __builtin_va_list)'
>     (void) vsnprintf(str + strlen(str), alloc_size - strlen(str),
> format, ap); ^
> ./strfuncs.h:28:12: note: please include the header <stdio.h> or
> explicitly prov
> ide a declaration for 'vsnprintf'
> gpsd.c:271:11: warning: implicitly declaring library function
> 'strlcpy' with typ
> e 'unsigned int (char *, const char *, unsigned int)'
>     (void)strlcpy(addr.sun_path, filename, sizeof(addr.sun_path));
>           ^
> gpsd.c:271:11: note: please include the header <string.h> or
> explicitly provide
> a declaration for 'strlcpy'
> gpsd.c:369:40: error: use of undeclared identifier 'INADDR_LOOPBACK'
>             sat.sa_in.sin_addr.s_addr =3D htonl(INADDR_LOOPBACK);
>                                               ^
> /usr/include/arpa/inet.h:170:26: note: expanded from macro 'htonl'
> #define htonl(x)        __htonl(x)
>                                 ^
> /usr/include/x86/endian.h:126:30: note: expanded from macro '__htonl'
> #define __htonl(x)      __bswap32(x)
>                                   ^
> /usr/include/x86/endian.h:77:24: note: expanded from macro '__bswap32'
>         (__builtin_constant_p(x) ?      \
>=20
>=20




RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/TLrtF7F0ayiXueS_E8fDejW
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXs40zAAoJEA0O2UlB0XnYQF0H/2PQezROXKCcbwwjP16YsibS
BA8FJXi0pUqR6ZPP5kTqbTSB1CIzROXGHH4mJkDriSXpWzpz11BzMRZDCARk50fE
eLPsV9krk1el9i0vMe/aHS0x8L1esnSLHpxDjBhZKGpkiszLXp1YplxpQ8p/1jjP
FbqGk/wu0j45WW0yIcJX6lXR5fXXfmOh5NNE3gcbwXiqOzDCeUk4StprctfTol5m
v8rK0+xrs7lGjmxE9a0yO7w9hlMPZMvyI+hcfncI5sJxugu2D9/8LPY8T1CAIkrM
wc3Nb5a/IENlsmcZZdFa7njclnyx3dbI3f/mMy8RANnusrndoI2Xcod8gId5e98=
=ozqD
-----END PGP SIGNATURE-----

--Sig_/TLrtF7F0ayiXueS_E8fDejW--


From MAILER-DAEMON Tue Aug 16 18:05:24 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZmU8-0004m8-Lg
	for mharc-gpsd-dev@gnu.org; Tue, 16 Aug 2016 18:05:24 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:38613)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZmU6-0004ly-If
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 18:05:23 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZmU4-0006Iq-Dk
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 18:05:21 -0400
Received: from rellim.com ([2001:470:e815::19]:54048 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZmU4-0006Il-6W
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 18:05:20 -0400
Received: from spidey.rellim.com (rellim.com [IPv6:2001:470:e815:0:0:0:0:19])
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u7GM5BQi008345
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Tue, 16 Aug 2016 15:05:17 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u7GM5BQi008345
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1471385117; bh=GzDr6mR+u9iI2yQIVV+dY1cGtUfufvYrBf73SErdZIs=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=nHixJKtSBwneEUVcoOOt0vDHyuvIOJiF8VjuDIySqjUmcRR7/TLBlFhojJZnE+cUI
	j+bRK1X4Kr+ifYWDjQPn8VPMOd3jYZdUdI4lRPhdRpCaknMOlzRF48GcJSzAqBH60o
	osaN58bg+2brgm5qE7wELM3Lff/o7VDqopZVet8Y=
Date: Tue, 16 Aug 2016 15:05:11 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Fred Wright <fw@fwright.net>
Cc: gpsd dev <gpsd-dev@nongnu.org>
Message-ID: <20160816150511.5f6965f5@spidey.rellim.com>
In-Reply-To: <Pine.LNX.4.58L1X.1608161445260.11838@bolt.sonic.net>
References: <20160816140919.701d99a8@spidey.rellim.com>
	<Pine.LNX.4.58L1X.1608161445260.11838@bolt.sonic.net>
Organization: Rellim
X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/1QvF8wcbCTvw7565tu6Qb2D";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Tue, 16 Aug 2016 15:05:17 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] 
 =?utf-8?q?=E2=9C=98Python_maidenhead_fails_on_XCode?=
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Aug 2016 22:05:23 -0000

--Sig_/1QvF8wcbCTvw7565tu6Qb2D
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Fred!

On Tue, 16 Aug 2016 14:52:53 -0700 (PDT)
Fred Wright <fw@fwright.net> wrote:

> On Tue, 16 Aug 2016, Gary E. Miller wrote:
>=20
> > I got a Python failure in 'scons check' on XCode:
> >
> > Testing the Maidenhead Locator conversion...
> > /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/P=
ython.app/Contents/MacOS/Python ./test_maidenhead.py
> > >/dev/null maidenhead test: from 48.86471 2.37305 (Paris) expected
> > >JN18eu got JJ00aa
> > maidenhead test: from 41.93498 12.43652 (Rome) expected JN61fw got
> > JJ00aa maidenhead test: from 39.9771 -75.1685 (Philadelphia)
> > expected FM29jx got JJ00aa maidenhead test: from -23.4028 -50.9766
> > (Sao Paulo) expected GG46mo got JJ00aa scons: ***
> > [maidenhead-locator-regress] Error 1
> >
> > Not being a Python or maindenhead person, anyone have a clue? =20
>=20
> I'm only marginally familiar with the maidenhead stuff, but I believe
> it's something that maps lat/lon to some sort of location
> identifiers.  My guess is that some calculations got screwed up (and
> note that all four of the error cases are producing the same
> result).  There's probably too much intermediate breakage to make
> "git bisect" useful, but one could compare intermediate results
> between working and non-working cases.

One line in gpsclient.d:

 static PyObject *
 gpsclient_maidenhead(PyObject *self UNUSED, PyObject *args)
 {
-    const double lat, lon;
+    const double lat =3D 0.0, lon =3D 0.0;

Very weird, Eric helped me narrow it down.  Adding an initializer, as
requested by compiler warning, breaks it.  And just on OS X.

Hmmm..


RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/1QvF8wcbCTvw7565tu6Qb2D
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXs44XAAoJEA0O2UlB0XnY+P0IAIODndk3JLDY+k3Y+40a/B30
OPqwBZAFFxhIg+kuXHNgwajgr893L+FCndK05ybbTSxkcjBpLs7lzEtMxH3JAu1O
A7YT3Hv/tk5f8eP46fqo7gCX9aZ+MYAiTrzPL6o2jhmGVArz08ZvH0vNttPah2Em
yAuGRQ8DXy9RuiYoS4y3PwWZgesiLIUeXXY96WlpFjP001OQkozrutGBKcAOQM3O
Gmy5bS3kWgX28ILFN6sa7QyTr3OIQh8qyWhALuJJ06vjmRr8Ck2O0o31iXN2Pq+A
Ik9nxSLTH3nLUJQ7TGVnCSjj+iVlGCW6Kiio7QYL9LltsmM25KhcIpPXWdIWgKE=
=t5d6
-----END PGP SIGNATURE-----

--Sig_/1QvF8wcbCTvw7565tu6Qb2D--


From MAILER-DAEMON Tue Aug 16 18:22:39 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZmkp-0007Zc-DF
	for mharc-gpsd-dev@gnu.org; Tue, 16 Aug 2016 18:22:39 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:40543)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bZmkn-0007ZO-JW
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 18:22:38 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bZmkh-0000AV-3J
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 18:22:36 -0400
Received: from ip-64-139-1-69.sjc.megapath.net ([64.139.1.69]:63619)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bZmkg-0000AQ-Rs
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 18:22:31 -0400
Received: from shuksan (localhost [127.0.0.1])
	by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id 60F6A406062; 
	Tue, 16 Aug 2016 15:22:29 -0700 (PDT)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: "Gary E. Miller" <gem@rellim.com>
cc: Hal Murray <hmurray@megapathdsl.net>,
	gpsd dev <gpsd-dev@nongnu.org>, hmurray@megapathdsl.net
From: Hal Murray <hmurray@megapathdsl.net>
In-Reply-To: Message from "Gary E. Miller" <gem@rellim.com> of "Tue,
	16 Aug 2016 15:01:22 PDT." <20160816150122.78b1a7fe@spidey.rellim.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Tue, 16 Aug 2016 15:22:29 -0700
Message-Id: <20160816222229.60F6A406062@ip-64-139-1-69.sjc.megapath.net>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.139.1.69
Subject: Re: [gpsd-dev] =?utf-8?q?=E2=9C=98XCode_works_again?=
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Aug 2016 22:22:38 -0000

> For the comments, which function needs time.h?

timespec


> Ah, if I set __USE_MISC, then glibc stdlib.h includes alloca.h.

The man pages on Fedora say
       #include <alloca.h>
NetBSD says:
      #include <stdlib.h>
So does FreeBSD


> Do you have any idea what defines these need to get included? 

Not really.  I think it's defined in /usr/include/netinet6/in6.h



-- 
These are my opinions.  I hate spam.





From MAILER-DAEMON Tue Aug 16 18:28:04 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZmq4-0000BB-4N
	for mharc-gpsd-dev@gnu.org; Tue, 16 Aug 2016 18:28:04 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:41518)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZmq1-0000B4-LB
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 18:28:02 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZmpz-0001Ac-LI
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 18:28:00 -0400
Received: from rellim.com ([2001:470:e815::19]:37972 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZmpz-0001AW-B5
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 18:27:59 -0400
Received: from spidey.rellim.com (dave.rellim.com
	[IPv6:2001:470:e815:0:0:0:0:19] (may be forged))
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u7GMRmUO017465
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Tue, 16 Aug 2016 15:27:54 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u7GMRmUO017465
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1471386474; bh=sZUOZNLpxMy2LvEQ9XRNq/Bvw14c4gJ4P74TnkbSoSI=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=f0q0yfba/TonMCCJ0dGis/swq0xs0JHb/pJDOYsTaDHpaDXQnsY9p7AVqzZ9xUO7u
	lapncJYGhCxMotUmR+5fNvwxtg6E0lyDvw3DhIh3mnB7Qm+yDwTEM3od+cNNKuuaOj
	TrPYQ7S/QC67d+o8aeMnl5GqFuV7LoMWcKFtoerQ=
Date: Tue, 16 Aug 2016 15:27:48 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Hal Murray <hmurray@megapathdsl.net>
Cc: gpsd dev <gpsd-dev@nongnu.org>
Message-ID: <20160816152748.34271cee@spidey.rellim.com>
In-Reply-To: <20160816222229.60F6A406062@ip-64-139-1-69.sjc.megapath.net>
References: <20160816150122.78b1a7fe@spidey.rellim.com>
	<20160816222229.60F6A406062@ip-64-139-1-69.sjc.megapath.net>
Organization: Rellim
X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/GszRxbiyqMMgsQW5td.h=8l";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Tue, 16 Aug 2016 15:27:54 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] =?utf-8?q?=E2=9C=98XCode_works_again?=
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Aug 2016 22:28:02 -0000

--Sig_/GszRxbiyqMMgsQW5td.h=8l
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Hal!

On Tue, 16 Aug 2016 15:22:29 -0700
Hal Murray <hmurray@megapathdsl.net> wrote:

> > For the comments, which function needs time.h? =20
>=20
> timespec

Thanks, added.

> > Ah, if I set __USE_MISC, then glibc stdlib.h includes alloca.h. =20
>=20
> The man pages on Fedora say
>        #include <alloca.h>
> NetBSD says:
>       #include <stdlib.h>
> So does FreeBSD

Does it work now?

> > Do you have any idea what defines these need to get included?  =20

I meant all of them...
=20
> Not really.  I think it's defined in /usr/include/netinet6/in6.h

I found the FreeBSD git:

https://github.com/freebsd/freebsd/blob/master/include/stdio.h

And in other news the XCode smoked out a real bug!  'const' was
applied to a variable that got changed, and only XCode respected
the 'const', and only when the 'const' was initialzed.

So give things another shot.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/GszRxbiyqMMgsQW5td.h=8l
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXs5NkAAoJEA0O2UlB0XnYnUEIAKW1W6B5EbOLmn+Zkb/dGb9+
/516OkF/ZCje9jxmoRVsfp8kbh5i/YHzF/MHpsbNsv8yllDMwDb2q0R0jbSKMXoo
86JSggcu8IM0FmjBsiTwENuTO2Kz4Wy+BEpzTMOH/UPlAKzADSyyGca1X2TRLHiE
Lzo2+eGcY2Q0ArX3Sgl6UarhgR0foDikNaNLxo8U6Ie9WG4M1E6dEefQBGiSTFJR
3S6YC4XsJI7ek5VdEr55XG2oXTM1yImkl+H04yUdpfj0VblpUyKHdvK25ygbqQsA
FGJWaov1x7dhNKWM5CZ2V/zcyR8mCLFZZKivgXrMnvr0epFkiK/m8kz6OnJ5mR8=
=mtkq
-----END PGP SIGNATURE-----

--Sig_/GszRxbiyqMMgsQW5td.h=8l--


From MAILER-DAEMON Tue Aug 16 18:54:43 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZnFr-0005Ex-75
	for mharc-gpsd-dev@gnu.org; Tue, 16 Aug 2016 18:54:43 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:45695)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bZnFo-0005Eq-GD
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 18:54:41 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bZnFi-0005o2-EP
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 18:54:39 -0400
Received: from ip-64-139-1-69.sjc.megapath.net ([64.139.1.69]:64547)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bZnFi-0005ny-5v
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 18:54:34 -0400
Received: from shuksan (localhost [127.0.0.1])
	by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id 941D4406062; 
	Tue, 16 Aug 2016 15:54:32 -0700 (PDT)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: "Gary E. Miller" <gem@rellim.com>
cc: Hal Murray <hmurray@megapathdsl.net>, gpsd-dev@nongnu.org
From: Hal Murray <hmurray@megapathdsl.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Date: Tue, 16 Aug 2016 15:54:32 -0700
Message-Id: <20160816225432.941D4406062@ip-64-139-1-69.sjc.megapath.net>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.139.1.69
Subject: [gpsd-dev] alloca
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Aug 2016 22:54:41 -0000


I'm not sure why you are using it.  It seems not well loved.

NetBSD says:
     o   The alloca() function is not part of any C standard and its use =
is
         not portable.  =5Bbut that is from 2012=5D

     o   The alloca() function is unsafe because it cannot ensure that th=
e
         pointer returned points to a valid and usable block of memory.  =
The
         allocation made may exceed the bounds of the stack, or even go
         further into other objects in memory, and alloca() cannot determ=
ine
         such an error.  For that all alloca() allocations should be boun=
ded
         and limited to a small size.

FreeBSD says:
     The alloca() function is machine and compiler dependent; its use is =
dis-
     couraged.

     The alloca() function is slightly unsafe because it cannot ensure th=
at
     the pointer returned points to a valid and usable block of memory.  =
The
     allocation made may exceed the bounds of the stack, or even go furth=
er
     into other objects in memory, and alloca() cannot determine such an
     error.  Avoid alloca() with large unbounded allocations.
=5BFrom 2006=5D

Fedora says:
       The  alloca()  function returns a pointer to the beginning of the =

allo=E2=80=90
       cated space.  If the allocation causes stack overflow, program beh=
avior
       is undefined.

       Normally, gcc(1) translates calls to alloca() with inlined code.  =
 This
       is  not done when either the -ansi, -std=3Dc89, -std=3Dc99, or the=
 -std=3Dc11
       option is given and the header <alloca.h> is not included.   Other=
wise,
       (without  an  -ansi  or -std=3Dc* option) the glibc version of <st=
dlib.h>
       includes <alloca.h> and that contains the lines:



--=20
These are my opinions.  I hate spam.





From MAILER-DAEMON Tue Aug 16 19:00:58 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZnLu-0006jY-Mi
	for mharc-gpsd-dev@gnu.org; Tue, 16 Aug 2016 19:00:58 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:46867)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZnLr-0006hH-Qa
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 19:00:56 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZnLp-0006si-Vo
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 19:00:54 -0400
Received: from rellim.com ([2001:470:e815::19]:41476 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZnLp-0006rO-LB
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 19:00:53 -0400
Received: from spidey.rellim.com (rellim.com [IPv6:2001:470:e815:0:0:0:0:19])
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u7GN0eJw028943
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Tue, 16 Aug 2016 16:00:45 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u7GN0eJw028943
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1471388445; bh=FUjNpY/Uh34Z2OgQOLNV0mHU1OGk+aXV1rrD206HaNk=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=D06ePHxcr4ovUPYrgMX9OS3J0XvYUiDxq/SoQLI05I9So6EYpR9jvNDHpz4KjE1tg
	3Fbed32gbMflTCMsVaF9ZnbnKi/SvrJMA50dNtU2ZsSrRgOeFBiwzrAkskmBLD7Hmf
	jkIPHwh9rCXQc4hrhzj7ofTB7GflK82Z6kiZei4o=
Date: Tue, 16 Aug 2016 16:00:40 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Hal Murray <hmurray@megapathdsl.net>
Cc: gpsd-dev@nongnu.org
Message-ID: <20160816160040.00d8f77d@spidey.rellim.com>
In-Reply-To: <20160816225432.941D4406062@ip-64-139-1-69.sjc.megapath.net>
References: <20160816225432.941D4406062@ip-64-139-1-69.sjc.megapath.net>
Organization: Rellim
X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/XN=WhSv1x=K+G.immJI7Whg";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Tue, 16 Aug 2016 16:00:45 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] alloca
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Aug 2016 23:00:56 -0000

--Sig_/XN=WhSv1x=K+G.immJI7Whg
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Hal!

On Tue, 16 Aug 2016 15:54:32 -0700
Hal Murray <hmurray@megapathdsl.net> wrote:

> I'm not sure why you are using it.  It seems not well loved.

I'll take a patch.  alloca() was already there from a long time ago.
For now I'm just trying to get things to build again.

But just between you and me, I really like alloca().  Dunno why it is
so hated.  With alloca() you can never forget the free() and it
is trivial to code into a library.

>       If the allocation causes stack overflow, program
> behavior is undefined.

Well, duh.  Anything on the stack can do that!

Otherwise, how are the errors going on your end?

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/XN=WhSv1x=K+G.immJI7Whg
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXs5sYAAoJEA0O2UlB0XnYHVoH/0zwVWJbvuHdZaTVBHodQyaz
ZEUM/nc87QM5AP1ruCXaX9O7O0eqHpvs2C8gRUAZ+aYK1rpHvwWD3d8kTTPSkWDh
pejvPO+tahc3s+HUMgr0AlRuFVYou2GhcM3gY9U+3nY0w6fS0Q/Kg+J3Z6CGbidP
waZp8poEt09//YzTQPFiQKT3tzAKD7YP3dtNWW8UhLGTE1srq90gxpisayUc+23C
AS6ASM8QVd8fdcnK5VoB/xu6pjVGOAbpt1m+G5ytO1u9OsZMdBYUiNySg0oE8Sdi
OF5YOofWgf899eDEl0iGBQfSnru+x2KKxGmWXq/WRpbkC7NKJswFPTOV8QfR5T4=
=oBvV
-----END PGP SIGNATURE-----

--Sig_/XN=WhSv1x=K+G.immJI7Whg--


From MAILER-DAEMON Tue Aug 16 19:31:18 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZnpG-00048s-NM
	for mharc-gpsd-dev@gnu.org; Tue, 16 Aug 2016 19:31:18 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:50205)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bZnpE-00048V-Ca
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 19:31:17 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bZnpA-0002wT-3j
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 19:31:15 -0400
Received: from ip-64-139-1-69.sjc.megapath.net ([64.139.1.69]:51053)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bZnp9-0002wO-MR
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 19:31:12 -0400
Received: from shuksan (localhost [127.0.0.1])
	by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id 0756B406062; 
	Tue, 16 Aug 2016 16:31:10 -0700 (PDT)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: "Gary E. Miller" <gem@rellim.com>
cc: Hal Murray <hmurray@megapathdsl.net>, gpsd-dev@nongnu.org,
	hmurray@megapathdsl.net
From: Hal Murray <hmurray@megapathdsl.net>
In-Reply-To: Message from "Gary E. Miller" <gem@rellim.com> of "Tue,
	16 Aug 2016 16:00:40 PDT." <20160816160040.00d8f77d@spidey.rellim.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Tue, 16 Aug 2016 16:31:09 -0700
Message-Id: <20160816233110.0756B406062@ip-64-139-1-69.sjc.megapath.net>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.139.1.69
Subject: Re: [gpsd-dev] alloca
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Aug 2016 23:31:17 -0000

> Otherwise, how are the errors going on your end?

Lots of warnings.  Errors on FreeBSD.  Maybe others.  It's still building.

FreeBSD:
./sockaddr.h:7:25: error: field has incomplete type 'struct sockaddr_in6'
    struct sockaddr_in6 sa_in6;
                        ^
./sockaddr.h:7:12: note: forward declaration of 'struct sockaddr_in6'
    struct sockaddr_in6 sa_in6;
           ^
In file included from gpsd.c:60:
./strfuncs.h:28:12: warning: implicitly declaring library function 
'vsnprintf' w
ith type 'int (char *, unsigned int, const char *, __builtin_va_list)'
    (void) vsnprintf(str + strlen(str), alloc_size - strlen(str), format, ap);
           ^
./strfuncs.h:28:12: note: please include the header <stdio.h> or explicitly 
prov
ide a declaration for 'vsnprintf'
gpsd.c:274:11: warning: implicitly declaring library function 'strlcpy' with 
typ
e 'unsigned int (char *, const char *, unsigned int)'
    (void)strlcpy(addr.sun_path, filename, sizeof(addr.sun_path));
          ^
gpsd.c:274:11: note: please include the header <string.h> or explicitly 
provide
a declaration for 'strlcpy'
gpsd.c:372:40: error: use of undeclared identifier 'INADDR_LOOPBACK'
            sat.sa_in.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
                                              ^
/usr/include/arpa/inet.h:170:26: note: expanded from macro 'htonl'
#define htonl(x)        __htonl(x)
                                ^
/usr/include/x86/endian.h:126:30: note: expanded from macro '__htonl'
...



Debian (not newest), and CentOS:
gpsd.c:2000:2: warning: implicit declaration of function 'daemon' 
[-Wimplicit-function-declaration]
gpsd.c:2116:2: warning: implicit declaration of function 'setgroups' 
[-Wimplicit-function-declaration]


NetBSD:

gpsd.c:274:5: warning: implicit declaration of function 'strlcpy'
gpsd.c:1086:6: warning: implicit declaration of function 'strlcat'
gpsd.c:2000:2: warning: implicit declaration of function 'daemon'
gpsd.c:2116:2: warning: implicit declaration of function 'setgroups'
gpsd_json.c:141:5: warning: implicit declaration of function 'strlcpy'
gpsd_json.c:225:5: warning: implicit declaration of function 'strlcat'
libgpsd_core.c:178:2: warning: implicit declaration of function 'strlcpy'
libgpsd_core.c:179:2: warning: implicit declaration of function 'strlcat'
libgpsd_core.c:234:2: warning: implicit declaration of function 'alloca'
libgpsd_core.c:234:14: warning: incompatible implicit declaration of built-in 
function 'alloca'
timespec_str.c:52:6: warning: implicit declaration of function 'llabs'
timespec_str.c:52:17: warning: incompatible implicit declaration of built-in 
function 'llabs'
driver_ais.c:1017:7: warning: implicit declaration of function 'strlcpy'
gpsctl.c:104:2: warning: implicit declaration of function 'strlcat'
gpsctl.c:166:5: warning: implicit declaration of function 'strlcpy'

FreeBSD:
./strfuncs.h:28:12: warning: implicitly declaring library function 
'vsnprintf' with type 'int (char *, unsigned int, const char *, 
__builtin_va_list)'
gpsd.c:274:11: warning: implicitly declaring library function 'strlcpy' with 
type 'unsigned int (char *, const char *, unsigned int)'
gpsd.c:1086:12: warning: implicitly declaring library function 'strlcat' with 
type 'unsigned int (char *, const char *, unsigned int)'
gpsd.c:1136:9: warning: implicitly declaring library function 'snprintf' with 
type 'int (char *, unsigned int, const char *, ...)'
gpsd.c:2000:6: warning: implicit declaration of function 'daemon' is invalid 
in C99 [-Wimplicit-function-declaration]
gpsd.c:2116:6: warning: implicit declaration of function 'setgroups' is 
invalid in C99 [-Wimplicit-function-declaration]


-- 
These are my opinions.  I hate spam.





From MAILER-DAEMON Tue Aug 16 19:38:07 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZnvr-0004zf-JA
	for mharc-gpsd-dev@gnu.org; Tue, 16 Aug 2016 19:38:07 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:50897)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZnvp-0004zN-MY
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 19:38:06 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZnvn-0003nu-9y
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 19:38:04 -0400
Received: from rellim.com ([2001:470:e815::19]:44468 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZnvm-0003nm-US
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 19:38:03 -0400
Received: from spidey.rellim.com (dave.rellim.com
	[IPv6:2001:470:e815:0:0:0:0:19] (may be forged))
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u7GNbokf009754
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Tue, 16 Aug 2016 16:37:55 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u7GNbokf009754
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1471390676; bh=aHPhehbCJZZBbbyFieAJX068jygLaOzgxad24CQIAsw=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=eH7bDgSlZkqXD8zIAEcDcU0Rk5SgjdGOihV31YWaqjH1eao/2yYnpZabatcES9yKI
	4cNQLbmRmpoLKnGnavLZroyyrh+Dpd1cJoBiDmlXIb3UccQu9b93K2y7IXsHow75Qz
	BX9VMN1I8XcoNlV3+Jn2r+1q8+R21WS7GPlbI7Q0=
Date: Tue, 16 Aug 2016 16:37:50 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Hal Murray <hmurray@megapathdsl.net>
Cc: gpsd-dev@nongnu.org
Message-ID: <20160816163750.22b8fc88@spidey.rellim.com>
In-Reply-To: <20160816233110.0756B406062@ip-64-139-1-69.sjc.megapath.net>
References: <20160816160040.00d8f77d@spidey.rellim.com>
	<20160816233110.0756B406062@ip-64-139-1-69.sjc.megapath.net>
Organization: Rellim
X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/othKf/nvbmUp//SaJuFj6Ox";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Tue, 16 Aug 2016 16:37:56 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] alloca
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Aug 2016 23:38:06 -0000

--Sig_/othKf/nvbmUp//SaJuFj6Ox
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Hal!

Thanks, a good list.  I recognize most of those are having been around a
long time (daemon(), strlcat(), etc..  The only one that worries me is
the llabs() one, but I'll work on them all after FreeBSD builds.  AKAIK,
FreeBSD is the only one to error out now.

I have a FreeBSD VM up now, but I am hopelessly clueless.  Progress will
be very slow...  Network not even up yet.

On Tue, 16 Aug 2016 16:31:09 -0700
Hal Murray <hmurray@megapathdsl.net> wrote:

> > Otherwise, how are the errors going on your end? =20
>=20
> Lots of warnings.  Errors on FreeBSD.  Maybe others.  It's still
> building.
>=20
> FreeBSD:
> ./sockaddr.h:7:25: error: field has incomplete type 'struct
> sockaddr_in6' struct sockaddr_in6 sa_in6;
>                         ^
> ./sockaddr.h:7:12: note: forward declaration of 'struct sockaddr_in6'
>     struct sockaddr_in6 sa_in6;
>            ^
> In file included from gpsd.c:60:
> ./strfuncs.h:28:12: warning: implicitly declaring library function=20
> 'vsnprintf' w
> ith type 'int (char *, unsigned int, const char *, __builtin_va_list)'
>     (void) vsnprintf(str + strlen(str), alloc_size - strlen(str),
> format, ap); ^
> ./strfuncs.h:28:12: note: please include the header <stdio.h> or
> explicitly prov
> ide a declaration for 'vsnprintf'
> gpsd.c:274:11: warning: implicitly declaring library function
> 'strlcpy' with typ
> e 'unsigned int (char *, const char *, unsigned int)'
>     (void)strlcpy(addr.sun_path, filename, sizeof(addr.sun_path));
>           ^
> gpsd.c:274:11: note: please include the header <string.h> or
> explicitly provide
> a declaration for 'strlcpy'
> gpsd.c:372:40: error: use of undeclared identifier 'INADDR_LOOPBACK'
>             sat.sa_in.sin_addr.s_addr =3D htonl(INADDR_LOOPBACK);
>                                               ^
> /usr/include/arpa/inet.h:170:26: note: expanded from macro 'htonl'
> #define htonl(x)        __htonl(x)
>                                 ^
> /usr/include/x86/endian.h:126:30: note: expanded from macro '__htonl'
> ...
>=20
>=20
>=20
> Debian (not newest), and CentOS:
> gpsd.c:2000:2: warning: implicit declaration of function 'daemon'=20
> [-Wimplicit-function-declaration]
> gpsd.c:2116:2: warning: implicit declaration of function 'setgroups'=20
> [-Wimplicit-function-declaration]
>=20
>=20
> NetBSD:
>=20
> gpsd.c:274:5: warning: implicit declaration of function 'strlcpy'
> gpsd.c:1086:6: warning: implicit declaration of function 'strlcat'
> gpsd.c:2000:2: warning: implicit declaration of function 'daemon'
> gpsd.c:2116:2: warning: implicit declaration of function 'setgroups'
> gpsd_json.c:141:5: warning: implicit declaration of function 'strlcpy'
> gpsd_json.c:225:5: warning: implicit declaration of function 'strlcat'
> libgpsd_core.c:178:2: warning: implicit declaration of function
> 'strlcpy' libgpsd_core.c:179:2: warning: implicit declaration of
> function 'strlcat' libgpsd_core.c:234:2: warning: implicit
> declaration of function 'alloca' libgpsd_core.c:234:14: warning:
> incompatible implicit declaration of built-in function 'alloca'
> timespec_str.c:52:6: warning: implicit declaration of function 'llabs'
> timespec_str.c:52:17: warning: incompatible implicit declaration of
> built-in function 'llabs'
> driver_ais.c:1017:7: warning: implicit declaration of function
> 'strlcpy' gpsctl.c:104:2: warning: implicit declaration of function
> 'strlcat' gpsctl.c:166:5: warning: implicit declaration of function
> 'strlcpy'
>=20
> FreeBSD:
> ./strfuncs.h:28:12: warning: implicitly declaring library function=20
> 'vsnprintf' with type 'int (char *, unsigned int, const char *,=20
> __builtin_va_list)'
> gpsd.c:274:11: warning: implicitly declaring library function
> 'strlcpy' with type 'unsigned int (char *, const char *, unsigned
> int)' gpsd.c:1086:12: warning: implicitly declaring library function
> 'strlcat' with type 'unsigned int (char *, const char *, unsigned
> int)' gpsd.c:1136:9: warning: implicitly declaring library function
> 'snprintf' with type 'int (char *, unsigned int, const char *, ...)'
> gpsd.c:2000:6: warning: implicit declaration of function 'daemon' is
> invalid in C99 [-Wimplicit-function-declaration]
> gpsd.c:2116:6: warning: implicit declaration of function 'setgroups'
> is invalid in C99 [-Wimplicit-function-declaration]
>=20
>=20




RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/othKf/nvbmUp//SaJuFj6Ox
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXs6POAAoJEA0O2UlB0XnYri8IALDTRQUyZi8AO6ZLNYO+0QPo
170mhMOgzcySR3Y7bdddBqsqUFfvDvegsSKQ8RjAWoUFiMYH6f+jw4oueSJm8Ux7
nPh0OCDeq+JhB/CNxeKIqdnUubCnCd9JO7tHzzSHp9OonF04j/wwgTf2y6CBlvgz
mSgs0ZR2vUcMqKGmacuG+6+37ydLXPh0MisJFLIG1HEZ87Hd8OOk/0tGc6hi6R5+
OyAwZWlBk0ibcVFafMmcKJ1rQpWmKi50pu6tFoFEfqUBmhzxRTb33Cedx9ksWpbq
kSkqFn6q+4+f+3PyE7RAXB9xTPsykB55e+8tUDM6suC7rt+4CtZnZqH6Kp44V1o=
=ZjnD
-----END PGP SIGNATURE-----

--Sig_/othKf/nvbmUp//SaJuFj6Ox--


From MAILER-DAEMON Tue Aug 16 20:01:20 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZoIK-0000hY-1x
	for mharc-gpsd-dev@gnu.org; Tue, 16 Aug 2016 20:01:20 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:53626)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bZoII-0000hR-8F
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 20:01:19 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bZoID-0007Qi-9t
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 20:01:17 -0400
Received: from ip-64-139-1-69.sjc.megapath.net ([64.139.1.69]:52063)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bZoID-0007Qa-36
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 20:01:13 -0400
Received: from shuksan (localhost [127.0.0.1])
	by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id 46A51406062; 
	Tue, 16 Aug 2016 17:01:11 -0700 (PDT)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: "Gary E. Miller" <gem@rellim.com>
cc: Hal Murray <hmurray@megapathdsl.net>, gpsd-dev@nongnu.org
From: Hal Murray <hmurray@megapathdsl.net>
In-Reply-To: Message from "Gary E. Miller" <gem@rellim.com> of "Tue,
	16 Aug 2016 16:37:50 PDT." <20160816163750.22b8fc88@spidey.rellim.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Tue, 16 Aug 2016 17:01:11 -0700
Message-Id: <20160817000111.46A51406062@ip-64-139-1-69.sjc.megapath.net>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.139.1.69
Subject: Re: [gpsd-dev] alloca
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 17 Aug 2016 00:01:19 -0000


gem@rellim.com said:
> I have a FreeBSD VM up now, but I am hopelessly clueless.  Progress will be
> very slow...  Network not even up yet. 

When the current mess winds down, somebody who understands that stuff should 
write up a web page on how to write clean, portable code.

An ancillary web page would be notes on how to setup an OS so it can be used 
to build/run/test your favorite package.


-- 
These are my opinions.  I hate spam.





From MAILER-DAEMON Tue Aug 16 20:18:40 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZoZ6-0004PZ-Kr
	for mharc-gpsd-dev@gnu.org; Tue, 16 Aug 2016 20:18:40 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:55803)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZoZ4-0004Nz-DF
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 20:18:39 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZoZ2-0001YN-8t
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 20:18:37 -0400
Received: from rellim.com ([2001:470:e815::19]:49735 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZoZ2-0001WT-0N
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 20:18:36 -0400
Received: from spidey.rellim.com (rellim.com [IPv6:2001:470:e815:0:0:0:0:19])
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u7H0IMSX023358
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Tue, 16 Aug 2016 17:18:27 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u7H0IMSX023358
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1471393109; bh=WZa/+WfIiKKtSEs3TTpbAz/H7scQu18A6lZQMiKkiv4=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=k+toqsG+K60nvaY8k2G2IF4RXDimihCXaziSh/w4/jkGgAEH77Uz5KrloWc3EX6QQ
	7XoVzBSAGPuWOLLsChn9+Ug/5bjzF34poOjSckxs2KwKZyDaLfKK31rPl06bew4ly9
	DWbKzgkVyb2uMuR3Bbc9vdG2A/si+bWfOhZdRS6g=
Date: Tue, 16 Aug 2016 17:18:22 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Hal Murray <hmurray@megapathdsl.net>
Cc: gpsd-dev@nongnu.org
Message-ID: <20160816171822.489b8fa9@spidey.rellim.com>
In-Reply-To: <20160817000111.46A51406062@ip-64-139-1-69.sjc.megapath.net>
References: <20160816163750.22b8fc88@spidey.rellim.com>
	<20160817000111.46A51406062@ip-64-139-1-69.sjc.megapath.net>
Organization: Rellim
X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/hJYVhQehRW8LRobnKuh=+tC";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Tue, 16 Aug 2016 17:18:29 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] alloca
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 17 Aug 2016 00:18:39 -0000

--Sig_/hJYVhQehRW8LRobnKuh=+tC
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Hal!

On Tue, 16 Aug 2016 17:01:11 -0700
Hal Murray <hmurray@megapathdsl.net> wrote:

> gem@rellim.com said:
> > I have a FreeBSD VM up now, but I am hopelessly clueless.  Progress
> > will be very slow...  Network not even up yet.  =20
>=20
> When the current mess winds down, somebody who understands that stuff
> should write up a web page on how to write clean, portable code.

Sadly, I have just been reading FreeBSD notes from their devs claiming
it is just not possible in FreeBSD.  I relearning why I hate FreeBSD.

> An ancillary web page would be notes on how to setup an OS so it can
> be used to build/run/test your favorite package.

Yeah, with just email addresses on it.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/hJYVhQehRW8LRobnKuh=+tC
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXs61OAAoJEA0O2UlB0XnYHlAIAImxE7NYgnCAO8XhNnA7DmLu
nd/qvC08wFqKUxxRULB0NiJD/IAC2dyuosK3xYaor7jSrjM3r6MUIzARBqzXwbHk
OUIJ+wOasSDOl7oVVVNPHVqmzxsflxpB/VUKTusKxU4bKdeKNgunuJ0kSfuiU2fq
TWhGtTqi0Iu6K1cdF7W+p/aMZwFwojArQjGh059qzax8DX0jEO1MFEufHgaLo1+8
klgNbdFOs2K8pBFKo/3M+pVNeReAjogVaf8rkhJxeZEAO+YcHMmyKJq0ORRifPLn
MGgw3iLBYlkwADBHIRSmFx9iqc/L9kb/ijpcx/bePNHoSQ0FacVvipejBBUMUgg=
=vbXV
-----END PGP SIGNATURE-----

--Sig_/hJYVhQehRW8LRobnKuh=+tC--


From MAILER-DAEMON Tue Aug 16 20:28:30 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZoib-00061I-VA
	for mharc-gpsd-dev@gnu.org; Tue, 16 Aug 2016 20:28:29 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:58565)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZoia-0005zf-EC
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 20:28:29 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZoiY-0003Zw-Iv
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 20:28:27 -0400
Received: from rellim.com ([2001:470:e815::19]:39701 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZoiY-0003Zr-BK
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 20:28:26 -0400
Received: from spidey.rellim.com (rellim.com [IPv6:2001:470:e815:0:0:0:0:19])
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u7H0SGbs026469
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Tue, 16 Aug 2016 17:28:21 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u7H0SGbs026469
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1471393701; bh=nEaDjy7xSQZ2PEcucgCEi/gIfO6IKqJYwJHANOiXDrY=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=WEemKs4xQnUoHhKsDwx0ZhpYun5bN6X0FxlRoWTj2NY2sdGNc2zM87bpGZPcy0F7b
	mt9LkvxEhfdDGUfV9jYW5kbMQqvfkezaJsX2UhPiEx+E8/X0XZINU+GcIevq4IxH2h
	YRR8pqy28ETIVS4tYb67/5104nsT90jcnqECgwMs=
Date: Tue, 16 Aug 2016 17:28:15 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Hal Murray <hmurray@megapathdsl.net>
Cc: gpsd-dev@nongnu.org
Message-ID: <20160816172815.50b1a378@spidey.rellim.com>
In-Reply-To: <20160816171822.489b8fa9@spidey.rellim.com>
References: <20160816163750.22b8fc88@spidey.rellim.com>
	<20160817000111.46A51406062@ip-64-139-1-69.sjc.megapath.net>
	<20160816171822.489b8fa9@spidey.rellim.com>
Organization: Rellim
X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/XpkB=Vz46Cu3f9FBo8wZc+7";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Tue, 16 Aug 2016 17:28:21 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] alloca
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 17 Aug 2016 00:28:29 -0000

--Sig_/XpkB=Vz46Cu3f9FBo8wZc+7
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Hal!

> > When the current mess winds down, somebody who understands that
> > stuff should write up a web page on how to write clean, portable
> > code. =20
>=20
> Sadly, I have just been reading FreeBSD notes from their devs claiming
> it is just not possible in FreeBSD.  I relearning why I hate FreeBSD.

The smoking gun is in <sys/cdefs.h>.  Near the bottom.  It is NOT
possible to ask for ANY level of standards (XOPEN, POSIX, C) and still
get the BSD functions.

Mutually exclusive.

All other OS let you get BSD and XOPEN/POSIX/C, but only FreeBSD says their
way or bust.  Even NetBSD and others let you have BSD + XOPEN + POSIX

I gotta think about this one overnight.  Makes me want to rip out
every BSD function there is.

Unless there is a handy #ifdef I can use to detect FreeBSD OS before
including any header files.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/XpkB=Vz46Cu3f9FBo8wZc+7
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXs6+gAAoJEA0O2UlB0XnYb78H/i0ElbwkOgXehjMTkOz0jX+C
dZgBlff/QIlAHUaBy5v/MuZo7LYwMZ3FvSj6+0S/fiHNWZhP4C96LQrz+ovdj0WO
TioLuiSagVmFjaNq01RWy5+9clQjBEYDJkhK9rxoZbIP7VPpWYmLDkkUPfyy2pH+
mc3mhWyHFlakEI63moCw5O4r4/2nZ+g4qq5gRSyClujXP/oaEjqJucncEe6/0DNK
WMmoBe7xK+1BQ8LS9eNirmueHzqdYlofUj8c4ThTZz23sPLnKVzN6WjRq5sJSc6p
/cmnK3SM4/aW8KhrYAn3eHtSnh+PvPKoXRKaMjo4878eVLCdO37JAoPZbI83zL4=
=TvuV
-----END PGP SIGNATURE-----

--Sig_/XpkB=Vz46Cu3f9FBo8wZc+7--


From MAILER-DAEMON Tue Aug 16 20:46:32 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZp04-00085Y-Ja
	for mharc-gpsd-dev@gnu.org; Tue, 16 Aug 2016 20:46:32 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:60792)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <frank@nicholasfamilycentral.com>) id 1bZp01-00085M-SJ
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 20:46:30 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <frank@nicholasfamilycentral.com>) id 1bZozz-0006TK-J3
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 20:46:28 -0400
Received: from mail-it0-x22f.google.com ([2607:f8b0:4001:c0b::22f]:33678)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <frank@nicholasfamilycentral.com>) id 1bZozz-0006TG-AN
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 20:46:27 -0400
Received: by mail-it0-x22f.google.com with SMTP id f6so14114040ith.0
	for <gpsd-dev@nongnu.org>; Tue, 16 Aug 2016 17:46:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=nicholasfamilycentral-com.20150623.gappssmtp.com; s=20150623;
	h=mime-version:subject:from:in-reply-to:date:cc:message-id:references
	:to; bh=ZrIe9iZEt97yFqfptJ/n90GOmJiF0supk9+9g2JD23k=;
	b=A+7mxl3I10Wyj8htU8VbVF1jZ3FEYACHlU6PjnnWWEtNRk430O/6rAVjnM2cMAeR6x
	RQ5Bk4MnL0HClSWOzGnYpv40qPg+HSRd6o+/zSxFtKIYVtEEKhfOOMZ+IApqNyx1ieYA
	FNHsNbR0vtoKq0ElEI/oeO6GUBzxwp2MAZXs7+CJROaaDQnJvK4usijT0WdUpYvRQTjQ
	LhPm6juVf1a/N0DfCMqnFL7cK67kTD0MTOXMvwnUXW2qzhzyknzgck0/DJ2z0F8TD2pb
	tkc87mMOvedwYQzBo2C98lw99NAK5ZnVflZYz9InRzNjY4ZfqskvAHdZYXu5FdmlF0KQ
	z3yw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20130820;
	h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc
	:message-id:references:to;
	bh=ZrIe9iZEt97yFqfptJ/n90GOmJiF0supk9+9g2JD23k=;
	b=kVBtkAa42Q8yVVtS7z2Hccf4cMgCDKA/6DtngdENu7WX4zIj+QdPCQiZniCQhpnFH0
	7qx9IFG2d5hzuHyohlULKJrsIAl0j0dCL6YyZZhaLOzTy5aOSh9gVa5omPmCtW+TXzLD
	ycPqWsM/qOfzijK9e6YdWnLnjN23yG2MLhsScEUvHtQdSkbxZTdpEBF/YlinwEKbijJa
	VDym+9bBBhy9WE/0Y2uoEM3hNeuVbvRUSlMlkm31wjMzC0dMXLTc0ftrdf1WIb0X0m4+
	glM12YDV1HEOSyuAXA4oJg9F4ZkvxVVjJKfzBylOEmaIoDMhg531HoIAyjCSmQQZCXpo
	NZeQ==
X-Gm-Message-State: AEkoousJCjdeGVLFkH9O9r3fTDN+GL3fWtJlxwi6c4ZafZZXnjYA77WJt0Yk18lpOX08Pg==
X-Received: by 10.36.115.200 with SMTP id y191mr25201414itb.3.1471394786013;
	Tue, 16 Aug 2016 17:46:26 -0700 (PDT)
Received: from ?IPv6:2601:801:4003:2873:9d40:b36a:7053:924b?
	([2601:801:4003:2873:9d40:b36a:7053:924b])
	by smtp.gmail.com with ESMTPSA id 69sm10726221itf.6.2016.08.16.17.46.24
	(version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128);
	Tue, 16 Aug 2016 17:46:25 -0700 (PDT)
Content-Type: multipart/signed;
	boundary="Apple-Mail=_C77F5A90-6C5E-4420-9E80-D49D8D4B7304";
	protocol="application/pkcs7-signature"; micalg=sha1
Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\))
From: Frank Nicholas <frank@nicholasfamilycentral.com>
In-Reply-To: <20160816150511.5f6965f5@spidey.rellim.com>
Date: Tue, 16 Aug 2016 20:46:24 -0400
Cc: Fred Wright <fw@fwright.net>,
 gpsd dev <gpsd-dev@nongnu.org>
Message-Id: <B87BB8E5-BA66-4EF5-B8C9-543730AA5F19@nicholasfamilycentral.com>
References: <20160816140919.701d99a8@spidey.rellim.com>
	<Pine.LNX.4.58L1X.1608161445260.11838@bolt.sonic.net>
	<20160816150511.5f6965f5@spidey.rellim.com>
To: "Gary E. Miller" <gem@rellim.com>
X-Mailer: Apple Mail (2.3124)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2607:f8b0:4001:c0b::22f
Subject: Re: [gpsd-dev] 
 =?utf-8?q?=E2=9C=98Python_maidenhead_fails_on_XCode?=
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 17 Aug 2016 00:46:31 -0000


--Apple-Mail=_C77F5A90-6C5E-4420-9E80-D49D8D4B7304
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_CD4A59C0-AFFE-4AF4-B9D6-CC97F2D472E0"


--Apple-Mail=_CD4A59C0-AFFE-4AF4-B9D6-CC97F2D472E0
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8


> On Aug 16, 2016, at 6:05 PM, Gary E. Miller <gem@rellim.com> wrote:
>=20
> One line in gpsclient.d:
>=20
> static PyObject *
> gpsclient_maidenhead(PyObject *self UNUSED, PyObject *args)
> {
> -    const double lat, lon;
> +    const double lat =3D 0.0, lon =3D 0.0;
>=20
> Very weird, Eric helped me narrow it down.  Adding an initializer, as
> requested by compiler warning, breaks it.  And just on OS X.
>=20
> Hmmm..
>=20

Did you revert the code, or change something in current git head to fix =
it?  I just did a =E2=80=98git clone=E2=80=99 & =E2=80=98scons -j24 =
check=E2=80=99 and it was successful.=

--Apple-Mail=_CD4A59C0-AFFE-4AF4-B9D6-CC97F2D472E0
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><br class=3D""><div><blockquote type=3D"cite" class=3D""><div =
class=3D"">On Aug 16, 2016, at 6:05 PM, Gary E. Miller &lt;<a =
href=3D"mailto:gem@rellim.com" class=3D"">gem@rellim.com</a>&gt; =
wrote:</div><br class=3D"Apple-interchange-newline"><div class=3D""><span =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; float: none; display: inline =
!important;" class=3D"">One line in gpsclient.d:</span><br =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px;" class=3D""><br style=3D"font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; orphans: auto; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: =
0px;" class=3D""><span style=3D"font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant-caps: normal; font-weight: normal; =
letter-spacing: normal; orphans: auto; text-align: start; text-indent: =
0px; text-transform: none; white-space: normal; widows: auto; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: =
inline !important;" class=3D"">static PyObject *</span><br =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px;" class=3D""><span style=3D"font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; orphans: auto; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
float: none; display: inline !important;" =
class=3D"">gpsclient_maidenhead(PyObject *self UNUSED, PyObject =
*args)</span><br style=3D"font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant-caps: normal; font-weight: normal; =
letter-spacing: normal; orphans: auto; text-align: start; text-indent: =
0px; text-transform: none; white-space: normal; widows: auto; =
word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=3D""><span =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; float: none; display: inline =
!important;" class=3D"">{</span><br style=3D"font-family: Helvetica; =
font-size: 12px; font-style: normal; font-variant-caps: normal; =
font-weight: normal; letter-spacing: normal; orphans: auto; text-align: =
start; text-indent: 0px; text-transform: none; white-space: normal; =
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" =
class=3D""><span style=3D"font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant-caps: normal; font-weight: normal; =
letter-spacing: normal; orphans: auto; text-align: start; text-indent: =
0px; text-transform: none; white-space: normal; widows: auto; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: =
inline !important;" class=3D"">- &nbsp;&nbsp;&nbsp;const double lat, =
lon;</span><br style=3D"font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant-caps: normal; font-weight: normal; =
letter-spacing: normal; orphans: auto; text-align: start; text-indent: =
0px; text-transform: none; white-space: normal; widows: auto; =
word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=3D""><span =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; float: none; display: inline =
!important;" class=3D"">+ &nbsp;&nbsp;&nbsp;const double lat =3D 0.0, =
lon =3D 0.0;</span><br style=3D"font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant-caps: normal; font-weight: normal; =
letter-spacing: normal; orphans: auto; text-align: start; text-indent: =
0px; text-transform: none; white-space: normal; widows: auto; =
word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=3D""><br =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px;" class=3D""><span style=3D"font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; orphans: auto; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
float: none; display: inline !important;" class=3D"">Very weird, Eric =
helped me narrow it down. &nbsp;Adding an initializer, as</span><br =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px;" class=3D""><span style=3D"font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; orphans: auto; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
float: none; display: inline !important;" class=3D"">requested by =
compiler warning, breaks it. &nbsp;And just on OS X.</span><br =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px;" class=3D""><br style=3D"font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; orphans: auto; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: =
0px;" class=3D""><span style=3D"font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant-caps: normal; font-weight: normal; =
letter-spacing: normal; orphans: auto; text-align: start; text-indent: =
0px; text-transform: none; white-space: normal; widows: auto; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: =
inline !important;" class=3D"">Hmmm..</span><br style=3D"font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; orphans: auto; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: =
0px;" class=3D""><br style=3D"font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant-caps: normal; font-weight: normal; =
letter-spacing: normal; orphans: auto; text-align: start; text-indent: =
0px; text-transform: none; white-space: normal; widows: auto; =
word-spacing: 0px; -webkit-text-stroke-width: 0px;" =
class=3D""></div></blockquote></div><br class=3D""><div class=3D"">Did =
you revert the code, or change something in current git head to fix it? =
&nbsp;I just did a =E2=80=98git clone=E2=80=99 &amp; =E2=80=98scons -j24 =
check=E2=80=99 and it was successful.</div></body></html>=

--Apple-Mail=_CD4A59C0-AFFE-4AF4-B9D6-CC97F2D472E0--

--Apple-Mail=_C77F5A90-6C5E-4420-9E80-D49D8D4B7304
Content-Disposition: attachment;
	filename=smime.p7s
Content-Type: application/pkcs7-signature;
	name=smime.p7s
Content-Transfer-Encoding: base64

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIILMTCCBUcw
ggQvoAMCAQICECWoG851LwZ2at3t1gpxgUYwDQYJKoZIhvcNAQELBQAwdTELMAkGA1UEBhMCSUwx
FjAUBgNVBAoTDVN0YXJ0Q29tIEx0ZC4xKTAnBgNVBAsTIFN0YXJ0Q29tIENlcnRpZmljYXRpb24g
QXV0aG9yaXR5MSMwIQYDVQQDExpTdGFydENvbSBDbGFzcyAxIENsaWVudCBDQTAeFw0xNjA3MDEx
MzQ5MjVaFw0xOTEwMDExMzQ5MjVaMIGCMSYwJAYDVQQNDB1Gb3IgbG9naW4gYXV0aGVudGljYXRp
b24gb25seTEoMCYGA1UEAwwfZnJhbmtAbmljaG9sYXNmYW1pbHljZW50cmFsLmNvbTEuMCwGCSqG
SIb3DQEJARYfZnJhbmtAbmljaG9sYXNmYW1pbHljZW50cmFsLmNvbTCCASIwDQYJKoZIhvcNAQEB
BQADggEPADCCAQoCggEBALtGc4+XIioqb7pIbDUP+zVyCYc2tHcxacpnd7RAecxm+qp5vG/nExWf
jnKf/HTfPzJMCANpPqYobb7A4sR9Spp+IAVCQ1LEA+QBjse5NInSgxvwVXlAidCf6yjFH3G9dfNG
u2177oTIHY4MH4Ls8kVtIuFpd1Y2mwAJL0eeyiryJr8hiWLF3AdiK1XAUiiwUAUK4r5rpsclAcf8
OCW0KiT55TUy8am2ABCqAeZeiwGgeYDY3LPGLCUPUoJogQaeaNhmeQHxI3g+Y/zG4oyRV2Dyl01V
V1PgutR0GwHcf4mafpHi326F/nyNBIx2OL291mYuE71bgPfFygLAzK5/qWcCAwEAAaOCAcMwggG/
MA4GA1UdDwEB/wQEAwIEsDAdBgNVHSUEFjAUBggrBgEFBQcDAgYIKwYBBQUHAwQwCQYDVR0TBAIw
ADAdBgNVHQ4EFgQUz1mjkrVtljUuKdNuB+CtWO6/OvgwHwYDVR0jBBgwFoAUJIFsOWG+SQ+PtxtG
K8kotSdIbWgwbwYIKwYBBQUHAQEEYzBhMCQGCCsGAQUFBzABhhhodHRwOi8vb2NzcC5zdGFydHNz
bC5jb20wOQYIKwYBBQUHMAKGLWh0dHA6Ly9haWEuc3RhcnRzc2wuY29tL2NlcnRzL3NjYS5jbGll
bnQxLmNydDA4BgNVHR8EMTAvMC2gK6AphidodHRwOi8vY3JsLnN0YXJ0c3NsLmNvbS9zY2EtY2xp
ZW50MS5jcmwwKgYDVR0RBCMwIYEfZnJhbmtAbmljaG9sYXNmYW1pbHljZW50cmFsLmNvbTAjBgNV
HRIEHDAahhhodHRwOi8vd3d3LnN0YXJ0c3NsLmNvbS8wRwYDVR0gBEAwPjA8BgsrBgEEAYG1NwEC
BTAtMCsGCCsGAQUFBwIBFh9odHRwczovL3d3dy5zdGFydHNzbC5jb20vcG9saWN5MA0GCSqGSIb3
DQEBCwUAA4IBAQAQAcXQKbjO+QQrg+An7XkQK9937B1qWJtkggun6fiwzuIrQTTlrWc1kgbAUhaC
qu4nczVADthm1iO0bNl8Ds9uz1UZqQ/wRkB9FoDgCVXFghOaTXIwppMgizYWfw+bp1lVplONT2+J
g3/NeahcvnykDpNm3AzdOCcU9+hfrCYRWLbi0K52aGi4EWsFiM7z17RROcpqwHogSntfHHa6JBEp
F3dW0mCv6ntmB36upU1v9ku76Pf191VAtVWKmQwQ9BXpv9EUH3PsuaHvXQaLo/tpaXOsFXv4LyjX
Ia71+i9vBntyeu7xHDtaOKdBh2tzQlyvliPo7ei/dqW4k207OPMqMIIF4jCCA8qgAwIBAgIQa6eK
fQrXiNZRCvlZ5Oe04TANBgkqhkiG9w0BAQsFADB9MQswCQYDVQQGEwJJTDEWMBQGA1UEChMNU3Rh
cnRDb20gTHRkLjErMCkGA1UECxMiU2VjdXJlIERpZ2l0YWwgQ2VydGlmaWNhdGUgU2lnbmluZzEp
MCcGA1UEAxMgU3RhcnRDb20gQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMTUxMjE2MDEwMDA1
WhcNMzAxMjE2MDEwMDA1WjB1MQswCQYDVQQGEwJJTDEWMBQGA1UEChMNU3RhcnRDb20gTHRkLjEp
MCcGA1UECxMgU3RhcnRDb20gQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkxIzAhBgNVBAMTGlN0YXJ0
Q29tIENsYXNzIDEgQ2xpZW50IENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvX3a
98OifYP2W4L921tfrh4bdcC1Ga+YJKy7V3nYNewJHnzMlBsK0Hb8Dm4Wo3FZpylcYa1MJGT10QMG
WaLER3xCIuRR+8eklf/EqeZWRLojJ7zBRtjMywPOCelrOU+DX12dKp+Ez4J6919rz1UudTO1GvZy
CYJ/I7062uHsskM8b7gPxmcCoO1UHwwpgkvpCArJWGFoFzjLdsZbErJcS3HtAhlkbE/BKTMrdYg3
5Uo12SLBO5tbk8h2imbKTC8iMs+pskrvI/AVlh6QoTTXk6xboVX6zgMgzxSVVLymQiygYYm0y5aM
svi2raFhC643SOGvErWWPPnSEfbeAD1xswIDAQABo4IBZDCCAWAwDgYDVR0PAQH/BAQDAgEGMB0G
A1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDBDASBgNVHRMBAf8ECDAGAQH/AgEAMDIGA1UdHwQr
MCkwJ6AloCOGIWh0dHA6Ly9jcmwuc3RhcnRzc2wuY29tL3Nmc2NhLmNybDBmBggrBgEFBQcBAQRa
MFgwJAYIKwYBBQUHMAGGGGh0dHA6Ly9vY3NwLnN0YXJ0c3NsLmNvbTAwBggrBgEFBQcwAoYkaHR0
cDovL2FpYS5zdGFydHNzbC5jb20vY2VydHMvY2EuY3J0MB0GA1UdDgQWBBQkgWw5Yb5JD4+3G0Yr
ySi1J0htaDAfBgNVHSMEGDAWgBROC+8apEBbpRdphzDKNGhD0EGu8jA/BgNVHSAEODA2MDQGBFUd
IAAwLDAqBggrBgEFBQcCARYeaHR0cDovL3d3dy5zdGFydHNzbC5jb20vcG9saWN5MA0GCSqGSIb3
DQEBCwUAA4ICAQCL4/eH7AGLhK0PAQJbnOEjJyMEvTTwcAJuUh/bodjQl06u4putYOxdSyIjSP/s
Kt+31LmjG8+IO1WqykE4H/Lm7NKezWVnCHuwb3ptgFmlwbMbGkU2MOZBtwzfKXdYUhFLhaE2uw5j
XhXvLYitQay962wP5uPI6eAIhV4L8aaya1u4s7MnrTq0Rz25FuGNO79vTHYWj797tSRC8rM16js4
yGKOLFpQvIg0F8IElv57b1stp+C7omqM5Qn15dePbSnqr8Jb65WtmJJbnv6rlqfY/aLuE/zmNAlz
LmPgfMDStKIXdg+EoYBZTEo8wBUaBxihfNbJ069ndQOxMNNqBelEMgpAtmjTbCuXFjqIwWq+XOx6
ZV/Wh2FAmaLsSHlNvEjjSQMZwE4EeHCdo66ZmEs/5JYlCeOkulKVQ6P3m5/XOj2jP17Q2AgmjP+1
1+sHN7PvrG0OwrQp9QMe3X+rn0G8MjtFfqBWvR9CgLIxzM3MJNxFdgdjS2rYnShP5uxvqwfZvhZV
YCIkqdJhpYON0DvSodfiar0wiM79mySZJjzC0CTbiisBzS/BeBhqeo2wFfli/iw3hn1XKvAx0ty6
w/scmBF0AYqmRHYj1TjMSw0lAl7AztLglqWjUPI+sukvadMRPxmtKXlS2nVR4an/Z16imsZ69+fF
YH68c1CK7zmjozGCA04wggNKAgEBMIGJMHUxCzAJBgNVBAYTAklMMRYwFAYDVQQKEw1TdGFydENv
bSBMdGQuMSkwJwYDVQQLEyBTdGFydENvbSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTEjMCEGA1UE
AxMaU3RhcnRDb20gQ2xhc3MgMSBDbGllbnQgQ0ECECWoG851LwZ2at3t1gpxgUYwCQYFKw4DAhoF
AKCCAZkwGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMTYwODE3MDA0
NjI0WjAjBgkqhkiG9w0BCQQxFgQURSscANrwU+5vcJU8n4Sz4PAhxMQwgZoGCSsGAQQBgjcQBDGB
jDCBiTB1MQswCQYDVQQGEwJJTDEWMBQGA1UEChMNU3RhcnRDb20gTHRkLjEpMCcGA1UECxMgU3Rh
cnRDb20gQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkxIzAhBgNVBAMTGlN0YXJ0Q29tIENsYXNzIDEg
Q2xpZW50IENBAhAlqBvOdS8Gdmrd7dYKcYFGMIGcBgsqhkiG9w0BCRACCzGBjKCBiTB1MQswCQYD
VQQGEwJJTDEWMBQGA1UEChMNU3RhcnRDb20gTHRkLjEpMCcGA1UECxMgU3RhcnRDb20gQ2VydGlm
aWNhdGlvbiBBdXRob3JpdHkxIzAhBgNVBAMTGlN0YXJ0Q29tIENsYXNzIDEgQ2xpZW50IENBAhAl
qBvOdS8Gdmrd7dYKcYFGMA0GCSqGSIb3DQEBAQUABIIBAIJwTLnhZYjJefK5YHjdyRu+A3/YDZR0
jFam0NR9nsunVTtU708OnotRYXIESaAKuwdISlG7dHzLhpilnDRyjtmtmiL5kcyEbnq/NfapmpEO
WqmpuKp1CTsyZao2P5inm9fkoEYkzwIhp8SeY9u8Re6uBsmYha7V6SWZ62a5UsGuhuIJC+MfcvaQ
Y4SbKKVuCPq9668yZK56MvBa43VfkTKCuP32KOuapcS7DCIXUFOzR9s5ZUUTJWiYHTS1iZjL/UQC
nh+9jW7wDaMAL7LHxeQAsouMBP+AmK0Q0jcJQ8Ow9q2qqGhvCoosFM9I62zgD4jIsFy+oonFy6cE
NznGQmwAAAAAAAA=
--Apple-Mail=_C77F5A90-6C5E-4420-9E80-D49D8D4B7304--


From MAILER-DAEMON Tue Aug 16 20:59:20 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZpCS-0001Gd-Sp
	for mharc-gpsd-dev@gnu.org; Tue, 16 Aug 2016 20:59:20 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:33798)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZpCQ-0001GU-Q8
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 20:59:19 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZpCP-0008Me-Qk
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 20:59:18 -0400
Received: from rellim.com ([2001:470:e815::19]:36224 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bZpCP-0008Ma-G8
	for gpsd-dev@nongnu.org; Tue, 16 Aug 2016 20:59:17 -0400
Received: from spidey.rellim.com (rellim.com [IPv6:2001:470:e815:0:0:0:0:19])
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u7H0x5A1004315
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Tue, 16 Aug 2016 17:59:10 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u7H0x5A1004315
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1471395551; bh=Z2DTsT8ydEqHlOvxjmsiX11O5e2iXyPZ3MO9kNBSDLE=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=c8UKIPlvEHorlqLj/zv63dz6Ci2DoUbIJOYvla54wbAq4K0OuhXAdxEX75kZBzhEr
	wkMeb1g7OVtADDxGn6gwmTeJmuhaQMPpTkH50C5G3mM1mMQO4G5mgbm9Dfp/vTQ1Ha
	BmKjbwMyfdWkRT848XI8cwTBDbv9n9yp5MO82DxI=
Date: Tue, 16 Aug 2016 17:59:00 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Frank Nicholas <frank@nicholasfamilycentral.com>
Cc: Fred Wright <fw@fwright.net>, gpsd dev <gpsd-dev@nongnu.org>
Message-ID: <20160816175900.2b170cf9@spidey.rellim.com>
In-Reply-To: <B87BB8E5-BA66-4EF5-B8C9-543730AA5F19@nicholasfamilycentral.com>
References: <20160816140919.701d99a8@spidey.rellim.com>
	<Pine.LNX.4.58L1X.1608161445260.11838@bolt.sonic.net>
	<20160816150511.5f6965f5@spidey.rellim.com>
	<B87BB8E5-BA66-4EF5-B8C9-543730AA5F19@nicholasfamilycentral.com>
Organization: Rellim
X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/BlmM/kVMmJHPXMZs0T1eWpV";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Tue, 16 Aug 2016 17:59:11 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] 
 =?utf-8?q?=E2=9C=98Python_maidenhead_fails_on_XCode?=
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 17 Aug 2016 00:59:19 -0000

--Sig_/BlmM/kVMmJHPXMZs0T1eWpV
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Yo Frank!

On Tue, 16 Aug 2016 20:46:24 -0400
Frank Nicholas <frank@nicholasfamilycentral.com> wrote:

> > On Aug 16, 2016, at 6:05 PM, Gary E. Miller <gem@rellim.com> wrote:
> >=20
> > One line in gpsclient.d:
> >=20
> > static PyObject *
> > gpsclient_maidenhead(PyObject *self UNUSED, PyObject *args)
> > {
> > -    const double lat, lon;
> > +    const double lat =3D 0.0, lon =3D 0.0;
> >=20
> > Very weird, Eric helped me narrow it down.  Adding an initializer,
> > as requested by compiler warning, breaks it.  And just on OS X.
> >=20
> > Hmmm..
> >  =20
>=20
> Did you revert the code, or change something in current git head to
> fix it?  I just did a =E2=80=98git clone=E2=80=99 & =E2=80=98scons -j24 c=
heck=E2=80=99 and it was
> successful.

Yes, it is fixed in git head.  You can always do a 'git log -p' to
see recent changes.

When you see the problem you want to beat your head against the wall.

Notice that lat and ln are marked 'const'?  Then the address of those
'const' are passed to a function to change them.  Getting the idea?  C
does not allow you to change a constant!  Or at leat is not suppsed to.

So the code has been broken, silently, for a long time because XCode
and gcc were not enforcing the 'const'.  When I added the initializers,
all of a sudden XCode started enforcing the 'const'ness.

The fix, of course, was to remove the 'const'.  I also left in the
initializer a that shut up an XCode warning about uninitialized
variables.  gcc was smart enough to know they were really initialized
later before use, but too dumb to notice writing to a 'const;.

My guess is that when I added the initializers that XCode moved the
'const' to a read-only memory segment.  Interesting that the C binary
did not complain about writing to the read-only data, it just left the
data at 0.0

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/BlmM/kVMmJHPXMZs0T1eWpV
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXs7bUAAoJEA0O2UlB0XnYMmAH/RiJlmezuiOBsh33vJAx1Tp9
IK5ONDQFcIZ9tmopd8ZWRSVBOmWGyqzASwWXtzKE6IlJt77K51uig7moSNlCCJfU
pIt5uS1oIOp+tVqF3dc5qAPJS6yF8kwz6NifrposB3s0P15MMY0d1xQ2khNpH23h
6S4qW8nOtX3a8uNmOFs698Ti/CmZpo/ds0/t4axvbCPKUtWp0uk8Ks2tmRzS3pMQ
efepWu4q317MwhRVi/0KQUSsMm/teppP+BQvXXpqt+sKwvwvd7OmrPE6zypfGf1d
tnanCiUbgLJm4/LL11omoHzt8L5PrMRz0vviRZgMQVtTq0XoUPU+dBqfJSOrLvM=
=GZMH
-----END PGP SIGNATURE-----

--Sig_/BlmM/kVMmJHPXMZs0T1eWpV--


From MAILER-DAEMON Wed Aug 17 01:46:58 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bZtgo-0001NJ-8M
	for mharc-gpsd-dev@gnu.org; Wed, 17 Aug 2016 01:46:58 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:40979)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bZtgl-0001Mu-HE
	for gpsd-dev@nongnu.org; Wed, 17 Aug 2016 01:46:56 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bZtgf-0002pc-MH
	for gpsd-dev@nongnu.org; Wed, 17 Aug 2016 01:46:54 -0400
Received: from ip-64-139-1-69.sjc.megapath.net ([64.139.1.69]:61866)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1bZtgf-0002pU-Es
	for gpsd-dev@nongnu.org; Wed, 17 Aug 2016 01:46:49 -0400
Received: from shuksan (localhost [127.0.0.1])
	by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id B0F9D406062; 
	Tue, 16 Aug 2016 22:46:46 -0700 (PDT)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: "Gary E. Miller" <gem@rellim.com>
cc: Hal Murray <hmurray@megapathdsl.net>, gpsd-dev@nongnu.org
From: Hal Murray <hmurray@megapathdsl.net>
In-Reply-To: Message from "Gary E. Miller" <gem@rellim.com> of "Tue,
	16 Aug 2016 17:28:15 PDT." <20160816172815.50b1a378@spidey.rellim.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Tue, 16 Aug 2016 22:46:46 -0700
Message-Id: <20160817054646.B0F9D406062@ip-64-139-1-69.sjc.megapath.net>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.139.1.69
Subject: Re: [gpsd-dev] alloca
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 17 Aug 2016 05:46:56 -0000


gem@rellim.com said:
> Unless there is a handy #ifdef I can use to detect FreeBSD OS before
> including any header files.

Many years ago, there was __FreeBSD__ and __NetBSD__ and __linux__
(double underbars on both ends)

I haven't tried it recently, but that is where I would start.


-- 
These are my opinions.  I hate spam.





From MAILER-DAEMON Sat Aug 27 00:40:03 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bdVPX-0001tO-4k
	for mharc-gpsd-dev@gnu.org; Sat, 27 Aug 2016 00:40:03 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:51007)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1bdVPT-0001su-RL
	for gpsd-dev@nongnu.org; Sat, 27 Aug 2016 00:40:01 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1bdVPP-0001JI-Kc
	for gpsd-dev@nongnu.org; Sat, 27 Aug 2016 00:39:58 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:42278 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1bdVPP-0001Gz-Eh
	for gpsd-dev@nongnu.org; Sat, 27 Aug 2016 00:39:55 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id B55FF13A625C; Sat, 27 Aug 2016 00:39:19 -0400 (EDT)
Date: Sat, 27 Aug 2016 00:39:19 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: gpsd-dev@nongnu.org
Message-ID: <20160827043919.GA14030@thyrsus.com>
Reply-To: esr@thyrsus.com
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="tKW2IUtsqtDRztdT"
Content-Disposition: inline
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.23 (2014-03-12)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 71.162.243.5
Subject: [gpsd-dev] gpsd fails to notice a remote IP gps brutally unplugged
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Aug 2016 04:40:01 -0000


--tKW2IUtsqtDRztdT
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

I'm forwarding this to the GPSD devel list because these is no realistic
prospect that I will be able to fix it anytime soon; concentrating on
NTPsec doesn't leave me the bandwidth.  Rather than let it molder in my
mailbox, I shall hope that one of the sharp minds inhabiting the list will
seize on it and fix the problem.

I will be available for questions about the intent of the code under
discussion.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>

--tKW2IUtsqtDRztdT
Content-Type: message/rfc822
Content-Disposition: inline

Return-Path: <bruno.coudoin@gcompris.net>
X-Original-To: esr@localhost
Delivered-To: esr@localhost
Received: from snark.thyrsus.com (localhost [127.0.0.1])
	by snark.thyrsus.com (Postfix) with ESMTP id 5F94BC00AC
	for <esr@localhost>; Wed,  8 Apr 2015 21:00:51 -0400 (EDT)
X-Original-To: esr@thyrsus.com
Delivered-To: esr@thyrsus.com
X-Greylist: delayed 329 seconds by postgrey-1.34 at grelber; Wed, 08 Apr 2015 21:00:25 EDT
Received: from grelber.thyrsus.com [192.168.1.31]
	by snark.thyrsus.com with IMAP (fetchmail-6.3.26)
	for <esr@localhost> (single-drop); Wed, 08 Apr 2015 21:00:51 -0400 (EDT)
Received: from gcompris.net (gcompris.net [195.154.184.96])
	by grelber.thyrsus.com (Postfix) with ESMTP id 276AB13C0265
	for <esr@thyrsus.com>; Wed,  8 Apr 2015 21:00:25 -0400 (EDT)
Received: from [192.168.0.15] (unknown [82.228.70.121])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by gcompris.net (Postfix) with ESMTPSA id EDD2310E008A;
	Thu,  9 Apr 2015 02:55:06 +0200 (CEST)
Message-ID: <5525CDEA.2030902@gcompris.net>
Date: Thu, 09 Apr 2015 02:55:06 +0200
From: Bruno Coudoin <bruno.coudoin@gcompris.net>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0
MIME-Version: 1.0
To: esr@thyrsus.com
CC: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] gpsd unnoticed of a remote IP gps brutally unplugged
References: <55252A93.6010205@gcompris.net> <20150409002024.GA22873@thyrsus.com>
In-Reply-To: <20150409002024.GA22873@thyrsus.com>
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable



Le 09/04/2015 02:20, Eric S. Raymond a =E9crit :
> Bruno Coudoin <bruno.coudoin@gcompris.net>:
>> Hi,
>>
>> I am using gpsd with a remote TCP/IP gps serveur through 'gpsd://' (a
>> CradlePoint IBR1100 router). In this case, if the remote gps is brutal=
ly
>> unplugged from its power plug, gpsd stays unnoticed. It does try to
>> reconnect but long after the gps server is back up (got a 5 hour
>> occurrence).
>>
>> In the traces I have this error which shows the 5 hours delay:
>> GPS on gpsd://192.168.0.1:8889 returned error -1 (16332.187656 sec sin=
ce
>> data)
>>
>> As it is, since we never talk to the device but only receive from it,
>> and that the server cannot close or shutdown the socket, it is normal
>> that at TCP level it goes unnoticed. One solution could be to add a TC=
P
>> keepalive. Another option is to add a timeout when we don't get any
>> traffic from a networked gps device.
>>
>> Am I doing something wrong, is there an option to handle that case?
>>
>> Bruno.
>>
>>
> I don't understand what problem you are trying to solve.
>
> GPSD is designed to recover from devices droping out and then returning=
=2E
> In gpsd.c these definitions appear:
>
> /*
>  * Timeout policy.  We can't rely on clients closing connections
>  * correctly, so we need timeouts to tell us when it's OK to
>  * reclaim client fds.  COMMAND_TIMEOUT fends off programs
>  * that open connections and just sit there, not issuing a WATCH or
>  * doing anything else that triggers a device assignment.  Clients
>  * in watcher or raw mode that don't read their data will get dropped
>  * when throttled_write() fills up the outbound buffers and the
>  * NOREAD_TIMEOUT expires.
>  *
>  * RELEASE_TIMEOUT sets the amount of time we hold a device
>  * open after the last subscriber closes it; this is nonzero so a
>  * client that does open/query/close will have time to come back and
>  * do another single-shot query, if it wants to, before the device is
>  * actually closed.  The reason this matters is because some Bluetooth
>  * GPSes not only shut down the GPS receiver on close to save battery
>  * power, they actually shut down the Bluetooth RF stage as well and
>  * only re-wake it periodically to see if an attempt to raise the
>  * device is in progress.  The result is that if you close the device
>  * when it's powered up, a re-open can fail with EIO and needs to be
>  * tried repeatedly.  Better to avoid this...
>  *
>  * DEVICE_REAWAKE says how long to wait before repolling after a zero-l=
ength
>  * read. It's there so we avoid spinning forever on an EOF condition.
>  *
>  * DEVICE_RECONNECT sets interval on retries when (re)connecting to
>  * a device.
>  */
> #define COMMAND_TIMEOUT		60*15
> #define NOREAD_TIMEOUT		60*3
> #define RELEASE_TIMEOUT		60
> #define DEVICE_REAWAKE		0.01
> #define DEVICE_RECONNECT	2
>
> Is your issue that your local GPSD is waiting too long to try to reconn=
ect with
> the remote?  Be aware that this won;t happen at all unless someone is=20
> subscribed to the remote, eg. actually has a client session open.
Hi,

I have reread the definition and I think the problem I have is not
currently handled by any of these cases.

I know that GPSD needs to have a client connected to poll my TCP/IP GPS
and this is the case. More precisely, I have a client application
running on the same PC as GPSD. It could be represented by this schema:

PC(GPSD CLIENT, GPSD)<----TCP/IP---->ROUTER(GPS SERVER)

What happens is that the ROUTER is electrically unplugged but not the
PC. In this case GPSD is in its select() but nothing happens on the GPS
SERVER file descriptor as it never writes to it and the GPS SERVER never
got a chance to close the socket. So we are unnoticed that the GPS
SERVER is no more.

I made the patch bellow that fixes the issue by setting a TCP keepalive
on the device socket. Not sure everybody want it and it should be made
configurable but it gives the idea. I configured it to emit a keepalive
packet after 60 seconds of inactivity and retry 3 times at 10 seconds
interval after that.

Bruno.

---
 netlib.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/netlib.c b/netlib.c
index 21bb6db..d57d8a8 100644
--- a/netlib.c
+++ b/netlib.c
@@ -15,6 +15,7 @@
 #ifndef INADDR_ANY
 #include <netinet/in.h>
 #endif /* INADDR_ANY */
+#include <netinet/tcp.h> /* for TCP keepalive */
 #include <arpa/inet.h>     /* for htons() and friends */
 #include <unistd.h>
 #endif /* S_SPLINT_S */
@@ -129,6 +130,21 @@ socket_t netlib_connectsock(int af, const char
*host, const char *service,
     /* set socket to noblocking */
     (void)fcntl(s, F_SETFL, fcntl(s, F_GETFL) | O_NONBLOCK);
=20
+    {
+      /* Set the keepalive option active */
+      int optval =3D 1;
+      setsockopt(s, SOL_SOCKET, SO_KEEPALIVE, &optval, sizeof(optval));
+
+      optval =3D 60;
+      setsockopt(s, IPPROTO_TCP, TCP_KEEPIDLE, &optval, sizeof(optval));=

+
+      optval =3D 10;
+      setsockopt(s, IPPROTO_TCP, TCP_KEEPINTVL, &optval, sizeof(optval))=
;
+
+      optval =3D 3;
+      setsockopt(s, IPPROTO_TCP, TCP_KEEPCNT, &optval, sizeof(optval));
+    }
+
     return s;
     /*@ +type +mustfreefresh @*/
 }
--=20
1.9.1



--tKW2IUtsqtDRztdT--


From MAILER-DAEMON Sat Aug 27 00:46:21 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bdVVd-0002y2-NG
	for mharc-gpsd-dev@gnu.org; Sat, 27 Aug 2016 00:46:21 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:51537)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1bdVVb-0002xt-Bo
	for gpsd-dev@nongnu.org; Sat, 27 Aug 2016 00:46:20 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1bdVVX-0002lJ-86
	for gpsd-dev@nongnu.org; Sat, 27 Aug 2016 00:46:18 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:42374 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1bdVVX-0002kz-1v
	for gpsd-dev@nongnu.org; Sat, 27 Aug 2016 00:46:15 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 79BA713A625C; Sat, 27 Aug 2016 00:45:41 -0400 (EDT)
Date: Sat, 27 Aug 2016 00:45:41 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: gpsd-dev@nongnu.org
Message-ID: <20160827044541.GA14238@thyrsus.com>
Reply-To: esr@thyrsus.com
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="SLDf9lqlvOQaIe6s"
Content-Disposition: inline
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.23 (2014-03-12)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 71.162.243.5
Subject: [gpsd-dev] (forw)  gpmon: "Ill-formed PPS packet: 7"
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Aug 2016 04:46:20 -0000


--SLDf9lqlvOQaIe6s
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Question for the list: did this ever get fixed?  It's pretty clear the
bug is in drivers.c, not long after line 1596.  My work on NTPsec doesn't
leave my time to chase it, but it ought to be an easy repair for
someone.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>

--SLDf9lqlvOQaIe6s
Content-Type: message/rfc822
Content-Disposition: inline

Return-Path: <gpsd-dev-bounces+esr=thyrsus.com@nongnu.org>
X-Original-To: esr@localhost
Delivered-To: esr@localhost
Received: from snark (localhost [127.0.0.1])
	by snark.thyrsus.com (Postfix) with ESMTP id 6243E13A0E22
	for <esr@localhost>; Wed, 24 Feb 2016 01:38:31 -0500 (EST)
X-Original-To: esr@thyrsus.com
Delivered-To: esr@thyrsus.com
Received: from grelber.thyrsus.com [2001:470:e34c:2::21b]
	by snark with IMAP (fetchmail-6.3.26)
	for <esr@localhost> (single-drop); Wed, 24 Feb 2016 01:38:31 -0500 (EST)
Received: from lists.gnu.org (lists.gnu.org [208.118.235.17])
	by grelber.thyrsus.com (Postfix) with ESMTPS id 45BA513C0267
	for <esr@thyrsus.com>; Wed, 24 Feb 2016 01:33:36 -0500 (EST)
Received: from localhost ([::1]:33859 helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gpsd-dev-bounces+esr=thyrsus.com@nongnu.org>)
	id 1aYT2G-00045R-Qs
	for esr@thyrsus.com; Wed, 24 Feb 2016 01:34:56 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:52167)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1aYT2D-00045L-L3
	for gpsd-dev@nongnu.org; Wed, 24 Feb 2016 01:34:54 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1aYT28-0006Di-Hz
	for gpsd-dev@nongnu.org; Wed, 24 Feb 2016 01:34:53 -0500
Received: from ip-64-139-1-69.sjc.megapath.net ([64.139.1.69]:56071)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1aYT28-0006Dd-8i
	for gpsd-dev@nongnu.org; Wed, 24 Feb 2016 01:34:48 -0500
Received: from shuksan (localhost [127.0.0.1])
	by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id 963BD406057; 
	Tue, 23 Feb 2016 22:34:46 -0800 (PST)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: gpsd-dev@nongnu.org
From: Hal Murray <hmurray@megapathdsl.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Date: Tue, 23 Feb 2016 22:34:46 -0800
Message-Id: <20160224063446.963BD406057@ip-64-139-1-69.sjc.megapath.net>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.139.1.69
Subject: [gpsd-dev] gpmon: "Ill-formed PPS packet: 7"
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
Errors-To: gpsd-dev-bounces+esr=thyrsus.com@nongnu.org
Sender: gpsd-dev-bounces+esr=thyrsus.com@nongnu.org

I'm looking at a NMEA device on another system.

The top line shows:
  tcp://fed:gpsd=23/dev/gps0:/dev/NMEA0183> Ill-formed PPS packet: 7 (str=
ing=20
value t
I assume the rest of the output is off to the right someplace.

If I make the window wider, it says: =22(string value too long)=22
but doesn't tell me anything about the string or even which string.

I get one about 10 seconds after startup.  It works OK after that.
It's followed by a similar one for TOFF.

grep PPS in the log file shows:

=7B=22class=22:=22PPS=22,=22device=22:=22tcp://fed:gpsd=23/dev/gps0=23/de=
v/gps0=23/dev/gps0=23/dev/gps
0=23/dev/gps0=23/dev/gps0=23/dev/gps0=23/dev/gps0=23/dev/gps0=22,=22real_=
sec=22:1456295042,=20
=22real_nsec=22:0,=22clock_sec=22:1456295042,=22clock_nsec=22:41678,=22pr=
ecision=22:-20=7D=24GPGGA
,062402.000,3726.0904,N,12212.2675,W,2,06,1.7,22.9,M,-25.7,M,2.8,0000*76
=7B=22class=22:=22PPS=22,=22device=22:=22tcp://fed:gpsd=23/dev/gps0=23/de=
v/gps0=23/dev/gps0=23/dev/gps
0=23/dev/gps0=23/dev/gps0=23/dev/gps0=23/dev/gps0=23/dev/gps0=23/dev/gps0=
=22,=22real_sec=22:1456
295043, =22real_nsec=22:0,=22clock_sec=22:1456295043,=22clock_nsec=22:388=
86,=22precision=22:-2
0=7D=24GPGSV,3,3,11,14,01,313,,29,00,252,,48,45,197,28*4A
=7B=22class=22:=22PPS=22,=22device=22:=22tcp://fed:gpsd=23/dev/gps0=23/de=
v/gps0=23/dev/gps0=23/dev/gps
0=23/dev/gps0=23/dev/gps0=23/dev/gps0=23/dev/gps0=23/dev/gps0=23/dev/gps0=
=23/dev/gps0=22,=22real
_sec=22:1456295044, =22real_nsec=22:0,=22clock_sec=22:1456295044,=22clock=
_nsec=22:50953,=22pre
cision=22:-20=7D=24GPGGA,062404.000,3726.0892,N,12212.2665,W,2,06,1.7,21.=
2,M,-25.7,M
,4.8,0000*71
=7B=22class=22:=22PPS=22,=22device=22:=22/dev/gps0=22,=22real_sec=22:1456=
295046,=20
=22real_nsec=22:0,=22clock_sec=22:1456295046,=22clock_nsec=22:50693,=22pr=
ecision=22:-20=7D=24GPGGA
,062406.000,3726.0882,N,12212.2658,W,2,06,1.7,20.0,M,-25.7,M,1.8,0000*7A
=7B=22class=22:=22PPS=22,=22device=22:=22/dev/gps0=22,=22real_sec=22:1456=
295047,=20
=22real_nsec=22:0,=22clock_sec=22:1456295047,=22clock_nsec=22:65572,=22pr=
ecision=22:-20=7D=24GPGGA
,062407.000,3726.0878,N,12212.2655,W,2,06,1.7,18.6,M,-25.7,M,0.8,0000*7F

I guess it's adding a =22=23/dev/gps0=22 until it overflows.

There is no TOFF stuff in the log file.
=20

--=20
These are my opinions.  I hate spam.




--SLDf9lqlvOQaIe6s--


From MAILER-DAEMON Sat Aug 27 00:52:20 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bdVbQ-00045G-QF
	for mharc-gpsd-dev@gnu.org; Sat, 27 Aug 2016 00:52:20 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:52086)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1bdVbO-000459-4O
	for gpsd-dev@nongnu.org; Sat, 27 Aug 2016 00:52:19 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1bdVbJ-0003eB-Rj
	for gpsd-dev@nongnu.org; Sat, 27 Aug 2016 00:52:17 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:42470 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1bdVbJ-0003e6-MQ
	for gpsd-dev@nongnu.org; Sat, 27 Aug 2016 00:52:13 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 1FA6813A625C; Sat, 27 Aug 2016 00:52:10 -0400 (EDT)
Date: Sat, 27 Aug 2016 00:52:10 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: gpsd-dev@nongnu.org
Message-ID: <20160827045210.GA14349@thyrsus.com>
Reply-To: esr@thyrsus.com
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="UugvWAfsgieZRqgk"
Content-Disposition: inline
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.23 (2014-03-12)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 71.162.243.5
Subject: [gpsd-dev] tcp://feed failure strategy
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Aug 2016 04:52:19 -0000


--UugvWAfsgieZRqgk
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Third in a trilogy of old bugs I don't have time to fix because of NTPsec.
Did this ever get addressed?  If not, I'd appreciate it if one of the
regulars would step up.  You'd help two projects - GPSD by fixing it,
and NTPsec by taking a weight off my mind.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>

--UugvWAfsgieZRqgk
Content-Type: message/rfc822
Content-Disposition: inline

Return-Path: <gpsd-users-bounces+esr=thyrsus.com@nongnu.org>
X-Original-To: esr@localhost
Delivered-To: esr@localhost
Received: from snark (localhost [127.0.0.1])
	by snark.thyrsus.com (Postfix) with ESMTP id 6197113A6241
	for <esr@localhost>; Wed,  6 Apr 2016 10:01:29 -0400 (EDT)
X-Original-To: esr@thyrsus.com
Delivered-To: esr@thyrsus.com
Received: from grelber.thyrsus.com [2001:470:e34c:2::21b]
	by snark with IMAP (fetchmail-6.3.26)
	for <esr@localhost> (single-drop); Wed, 06 Apr 2016 10:01:29 -0400 (EDT)
Received: from lists.gnu.org (lists.gnu.org [208.118.235.17])
	by grelber.thyrsus.com (Postfix) with ESMTPS id 1FD5913C0263
	for <esr@thyrsus.com>; Wed,  6 Apr 2016 09:57:14 -0400 (EDT)
Received: from localhost ([::1]:43413 helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gpsd-users-bounces+esr=thyrsus.com@nongnu.org>)
	id 1anny8-0004vZ-M5
	for esr@thyrsus.com; Wed, 06 Apr 2016 09:58:04 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:41646)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fulup@koumoul.net>) id 1anivd-0004u7-Fz
	for gpsd-users@nongnu.org; Wed, 06 Apr 2016 04:35:10 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fulup@koumoul.net>) id 1aniva-0007MR-AW
	for gpsd-users@nongnu.org; Wed, 06 Apr 2016 04:35:09 -0400
Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]:37808)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fulup@koumoul.net>) id 1anivZ-0007Kd-TF
	for gpsd-users@nongnu.org; Wed, 06 Apr 2016 04:35:06 -0400
Received: by mail-wm0-x232.google.com with SMTP id n3so52560858wmn.0
	for <gpsd-users@nongnu.org>; Wed, 06 Apr 2016 01:35:05 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=koumoul.net; s=dkim;
	h=sender:to:from:subject:organization:message-id:date:user-agent
	:mime-version:content-transfer-encoding;
	bh=6k0lsZYGGqsK5iZna6ZxXaUSaG4OYK9zfYoc8X3phXo=;
	b=b8YEl9xAzrWCUup6yRxmeNbeAxPwCNykO2kwPL7Zbw9G1lAzYkX9B4Pv6tXK8gt/Gb
	CxMj6vHp9f7n8NavLBwIHcWhdN6zjIX+SNACBjlC/e2LAQFjWfoepyjevUkw71cs+m4F
	3dRWLdRwygn7/4JHEN5Ijzq4F007skgVLRajU=
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=iot-bzh.20150623.gappssmtp.com; s=20150623;
	h=sender:to:from:subject:organization:message-id:date:user-agent
	:mime-version:content-transfer-encoding;
	bh=6k0lsZYGGqsK5iZna6ZxXaUSaG4OYK9zfYoc8X3phXo=;
	b=rAj/+s9tca91LpLcKfuw5S7X6p9dpR1nQdccvGU9uMO+MN3ghz1cDoWv1V1KrQ0IbP
	DghYk+Woa5MiCWstsdfPk1Xb1CHV2Nyj45Ol1qyQtL8C6Vq+HnBdTiIKcAYQr4CPWiLv
	eCBoolf5ozZsQcZAOMiOf7p5pH7kmG5JNRoQIs5R84CzvDXMfnPUK1sy4yJiPTxwo/vz
	2J2klEtf331yf13ShQ0NeVK3zdQT53WRjqolGc03Gr1FO+tmyQoYwAP4HhnYefOWK+Oi
	5Yz7Elw+PxB44EnJV+oskwx02HCk3beP/Xfr0K18MJyOP9DXcj95WKsLdAZY4PcVC9x9
	F06A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20130820;
	h=x-gm-message-state:sender:to:from:subject:organization:message-id
	:date:user-agent:mime-version:content-transfer-encoding;
	bh=6k0lsZYGGqsK5iZna6ZxXaUSaG4OYK9zfYoc8X3phXo=;
	b=kXbtit3fZo0c1Qldrq+zCOEo0NNNr9DeSTGl2xBRfeMGnFwU9BI6yXrC5FsX04AcNV
	hiW8FCamLNVyQnuF1CxihMJiBuN7psmkHx2mYbeCFXfA6hnwaz0HsGJaD3UU2FSOsZ+m
	W2pVRaGEmchrx/+r5chV69eNfqHMPWYyzCEd7vLrdFfve6MB8MZzpYDwm/N/fahdJ0CF
	VVzSwhLWwglwG3sqHu+UPgkbA/JmQebs8jQH5CW8cQJW/a8STXPqVCKdE3xWvvB89RTA
	hTygNr9Uun1aVc9SJBo6Mf/cLRWiEPiINpWdPiJ/RXCjzSzM+k7wWnbTmJx112q0TPXX
	7++Q==
X-Gm-Message-State: AD7BkJKsAzZ06lcoF6aC9O/JjukEWqaBYqFS44u84L1AVU7Rm7QCuab9fMADoQFsRQy5Rg==
X-Received: by 10.194.120.229 with SMTP id lf5mr26703918wjb.151.1459931704591; 
	Wed, 06 Apr 2016 01:35:04 -0700 (PDT)
Received: from [10.20.101.101] (sne56-1-88-180-128-218.fbx.proxad.net.
	[88.180.128.218]) by smtp.googlemail.com with ESMTPSA id
	gt7sm2022904wjc.1.2016.04.06.01.35.03 for <gpsd-users@nongnu.org>
	(version=TLSv1/SSLv3 cipher=OTHER);
	Wed, 06 Apr 2016 01:35:03 -0700 (PDT)
To: gpsd-users@nongnu.org
From: Fulup Ar Foll <fulup.arfoll@iot.bzh>
Organization: IoT.bzh
Message-ID: <5704CA37.9080204@iot.bzh>
Date: Wed, 6 Apr 2016 10:35:03 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101
	Thunderbird/38.7.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2a00:1450:400c:c09::232
X-Mailman-Approved-At: Wed, 06 Apr 2016 09:57:57 -0400
Subject: [gpsd-users] tcp://feed failure strategy
X-BeenThere: gpsd-users@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-users.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-users>,
	<mailto:gpsd-users-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-users>
List-Post: <mailto:gpsd-users@nongnu.org>
List-Help: <mailto:gpsd-users-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-users>,
	<mailto:gpsd-users-request@nongnu.org?subject=subscribe>
Errors-To: gpsd-users-bounces+esr=thyrsus.com@nongnu.org
Sender: gpsd-users-bounces+esr=thyrsus.com@nongnu.org

I'm using GPSd as a concentration HUB for AIS targets coming from 
multiple sources. Unfortunately GPSd logic when TCP:// input feed fails 
is far from optimal and not adapted to support long term TCP connections.

* PROBLEMATIC: An AIS hub should remain open 7/7days & 24h/day. In 
theory (at least) it should never stop and the goal it to never have to 
restart any of your GPSd services. As a result channels from either your 
fix AIS station or your external feed (ie: AIShub) could have to remain 
open for months. Now when you open a remote TCP link for months, at some 
point in time your TCP channel will break. It is just a matter of 
waiting long enough for this to happen.
* ISSUE: In previous GPSd version, when one single TCP feed breaks Gpsd 
kill itself (hoops!!!). In latest version (3.16) it even worse has it 
remove the link without ever trying to reconnect onto it.

The old model was hugely, but somehow easy to handle. We had to create a 
small monitoring script to check if GPSd was still responding, when not 
it had to be restarted. With new model it is much harder has your GPSd 
still respond but may have disconnected from your TCP:// feed.

Turn around, not really optimal but at least it works. Use 'socat' to 
proxy TCP feeds into UDP before re-injecting them to GPSd.

WANTED SOLUTION: to keep GPSd running for ever, we would like an 
automatic reconnection on TCP:// feeds. Something equivalent to what I 
coded into GPS2udp, where input channel is monitored and in case of no 
respond for more than XXseconds the channel is close en reopen.

Other bug on TCP: I also noted that is a feed block (connection 
initialise but listen does not respond) then GPSd freeze for ever (noted 
on 3.11 and 3.16). This error case is rare and probably not critical, 
but at least an error message would be welcome.

Fulup



--UugvWAfsgieZRqgk--


From MAILER-DAEMON Wed Aug 31 15:47:52 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bfBUG-0007Ni-Cl
	for mharc-gpsd-dev@gnu.org; Wed, 31 Aug 2016 15:47:52 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:37060)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1bfBU0-0007MV-BT
	for gpsd-dev@nongnu.org; Wed, 31 Aug 2016 15:47:50 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1bfBTw-0006ve-2j
	for gpsd-dev@nongnu.org; Wed, 31 Aug 2016 15:47:36 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:51500 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>)
	id 1bfBTv-0006t8-To; Wed, 31 Aug 2016 15:47:31 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 46B7D13A0533; Wed, 31 Aug 2016 15:46:54 -0400 (EDT)
Date: Wed, 31 Aug 2016 15:46:54 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: gpsd-dev@nongnu.org, gpsd-users@nongnu.org
Message-ID: <20160831194654.GA710@thyrsus.com>
Reply-To: esr@thyrsus.com
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.24 (2015-08-30)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 71.162.243.5
Subject: [gpsd-dev] Repository move to gitlab may be pending
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 31 Aug 2016 19:47:50 -0000

Sometime between Aug 26 and yesterday (Aug 30) something got broken at
Savannah, the GNU hosting site where the GPSD repository lives.  I can
no longer either push to it nor clone with developer access.  Anonymous
cloning still works, so my conjecture is that part of their database
representing project roles has been damaged.

I have filed a bug at Savannah, but am not optimistic that this will
be fixed.  The site is understaffed and the software is aged and
crumbling.  My plan yesterday was to give the Savannah staff 24 hours
to respond and if no response were forthcoming to move the repo to
GitLab, but I have realized that without some notice to the dev list
this might result in confusion.

Therefore I'll give it a day or two more.  Expect notice that either
the problem has been resolved and we are remaining on Savannah or the
repository is now on gitlab.com. If the latter, be prepared to
re-clone; I expect to fix some recent comment typos and old hashes
would become invalid.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Wed Aug 31 18:42:14 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bfED0-0004ld-Sz
	for mharc-gpsd-dev@gnu.org; Wed, 31 Aug 2016 18:42:14 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:40215)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bfECy-0004lX-9O
	for gpsd-dev@nongnu.org; Wed, 31 Aug 2016 18:42:13 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bfECu-0006uK-5x
	for gpsd-dev@nongnu.org; Wed, 31 Aug 2016 18:42:11 -0400
Received: from c.mail.sonic.net ([64.142.111.80]:52436)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bfECt-0006u3-TH
	for gpsd-dev@nongnu.org; Wed, 31 Aug 2016 18:42:08 -0400
Received: from newshell.sonic.net (bolt.sonic.net [208.201.242.19])
	by c.mail.sonic.net (8.15.1/8.15.1) with ESMTPS id u7VMg1q8028259
	(version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <gpsd-dev@nongnu.org>; Wed, 31 Aug 2016 15:42:01 -0700
Received: from bolt.sonic.net (localhost.localdomain [127.0.0.1])
	by newshell.sonic.net (8.13.6/8.12.1) with ESMTP id u7VMg10x015331
	for <gpsd-dev@nongnu.org>; Wed, 31 Aug 2016 15:42:01 -0700
Received: from localhost (fw@localhost)
	by bolt.sonic.net (8.13.6/8.12.1/Submit) with ESMTP id u7VMg0v2015319
	for <gpsd-dev@nongnu.org>; Wed, 31 Aug 2016 15:42:01 -0700
X-Authentication-Warning: bolt.sonic.net: fw owned process doing -bs
Date: Wed, 31 Aug 2016 15:42:00 -0700 (PDT)
From: Fred Wright <fw@fwright.net>
X-X-Sender: fw@bolt.sonic.net
To: GPSD Developers List <gpsd-dev@nongnu.org>
In-Reply-To: <20160831194654.GA710@thyrsus.com>
Message-ID: <Pine.LNX.4.58L1X.1608311533010.7896@bolt.sonic.net>
References: <20160831194654.GA710@thyrsus.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sonic-CAuth: UmFuZG9tSVZRhbXIVf/gRr1lRSnS//zYahaBfdMUxFR7nA1Qiky6sFHK/j/97T3gyzi6KlE98jHDFTBQ0HDPwAcpPoNMJ2Wx
X-Sonic-ID: C;PtLRIcxv5hGIhaDx2xNB0g== M;9qH5Icxv5hGIhaDx2xNB0g==
X-Sonic-Spam-Details: -1.5/5.0 by cerberusd
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.142.111.80
Subject: Re: [gpsd-dev] Repository move to gitlab may be pending
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 31 Aug 2016 22:42:13 -0000


On Wed, 31 Aug 2016, Eric S. Raymond wrote:

[...]
> I have filed a bug at Savannah, but am not optimistic that this will
> be fixed.  The site is understaffed and the software is aged and
> crumbling.  My plan yesterday was to give the Savannah staff 24 hours
> to respond and if no response were forthcoming to move the repo to
> GitLab, but I have realized that without some notice to the dev list
> this might result in confusion.
[...]

How does GitLab compare with GitHub?  I'd never heard of GitLab before
this, but lots of projects use GitHub (and at least two of us have GPSD
repos on GitHub).  Does GitLab have forks and pull requests like GitHub?
It's a much better workflow for contributions than patches via email.

MacPorts is about to move to GitHub (including migrating from Subversion
to Git), though they mentioned that GitHub's issue tracker doesn't fully
meet their needs, so they'll be keeping the old one.

Fred Wright


From MAILER-DAEMON Wed Aug 31 18:57:11 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bfERT-0000cm-RC
	for mharc-gpsd-dev@gnu.org; Wed, 31 Aug 2016 18:57:11 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:42020)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1bfERR-0000cb-9H
	for gpsd-dev@nongnu.org; Wed, 31 Aug 2016 18:57:10 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1bfERN-00016O-7H
	for gpsd-dev@nongnu.org; Wed, 31 Aug 2016 18:57:08 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:53522 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>)
	id 1bfERN-00015s-3J; Wed, 31 Aug 2016 18:57:05 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 9FAF613A0533; Wed, 31 Aug 2016 18:56:55 -0400 (EDT)
Date: Wed, 31 Aug 2016 18:56:55 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: gpsd-dev@nongnu.org, gpsd-users@nongnu.org
Cc: Bob Proulx <bob@proulx.com>
Message-ID: <20160831225655.GA3769@thyrsus.com>
Reply-To: esr@thyrsus.com
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.24 (2015-08-30)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 71.162.243.5
Subject: [gpsd-dev] Savannah access problem solved
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 31 Aug 2016 22:57:10 -0000

My Savannah access problem is solveed. I'm explainming the solution here
because the same problem could mug anyone on their next ssh upgrade.

In Ubuntu 16.04 ssh was upgraded to version OpenSSH_7.2p2.  This changed the
way it negotiated with ssh servers, which I first noticed when it began
objecting to the string "Version 1" in my ssh config.

I have three private keys: DSA, RSA, and ED25519.  The old client
behavior presented RSA by default, and Savannah was fine with that.
The new client behavior is to present ED25519 by default; what it's
probably doing is looking for the strongest key.  I got a clue to this
when Bob Proulx of Savannah reported that this message might be
associated with my login attempt:

userauth_pubkey: unsupported public key algorithm: ssh-ed25519 

This confused Savannah, which doesn't handle that key type.  The fix is
simple. Append these two lines to your ~/.ssh/config:

Host savannah.gnu.org
IdentityFile ~/.ssh/id_rsa
Host *.sv.gnu.org
IdentityFile ~/.ssh/id_rsa

This will force ssh to ship your RSA key to Savannah and its git host box.

You will probably find you need to re-clone the repo before you can push to it.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Wed Aug 31 19:00:39 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bfEUp-0001re-MN
	for mharc-gpsd-dev@gnu.org; Wed, 31 Aug 2016 19:00:39 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:42473)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1bfEUn-0001qc-6S
	for gpsd-dev@nongnu.org; Wed, 31 Aug 2016 19:00:38 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1bfEUj-0001h7-35
	for gpsd-dev@nongnu.org; Wed, 31 Aug 2016 19:00:36 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:53532 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1bfEUi-0001fy-PQ
	for gpsd-dev@nongnu.org; Wed, 31 Aug 2016 19:00:32 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 2641013A0533; Wed, 31 Aug 2016 19:00:29 -0400 (EDT)
Date: Wed, 31 Aug 2016 19:00:29 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: Fred Wright <fw@fwright.net>
Cc: GPSD Developers List <gpsd-dev@nongnu.org>
Message-ID: <20160831230029.GA4137@thyrsus.com>
Reply-To: esr@thyrsus.com
References: <20160831194654.GA710@thyrsus.com>
	<Pine.LNX.4.58L1X.1608311533010.7896@bolt.sonic.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <Pine.LNX.4.58L1X.1608311533010.7896@bolt.sonic.net>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.24 (2015-08-30)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 71.162.243.5
Subject: Re: [gpsd-dev] Repository move to gitlab may be pending
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 31 Aug 2016 23:00:38 -0000

Fred Wright <fw@fwright.net>:
> How does GitLab compare with GitHub?

They're very similar.  I prefer GitLab, the UI is better in my opinion.

I solved my access problem (see other listmail) but moving there is
still the fallback plan if Savannah goes from tottering on the brink
to fallen all the way over.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Wed Aug 31 19:13:15 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bfEh0-00053n-VY
	for mharc-gpsd-dev@gnu.org; Wed, 31 Aug 2016 19:13:14 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:44408)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bfEgv-0004sw-Iu
	for gpsd-dev@nongnu.org; Wed, 31 Aug 2016 19:13:13 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bfEgr-0003cd-BH
	for gpsd-dev@nongnu.org; Wed, 31 Aug 2016 19:13:08 -0400
Received: from d.mail.sonic.net ([64.142.111.50]:42098)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1bfEgr-0003cZ-22
	for gpsd-dev@nongnu.org; Wed, 31 Aug 2016 19:13:05 -0400
Received: from newshell.sonic.net (bolt.sonic.net [208.201.242.19])
	by d.mail.sonic.net (8.15.1/8.15.1) with ESMTPS id u7VND2Bd013905
	(version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <gpsd-dev@nongnu.org>; Wed, 31 Aug 2016 16:13:02 -0700
Received: from bolt.sonic.net (localhost.localdomain [127.0.0.1])
	by newshell.sonic.net (8.13.6/8.12.1) with ESMTP id u7VND2OB016764
	for <gpsd-dev@nongnu.org>; Wed, 31 Aug 2016 16:13:02 -0700
Received: from localhost (fw@localhost)
	by bolt.sonic.net (8.13.6/8.12.1/Submit) with ESMTP id u7VND2UF016752
	for <gpsd-dev@nongnu.org>; Wed, 31 Aug 2016 16:13:02 -0700
X-Authentication-Warning: bolt.sonic.net: fw owned process doing -bs
Date: Wed, 31 Aug 2016 16:13:02 -0700 (PDT)
From: Fred Wright <fw@fwright.net>
X-X-Sender: fw@bolt.sonic.net
To: GPSD Developers List <gpsd-dev@nongnu.org>
In-Reply-To: <20160831225655.GA3769@thyrsus.com>
Message-ID: <Pine.LNX.4.58L1X.1608311606280.25055@bolt.sonic.net>
References: <20160831225655.GA3769@thyrsus.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sonic-CAuth: UmFuZG9tSVbtRAj94RY4BOCk9LHxQQddzAYxn9E/NZ+LIVoRE3bOF/EQa3Bog5T7Oh86mavLCxaSXYe5Q6OGQS5GETKEmAf5
X-Sonic-ID: C;NtMkd9Bv5hGCia/hcgQksw== M;ApZFd9Bv5hGCia/hcgQksw==
X-Sonic-Spam-Details: -1.5/5.0 by cerberusd
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 64.142.111.50
Subject: Re: [gpsd-dev] Savannah access problem solved
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 31 Aug 2016 23:13:13 -0000


On Wed, 31 Aug 2016, Eric S. Raymond wrote:

> This will force ssh to ship your RSA key to Savannah and its git host box.
>
> You will probably find you need to re-clone the repo before you can push to it.

Really?  Why?  How does a temporary SSH problem invalidate the local repo?
Just curious; I don't have commit access, anyway. :-)

I've never found it necessary to re-clone a repo even in the presence of
rewritten history.  The worst case was when the RTKLIB guy decided he
needed to rewrite the entire repo history for some reason relating to
binary files.  Fetching still worked, but nothing was mergeable.  With no
local changes, I just did a "git reset --hard xxx" on each branch to point
it at the proper new commit ID, and then force-pushed it to my fork.
Then a "git gc" to clean up the orphans.

Fred Wright


From MAILER-DAEMON Wed Aug 31 19:25:33 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bfEsv-0007bR-Ih
	for mharc-gpsd-dev@gnu.org; Wed, 31 Aug 2016 19:25:33 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:45900)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1bfEst-0007bI-Lc
	for gpsd-dev@nongnu.org; Wed, 31 Aug 2016 19:25:32 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1bfEsp-0005sD-De
	for gpsd-dev@nongnu.org; Wed, 31 Aug 2016 19:25:30 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:53752 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1bfEsp-0005rr-9c
	for gpsd-dev@nongnu.org; Wed, 31 Aug 2016 19:25:27 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 934EA13A0533; Wed, 31 Aug 2016 19:24:53 -0400 (EDT)
Date: Wed, 31 Aug 2016 19:24:53 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: Fred Wright <fw@fwright.net>
Cc: GPSD Developers List <gpsd-dev@nongnu.org>
Message-ID: <20160831232453.GA4522@thyrsus.com>
Reply-To: esr@thyrsus.com
References: <20160831225655.GA3769@thyrsus.com>
	<Pine.LNX.4.58L1X.1608311606280.25055@bolt.sonic.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <Pine.LNX.4.58L1X.1608311606280.25055@bolt.sonic.net>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.24 (2015-08-30)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 71.162.243.5
Subject: Re: [gpsd-dev] Savannah access problem solved
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 31 Aug 2016 23:25:32 -0000

Fred Wright <fw@fwright.net>:
> 
> On Wed, 31 Aug 2016, Eric S. Raymond wrote:
> 
> > This will force ssh to ship your RSA key to Savannah and its git
> >host box.  You will probably find you need to re-clone the repo
> >before you can push to it.
> 
> Really?  Why?  How does a temporary SSH problem invalidate the local repo?

I don't know, and it doesn't actually make sense to me either, but
I observed it.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Wed Aug 31 19:45:24 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1bfFC8-0004hZ-Et
	for mharc-gpsd-dev@gnu.org; Wed, 31 Aug 2016 19:45:24 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:48866)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bfFC6-0004hS-Tu
	for gpsd-dev@nongnu.org; Wed, 31 Aug 2016 19:45:23 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bfFC5-0000uu-Sl
	for gpsd-dev@nongnu.org; Wed, 31 Aug 2016 19:45:22 -0400
Received: from rellim.com ([2001:470:e815::19]:39941 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1bfFC5-0000rJ-Ia
	for gpsd-dev@nongnu.org; Wed, 31 Aug 2016 19:45:21 -0400
Received: from spidey.rellim.com (dave.rellim.com
	[IPv6:2001:470:e815:0:0:0:0:19] (may be forged))
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id u7VNiw4R020959
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Wed, 31 Aug 2016 16:45:03 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com u7VNiw4R020959
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1472687104; bh=PwrE73oA/0u3S4RoCx6PM0Zl4rg4zX+I0lWnlWiI5ss=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=oMKQMlg0cBZu1nJhZ8Nbzcs1WcKm2jL+3Vd/xc65loJcLst+5evW10Pr84usDsb+l
	3AMaw/TrqL0Ec19vzko8zkB6fhCSUHoNF/eXjlLtNvkgufy4amZ6gXONhDpUWgCSpN
	zdmpee+D5YRR/nwnLvGsZXQ8YOTg30dNRYBf7zFo=
Date: Wed, 31 Aug 2016 16:44:58 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Fred Wright <fw@fwright.net>
Cc: GPSD Developers List <gpsd-dev@nongnu.org>
Message-ID: <20160831164458.0c7903ff@spidey.rellim.com>
In-Reply-To: <Pine.LNX.4.58L1X.1608311606280.25055@bolt.sonic.net>
References: <20160831225655.GA3769@thyrsus.com>
	<Pine.LNX.4.58L1X.1608311606280.25055@bolt.sonic.net>
Organization: Rellim
X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/3GFH1u4ssxcJ2ISqlepIfFY";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.14
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Wed, 31 Aug 2016 16:45:04 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] Savannah access problem solved
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 31 Aug 2016 23:45:23 -0000

--Sig_/3GFH1u4ssxcJ2ISqlepIfFY
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Fred!

On Wed, 31 Aug 2016 16:13:02 -0700 (PDT)
Fred Wright <fw@fwright.net> wrote:

> I've never found it necessary to re-clone a repo even in the presence
> of rewritten history.

Maybe I'm just not smart enough to fix git problems, but about once a
month I find blowing away my repo and re-cloning is the easiest way to
get back on track.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

--Sig_/3GFH1u4ssxcJ2ISqlepIfFY
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXx2v6AAoJEA0O2UlB0XnY1akIAIkqFERTnEVbiuJ0sE795kZq
NBc8cIMqB4ygnUkxZgQTzulfJvNyGKtQbfcfu5CmhKreJEaJpAtHzTg0MZ9C798S
pKr0SZFP0vZQzwvhf5i4GjtF7pvRCLwACgDuUu9URVOkjtLXa259ZgAdNIGYzkV+
IGnJmLRwNA4PVyyPkfzaIsUROPLT309hg5hXZxkG9HsIpn8QezfuzOI+ikTMbf2m
Vr3WWKZwyRadw702P+veomyK1vPNNEXW4zc7mCuBpQH25XRk5YoTi7v2gMC8PEVX
xlMLO5xEizQZ7BcajiM2ulaXKnfiwVOGuqFs/izGNdU2pnENmZi8qSnjdK03MiE=
=FKZI
-----END PGP SIGNATURE-----

--Sig_/3GFH1u4ssxcJ2ISqlepIfFY--


