Gentoo Archives: gentoo-vdr

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

Replies

Subject Author
Re: [gentoo-vdr] livebuffer patch on a x86_64 system tomek@×××××××××.net