Message ID | 4A23BDCF.90604@cadsoft.de |
---|---|
State | New |
Headers |
Received: from crow.cadsoft.de ([217.86.189.86] helo=raven.cadsoft.de) by mail.linuxtv.org with esmtp (Exim 4.63) (envelope-from <Klaus.Schmidinger@cadsoft.de>) id 1MB5r5-0003Td-4k for vdr@linuxtv.org; Mon, 01 Jun 2009 13:39:03 +0200 Received: from [192.168.100.10] (hawk.cadsoft.de [192.168.100.10]) by raven.cadsoft.de (8.14.3/8.14.3) with ESMTP id n51Bcu4l008880 for <vdr@linuxtv.org>; Mon, 1 Jun 2009 13:38:56 +0200 Message-ID: <4A23BDCF.90604@cadsoft.de> Date: Mon, 01 Jun 2009 13:38:55 +0200 From: Klaus Schmidinger <Klaus.Schmidinger@cadsoft.de> Organization: CadSoft Computer GmbH User-Agent: Thunderbird 2.0.0.19 (X11/20081227) MIME-Version: 1.0 To: vdr@linuxtv.org References: <4A1DCC42.9000108@biodome.org> <4A1E3DBB.8010108@e-tobi.net> <4A1E4C97.5060504@e-tobi.net> <225f8855a634df5f8b4fdc9623e9714f.squirrel@webmail.biodome.org> <a3ef07920905280749p48904dd7qe09f9df8dda23894@mail.gmail.com> In-Reply-To: <a3ef07920905280749p48904dd7qe09f9df8dda23894@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0.1 (raven.cadsoft.de [192.168.1.1]); Mon, 01 Jun 2009 13:38:56 +0200 (CEST) X-LSpam-Score: -2.6 (--) X-LSpam-Report: No, score=-2.6 required=5.0 tests=AWL=0.008, BAYES_00=-2.599 autolearn=ham Subject: Re: [vdr] error compiling vdr 1.7.7 (frontend.h - '__u8' does not name a type) X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.9 Precedence: list Reply-To: VDR Mailing List <vdr@linuxtv.org> List-Id: VDR Mailing List <vdr.linuxtv.org> List-Unsubscribe: <http://www.linuxtv.org/cgi-bin/mailman/listinfo/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> X-List-Received-Date: Mon, 01 Jun 2009 11:39:03 -0000 Status: O X-Status: X-Keywords: X-UID: 20695 |
Commit Message
Klaus Schmidinger
June 1, 2009, 11:38 a.m. UTC
On 28.05.2009 16:49, VDR User wrote: > Or you may also just do this: > > --- vdr.c.orig 2009-04-12 11:05:51.000000000 -0700 > +++ vdr.c 2009-04-12 11:07:08.000000000 -0700 > @@ -32,6 +32,7 @@ > #include <pwd.h> > #include <signal.h> > #include <stdlib.h> > +#include <linux/types.h> > #include <sys/capability.h> > #include <sys/prctl.h> > #include <termios.h> I don't see how this would make any difference, since the problem is in compiling dvbdevice.c, not vdr.c >From the suggestion in http://e-tobi.net/websvn/filedetails.php?repname=vdr-pkg&path=%2Fvdr%2Fbranches%2Fdevel%2Fdebian%2Fpatches%2F99_dvb-header-fixes.dpatch posted earlier in this thread I found that this alone fixes the problem (tested with the latest driver from http://linuxtv.org/hg/v4l-dvb). Klaus
Comments
On Mon, 2009-06-01 at 13:38 +0200, Klaus Schmidinger wrote: ... > posted earlier in this thread I found that this > > --- dvbdevice.h 2009/05/08 13:33:46 2.5 > +++ dvbdevice.h 2009/06/01 11:20:32 > @@ -10,6 +10,7 @@ > #ifndef __DVBDEVICE_H > #define __DVBDEVICE_H > > +#include <sys/mman.h> // FIXME: workaround for broken linux-dvb header files > #include <linux/dvb/frontend.h> > #include <linux/dvb/version.h> > #include "device.h" > > > alone fixes the problem (tested with the latest driver from http://linuxtv.org/hg/v4l-dvb). No, it does not. At least not here (SuSE 11.1, 64-bit, vdr 1.7.8, v4l-dvb-af3d28c7ef19). I am getting g++ -g -O2 -Wall -Woverloaded-virtual -Wno-parentheses -c -DREMOTE_KBD -DLIRC_DEVICE=\"/dev/lircd\" -DRCU_DEVICE=\"/dev/ttyS1\" -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DVIDEODIR=\"/video\" -DCONFDIR=\"/home/cko/vdrconfig\" -DPLUGINDIR=\"./PLUGINS/lib\" -DLOCDIR=\"./locale\" -I/usr/include/freetype2 -I/usr/src/v4l-dvb-af3d28c7ef19/linux/include vdr.c In file included from dvbdevice.h:14, from vdr.c:45: /usr/src/v4l-dvb-af3d28c7ef19/linux/include/linux/dvb/frontend.h:92: error: '__u8' does not name a type /usr/src/v4l-dvb-af3d28c7ef19/linux/include/linux/dvb/frontend.h:93: error: '__u8' does not name a type /usr/src/v4l-dvb-af3d28c7ef19/linux/include/linux/dvb/frontend.h:98: error: '__u8' does not name a type /usr/src/v4l-dvb-af3d28c7ef19/linux/include/linux/dvb/frontend.h:99: error: '__u8' does not name a type /usr/src/v4l-dvb-af3d28c7ef19/linux/include/linux/dvb/frontend.h:361: error: '__u8' does not name a type make: *** [vdr.o] Error 1 cko/vdr-1.7.8> I worked around it by inserting a typedef unsigned char __u8; after the #include <sys/mman.h> // FIXME: workaround for broken linux-dvb header files in dvbdevice.h. With that, vdr compiles without errors. Carsten.
--- dvbdevice.h 2009/05/08 13:33:46 2.5 +++ dvbdevice.h 2009/06/01 11:20:32 @@ -10,6 +10,7 @@ #ifndef __DVBDEVICE_H #define __DVBDEVICE_H +#include <sys/mman.h> // FIXME: workaround for broken linux-dvb header files #include <linux/dvb/frontend.h> #include <linux/dvb/version.h> #include "device.h"