Skip Menu |
 

This queue is for tickets about the Math-Int128 CPAN distribution.

Report information
The Basics
Id: 89304
Status: open
Priority: 0/
Queue: Math-Int128

People
Owner: Nobody in particular
Requestors: DROLSKY [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: perl_math_int128.h does not compile
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Message-ID: <rt-4.0.16-4665-1381165617-1536.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 143
Download (untitled) / with headers
text/plain 143b
I had to copy the typdefs for int128_t and uint128_t from the accompanying perl_math_int128.c to get the header to compile, which makes sense.
MIME-Version: 1.0
X-Spam-Flag: NO
X-Yahoo-Newman-ID: 890037.25389.bm [...] omp1098.mail.gq1.yahoo.com
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -6.999
X-Rocket-Mimeinfo: 002.001,Pl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCj4gRnJvbTogRGF2ZSBSb2xza3kgdmlhIFJUIDxidWctTWF0aC1JbnQxMjhAcnQuY3Bhbi5vcmc.Cj5UbzogCj5TZW50OiBNb25kYXksIE9jdG9iZXIgNywgMjAxMyA3OjA2IFBNCj5TdWJqZWN0OiBbcnQuY3Bhbi5vcmcgIzg5MzA0XSBwZXJsX21hdGhfaW50MTI4LmggZG9lcyBub3QgY29tcGlsZQo.IAo.Cj5Nb24gT2N0IDA3IDEzOjA2OjU4IDIwMTM6IFJlcXVlc3QgODkzMDQgd2FzIGFjdGVkIHVwb24uCj5UcmFuc2FjdGlvbjogVGlja2V0IGNyZWEBMAEBAQE-
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] yahoo.com
Authentication-Results: hipster.bestpractical.com (amavisd-new); domainkeys=pass header.from=sfandino [...] yahoo.com
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 4277061E014 for <cpan-bug+Math-Int128 [...] hipster.bestpractical.com>; Tue, 8 Oct 2013 04:11:53 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5PiHiVej1ukO for <cpan-bug+Math-Int128 [...] hipster.bestpractical.com>; Tue, 8 Oct 2013 04:11:51 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 268E761E00D for <bug-Math-Int128 [...] rt.cpan.org>; Tue, 8 Oct 2013 04:11:50 -0400 (EDT)
Received: (qmail 19297 invoked by alias); 8 Oct 2013 08:11:43 -0000
Received: from nm32-vm9.bullet.mail.gq1.yahoo.com (HELO nm32-vm9.bullet.mail.gq1.yahoo.com) (98.136.216.232) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Tue, 08 Oct 2013 01:11:35 -0700
Received: from [98.137.12.175] by nm32.bullet.mail.gq1.yahoo.com with NNFMP; 08 Oct 2013 08:11:23 -0000
Received: from [216.39.60.211] by tm14.bullet.mail.gq1.yahoo.com with NNFMP; 08 Oct 2013 08:11:23 -0000
Received: from [127.0.0.1] by omp1098.mail.gq1.yahoo.com with NNFMP; 08 Oct 2013 08:11:23 -0000
Received: (qmail 82388 invoked by uid 60001); 8 Oct 2013 08:11:23 -0000
Received: from [92.56.140.52] by web163103.mail.bf1.yahoo.com via HTTP; Tue, 08 Oct 2013 01:11:22 PDT
Delivered-To: cpan-bug+Math-Int128 [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #89304] perl_math_int128.h does not compile
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1381219882; bh=0v3FBG90G2uzg606BoagLnEFFnrffJu2Q+PZcRfGSL4=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=mxGNEeDShuBJzOPHtrC+v8ZuDP2viIMYoXBy4gPxitcEpK3j3RDrU3KMxUK1BVbAvxl2PaX/UPbwyze8QlSJO9AiTjl0iyf+N8O/UzmOqmEFslCfDpGdqYYn0Bzykund8lwdOUj+eaFhRagT9tqRz2jnYpwWrtc0Y96/tH+n80M=
X-Spam-Check-BY: la.mx.develooper.com
Date: Tue, 8 Oct 2013 01:11:22 -0700 (PDT)
X-Spam-Level:
To: "bug-Math-Int128 [...] rt.cpan.org" <bug-Math-Int128 [...] rt.cpan.org>
Content-Transfer-Encoding: quoted-printable
From sfandino [...] yahoo.com Tue Oct 8 04: 11:53 2013
X-Ymail-Osg: uShPCysVM1nqx9wh3AKE1joLU39YBNakMo111FoOzNRAzQ7 iKCDyy1SuTmVO1_o1.ivxwG5s5_7IBZJTzi8q993G3XPDpPJs8W5DVNcQfdf t4DB4TGb.EFrAGBT79m983m1i6dmBsF61ekF0gqqYj6LtSh7D1sh64AEClrw tMp7uvnFBGQyFhtXd7kqyy5N0FCUFnzyn_D2rMtK5wirm1yXjiPkPQNU4dAZ 0J92Rtz55R143.rwZIljv_WJhC.j_z4gbKHXI_AWijGgjYbOw60spuoXJo0B AdF35.Z.AWuGb2vgx846JamTc9maQ8PsWQr8nKlZRNsCnfAe6tgeO3zURxeR qQi1xw_2a6to8OJVErU20Qea8sozxVEPYpiF.o.vRGWNduyfrzMB7WgO1EDa fTrc3PlUw.rycAPalV6LrzQIwPxmxgdYCnjaEs5412QfmRWMO19_2tsx.f0a n76gaMlFe5uPhGLvNeUPkHkpb38mEcHAHvlkm.54y1LK0Y3FhlMGESHARh1p D9UKvG5liRsKz74dZC7lRnaVbeDpURV.fNkigoK8cDYvNGhhEw61Kk1V9jIZ kS.1VG4meFKZ9nIw.3gzCcFvlxjyacs6yaIlR9g4kUsOiSz0TjpMyIJD.oSf zclhCs6DuhLHBoAghbzh98rw-
In-Reply-To: <rt-4.0.16-4665-1381165618-1068.89304-4-0 [...] rt.cpan.org>
X-Spam-Status: No, score=-6.999 tagged_above=-99.9 required=10 tests=[AWL=0.000, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_HI=-5] autolearn=ham
X-Mailer: YahooMailWebService/0.8.160.587
X-RT-Interface: API
References: <RT-Ticket-89304 [...] rt.cpan.org> <rt-4.0.16-4665-1381165618-1068.89304-4-0 [...] rt.cpan.org>
Reply-To: Salvador Fandino <sfandino [...] yahoo.com>
Message-ID: <1381219882.82330.YahooMailNeo [...] web163103.mail.bf1.yahoo.com>
X-Yahoo-Newman-Property: ymail-3
Domainkey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=NpbCLTd3BFxLphvQzEEYAu9mg0l0ZvZU8TDbMD0bHA5JCwLKOxuFmX0xpmihY6CZTiOuEyGeOoNTiToeFs3nf6JnGz+S8FuJbTEDARykbHq5xxeVGRvODByjp17SxoHF77uPWKOJxTKPvLqI5TPy4L8n2R8jIsHDKAQC7naV9wc=;
Return-Path: <sfandino [...] yahoo.com>
X-RT-Mail-Extension: math-int128
X-Original-To: cpan-bug+Math-Int128 [...] hipster.bestpractical.com
From: Salvador Fandino <sfandino [...] yahoo.com>
RT-Message-ID: <rt-4.0.16-9269-1381219914-78.89304-0-0 [...] rt.cpan.org>
Content-Length: 905
Download (untitled) / with headers
text/plain 905b
Show quoted text
>________________________________ > From: Dave Rolsky via RT <bug-Math-Int128@rt.cpan.org> >To: >Sent: Monday, October 7, 2013 7:06 PM >Subject: [rt.cpan.org #89304] perl_math_int128.h does not compile > > >Mon Oct 07 13:06:58 2013: Request 89304 was acted upon. >Transaction: Ticket created by DROLSKY >       Queue: Math-Int128 >     Subject: perl_math_int128.h does not compile >   Broken in: (no value) >    Severity: (no value) >       Owner: Nobody >  Requestors: DROLSKY@cpan.org >      Status: new >Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=89304 > > > >I had to copy the typdefs for int128_t and uint128_t from the accompanying perl_math_int128.c to get the header to compile, which makes sense.
That's on purpose, to avoid collisions with other code also defining them, which is a pretty common thing. Though, I suppose it should be better documented.
From autarch [...] urth.org Tue Oct 8 10: 22:54 2013
CC: DROLSKY [...] cpan.org
MIME-Version: 1.0
X-Spam-Status: No, score=-6.889 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_FAIL=0.001, T_FRT_ABSOLUT=0.01] autolearn=ham
In-Reply-To: <rt-4.0.16-9269-1381219914-1216.89304-6-0 [...] rt.cpan.org>
X-Spam-Flag: NO
X-RT-Interface: API
References: <RT-Ticket-89304 [...] rt.cpan.org> <rt-4.0.16-4665-1381165618-1068.89304-4-0 [...] rt.cpan.org> <1381219882.82330.YahooMailNeo [...] web163103.mail.bf1.yahoo.com> <rt-4.0.16-9269-1381219914-1216.89304-6-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <alpine.DEB.2.02.1310081421420.28392 [...] urth.org>
X-Spam-Score: -6.889
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 6064124137F for <cpan-bug+Math-Int128 [...] hipster.bestpractical.com>; Tue, 8 Oct 2013 10:22:54 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fhbWrYtFidXy for <cpan-bug+Math-Int128 [...] hipster.bestpractical.com>; Tue, 8 Oct 2013 10:22:53 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id B91A5240CAB for <bug-Math-Int128 [...] rt.cpan.org>; Tue, 8 Oct 2013 10:22:52 -0400 (EDT)
Received: (qmail 27829 invoked by alias); 8 Oct 2013 14:22:51 -0000
Received: from urth.org (HELO urth.org) (173.255.231.148) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Tue, 08 Oct 2013 07:22:44 -0700
Received: by urth.org (Postfix, from userid 1000) id D77797A215; Tue, 8 Oct 2013 14:22:40 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1]) by urth.org (Postfix) with ESMTP id 81423233B2B; Tue, 8 Oct 2013 14:22:40 +0000 (UTC)
Delivered-To: cpan-bug+Math-Int128 [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #89304] perl_math_int128.h does not compile
User-Agent: Alpine 2.02 (DEB 1266 2009-07-14)
Return-Path: <autarch [...] urth.org>
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: cpan-bug+Math-Int128 [...] hipster.bestpractical.com
X-RT-Mail-Extension: math-int128
Date: Tue, 8 Oct 2013 14:22:40 +0000 (UTC)
X-Spam-Level:
To: "Salvador \\"Fandiño\\" via RT" <bug-Math-Int128 [...] rt.cpan.org>
From: Dave Rolsky <autarch [...] urth.org>
RT-Message-ID: <rt-4.0.16-25849-1381242175-1766.89304-0-0 [...] rt.cpan.org>
Content-Type: TEXT/PLAIN; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 8BIT
Content-Length: 836
Download (untitled) / with headers
text/plain 836b
On Tue, 8 Oct 2013, Salvador \"Fandiño\" via RT wrote: Show quoted text
>> I had to copy the typdefs for int128_t and uint128_t from the accompanying perl_math_int128.c to get the header to compile, which makes sense.
> > > That's on purpose, to avoid collisions with other code also defining them, which is a pretty common thing. > > Though, I suppose it should be better documented.
It's just not clear how one is expected to use this then. Are we supposed to define them in our own code before including this header? The header relies on these definitions, so they have to be present somehow. -dave /*============================================================ http://VegGuide.org http://blog.urth.org Your guide to all that's veg House Absolute(ly Pointless) ============================================================*/
MIME-Version: 1.0
X-Spam-Flag: NO
X-Yahoo-Newman-ID: 530531.91700.bm [...] omp1034.mail.bf1.yahoo.com
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -6.999
X-Rocket-Mimeinfo: 002.001,CgoKCi0tLS0tIE9yaWdpbmFsIE1lc3NhZ2UgLS0tLS0KPiBGcm9tOiAiYXV0YXJjaEB1cnRoLm9yZyB2aWEgUlQiIDxidWctTWF0aC1JbnQxMjhAcnQuY3Bhbi5vcmc.Cj4gVG86IAo.IENjOiAKPiBTZW50OiBUdWVzZGF5LCBPY3RvYmVyIDgsIDIwMTMgNDoyMiBQTQo.IFN1YmplY3Q6IFJlOiBbcnQuY3Bhbi5vcmcgIzg5MzA0XSBwZXJsX21hdGhfaW50MTI4LmggZG9lcyBub3QgY29tcGlsZQo.IAo.IMKgIMKgIMKgICBRdWV1ZTogTWF0aC1JbnQxMjgKPiBUaWNrZXQgPFVSTDogaHR0cHM6Ly9ydC5jcGFuLm8BMAEBAQE-
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] yahoo.com
Authentication-Results: hipster.bestpractical.com (amavisd-new); domainkeys=pass header.from=sfandino [...] yahoo.com
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 5AE6261E007 for <cpan-bug+Math-Int128 [...] hipster.bestpractical.com>; Wed, 9 Oct 2013 01:44:28 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pwiyvkL8Dt2d for <cpan-bug+Math-Int128 [...] hipster.bestpractical.com>; Wed, 9 Oct 2013 01:44:27 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 41293241383 for <bug-Math-Int128 [...] rt.cpan.org>; Wed, 9 Oct 2013 01:44:26 -0400 (EDT)
Received: (qmail 5339 invoked by alias); 9 Oct 2013 05:44:26 -0000
Received: from nm32-vm1.bullet.mail.bf1.yahoo.com (HELO nm32-vm1.bullet.mail.bf1.yahoo.com) (72.30.239.137) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Tue, 08 Oct 2013 22:44:18 -0700
Received: from [98.139.215.140] by nm32.bullet.mail.bf1.yahoo.com with NNFMP; 09 Oct 2013 05:44:14 -0000
Received: from [98.139.212.225] by tm11.bullet.mail.bf1.yahoo.com with NNFMP; 09 Oct 2013 05:44:14 -0000
Received: from [127.0.0.1] by omp1034.mail.bf1.yahoo.com with NNFMP; 09 Oct 2013 05:44:14 -0000
Received: (qmail 14626 invoked by uid 60001); 9 Oct 2013 05:44:14 -0000
Received: from [92.56.140.52] by web163105.mail.bf1.yahoo.com via HTTP; Tue, 08 Oct 2013 22:44:13 PDT
Delivered-To: cpan-bug+Math-Int128 [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #89304] perl_math_int128.h does not compile
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1381297454; bh=AwEm3QXzNlHt74rykZSK+m24T7EH3On2YZnW3jl4UIc=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=NRIkE/+2YXTesS4IvHmSZahT8D3MLnVHs5BkGRBrLe2Wdq1Wbr5dKoeICTairSZ99T/gLvPEKX8uLO7l6ajm4BHosJpr9hhDqwHSvAH7J9K3qiJ8M3XZr9nD4CbMZguGGk8TWHPDU9parApI+yV81BUCBAnMYVSxjCC4696L66I=
X-Spam-Check-BY: la.mx.develooper.com
Date: Tue, 8 Oct 2013 22:44:13 -0700 (PDT)
X-Spam-Level:
To: "bug-Math-Int128 [...] rt.cpan.org" <bug-Math-Int128 [...] rt.cpan.org>
Content-Transfer-Encoding: quoted-printable
From sfandino [...] yahoo.com Wed Oct 9 01: 44:28 2013
X-Ymail-Osg: QG_qeqYVM1lghmb_K9vSTlVtE.FvDpZZpmvseQb1l_3HsY7 89IZwdUF6RaesSyQ8NyWjB_hxTTXNR9grzMDYdzOn._zb4T1LP1Vm8SQuqaC AvTxOPqQspjYULWTdgrPz7cL2TtuIPkemryDdLTICCVmV7tZIpu9pzimru1x M5yCul.VuHulVZ9R2YlZav8EHULd5tmZihdE6SBddmPFJAL1fkjcDeFCuKXv mj4.lWJD6J9liQknReTTXI8TrjY3ZI.LOGvRDj8CVJCX2zZy4Iu0noSBYr7C lZv48ST49HRosr0KfFjaGtwHl6bKBTxue3X.D.JChlOqfmbUI8jJ_W0HC53k MqdV7bVubEhl4G9eqlt4PPj4tdBT2cEz9GxUU80CkmSHmd307LQgJXFwDKUR M9btjghcfJnn1PUZk1RI5N1RRcecipwuID3_qYn.bf8FTiiWWIpkevoolylO V2EdkRibcrGB0nkYz3mGDPNS5723k5q5r1.8gU2ObIfrGy68BrDkwR7AmBmM Pd4bpYw8u1lS1rmR_uzVYgVgot6qgujZtqvZsQYwpy1HDuKcqfPnYxFaFlY7 ZM3z3wTURsaQ1ZWds1IAhMq7NKn7OurLg1YLnBMLSWPLLpvop_plL6j7DnX8 E3kGveIWNIcc4ApBlH.kfAck-
In-Reply-To: <rt-4.0.16-25849-1381242175-1657.89304-5-0 [...] rt.cpan.org>
X-Spam-Status: No, score=-6.999 tagged_above=-99.9 required=10 tests=[AWL=0.000, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_HI=-5] autolearn=ham
X-Mailer: YahooMailWebService/0.8.160.587
X-RT-Interface: API
References: <RT-Ticket-89304 [...] rt.cpan.org> <rt-4.0.16-4665-1381165618-1068.89304-4-0 [...] rt.cpan.org> <1381219882.82330.YahooMailNeo [...] web163103.mail.bf1.yahoo.com> <rt-4.0.16-9269-1381219914-1216.89304-6-0 [...] rt.cpan.org> <alpine.DEB.2.02.1310081421420.28392 [...] urth.org> <rt-4.0.16-25849-1381242175-1657.89304-5-0 [...] rt.cpan.org>
Reply-To: Salvador Fandino <sfandino [...] yahoo.com>
Message-ID: <1381297453.14219.YahooMailNeo [...] web163105.mail.bf1.yahoo.com>
X-Yahoo-Newman-Property: ymail-3
Domainkey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=GjnGUGq98uivBfUPPYe9v8MfR44TtTsmgbS76WByrDBVR+GGUVAUswSBsaPCB9YXBADL6NpywxES9eplZDTS77FGRbNQpg/j1hRDGxLkETc6Ey+yjoziesoOneADWYCCuCHZeVaUCauamxwkwLrW1OgpjoT9lLT0YiHD4xOQo6I=;
Return-Path: <sfandino [...] yahoo.com>
X-RT-Mail-Extension: math-int128
X-Original-To: cpan-bug+Math-Int128 [...] hipster.bestpractical.com
From: Salvador Fandino <sfandino [...] yahoo.com>
RT-Message-ID: <rt-4.0.16-18913-1381297469-1430.89304-0-0 [...] rt.cpan.org>
Content-Length: 1114
Show quoted text
----- Original Message -----
> From: "autarch@urth.org via RT" <bug-Math-Int128@rt.cpan.org> > To: > Cc: > Sent: Tuesday, October 8, 2013 4:22 PM > Subject: Re: [rt.cpan.org #89304] perl_math_int128.h does not compile > >       Queue: Math-Int128 > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=89304 > > > On Tue, 8 Oct 2013, Salvador \"Fandiño\" via RT wrote: >
>>> I had to copy the typdefs for int128_t and uint128_t from the
> accompanying perl_math_int128.c to get the header to compile, which makes sense.
>> >> >> That's on purpose, to avoid collisions with other code also defining
> them, which is a pretty common thing.
>> >> Though, I suppose it should be better documented.
> > It's just not clear how one is expected to use this then. Are we supposed > to define them in our own code before including this header?
Yes, the reason behind is that if you are wrapping some library (say libfoo) that uses 128 bit integers, those types are probably already defined on the library header (libfoo.h), and so, defining them again in perl_math_int128.h will cause an error.
From autarch [...] urth.org Wed Oct 9 11: 05:54 2013
CC: DROLSKY [...] cpan.org
MIME-Version: 1.0
X-Spam-Status: No, score=-6.889 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_FAIL=0.001, T_FRT_ABSOLUT=0.01] autolearn=ham
In-Reply-To: <rt-4.0.16-18913-1381297469-1864.89304-6-0 [...] rt.cpan.org>
X-Spam-Flag: NO
X-RT-Interface: API
References: <RT-Ticket-89304 [...] rt.cpan.org> <rt-4.0.16-4665-1381165618-1068.89304-4-0 [...] rt.cpan.org> <1381219882.82330.YahooMailNeo [...] web163103.mail.bf1.yahoo.com> <rt-4.0.16-9269-1381219914-1216.89304-6-0 [...] rt.cpan.org> <alpine.DEB.2.02.1310081421420.28392 [...] urth.org> <rt-4.0.16-25849-1381242175-1657.89304-5-0 [...] rt.cpan.org> <1381297453.14219.YahooMailNeo [...] web163105.mail.bf1.yahoo.com> <rt-4.0.16-18913-1381297469-1864.89304-6-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <alpine.DEB.2.02.1310091504160.28392 [...] urth.org>
X-Spam-Score: -6.889
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 7557D24087F for <cpan-bug+Math-Int128 [...] hipster.bestpractical.com>; Wed, 9 Oct 2013 11:05:54 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9svo38KrmESi for <cpan-bug+Math-Int128 [...] hipster.bestpractical.com>; Wed, 9 Oct 2013 11:05:49 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 927AA2400DD for <bug-Math-Int128 [...] rt.cpan.org>; Wed, 9 Oct 2013 11:05:49 -0400 (EDT)
Received: (qmail 25260 invoked by alias); 9 Oct 2013 15:05:49 -0000
Received: from urth.org (HELO urth.org) (173.255.231.148) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Wed, 09 Oct 2013 08:05:42 -0700
Received: by urth.org (Postfix, from userid 1000) id 1F1C2DCE2; Wed, 9 Oct 2013 15:05:39 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1]) by urth.org (Postfix) with ESMTP id 0AB13DCE1; Wed, 9 Oct 2013 15:05:39 +0000 (UTC)
Delivered-To: cpan-bug+Math-Int128 [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #89304] perl_math_int128.h does not compile
User-Agent: Alpine 2.02 (DEB 1266 2009-07-14)
Return-Path: <autarch [...] urth.org>
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: cpan-bug+Math-Int128 [...] hipster.bestpractical.com
X-RT-Mail-Extension: math-int128
Date: Wed, 9 Oct 2013 15:05:38 +0000 (UTC)
X-Spam-Level:
To: "Salvador \\"Fandiño\\" via RT" <bug-Math-Int128 [...] rt.cpan.org>
From: Dave Rolsky <autarch [...] urth.org>
RT-Message-ID: <rt-4.0.16-28087-1381331155-1162.89304-0-0 [...] rt.cpan.org>
Content-Type: TEXT/PLAIN; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 8BIT
Content-Length: 946
Download (untitled) / with headers
text/plain 946b
On Wed, 9 Oct 2013, Salvador \"Fandiño\" via RT wrote: Show quoted text
>> It's just not clear how one is expected to use this then. Are we supposed >> to define them in our own code before including this header?
> > Yes, the reason behind is that if you are wrapping some library (say libfoo) that uses 128 bit integers, those types are probably already defined on the library header (libfoo.h), and so, defining them again in perl_math_int128.h will cause an error.
If someone else has a typedef for uint128_t that doesn't match the header's typedef then this will break anyway. I think it's better to just define the typedef and then if there's a conflict the compiler should report an error (right?). -dave /*============================================================ http://VegGuide.org http://blog.urth.org Your guide to all that's veg House Absolute(ly Pointless) ============================================================*/


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.