Message ID | 56BCDE31.4010206@t-online.de |
---|---|
State | New |
Headers |
Received: from localhost ([127.0.0.1] helo=www.linuxtv.org) by www.linuxtv.org with esmtp (Exim 4.84) (envelope-from <vdr-bounces@linuxtv.org>) id 1aTwjp-0004BM-Vd; Thu, 11 Feb 2016 19:17:13 +0000 Received: from mail.tu-berlin.de ([130.149.7.33]) by www.linuxtv.org with esmtp (Exim 4.84) (envelope-from <g.bruno@t-online.de>) id 1aTwjm-0004BA-9F for vdr@linuxtv.org; Thu, 11 Feb 2016 19:17:10 +0000 X-tubIT-Incoming-IP: 194.25.134.19 Received: from mailout06.t-online.de ([194.25.134.19]) by mail.tu-berlin.de (exim-4.76/mailfrontend-7) with esmtps [UNKNOWN:AES256-GCM-SHA384:256] for <vdr@linuxtv.org> id 1aTwjk-00067B-2z; Thu, 11 Feb 2016 20:17:10 +0100 Received: from fwd07.aul.t-online.de (fwd07.aul.t-online.de [172.20.27.150]) by mailout06.t-online.de (Postfix) with SMTP id 827C849DCFB for <vdr@linuxtv.org>; Thu, 11 Feb 2016 20:17:07 +0100 (CET) Received: from [192.168.178.23] (Vmq6dQZFghvxZuacn91-luUJfQDF4I7SW-Sph6UaIM9-ETl5gfd8KqdKx4JugvZw93@[84.143.213.126]) by fwd07.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1aTwjh-4UZMp60; Thu, 11 Feb 2016 20:17:05 +0100 To: vdr@linuxtv.org From: "g.bruno" <g.bruno@t-online.de> Message-ID: <56BCDE31.4010206@t-online.de> Date: Thu, 11 Feb 2016 20:17:05 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 X-ID: Vmq6dQZFghvxZuacn91-luUJfQDF4I7SW-Sph6UaIM9-ETl5gfd8KqdKx4JugvZw93 X-TOI-MSGID: 0a520aa9-173b-4085-bf83-50bdf7b9ef51 X-PMX-Version: 6.0.0.2142326, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2016.2.11.190617 X-PMX-Spam: Gauge=XIII, Probability=13%, Report=' RETURN_RECEIPT 0.5, TO_IN_SUBJECT 0.5, FROM_NAME_ONE_WORD 0.05, HTML_00_01 0.05, HTML_00_10 0.05, MSGID_ADDED_BY_MTA 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1800_1899 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, NO_URI_HTTPS 0, SINGLE_URI_IN_BODY 0, URI_ENDS_IN_HTML 0, __ANY_URI 0, __CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __FRAUD_INTRO 0, __HAS_FROM 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __MOZILLA_MSGID 0, __MOZILLA_USER_AGENT 0, __NOTIFICATION_TO 0, __PHISH_SPEAR_GREETING 0, __SANE_MSGID 0, __SINGLE_URI_TEXT 0, __SUBJ_ALPHA_END 0, __TELEKOM_FROM_DOMAIN 0, __TO_IN_SUBJECT2 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_IN_BODY 0, __URI_NO_MAILTO 0, __URI_NS , __USER_AGENT 0' X-LSpam-Score: 3.0 (+++) X-LSpam-Report: No, score=3.0 required=5.0 tests=DEAR_SOMETHING=1.731, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RDNS_NONE=1.274 autolearn=no autolearn_force=no Subject: [vdr] vdr 2.1.2 segfaults in libc using vdr --genindex X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.18 Precedence: list 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> Reply-To: VDR Mailing List <vdr@linuxtv.org> Content-Transfer-Encoding: base64 Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: vdr-bounces@linuxtv.org Sender: "vdr" <vdr-bounces@linuxtv.org> |
Commit Message
g.bruno
Feb. 11, 2016, 7:17 p.m. UTC
Dear Sirs, the patch to the subject above, published on http://www.linuxtv.org/pipermail/vdr/2013-December/028137.html has several mistakes and is incomplete. Here the results from the "patch" command): root@amd8:/usr/local/src/vdr-2.1.2# patch -b --verbose ./vdr.c < vdr_c.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- vdr.c 2013/12/25 11:01:28 3.6 |+++ vdr.c 2013/12/25 11:24:26 -------------------------- patching file ./vdr.c Using Plan A... Hunk #1 FAILED at 223. Hunk #2 FAILED at 443. patch unexpectedly ends in middle of line Hunk #3 FAILED at 663. 3 out of 3 hunks FAILED -- saving rejects to file ./vdr.c.rej done -------------------------------- and the contents of the file vdr.c.rej: mailing list. Perhaps you can correct my errors. if not, plaese let me know. Perhaps it is not a standard patch? Greetings G. Bruno
Comments
On 11.02.2016 20:17, g.bruno wrote: > Dear Sirs, > > the patch to the subject above, published on > http://www.linuxtv.org/pipermail/vdr/2013-December/028137.html > has several mistakes and is incomplete. > > ... Maybe some whitespace problems. The patch, however, ist part of the official VDR code. Klaus
Hallo Klaus, in how far your answer ("part of the official VDR code" is helping me? What shall I do? Anyway, patch does not work with your code. And also manually I fail. Greetings G.Bruno Am 12.02.2016 um 10:39 schrieb Klaus Schmidinger: > On 11.02.2016 20:17, g.bruno wrote: >> Dear Sirs, >> >> the patch to the subject above, published on >> http://www.linuxtv.org/pipermail/vdr/2013-December/028137.html >> has several mistakes and is incomplete. >> >> ... > > Maybe some whitespace problems. > The patch, however, ist part of the official VDR code. > > Klaus > > _______________________________________________ > vdr mailing list > vdr@linuxtv.org > http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
On 12.02.2016 15:50, g.bruno wrote: > Hallo Klaus, > > in how far your answer ("part of the official VDR code" is helping me? Sorry, I thought you didn't know that this patch has already been adopted. > What shall I do? The best thing to do would probably be to switch to VDR version 2.2.0. > Anyway, patch does not work with your code. And also manually I fail. Come on, it's just three lines of code you need to insert ;-). Klaus > Am 12.02.2016 um 10:39 schrieb Klaus Schmidinger: >> On 11.02.2016 20:17, g.bruno wrote: >>> Dear Sirs, >>> >>> the patch to the subject above, published on >>> http://www.linuxtv.org/pipermail/vdr/2013-December/028137.html >>> has several mistakes and is incomplete. >>> >>> ... >> >> Maybe some whitespace problems. >> The patch, however, ist part of the official VDR code. >> >> Klaus
Hallo Klaus, I already tried VDR version 2.2.0, but it does not run, because the VDR-plugin-xineliboutput is missing for this Version. The Version I used with VDR 2.1.2 does not compile. By the way: With VDR version 2.0.3 vdr --genindex works fine. Greetings G. Bruno Am 14.02.2016 um 10:01 schrieb Klaus Schmidinger: > On 12.02.2016 15:50, g.bruno wrote: >> Hallo Klaus, >> >> in how far your answer ("part of the official VDR code" is helping me? > > Sorry, I thought you didn't know that this patch has already been adopted. > >> What shall I do? > > The best thing to do would probably be to switch to VDR version 2.2.0. > >> Anyway, patch does not work with your code. And also manually I fail. > > Come on, it's just three lines of code you need to insert ;-). > > Klaus > > >> Am 12.02.2016 um 10:39 schrieb Klaus Schmidinger: >>> On 11.02.2016 20:17, g.bruno wrote: >>>> Dear Sirs, >>>> >>>> the patch to the subject above, published on >>>> http://www.linuxtv.org/pipermail/vdr/2013-December/028137.html >>>> has several mistakes and is incomplete. >>>> >>>> ... >>> >>> Maybe some whitespace problems. >>> The patch, however, ist part of the official VDR code. >>> >>> Klaus > > _______________________________________________ > vdr mailing list > vdr@linuxtv.org > http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
Hi, Am 14.02.2016 um 11:18 schrieb g.bruno: > Hallo Klaus, > > I already tried VDR version 2.2.0, but it does not run, because the VDR-plugin-xineliboutput is missing for this > Version. The Version I used with VDR 2.1.2 does not compile. Have you tried the latest commits from: git clone git://projects.vdr-developer.org/xineliboutput.git It's better to fix xineliboutput as to work with old vdr versions. :) If you have problems with compiling xineliboutput, please ask. At yavdr we use some patches to compile it with recent libcec versions. They are attached, look at the series files for the order of the patches. Lars.
Hallo Lars, thanks for your advice. I tried it, git worked fine. But compiling still ends with an issue: root@amd8:/usr/local/src/vdr-2.2.0/PLUGINS/src/GIT# git clone git://projects.vdr-developer.org/xineliboutput.git Nach »xineliboutput« wird geklont remote: Counting objects: 12082, done. remote: Compressing objects: 100% (4899/4899), done. remote: Total 12082 (delta 8391), reused 10777 (delta 7087) Objekte werden empfangen: 100% (12082/12082), 5.86 MiB | 5.00 MiB/s, done. Unterschiede werden aufgelöst: 100% (8391/8391), done. Verbundenheit wird überprüft … Fertig. root@amd8:/usr/local/src/vdr-2.2.0/PLUGINS/src/xineliboutput# make Makefile:109: Building inside VDR source tree g++ -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses -fPIC -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"xineliboutput"' -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DXINELIBOUTPUT_VERSION='"1.1.0"' -Wall -I../../../include -o config.o config.c config.c: In constructor ‘config_t::config_t()’: config.c:706:31: error: ‘VideoDirectory’ was not declared in this scope strn0cpy(browse_files_dir, VideoDirectory, sizeof(browse_files_dir)); ^ make: *** [config.o] Fehler 1 root@amd8:/usr/local/src/vdr-2.2.0/PLUGINS/src/xineliboutput# It is the same as before. Do you have other ideas? Greetings G. Bruno Am 14.02.2016 um 12:56 schrieb Lars Hanisch: Hi, Am 14.02.2016 um 11:18 schrieb g.bruno: > Hallo Klaus, > > I already tried VDR version 2.2.0, but it does not run, because the VDR-plugin-xineliboutput is missing for this > Version. The Version I used with VDR 2.1.2 does not compile. Have you tried the latest commits from: git clone git://projects.vdr-developer.org/xineliboutput.git It's better to fix xineliboutput as to work with old vdr versions. :) If you have problems with compiling xineliboutput, please ask. At yavdr we use some patches to compile it with recent libcec versions. They are attached, look at the series files for the order of the patches. Lars.
Hello, you cloned the git repository to /usr/local/src/vdr-2.2.0/PLUGINS/src/GIT/xineliboutput but you are trying to run make in /usr/local/src/vdr-2.2.0/PLUGINS/src/xineliboutput Have another look at the the error message - the text for line 706 in config.c differs from the most recent version: https://projects.vdr-developer.org/git/xineliboutput.git/tree/config.c#n706 Alexander.
I tried the attached patches. Most of them ended with errors, see below. ----------------------------------------------------- root@amd8:/usr/local/src/vdr-2.2.0/PLUGINS/src/xineliboutput# patch -N ./Makefile debian.patch patching file ./Makefile Hunk #1 FAILED at 343. 1 out of 1 hunk FAILED -- saving rejects to file ./Makefile.rej root@amd8:/usr/local/src/vdr-2.2.0/PLUGINS/src/xineliboutput# root@amd8:/usr/local/src/vdr-2.2.0/PLUGINS/src/xineliboutput# ls -l xine_frontend.c -rw-r--r-- 1 vdr users 59823 Aug 20 2013 xine_frontend.c --------------------------------------------------- root@amd8:/usr/local/src/vdr-2.2.0/PLUGINS/src/xineliboutput# patch -N ./xine_frontend.c ./xineliboutput-dfatmo-switch patching file ./xine_frontend.c Hunk #1 succeeded at 1439 (offset 2 lines). patching file ./xine_frontend.c Hunk #1 FAILED at 455. 1 out of 1 hunk FAILED -- saving rejects to file ./xine_frontend.c.rej patching file ./xine_frontend.c Hunk #1 succeeded at 401 with fuzz 2 (offset 178 lines). Hunk #2 succeeded at 1107 with fuzz 2 (offset 807 lines). patching file ./xine_frontend.c Hunk #1 FAILED at 218. 1 out of 1 hunk FAILED -- saving rejects to file ./xine_frontend.c.rej --------------------------------------------- root@amd8:/usr/local/src/vdr-2.2.0/PLUGINS/src/xineliboutput# patch ./config.c ./truecolor.diff patching file ./config.c Hunk #1 succeeded at 737 (offset -4 lines). Hunk #2 succeeded at 760 (offset -4 lines). Hunk #3 succeeded at 778 (offset -4 lines). Hunk #4 succeeded at 898 (offset -4 lines). patching file ./config.c Hunk #1 FAILED at 294. 1 out of 1 hunk FAILED -- saving rejects to file ./config.c.rej patching file ./config.c Hunk #1 FAILED at 783. 1 out of 1 hunk FAILED -- saving rejects to file ./config.c.rej patching file ./config.c Hunk #1 FAILED at 160. 1 out of 1 hunk FAILED -- saving rejects to file ./config.c.rej ------------------------------------ root@amd8:/usr/local/src/vdr-2.2.0/PLUGINS/src/xineliboutput/xine# patch ./xvdr_metronom.c ./fix-segfault.patch patching file ./xvdr_metronom.c ----------------------------------- xine_frontend_cec.c does not exist (twice), at least I could not find it ------------------------------ compiling with make failed: root@amd8:/usr/local/src/vdr-2.2.0/PLUGINS/src/xineliboutput# make Makefile:109: Building inside VDR source tree g++ -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses -fPIC -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"xineliboutput"' -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DXINELIBOUTPUT_VERSION='"1.1.0"' -Wall -I../../../include -o xineliboutput.o xineliboutput.c xineliboutput.c: In member function ‘virtual bool cPluginXinelibOutput::Service(const char*, void*)’: xineliboutput.c:295:22: error: ‘str’ was not declared in this scope if (!strncasecmp(str, "DFATMOENABLED", 13)) { ^ xineliboutput.c:296:7: error: ‘fe’ was not declared in this scope fe->send_event(fe, str); ^ xineliboutput.c:297:7: error: continue statement not within a loop continue; ^ xineliboutput.c:299:22: error: ‘str’ was not declared in this scope if (!strncasecmp(str, "DFATMOENABLED", 13)) { ^ xineliboutput.c:300:7: error: ‘fe’ was not declared in this scope fe->send_event(fe, str); ^ xineliboutput.c:301:7: error: continue statement not within a loop continue; ^ make: *** [xineliboutput.o] Fehler 1 ---------------------------------------------- Did I make any mistakes? The version of the plugin is xineliboutput-1.1.0. Are the patches for an other version of VDR? What do I do now? Any ideas? G.Bruno Am 14.02.2016 um 12:56 schrieb Lars Hanisch: > Hi, > > Am 14.02.2016 um 11:18 schrieb g.bruno: >> Hallo Klaus, >> >> I already tried VDR version 2.2.0, but it does not run, because the VDR-plugin-xineliboutput is missing for this >> Version. The Version I used with VDR 2.1.2 does not compile. > > Have you tried the latest commits from: > git clone git://projects.vdr-developer.org/xineliboutput.git > > It's better to fix xineliboutput as to work with old vdr versions. :) > If you have problems with compiling xineliboutput, please ask. > > At yavdr we use some patches to compile it with recent libcec versions. They are attached, look at the series files for > the order of the patches. > > Lars. > > > > _______________________________________________ > vdr mailing list > vdr@linuxtv.org > http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr >
--- vdr.c 2013/12/25 11:01:28 3.6 +++ vdr.c 2013/12/25 11:24:26 @@ -223,6 +223,7 @@ VdrUser = VDR_USER; #endif + cVideoDirectory::SetName(VideoDirectory); cPluginManager PluginManager(DEFAULTPLUGINDIR); static struct option long_options[] = { @@ -443,6 +444,7 @@ case 'v': VideoDirectory = optarg; while (optarg && *optarg && optarg[strlen(optarg) - 1] == '/') optarg[strlen(optarg) - 1] = 0; + cVideoDirectory::SetName(VideoDirectory); break; case 'w': if (isnumber(optarg)) { int t = atoi(optarg); @@ -663,7 +665,6 @@ // Directories: - cVideoDirectory::SetName(VideoDirectory); if (!ConfigDirectory) ConfigDirectory = DEFAULTCONFDIR; -------------------------------- I hope that I made it right. It is the first time that I write to this