[mythtv-commits] Ticket #451: compile failure rev 7438

MythTV mythtv at cvs.mythtv.org
Mon Oct 10 23:46:54 UTC 2005


#451: compile failure rev 7438
----------------------------------------+-----------------------------------
 Reporter:  dgriffith at internode.on.net  |       Owner:  ijr
     Type:  patch                       |      Status:  new
 Priority:  minor                       |   Milestone:     
Component:  mythmusic                   |     Version:     
 Severity:  high                        |  ----------------------------------------+-----------------------------------
 Mythmusic fails to compile at resample.c

 This appears to be a different fault from ticket #306, although a solution
 for this error was posted there.

 ----
 The error:
 {{{
 make[2]: Entering directory
 `/root/tmp/mythsvn/mythplugins/mythmusic/mythmusic'
 gcc -c -pipe -march=athlon-xp -O3 -Wall -W -O3 -Wall -Wno-switch -fomit-
 frame-pointer -D_REENTRANT -DPIC -fPIC  -D_GNU_SOURCE -DPREFIX=\"/usr\"
 -DMMX -Di386 -DHAVE_DVDNAV -D_FILE_OFFSET_BITS=64 -DQT_NO_DEBUG
 -DQT_THREAD_SUPPORT -DQT_PLUGIN -I/usr/qt/3/mkspecs/linux-g++ -I.
 -I/usr/include -I/usr/kde/3.3/include -I/usr/include -I/usr/include/cdda
 -I/usr/qt/3/include -I/usr/include -o resample.o resample.c
 resample.c:37: Error: error: parse error before "uint32_t"
 resample.c:37: warning: no semicolon at end of struct or union
 }}}


 ----

 Which was solved by this patch by anonymous , who added it to #306.

 {{{
 Index: mythplugins/mythmusic/mythmusic/resample.c
 ===================================================================
 --- mythplugins/mythmusic/mythmusic/resample.c  (revision 7217)
 +++ mythplugins/mythmusic/mythmusic/resample.c  (working copy)
 @@ -32,7 +32,7 @@
  #include <string.h>
  #include <stdio.h>

 -typedef struct {
 +struct ReSampleChannelContext {
      /* fractional resampling */
      uint32_t incr; /* fractional increment */
      uint32_t frac;
 @@ -41,8 +41,10 @@
      int iratio;  /* integer divison ratio */
      int icount, isum;
      int inv;
 -} ReSampleChannelContext;
 +};

 +typedef struct ReSampleChannelContext ReSampleChannelContext;
 +
  struct ReSampleContext {
      ReSampleChannelContext channel_ctx[2];
      float ratio;
 }}}

-- 
Ticket URL: <http://cvs.mythtv.org/trac/ticket/451>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list