Re: [vdr] Compilation issues with recent DVB header files vs libc6

2009-05-19 Thread Anssi Hannula
Tobi wrote:
> Anssi Hannula wrote:
> 
>> The kernel headers should be fixed to use strict types (patches
>> available). See my earlier reply on the issue:
>> http://linuxtv.org/pipermail/vdr/2009-March/019783.html
> 
> You're right. Thanks for the pointer! I've seen this weeks ago and thought
>  it would have already made it into 2.6.29.
> 
> I've applied the patch from Arnd Bergmann's core/header-fixes branch to
> 2.6.29.1 which seems to work fine.
> 
> Let's hope this gets fixed in 2.6.29.x or 2.6.30.

The patches have been applied for 2.6.30.

-- 
Anssi Hannula


___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] Compilation issues with recent DVB header files vs libc6

2009-04-09 Thread Tobi
Anssi Hannula wrote:

> The kernel headers should be fixed to use strict types (patches
> available). See my earlier reply on the issue:
> http://linuxtv.org/pipermail/vdr/2009-March/019783.html

You're right. Thanks for the pointer! I've seen this weeks ago and thought
 it would have already made it into 2.6.29.

I've applied the patch from Arnd Bergmann's core/header-fixes branch to
2.6.29.1 which seems to work fine.

Let's hope this gets fixed in 2.6.29.x or 2.6.30.

Tobias

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] Compilation issues with recent DVB header files vs libc6

2009-04-09 Thread Anssi Hannula
Tobi wrote:
> Hi!
> 
> Recent DVB driver releases (now in Kernel 2.6.29) cause trouble compiling
> VDR (see snippet A below).
> 
> The common solution to this seems to be to add a "-D__KERNEL_STRICT_NAMES".
> 
> It felt wrong somehow and I didn't liked this, so I tried another
> solution, which is to have any libc6  includes appear before the
> linux DVB header includes . Doing this only in dvbdevice.c seems
> to do the trick for VDR (see snippet B). I works for VDR 1.6.0 as well as
> VDR 1.7.4.
> 
> I think the root of this problem is caused by the Kernel headers / DVB
> drivers changing from asm/types.h to linux/types.h:
> 
> -#include 
> +#include 
> 
> How should this problem ideally be fixed? Is my solution (snippet B)
> better than using -D__KERNEL_STRICT_NAMES or should the kernel / DVB
> driver developers be blamed for this?

The kernel headers should be fixed to use strict types (patches
available). See my earlier reply on the issue:
http://linuxtv.org/pipermail/vdr/2009-March/019783.html

-- 
Anssi Hannula

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] Compilation issues with recent DVB header files vs libc6

2009-04-09 Thread Tobi
Tobi wrote:

> I've forwarded the header issue to linux-media. If there will be any
> answers / comments about it, I'll keep you informed.
> 
> http://www.mail-archive.com/linux-me...@vger.kernel.org/msg04232.html

Seems this is more of a general issue. As I digged a little bit deeper, I
saw, that the root of all evil is a clash between glibc's stdint.h and
linux/types.h (the latter defines some POSIX types defined in stdint.h as
well, which wasn't the case for asm/types.h).

I'm not sure yet, if this is a glibc or a kernel issue, but I'll file a
bug report as soon as I know.

As for the problem Reinhard Nissl reported for the missing 'uint16_t' in
linux/dvb/audio.h - I can't reproduce this problem. Not with 2.6.29 and
not with the latest driver from http://linuxtv.org/hg/v4l-dvb.

Tobias

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] Compilation issues with recent DVB header files vs libc6

2009-04-09 Thread Tobi
Klaus Schmidinger wrote:

> Well, so what is the preferred method of making the DVB driver developers
> aware of bugs, if one doesn't want to suffer from all the traffic on the
> linux-media list?

I've forwarded the header issue to linux-media. If there will be any
answers / comments about it, I'll keep you informed.

http://www.mail-archive.com/linux-me...@vger.kernel.org/msg04232.html

Tobias

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] Compilation issues with recent DVB header files vs libc6

2009-04-09 Thread Klaus Schmidinger
On 04/09/09 09:25, Niels Wagenaar wrote:
> Op Do, 9 april, 2009 08:29, schreef Matthias Becker:
>>> According to my information (a message on the linux-dvb mailinglist),
>>> the
>>> old mailinglists (V4L and DVB) are now merged into linux-media.
>> what does "merged" mean? Are Posts on the "old" list
>> replicated to the new one?
>>
> 
> No. Merge as in combined to one and/or a replacement for the old V4L/DVB
> mailinglists. Messages send to the 'old' mailinglists will not automaticly
> be available on the linux-media mailinglist. That is, if you don't count a
> CC as a replication method ;-)

Well, so what is the preferred method of making the DVB driver developers
aware of bugs, if one doesn't want to suffer from all the traffic on the
linux-media list?

I did initially subscribe to that list, but after a few days I unsubscribed
again, because there was way too much non DVB related stuff there.

As for VDR, I'll probably just add a note to the INSTALL file, saying
that the DVB driver header files are broken and should be patched or
replaced with an older version.

Klaus

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] Compilation issues with recent DVB header files vs libc6

2009-04-09 Thread Niels Wagenaar
Op Do, 9 april, 2009 08:29, schreef Matthias Becker:
>> According to my information (a message on the linux-dvb mailinglist),
>> the
>> old mailinglists (V4L and DVB) are now merged into linux-media.
>
> what does "merged" mean? Are Posts on the "old" list
> replicated to the new one?
>

No. Merge as in combined to one and/or a replacement for the old V4L/DVB
mailinglists. Messages send to the 'old' mailinglists will not automaticly
be available on the linux-media mailinglist. That is, if you don't count a
CC as a replication method ;-)

> Regadrs,
> Matthias
>

Regards,

Niels Wagenaar


___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] Compilation issues with recent DVB header files vs libc6

2009-04-08 Thread Matthias Becker
> According to my information (a message on the linux-dvb mailinglist), the
> old mailinglists (V4L and DVB) are now merged into linux-media.

what does "merged" mean? Are Posts on the "old" list
replicated to the new one?

Regadrs,
Matthias

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] Compilation issues with recent DVB header files vs libc6

2009-04-08 Thread Niels Wagenaar
Op Wo, 8 april, 2009 15:04, schreef Klaus Schmidinger:
> On 04/08/09 15:00, Matthias Becker wrote:
>> Hi,
>>
>> is the linux-dvb ML still "alive"?
>> maybe http://vger.kernel.org/vger-lists.html#linux-media is read more
>> frequently
>
> That one has way too much non DVB related traffic for me.
>
> Klaus

According to my information (a message on the linux-dvb mailinglist), the
old mailinglists (V4L and DVB) are now merged into linux-media. The
V4L/DVB mailinglist are infact not used any more for patches (and a global
statement was made to send those patches to the linux-media mailinglist)
and I haven't seen any of the developers being active on it for some time.

Full information was made in early January I believe. More information is
available on the Linuxtv.org frontpage [1].

Regards,

Niels Wagenaar

[1] http://www.linuxtv.org/news.php?entry=2009-01-06.mchehab




___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] Compilation issues with recent DVB header files vs libc6

2009-04-08 Thread Andy Carter
On Wednesday 08 April 2009 14:04:39 Klaus Schmidinger wrote:
> On 04/08/09 15:00, Matthias Becker wrote:
> > Hi,
> >
> > is the linux-dvb ML still "alive"?
> > maybe http://vger.kernel.org/vger-lists.html#linux-media is read more
> > frequently
>
> That one has way too much non DVB related traffic for me.

Agreed - and since I subbed/unsubbed I've been getting a lot more spam to my 
dvb address. Can't be sure it's connected, but...

Andy

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] Compilation issues with recent DVB header files vs libc6

2009-04-08 Thread Klaus Schmidinger
On 04/08/09 15:00, Matthias Becker wrote:
> Hi,
> 
> is the linux-dvb ML still "alive"?
> maybe http://vger.kernel.org/vger-lists.html#linux-media is read more 
> frequently

That one has way too much non DVB related traffic for me.

Klaus

> 2009/4/8 Klaus Schmidinger :
>> On 04/08/09 01:21, Tobi wrote:
>>> Hi!
>>>
>>> Recent DVB driver releases (now in Kernel 2.6.29) cause trouble compiling
>>> VDR (see snippet A below).
>>>
>>> The common solution to this seems to be to add a "-D__KERNEL_STRICT_NAMES".
>>>
>>> It felt wrong somehow and I didn't liked this, so I tried another
>>> solution, which is to have any libc6  includes appear before the
>>> linux DVB header includes . Doing this only in dvbdevice.c seems
>>> to do the trick for VDR (see snippet B). I works for VDR 1.6.0 as well as
>>> VDR 1.7.4.
>>>
>>> I think the root of this problem is caused by the Kernel headers / DVB
>>> drivers changing from asm/types.h to linux/types.h:
>>>
>>> -#include 
>>> +#include 
>>>
>>> How should this problem ideally be fixed? Is my solution (snippet B)
>>> better than using -D__KERNEL_STRICT_NAMES or should the kernel / DVB
>>> driver developers be blamed for this?
>> My 2ct:
>>
>> - An application should not need to use -D__KERNEL_STRICT_NAMES.
>> - Any header file that requires other header files to be included
>>  should do so by itself.
>> - The sequence in which header files are included should not matter.
>>  I normally list them alphabetically, to easily find a particular one.
>>
>> I currently solve the broken DVB driver header files by replacing them
>> with the ones from an earlier driver version, where they still worked.
>>
>> I had posted this problem on the linux-dvb ML a while ago, but apparently
>> nobody cared...
>>
>> Klaus

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] Compilation issues with recent DVB header files vs libc6

2009-04-08 Thread Matthias Becker
Hi,

is the linux-dvb ML still "alive"?
maybe http://vger.kernel.org/vger-lists.html#linux-media is read more frequently

Regards,
Matthias

2009/4/8 Klaus Schmidinger :
> On 04/08/09 01:21, Tobi wrote:
>> Hi!
>>
>> Recent DVB driver releases (now in Kernel 2.6.29) cause trouble compiling
>> VDR (see snippet A below).
>>
>> The common solution to this seems to be to add a "-D__KERNEL_STRICT_NAMES".
>>
>> It felt wrong somehow and I didn't liked this, so I tried another
>> solution, which is to have any libc6  includes appear before the
>> linux DVB header includes . Doing this only in dvbdevice.c seems
>> to do the trick for VDR (see snippet B). I works for VDR 1.6.0 as well as
>> VDR 1.7.4.
>>
>> I think the root of this problem is caused by the Kernel headers / DVB
>> drivers changing from asm/types.h to linux/types.h:
>>
>> -#include 
>> +#include 
>>
>> How should this problem ideally be fixed? Is my solution (snippet B)
>> better than using -D__KERNEL_STRICT_NAMES or should the kernel / DVB
>> driver developers be blamed for this?
>
> My 2ct:
>
> - An application should not need to use -D__KERNEL_STRICT_NAMES.
> - Any header file that requires other header files to be included
>  should do so by itself.
> - The sequence in which header files are included should not matter.
>  I normally list them alphabetically, to easily find a particular one.
>
> I currently solve the broken DVB driver header files by replacing them
> with the ones from an earlier driver version, where they still worked.
>
> I had posted this problem on the linux-dvb ML a while ago, but apparently
> nobody cared...
>
> Klaus
>
> ___
> vdr mailing list
> vdr@linuxtv.org
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
>

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] Compilation issues with recent DVB header files vs libc6

2009-04-08 Thread Klaus Schmidinger
On 04/08/09 01:21, Tobi wrote:
> Hi!
> 
> Recent DVB driver releases (now in Kernel 2.6.29) cause trouble compiling
> VDR (see snippet A below).
> 
> The common solution to this seems to be to add a "-D__KERNEL_STRICT_NAMES".
> 
> It felt wrong somehow and I didn't liked this, so I tried another
> solution, which is to have any libc6  includes appear before the
> linux DVB header includes . Doing this only in dvbdevice.c seems
> to do the trick for VDR (see snippet B). I works for VDR 1.6.0 as well as
> VDR 1.7.4.
> 
> I think the root of this problem is caused by the Kernel headers / DVB
> drivers changing from asm/types.h to linux/types.h:
> 
> -#include 
> +#include 
> 
> How should this problem ideally be fixed? Is my solution (snippet B)
> better than using -D__KERNEL_STRICT_NAMES or should the kernel / DVB
> driver developers be blamed for this?

My 2ct:

- An application should not need to use -D__KERNEL_STRICT_NAMES.
- Any header file that requires other header files to be included
  should do so by itself.
- The sequence in which header files are included should not matter.
  I normally list them alphabetically, to easily find a particular one.

I currently solve the broken DVB driver header files by replacing them
with the ones from an earlier driver version, where they still worked.

I had posted this problem on the linux-dvb ML a while ago, but apparently
nobody cared...

Klaus

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] Compilation issues with recent DVB header files vs libc6

2009-04-08 Thread Tobi
Tony Houghton wrote:

> I used -D__KERNEL_STRICT_NAMES but compilation then failed on the use of
> __u8 in . ISTR reading that might only be a problem
> for 64-bit.

I didn't had this problem. VDR 1.6.0 and 1.7.4 compile fine with 2.6.29
and GCC 4.3 on x86_64. It works also with the latest drivers from Igors
repository.

Tobias

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] Compilation issues with recent DVB header files vs libc6

2009-04-07 Thread Tony Houghton
On Wed, 08 Apr 2009 01:21:27 +0200
Tobi  wrote:

> Recent DVB driver releases (now in Kernel 2.6.29) cause trouble compiling
> VDR (see snippet A below).
> 
> The common solution to this seems to be to add a "-D__KERNEL_STRICT_NAMES".
> 
> It felt wrong somehow and I didn't liked this, so I tried another
> solution, which is to have any libc6  includes appear before the
> linux DVB header includes . Doing this only in dvbdevice.c seems
> to do the trick for VDR (see snippet B). I works for VDR 1.6.0 as well as
> VDR 1.7.4.

I used -D__KERNEL_STRICT_NAMES but compilation then failed on the use of
__u8 in . ISTR reading that might only be a problem
for 64-bit. I resorted to changing it to unsigned char.

You'd think after some 10 years everyone would have settled on stdint by
now. :-/

-- 
TH * http://www.realh.co.uk

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


[vdr] Compilation issues with recent DVB header files vs libc6

2009-04-07 Thread Tobi
Hi!

Recent DVB driver releases (now in Kernel 2.6.29) cause trouble compiling
VDR (see snippet A below).

The common solution to this seems to be to add a "-D__KERNEL_STRICT_NAMES".

It felt wrong somehow and I didn't liked this, so I tried another
solution, which is to have any libc6  includes appear before the
linux DVB header includes . Doing this only in dvbdevice.c seems
to do the trick for VDR (see snippet B). I works for VDR 1.6.0 as well as
VDR 1.7.4.

I think the root of this problem is caused by the Kernel headers / DVB
drivers changing from asm/types.h to linux/types.h:

-#include 
+#include 

How should this problem ideally be fixed? Is my solution (snippet B)
better than using -D__KERNEL_STRICT_NAMES or should the kernel / DVB
driver developers be blamed for this?

Tobias

--- snippet A ---

In file included from /usr/include/netinet/in.h:24,
 from /usr/include/arpa/inet.h:23,
 from config.h:13,
 from channels.h:13,
 from device.h:13,
 from dvbdevice.h:15,
 from dvbdevice.c:10:
/usr/include/stdint.h:41: error: conflicting declaration 'typedef long int
int64_t'
/usr/include/linux/types.h:98: error: 'int64_t' has a previous declaration
as 'typedef __s64 int64_t'
/usr/include/stdint.h:56: error: conflicting declaration 'typedef long
unsigned int uint64_t'
/usr/include/linux/types.h:96: error: 'uint64_t' has a previous
declaration as 'typedef __u64 uint64_t'


--- snippet B ---

--- vdr-1.6.0.orig/dvbdevice.c
+++ vdr-1.6.0/dvbdevice.c
@@ -7,6 +7,8 @@
  * $Id: dvbdevice.c 1.170 2008/02/09 16:11:44 kls Exp $
  */

+#include 
+#include 
 #include "dvbdevice.h"
 #include 
 #include 
@@ -15,8 +17,6 @@
 #include 
 #include 
 #include 
-#include 
-#include 
 #include "channels.h"
 #include "diseqc.h"
 #include "dvbci.h"

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr