Gentoo Archives: gentoo-vdr

From: tomek@×××××××××.net
To: gentoo-vdr@l.g.o
Subject: Re: [gentoo-vdr] livebuffer patch on a x86_64 system
Date: Mon, 12 Nov 2007 19:42:53
Message-Id: 20071112204249.et2bisnmogwcksco@email.terragate.net
In Reply to: Re: [gentoo-vdr] livebuffer patch on a x86_64 system by Matthias Schwarzott
1 Hi Matthias,
2 the make worked fine after I changed the line like suggested.
3
4 Thanks, now I can help myself.
5
6 /Tomekki
7
8
9 Quoting Matthias Schwarzott <zzam@g.o>:
10
11 > On Montag, 12. November 2007, tomek@×××××××××.net wrote:
12 > Hi Tomekkki!
13 >
14 > This seems to be the relevant error:
15 >> livebuffer.c:234: Fehler: keine passende Funktion für Aufruf von
16 >> »min(long unsigned int, long int)«
17 >
18 > If I am right this is the line:
19 > off64_t headdrop = min(curpos - totwritten, (off64_t) totwritten * 2L);
20 >
21 > Does it work if you change it to
22 > off64_t headdrop = min((off64_t)(curpos - totwritten), (off64_t) totwritten *
23 > 2L);
24 >
25 >
26 > You can easily check it like this:
27 > 1. run emerge vdr until it dies
28 > 2. cd /var/tmp/portage/media-video/vdr-1.*/work/vdr-1.*/
29 > 3. edit the file livebuffer.c
30 > 4. run make
31 >
32 > if it works we can include this fix.
33 > (should we add a page somewhere (wiki?) about this quick experimantal way to
34 > try out changes?)
35 >
36 > Matthias
37 >
38 > --
39 > Matthias Schwarzott (zzam)
40 > --
41 > gentoo-vdr@g.o mailing list
42 >
43 >
44
45
46
47 --
48 gentoo-vdr@g.o mailing list