[MacPorts] #22284: mplayer-devel qtx support broken for Snow Leopard 10.6.1 + macports 1.8.1

MacPorts noreply at macports.org
Wed Oct 28 17:58:13 PDT 2009


#22284: mplayer-devel qtx support broken for Snow Leopard 10.6.1 + macports 1.8.1
----------------------------------+-----------------------------------------
 Reporter:  david@…               |       Owner:  acho@…           
     Type:  defect                |      Status:  new              
 Priority:  Normal                |   Milestone:                   
Component:  ports                 |     Version:  1.8.1            
 Keywords:                        |        Port:  mplayer-devel    
----------------------------------+-----------------------------------------

Comment(by david@…):

 {{{

 Looks like Quicktime functionality is hosed pending a code rewrite
 to switch from the old QuickTime API to the new one.

 I've posted this to the mplayer users mailing list also

 I'm unsure the correct way to dispose of this bug. I'm imagining
 close as "to be fixed in upstream mplayer someday".
 ________

 In each case where an undeclared error occurs I've tracked this down to
 Apple header file segments like this one out of Sound.h which state the
 errors relate to deprecated declarations:

 ... ... ...
 /*
  *  SoundConverterGetBufferSizes()   *** DEPRECATED ***
  *
  *  Availability:
  *    Mac OS X:         in version 10.0 and later in Carbon.framework
 [32-bit only] but deprecated in 10.5
  *    CarbonLib:        in CarbonLib 1.0 and later
  *    Non-Carbon CFM:   in SoundLib 3.2 and later
  */
 extern OSErr
 SoundConverterGetBufferSizes(
   SoundConverter   sc,
   unsigned long    inputBytesTarget,
   unsigned long *  inputFrames,
   unsigned long *  inputBytes,
   unsigned long *  outputBytes)
 AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5;
 ... ... ...

 It appears the code for ad_qtaudio.c and ad_qtvideo.c requires a
 rewrite to use a newer API, of which there's no pointer to in the
 header files. It appears the new API may reside in the MacOS directory:

 /Developer/SDKs/MacOSX10.6.sdk/.../QuickTime.framework/.../Headers/QuickTime*.h

 Here's a fragment of the build log.

 /usr/bin/gcc-4.2 -Wundef -Wdisabled-optimization -Wno-pointer-sign
 -Wdeclaration-after-statement -std=gnu99 -Wall -Wno-switch -Wpointer-arith
 -Wredundant-decls -O4 -march=core2 -mtune=core2 -pipe -ffast-math -fomit-
 frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -mdynamic-no-pic -falign-loops=16
 -shared-libgcc -I. -I/opt/local/include/lzo -I/opt/local/include
 -I/usr/X11/include   -c -o libmpcodecs/vd_qtvideo.o
 libmpcodecs/vd_qtvideo.c
 libmpcodecs/ad_qtaudio.c:164: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'myConverter'
 libmpcodecs/ad_qtaudio.c:165: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'InputFormatInfo'
 libmpcodecs/ad_qtaudio.c: In function 'preinit':
 libmpcodecs/ad_qtaudio.c:179: warning: implicit declaration of function
 'EnterMovies'
 libmpcodecs/ad_qtaudio.c:193: error: 'OutputFormatInfo' undeclared (first
 use in this function)
 libmpcodecs/ad_qtaudio.c:193: error: (Each undeclared identifier is
 reported only once
 libmpcodecs/ad_qtaudio.c:193: error: for each function it appears in.)
 libmpcodecs/ad_qtaudio.c:193: error: 'InputFormatInfo' undeclared (first
 use in this function)
 libmpcodecs/ad_qtaudio.c:204: warning: implicit declaration of function
 'SoundConverterOpen'
 libmpcodecs/ad_qtaudio.c:204: error: 'myConverter' undeclared (first use
 in this function)
 libmpcodecs/ad_qtaudio.c:209: warning: implicit declaration of function
 'SoundConverterSetInfo'
 libmpcodecs/ad_qtaudio.c:209: error: 'siDecompressionParams' undeclared
 (first use in this function)
 libmpcodecs/ad_qtaudio.c:215: warning: implicit declaration of function
 'SoundConverterGetBufferSizes'
 libmpcodecs/ad_qtaudio.c:228: warning: implicit declaration of function
 'SoundConverterBeginConversion'
 libmpcodecs/ad_qtaudio.c: In function 'uninit':
 libmpcodecs/ad_qtaudio.c:267: warning: implicit declaration of function
 'SoundConverterEndConversion'
 libmpcodecs/ad_qtaudio.c:267: error: 'myConverter' undeclared (first use
 in this function)
 libmpcodecs/ad_qtaudio.c:269: warning: implicit declaration of function
 'SoundConverterClose'
 libmpcodecs/ad_qtaudio.c:279: warning: implicit declaration of function
 'ExitMovies'
 libmpcodecs/ad_qtaudio.c: In function 'decode_audio':
 libmpcodecs/ad_qtaudio.c:311: warning: implicit declaration of function
 'SoundConverterConvertBuffer'
 libmpcodecs/ad_qtaudio.c:311: error: 'myConverter' undeclared (first use
 in this function)
 make: *** [libmpcodecs/ad_qtaudio.o] Error 1
 }}}

-- 
Ticket URL: <http://trac.macports.org/ticket/22284#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list