Mailing List archive

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

[vdr] Re: Compile errors with GCC 3.2



Rene Bartsch wrote:

>Hi,
>
>I have compile-errors with AIOs, DVD-, VCD- and Teletext-plugin using
>GCC 3.2.
>
>Is there any option to allow old C/C**-syntax?
>
>Thanx
>
>Rene
>
Gregoire put some patches on the list a while ago, with them it at least 
compiled for me :-)
I compile here what I saved to my hardisk:

========== >8 snip ======

In dvbapi.c line 881:
  std::PlayExternalDolby(b, MaxLength, skipAC3bytes);
should be:
  ::PlayExternalDolby(b, MaxLength, skipAC3bytes);
line 210r5:
void cLiveAC3::StripAudioPackets(uchar *b, int Length, uchar Except = 0x00)
should be:
void cLiveAC3::StripAudioPackets(uchar *b, int Length, uchar Except)
line 2110:
std::PlayExternalDolby(&b[0], Length-6, false);
should be:
::PlayExternalDolby(&b[0], Length-6, false);
line 3148:
void cDvbApi::SetModeReplay(boolean audio=true)
void cDvbApi::SetModeReplay(boolean audio)

In menu.c line 542:
cMenuEditStrItem::cMenuEditStrItem(const char *Name, char *Value, int 
Length, const char *Allowed, int Width = 30)
cMenuEditStrItem::cMenuEditStrItem(const char *Name, char *Value, int 
Length, const char *Allowed, int Width)

I worryed a little bit in seeing all the errors due to teletext...
but they are just due to the missing libraries on my system... and as it 
also fails
to compil cleanly, I'll try teletext later...

In mp3.h line 107:
  inline const char *GetBasedir(void);
Could be (I am really not sure...):
  const char *GetBasedir(void);

With those modification, it compils for me with:
DVD=1 MP3=1 MPLAYER=1 CB=1 COLOR=1 FONT=SMALL LNBSHARE=1 make

Thanks you very much (and I hope I am not the only one using
a strict compiler...) ;-))


And here some I didn't already sent:

--- teletext.c~ 2002-05-31 15:04:06.000000000 +0200
+++ teletext.c  2002-06-27 15:14:25.000000000 +0200
@@ -585,3 +585,3 @@
   }
-  wahl_seite=wahl_seite+(int)(pow(10,2-wahl)*eingabe);
+  wahl_seite=wahl_seite+(int)(pow(10.,2-wahl)*eingabe);
   wahl++;

And in case you compiled the libs with x...:

--- Makefile~   2002-06-27 15:39:28.000000000 +0200
+++ Makefile    2002-06-27 15:42:24.000000000 +0200
@@ -129,2 +129,4 @@

+X11LIB = -L/usr/X11R6/lib -lX11 -lXv -lXext
+
 all: vdr
@@ -150,3 +152,3 @@
 vdr: $(OBJS) $(DTVLIB) $(SOFTCAMLIB)
-       g++ -g -O2 $(OBJS) $(SHLIBS) $(LIBDIRS) $(DTVLIB) $(SOFTCAMLIB)
        -o vdr
+       g++ -g -O2 $(OBJS) $(SHLIBS) $(LIBDIRS) $(DTVLIB) $(SOFTCAMLIB)
$(X11LIB) -o vdr


========= Snip 8< Snap ===========

In menuitems.c at line 475:
void cMenuSetupPage::SetupStore(const char *Name, const char *Value = NULL)
to:
void cMenuSetupPage::SetupStore(const char *Name, const char *Value)

In osdbase.c at line 446:
void cOsd::Text(int x, int y, const char *s, eDvbColor ColorFg = 
clrWhite, eDvbColor ColorBg = clrBackground, tWindowHandle Window)
to:
void cOsd::Text(int x, int y, const char *s, eDvbColor ColorFg, 
eDvbColor ColorBg, tWindowHandle Window)

In ringbuffer.c at line 242:
cRingBufferFrame::cRingBufferFrame(int Size, bool Statistics = false)
to:
cRingBufferFrame::cRingBufferFrame(int Size, bool Statistics)


=========== snap 8< end ===========



The line numbers probably are wrong now, but with a decent editors 
search function you should be able to find these source parts.



-- 
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index