Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: VDR on AMD64 in 64bit with bitstreamout



Dr. Werner Fink wrote:

On Wed, Jun 02, 2004 at 09:52:14PM +0200, Norbert Schmidt wrote:

Hi all,

I am trying to get VDR up and running on an AMD64 in an 64bit
gentoo-environment. I make use of the dvb-kernel-driver of a
2.6.5-gentoo-r1 kernel and compiled everything with gcc 3.3.3.

So far everything works just fine. After adding -fPIC to all
Makefiles (CCFLAGS), i.e. vdr, libsi and several plugins, I
have got a working VDR 1.3.9, at the moment with osdteletext
and femon.

One thing I am really missing now is the bitstreamout-plugin.
Below you can see, what I get if I try to compile it without
changing anything of this particular plugin (Makefile, etc.
-fPIC seems to be set by default).

Any ideas? Thanx in advance

Please try the patch in the atachment and _please_ give
some feedback.

Werner

------------------------------------------------------------------------

--- replay.c
+++ replay.c 2004-06-03 14:53:41.000000000 +0200
@@ -185,7 +185,7 @@
bool ret = false; // DVB streams do not have sub stream headers
cHandle dvd(&b[off], rest);

- TEST(dvd >= 4) {
+ TEST(dvd >= (size_t)4) {
uint_32 ul = dvd;
uint_8 ub = (uint_8)(ul>>24);
uint_8 tr = (ub & 7) + 1;
@@ -241,7 +241,7 @@
if (stream)
goto out;

- TEST(dvd >= 4) {
+ TEST(dvd >= (size_t)4) {
// byte0 (substream number)
// byte1 (Number of frames which begin in this package)
// byte2, byte3 (offset to frame which corresponds to PTS value)
@@ -338,7 +338,7 @@
}
} END (dvd);

- TEST(dvb >= 2) {
+ TEST(dvb >= (size_t)2) {
uint_16 us = dvb;
if (us == AC3magic) {
stream = &ac3;
@@ -358,7 +358,7 @@
const off_t rest = cnt-off;
cHandle audio(&b[off], rest);

- FOREACH(audio >= 2) {
+ FOREACH(audio >= (size_t)2) {
uint_16 us = audio;
bool ext = ((us & 0x0010)>>4 == 0); // First of last five bits
bool lsf = ((us & 0x0008)>>3 == 0); // Second of last five bits
@@ -432,7 +432,7 @@
goto out;
}

- TEST (play >= 10) {
+ TEST (play >= (size_t)10) {
uint_32 mag = play;
play += 4;
uint_16 len = (uint_16)play + 6;
--- Make.arch
+++ Make.arch 2004-06-03 15:00:51.000000000 +0200
@@ -5,7 +5,7 @@
SUBARCH := $(shell uname -m|sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/)
ARCH := $(SUBARCH)

-all::
+my::

ifneq ($(wildcard /usr/src/linux/.config),)
-include /usr/src/linux/.config
@@ -19,5 +19,5 @@
-include /usr/src/linux/arch/$(ARCH)/Makefile
endif

-all::
- @echo $(CFLAGS) | sed 's|-msoft-float||g'
+my::
+ @echo $(CFLAGS) | sed 's|-msoft-float||g;s|-mcmodel=[^ ]*||g;s|-mno-red-zone||g'

Hi Werner,

compiles and works fine ... even the all:: messages are gone now.

thanx a lot ;-).

CU Norbert




Home | Main Index | Thread Index