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
Hi Matthias,
the make worked fine after I changed the line like suggested.

Thanks, now I can help myself.

/Tomekki


Quoting Matthias Schwarzott <zzam@g.o>:

> On Montag, 12. November 2007, tomek@×××××××××.net wrote: > Hi Tomekkki! > > This seems to be the relevant error: >> livebuffer.c:234: Fehler: keine passende Funktion für Aufruf von >> »min(long unsigned int, long int)« > > If I am right this is the line: > off64_t headdrop = min(curpos - totwritten, (off64_t) totwritten * 2L); > > Does it work if you change it to > off64_t headdrop = min((off64_t)(curpos - totwritten), (off64_t) totwritten * > 2L); > > > You can easily check it like this: > 1. run emerge vdr until it dies > 2. cd /var/tmp/portage/media-video/vdr-1.*/work/vdr-1.*/ > 3. edit the file livebuffer.c > 4. run make > > if it works we can include this fix. > (should we add a page somewhere (wiki?) about this quick experimantal way to > try out changes?) > > Matthias > > -- > Matthias Schwarzott (zzam) > -- > gentoo-vdr@g.o mailing list > >
-- gentoo-vdr@g.o mailing list