From patchwork Sat Apr 2 08:42:05 2005 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Rieger X-Patchwork-Id: 11840 Received: from quechua.inka.de ([193.197.184.2] helo=mail.inka.de ident=mail) by www.linuxtv.org with esmtp (Exim 4.34) id 1DHeHA-0007aW-QJ for vdr@linuxtv.org; Sat, 02 Apr 2005 10:46:40 +0200 Received: from seca.inka.de (uucp@[127.0.0.1]) by mail.inka.de with uucp (rmailwrap 0.5) id 1DHeHO-0006a7-00; Sat, 02 Apr 2005 10:46:54 +0200 Received: from [192.168.1.2] (guna.local [192.168.1.2]) by seca.inka.de (Postfix) with ESMTP id 9AC5544070; Sat, 2 Apr 2005 10:41:59 +0200 (CEST) Message-ID: <424E5ADD.7030709@seca.inka.de> Date: Sat, 02 Apr 2005 10:42:05 +0200 From: Alexander Rieger User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: Klaus Schmidinger's VDR Subject: Re: [vdr] Mailbox plugin : compilation error References: <424DC091.1070409@libertysurf.fr> In-Reply-To: <424DC091.1070409@libertysurf.fr> X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Klaus Schmidinger's VDR List-Id: Klaus Schmidinger's VDR List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Apr 2005 08:46:41 -0000 Status: O X-Status: X-Keywords: X-UID: 1340 Hi Jean-Claude Repetto > I have tried to compile the mailbox plugin V0.1.6, and I got the following error message : > > g++ -O2 -Wall -Woverloaded-virtual -fno-operator-names -D_GNU_SOURCE -c -DPLUGIN_NAME_I18N='"mailbox"' > -I./AxLibDummy/include -I./AxMail/include -I/usr/include/imap/ -I../../../include -I../../../../DVB/include -o > AxMail/src/Mail.o AxMail/src/Mail.cpp > AxMail/src/Mail.cpp: In member function `std::string Ax::Mail::Mail::getDate() > const': > AxMail/src/Mail.cpp:226: error: invalid conversion from `unsigned char*' to ` > const char*' > AxMail/src/Mail.cpp:226: error: initializing argument 1 of ` > std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, > const _Alloc&) [with _CharT = char, _Traits = std::char_traits, _Alloc > = std::allocator]' > make: *** [AxMail/src/Mail.o] Error 1 > > > I am using gcc V3.3.5. Please apply the attached patch to the sources of the mailbox-plugin and try if it works for you. Note: I didn't test this patch myself because my environment ist far away from vdr-1.2.x and mailbox-0.1.x. HTH, Alex diff -Nur mailbox-0.1.6-orig/AxMail/src/Mail.cpp mailbox-0.1.6/AxMail/src/Mail.cpp --- mailbox-0.1.6-orig/AxMail/src/Mail.cpp 2003-12-19 12:05:53.000000000 +0100 +++ mailbox-0.1.6/AxMail/src/Mail.cpp 2005-04-02 10:35:05.000000000 +0200 @@ -223,7 +223,7 @@ if (anEnvelope && anEnvelope->date) { - aStr = string(anEnvelope->date); + aStr = string((const char *)anEnvelope->date); } // if else {