[mythtv-commits] Re: Ticket #306: Compile failure on SVN 7203

MythTV mythtv at cvs.mythtv.org
Fri Sep 9 14:24:57 UTC 2005


#306: Compile failure on SVN 7203
-----------------------------------------------+----------------------------
 Reporter:  Brian Huffman <huffman at graze.net>  |        Owner:  ijr
     Type:  defect                             |       Status:  new
 Priority:  major                              |    Milestone:     
Component:  mythmusic                          |      Version:     
 Severity:  medium                             |   Resolution:     
       Cc:                                     |  
-----------------------------------------------+----------------------------
Comment (by anonymous):

 It looks like you may be encountering a different error, but since it's a
 compile error on mythmusic I don't know there's much sense opening a new
 ticket.  I have this error with rev 7217:


 {{{
 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
 resample.c:38: warning: type defaults to `int' in declaration of `frac'
 resample.c:38: warning: data definition has no type or storage class
 resample.c:44: Error: error: parse error before '}' token
 resample.c:44: warning: type defaults to `int' in declaration of
 `ReSampleChannelContext'
 resample.c:44: warning: data definition has no type or storage class
 resample.c:47: Error: error: parse error before "ReSampleChannelContext"
 resample.c:47: warning: no semicolon at end of struct or union
 resample.c:51: Error: error: parse error before '}' token
 resample.c:59: Error: error: parse error before '*' token
 resample.c: In function `init_mono_resample':
 resample.c:62: Error: error: `s' undeclared (first use in this function)
 resample.c:62: Error: error: (Each undeclared identifier is reported only
 once
 resample.c:62: Error: error: for each function it appears in.)
 resample.c: At top level:
 resample.c:74: Error: error: parse error before '*' token
 resample.c: In function `fractional_resample':
 resample.c:80: Error: error: `s' undeclared (first use in this function)
 resample.c:84: Error: error: `input' undeclared (first use in this
 function)
 resample.c:85: Error: error: `nb_samples' undeclared (first use in this
 function)
 resample.c:86: Error: error: `output' undeclared (first use in this
 function)
 resample.c: At top level:
 resample.c:107: Error: error: parse error before '*' token
 resample.c: In function `integer_downsample':
 resample.c:112: Error: error: `input' undeclared (first use in this
 function)
 resample.c:113: Error: error: `nb_samples' undeclared (first use in this
 function)
 resample.c:114: Error: error: `output' undeclared (first use in this
 function)
 resample.c:116: Error: error: `s' undeclared (first use in this function)
 resample.c: At top level:
 resample.c:206: Error: error: parse error before '*' token
 resample.c: In function `mono_resample':
 resample.c:211: Error: error: `nb_samples' undeclared (first use in this
 function)
 resample.c:214: Error: error: `s' undeclared (first use in this function)
 resample.c:216: Error: error: `input' undeclared (first use in this
 function)
 resample.c:223: Error: error: `output' undeclared (first use in this
 function)
 resample.c: In function `audio_resample_init':
 resample.c:240: Error: error: invalid application of `sizeof' to
 incomplete type `resample.c'
 resample.c:241: Error: error: invalid application of `sizeof' to
 incomplete type `resample.c'
 resample.c:245: Error: error: dereferencing pointer to incomplete type
 resample.c:247: Error: error: dereferencing pointer to incomplete type
 resample.c:248: Error: error: dereferencing pointer to incomplete type
 resample.c:250: Error: error: dereferencing pointer to incomplete type
 resample.c:250: Error: error: dereferencing pointer to incomplete type
 resample.c:251: Error: error: dereferencing pointer to incomplete type
 resample.c:251: Error: error: dereferencing pointer to incomplete type
 resample.c:252: Error: error: dereferencing pointer to incomplete type
 resample.c:252: Error: error: dereferencing pointer to incomplete type
 resample.c:254: Error: error: dereferencing pointer to incomplete type
 resample.c:255: Error: error: dereferencing pointer to incomplete type
 resample.c:255: Error: error: dereferencing pointer to incomplete type
 resample.c: In function `audio_resample':
 resample.c:272: Error: error: dereferencing pointer to incomplete type
 resample.c:272: Error: error: dereferencing pointer to incomplete type
 resample.c:272: Error: error: dereferencing pointer to incomplete type
 resample.c:274: Error: error: dereferencing pointer to incomplete type
 resample.c:283: Error: error: dereferencing pointer to incomplete type
 resample.c:287: Error: error: dereferencing pointer to incomplete type
 resample.c:288: Error: error: dereferencing pointer to incomplete type
 resample.c:292: Error: error: dereferencing pointer to incomplete type
 resample.c:292: Error: error: dereferencing pointer to incomplete type
 resample.c:295: Error: error: dereferencing pointer to incomplete type
 resample.c:308: Error: error: dereferencing pointer to incomplete type
 resample.c:309: Error: error: dereferencing pointer to incomplete type
 resample.c:312: Error: error: dereferencing pointer to incomplete type
 resample.c:312: Error: error: dereferencing pointer to incomplete type
 resample.c:314: Error: error: dereferencing pointer to incomplete type
 make[2]: *** [resample.o] Error 1
 make[2]: Leaving directory
 `/root/tmp/mythsvn/mythplugins/mythmusic/mythmusic'
 make[1]: *** [sub-mythmusic] Error 2
 make[1]: Leaving directory `/root/tmp/mythsvn/mythplugins/mythmusic'
 make: *** [sub-mythmusic] Error 2
 }}}


 that was solved with this relatively simple patch:


 {{{
 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://svn.mythtv.org/trac/ticket/306>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list