Opened 15 years ago

Closed 14 years ago

#22284 closed defect (wontfix)

mplayer-devel qtx support broken for Snow Leopard 10.6.1 + macports 1.8.1

Reported by: davidfavor (David Favor) Owned by: acho@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc:
Port: mplayer-devel

Description (last modified by jmroot (Joshua Root))

Per other tickets I've tried this turning off yasm, mmx & sse support (all flags) with no effect.

newmac#port install mplayer-devel
--->  Computing dependencies for mplayer-devel
--->  Fetching mplayer-devel
--->  Verifying checksum(s) for mplayer-devel
--->  Extracting mplayer-devel
--->  Applying patches to mplayer-devel
--->  Configuring mplayer-devel
--->  Building mplayer-devel
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_mplayer-devel/work/trunk" && /usr/bin/make -j2 all " returned error 2
Command output: make: *** Waiting for unfinished jobs....
libmpcodecs/vd_qtvideo.c:34: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'codeccap'
libmpcodecs/vd_qtvideo.c:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'decpar'
libmpcodecs/vd_qtvideo.c: In function 'init':
libmpcodecs/vd_qtvideo.c:93: error: 'CodecInfo' undeclared (first use in this function)
libmpcodecs/vd_qtvideo.c:93: error: (Each undeclared identifier is reported only once
libmpcodecs/vd_qtvideo.c:93: error: for each function it appears in.)
libmpcodecs/vd_qtvideo.c:93: error: expected ';' before 'cinfo'
libmpcodecs/vd_qtvideo.c:94: error: 'ImageSubCodecDecompressCapabilities' undeclared (first use in this function)
libmpcodecs/vd_qtvideo.c:94: error: expected ';' before 'icap'
libmpcodecs/vd_qtvideo.c:98: warning: implicit declaration of function 'EnterMovies'
libmpcodecs/vd_qtvideo.c:193: error: 'icap' undeclared (first use in this function)
libmpcodecs/vd_qtvideo.c:194: warning: implicit declaration of function 'ImageCodecInitialize'
libmpcodecs/vd_qtvideo.c:197: error: 'cinfo' undeclared (first use in this function)
libmpcodecs/vd_qtvideo.c:198: warning: implicit declaration of function 'ImageCodecGetCodecInfo'
libmpcodecs/vd_qtvideo.c:271: warning: cast to pointer from integer of different size
libmpcodecs/vd_qtvideo.c: In function 'uninit':
libmpcodecs/vd_qtvideo.c:284: warning: implicit declaration of function 'ExitMovies'
libmpcodecs/vd_qtvideo.c: In function 'decode':
libmpcodecs/vd_qtvideo.c:301: error: 'decpar' undeclared (first use in this function)
libmpcodecs/vd_qtvideo.c:306: warning: implicit declaration of function 'QTNewGWorldFromPtr'
libmpcodecs/vd_qtvideo.c:309: warning: cast from pointer to integer of different size
libmpcodecs/vd_qtvideo.c:331: error: 'codeccap' undeclared (first use in this function)
libmpcodecs/vd_qtvideo.c:333: error: 'codecNormalQuality' undeclared (first use in this function)
libmpcodecs/vd_qtvideo.c:349: warning: implicit declaration of function 'GetGWorldPixMap'
libmpcodecs/vd_qtvideo.c:349: error: invalid type argument of 'unary *'
libmpcodecs/vd_qtvideo.c:351: warning: implicit declaration of function 'ImageCodecPreDecompress'
libmpcodecs/vd_qtvideo.c:383: warning: implicit declaration of function 'ImageCodecBandDecompress'
libmpcodecs/vd_qtvideo.c:395: warning: cast from pointer to integer of different size
make: *** [libmpcodecs/vd_qtvideo.o] Error 1

Error: Status 1 encountered during processing.

Change History (3)

comment:1 Changed 15 years ago by jmroot (Joshua Root)

Description: modified (diff)
Milestone: MacPorts 1.8.2
Owner: changed from macports-tickets@… to acho@…
Port: mplayer-devel added

Please review the ticket reporting guidelines.

comment:2 Changed 15 years ago by davidfavor (David Favor)

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

comment:3 Changed 14 years ago by jmroot (Joshua Root)

Resolution: wontfix
Status: newclosed

Indeed, this is something for upstream.

Note: See TracTickets for help on using tickets.