[MPlayer-users] os x compile error

Dave Chand devchan1 at bellsouth.net
Thu Dec 7 02:35:17 CET 2006


Hello,
I am trying to compile mplayer revision 21522, with libavutil  
revision 7241.
OS: intel OS X 10.4, gcc 4.0.1.

I now receive the following error:

cc -Wdeclaration-after-statement -gfull -g3 -O2 -fomit-frame-pointer - 
mdynamic-no-pic -falign-loops=16 -DSYS_DARWIN -DCONFIG_DARWIN -shared- 
libgcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk - 
D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I/sw/ 
include -I/usr/local/include -I/sw/include -I/usr/X11R6/include -I/sw/ 
include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -I/sw/include/freetype2 -I/ 
sw/include -I. -I./libavutil -I./libavcodec -I/sw/include  -c -o  
mplayer.o mplayer.c
In file included from libmpdemux/aviheader.h:6,
                  from libmpdemux/stheader.h:4,
                  from mplayer.c:178:
./libavutil/bswap.h:40: error: syntax error before 'uint16_t'
./libavutil/bswap.h:48: error: syntax error before 'uint32_t'


      40 static always_inline uint16_t bswap_16(uint16_t x)
      41 {
      42   __asm("rorw $8, %0"   :
      43         LEGACY_REGS (x) :
      44         "0" (x));
      45     return x;
      46 }
      47
      48 static always_inline uint32_t bswap_32(uint32_t x)
      49 {
      50 #if __CPU__ != 386
      51  __asm("bswap   %0":
      52       "=r" (x)     :
      53 #else
      54  __asm("xchgb   %b0,%h0\n"
      55       "         rorl    $16,%0\n"
      56       "         xchgb   %b0,%h0":
      57       LEGACY_REGS (x)                :
      58 #endif
      59       "0" (x));
      60   return x;

The error popped up only recently. If I remove "always_inline", the  
compilation goes forward until "always_inline" is encountered again.

dc




More information about the MPlayer-users mailing list