Message ID | 53184DA0.4010703@tvdr.de |
---|---|
State | New |
Headers |
Received: from localhost ([127.0.0.1] helo=www.linuxtv.org) by www.linuxtv.org with esmtp (Exim 4.72) (envelope-from <vdr-bounces@linuxtv.org>) id 1WLVWr-0000Km-Vv; Thu, 06 Mar 2014 11:27:53 +0100 Received: from mail.tu-berlin.de ([130.149.7.33]) by www.linuxtv.org with esmtp (Exim 4.72) (envelope-from <Klaus.Schmidinger@tvdr.de>) id 1WLVWq-0000Kh-La for vdr@linuxtv.org; Thu, 06 Mar 2014 11:27:52 +0100 X-tubIT-Incoming-IP: 188.40.50.18 Received: from racoon.tvdr.de ([188.40.50.18]) by mail.tu-berlin.de (exim-4.72/mailfrontend-8) with esmtps [TLSv1:AES256-SHA:256] for <vdr@linuxtv.org> id 1WLVWp-00029f-jy; Thu, 06 Mar 2014 11:27:52 +0100 Received: from dolphin.tvdr.de (dolphin.tvdr.de [192.168.100.2]) by racoon.tvdr.de (8.14.5/8.14.5) with ESMTP id s26ARonM007118 for <vdr@linuxtv.org>; Thu, 6 Mar 2014 11:27:50 +0100 Received: from [192.168.100.11] (falcon.tvdr.de [192.168.100.11]) by dolphin.tvdr.de (8.14.4/8.14.4) with ESMTP id s26ARi7t024862 for <vdr@linuxtv.org>; Thu, 6 Mar 2014 11:27:44 +0100 Message-ID: <53184DA0.4010703@tvdr.de> Date: Thu, 06 Mar 2014 11:27:44 +0100 From: Klaus Schmidinger <Klaus.Schmidinger@tvdr.de> User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: vdr@linuxtv.org References: <5309F3A4.9010908@tvdr.de> <CAHSUVA4V4ocY7-L_hAb62LNt42nHP9Hr3MT6-eporUAeWd=Y_w@mail.gmail.com> In-Reply-To: <CAHSUVA4V4ocY7-L_hAb62LNt42nHP9Hr3MT6-eporUAeWd=Y_w@mail.gmail.com> X-PMX-Version: 6.0.0.2142326, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2014.3.6.101514 X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' HTML_00_01 0.05, HTML_00_10 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_2000_2999 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, __ANY_URI 0, __BOUNCE_CHALLENGE_SUBJ 0, __BOUNCE_NDR_SUBJ_EXEMPT 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __FORWARDED_MSG 0, __HAS_FROM 0, __HAS_MSGID 0, __IN_REP_TO 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __MOZILLA_MSGID 0, __MOZILLA_USER_AGENT 0, __RUS_OBFU_PHONE 0, __SANE_MSGID 0, __STOCK_PHRASE_24 0, __SUBJ_ALPHA_NEGATE 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_NO_MAILTO 0, __URI_NO_PATH 0, __URI_NO_WWW 0, __USER_AGENT 0' X-LSpam-Score: -1.1 (-) X-LSpam-Report: No, score=-1.1 required=5.0 tests=BAYES_00=-1.9, RDNS_NONE=0.793 autolearn=no Subject: Re: [vdr] [ANNOUNCE] VDR developer version 2.1.5 X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: VDR Mailing List <vdr@linuxtv.org> List-Id: VDR Mailing List <vdr.linuxtv.org> List-Unsubscribe: <http://www.linuxtv.org/cgi-bin/mailman/options/vdr>, <mailto:vdr-request@linuxtv.org?subject=unsubscribe> List-Archive: <http://www.linuxtv.org/pipermail/vdr> List-Post: <mailto:vdr@linuxtv.org> List-Help: <mailto:vdr-request@linuxtv.org?subject=help> List-Subscribe: <http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr>, <mailto:vdr-request@linuxtv.org?subject=subscribe> Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: vdr-bounces@linuxtv.org Errors-To: vdr-bounces@linuxtv.org |
Commit Message
Klaus Schmidinger
March 6, 2014, 10:27 a.m. UTC
On 06.03.2014 11:24, Andrey Pavlenko wrote: > Hi, > > The build fails on Ubuntu Precise with error: > > ci.c: In member function 'void cCiDateTime::SendDateTime()': > ci.c:867:18: error: expected primary-expression before '.' token > ci.c:867:37: error: expected primary-expression before '.' token > ci.c:867:67: error: expected primary-expression before '.' token > ci.c:867:96: error: expected primary-expression before '.' token > ci.c:867:125: error: expected primary-expression before '.' token > ci.c: In member function 'virtual void cCiMMI::Process(int, const uint8_t*)': > ci.c:1007:47: error: expected primary-expression before '.' token > ci.c:1007:71: error: expected primary-expression before '.' token > > However, on Ubuntu Saucy and Trusty the build passes. Do this to revert that change: Klaus
Comments
Thanks, this patch fixes the error. On Thu, Mar 6, 2014 at 2:27 PM, Klaus Schmidinger <Klaus.Schmidinger@tvdr.de > wrote: > On 06.03.2014 11:24, Andrey Pavlenko wrote: > >> Hi, >> >> The build fails on Ubuntu Precise with error: >> >> ci.c: In member function 'void cCiDateTime::SendDateTime()': >> ci.c:867:18: error: expected primary-expression before '.' token >> ci.c:867:37: error: expected primary-expression before '.' token >> ci.c:867:67: error: expected primary-expression before '.' token >> ci.c:867:96: error: expected primary-expression before '.' token >> ci.c:867:125: error: expected primary-expression before '.' token >> ci.c: In member function 'virtual void cCiMMI::Process(int, const >> uint8_t*)': >> ci.c:1007:47: error: expected primary-expression before '.' token >> ci.c:1007:71: error: expected primary-expression before '.' token >> >> However, on Ubuntu Saucy and Trusty the build passes. >> > > Do this to revert that change: > > --- ci.c 2014/02/08 12:25:55 3.11 > +++ ci.c 2014/02/25 09:59:55 3.12 > @@ -864,7 +864,7 @@ > #pragma pack(1) > struct tTime { uint16_t mjd; uint8_t h, m, s; short offset; }; > #pragma pack() > - tTime T = { .mjd = htons(MJD), .h = DEC2BCD(tm_gmt.tm_hour), .m = > DEC2BCD(tm_gmt.tm_min), .s = DEC2BCD(tm_gmt.tm_sec), .offset = > short(htons(tm_loc.tm_gmtoff / 60)) }; > + tTime T = { mjd : htons(MJD), h : DEC2BCD(tm_gmt.tm_hour), m : > DEC2BCD(tm_gmt.tm_min), s : DEC2BCD(tm_gmt.tm_sec), offset : > short(htons(tm_loc.tm_gmtoff / 60)) }; > bool OldDumpTPDUDataTransfer = DumpTPDUDataTransfer; > DumpTPDUDataTransfer &= DumpDateTime; > if (DumpDateTime) > @@ -1004,7 +1004,7 @@ > case DCC_SET_MMI_MODE: > if (l == 2 && *++d == MM_HIGH_LEVEL) { > struct tDisplayReply { uint8_t id; uint8_t mode; > }; > - tDisplayReply dr = { .id = DRI_MMI_MODE_ACK, > .mode = MM_HIGH_LEVEL }; > + tDisplayReply dr = { id : DRI_MMI_MODE_ACK, mode > : MM_HIGH_LEVEL }; > dbgprotocol("Slot %d: ==> Display Reply (%d)\n", > Tc()->CamSlot()->SlotNumber(), SessionId()); > SendData(AOT_DISPLAY_REPLY, 2, (uint8_t *)&dr); > > } > > > Klaus > > _______________________________________________ > vdr mailing list > vdr@linuxtv.org > http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr >
Still have problems after applying this patch on CentOS 64bit: ci.c: In member function 'void cCiDateTime::SendDateTime()': ci.c:867: error: 'mjd' was not declared in this scope ci.c:867: error: 'h' was not declared in this scope ci.c:867: error: 'm' was not declared in this scope ci.c:867: error: 's' was not declared in this scope ci.c:867: error: 'offset' was not declared in this scope ci.c: In member function 'virtual void cCiMMI::Process(int, const uint8_t*)': ci.c:1007: error: 'id' was not declared in this scope ci.c:1007: error: 'mode' was not declared in this scope make: *** [ci.o] Error 1 On Thu, Mar 6, 2014 at 12:27 PM, Klaus Schmidinger < Klaus.Schmidinger@tvdr.de> wrote: > On 06.03.2014 11:24, Andrey Pavlenko wrote: > >> Hi, >> >> The build fails on Ubuntu Precise with error: >> >> ci.c: In member function 'void cCiDateTime::SendDateTime()': >> ci.c:867:18: error: expected primary-expression before '.' token >> ci.c:867:37: error: expected primary-expression before '.' token >> ci.c:867:67: error: expected primary-expression before '.' token >> ci.c:867:96: error: expected primary-expression before '.' token >> ci.c:867:125: error: expected primary-expression before '.' token >> ci.c: In member function 'virtual void cCiMMI::Process(int, const >> uint8_t*)': >> ci.c:1007:47: error: expected primary-expression before '.' token >> ci.c:1007:71: error: expected primary-expression before '.' token >> >> However, on Ubuntu Saucy and Trusty the build passes. >> > > Do this to revert that change: > > --- ci.c 2014/02/08 12:25:55 3.11 > +++ ci.c 2014/02/25 09:59:55 3.12 > @@ -864,7 +864,7 @@ > #pragma pack(1) > struct tTime { uint16_t mjd; uint8_t h, m, s; short offset; }; > #pragma pack() > - tTime T = { .mjd = htons(MJD), .h = DEC2BCD(tm_gmt.tm_hour), .m = > DEC2BCD(tm_gmt.tm_min), .s = DEC2BCD(tm_gmt.tm_sec), .offset = > short(htons(tm_loc.tm_gmtoff / 60)) }; > + tTime T = { mjd : htons(MJD), h : DEC2BCD(tm_gmt.tm_hour), m : > DEC2BCD(tm_gmt.tm_min), s : DEC2BCD(tm_gmt.tm_sec), offset : > short(htons(tm_loc.tm_gmtoff / 60)) }; > bool OldDumpTPDUDataTransfer = DumpTPDUDataTransfer; > DumpTPDUDataTransfer &= DumpDateTime; > if (DumpDateTime) > @@ -1004,7 +1004,7 @@ > case DCC_SET_MMI_MODE: > if (l == 2 && *++d == MM_HIGH_LEVEL) { > struct tDisplayReply { uint8_t id; uint8_t mode; > }; > - tDisplayReply dr = { .id = DRI_MMI_MODE_ACK, > .mode = MM_HIGH_LEVEL }; > + tDisplayReply dr = { id : DRI_MMI_MODE_ACK, mode > : MM_HIGH_LEVEL }; > dbgprotocol("Slot %d: ==> Display Reply (%d)\n", > Tc()->CamSlot()->SlotNumber(), SessionId()); > SendData(AOT_DISPLAY_REPLY, 2, (uint8_t *)&dr); > > } > > > Klaus > > _______________________________________________ > vdr mailing list > vdr@linuxtv.org > http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr >
On 10.03.2014 08:38, Valdemaras Pipiras wrote: > Still have problems after applying this patch on CentOS 64bit: > > > ci.c: In member function 'void cCiDateTime::SendDateTime()': > ci.c:867: error: 'mjd' was not declared in this scope > ci.c:867: error: 'h' was not declared in this scope > ci.c:867: error: 'm' was not declared in this scope > ci.c:867: error: 's' was not declared in this scope > ci.c:867: error: 'offset' was not declared in this scope > ci.c: In member function 'virtual void cCiMMI::Process(int, const uint8_t*)': > ci.c:1007: error: 'id' was not declared in this scope > ci.c:1007: error: 'mode' was not declared in this scope > make: *** [ci.o] Error 1 Try using the version of ci.c that came with VDR 2.1.4. Klaus
Yes, it works with the version from 2.1.4 On Mon, Mar 10, 2014 at 12:22 PM, Klaus Schmidinger < Klaus.Schmidinger@tvdr.de> wrote: > On 10.03.2014 08:38, Valdemaras Pipiras wrote: > >> Still have problems after applying this patch on CentOS 64bit: >> >> >> ci.c: In member function 'void cCiDateTime::SendDateTime()': >> ci.c:867: error: 'mjd' was not declared in this scope >> ci.c:867: error: 'h' was not declared in this scope >> ci.c:867: error: 'm' was not declared in this scope >> ci.c:867: error: 's' was not declared in this scope >> ci.c:867: error: 'offset' was not declared in this scope >> ci.c: In member function 'virtual void cCiMMI::Process(int, const >> uint8_t*)': >> ci.c:1007: error: 'id' was not declared in this scope >> ci.c:1007: error: 'mode' was not declared in this scope >> make: *** [ci.o] Error 1 >> > > Try using the version of ci.c that came with VDR 2.1.4. > > > Klaus > > _______________________________________________ > vdr mailing list > vdr@linuxtv.org > http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr >
--- ci.c 2014/02/08 12:25:55 3.11 +++ ci.c 2014/02/25 09:59:55 3.12 @@ -864,7 +864,7 @@ #pragma pack(1) struct tTime { uint16_t mjd; uint8_t h, m, s; short offset; }; #pragma pack() - tTime T = { .mjd = htons(MJD), .h = DEC2BCD(tm_gmt.tm_hour), .m = DEC2BCD(tm_gmt.tm_min), .s = DEC2BCD(tm_gmt.tm_sec), .offset = short(htons(tm_loc.tm_gmtoff / 60)) }; + tTime T = { mjd : htons(MJD), h : DEC2BCD(tm_gmt.tm_hour), m : DEC2BCD(tm_gmt.tm_min), s : DEC2BCD(tm_gmt.tm_sec), offset : short(htons(tm_loc.tm_gmtoff / 60)) }; bool OldDumpTPDUDataTransfer = DumpTPDUDataTransfer; DumpTPDUDataTransfer &= DumpDateTime; if (DumpDateTime) @@ -1004,7 +1004,7 @@ case DCC_SET_MMI_MODE: if (l == 2 && *++d == MM_HIGH_LEVEL) { struct tDisplayReply { uint8_t id; uint8_t mode; }; - tDisplayReply dr = { .id = DRI_MMI_MODE_ACK, .mode = MM_HIGH_LEVEL }; + tDisplayReply dr = { id : DRI_MMI_MODE_ACK, mode : MM_HIGH_LEVEL }; dbgprotocol("Slot %d: ==> Display Reply (%d)\n", Tc()->CamSlot()->SlotNumber(), SessionId()); SendData(AOT_DISPLAY_REPLY, 2, (uint8_t *)&dr); }