[FFmpeg-trac] #391(FFmpeg:new): multiple definition of `_DXVA2_Fixed32OpaqueAlpha'

FFmpeg trac at avcodec.org
Thu Aug 11 09:37:07 CEST 2011


#391: multiple definition of `_DXVA2_Fixed32OpaqueAlpha'
------------------------+---------------------
  Reporter:  KSHawkEye  |      Owner:  michael
      Type:  defect     |     Status:  new
  Priority:  critical   |  Component:  FFmpeg
   Version:  git        |   Keywords:
Blocked By:             |   Blocking:
Reproduced:  0          |   Analyzed:  0
------------------------+---------------------
 I'm getting the following error while trying to compile the latest FFmpeg
 with MinGW-w64:


 {{{
 libavcodec/libavcodec.a(dxva2_mpeg2.o):dxva2_mpeg2.c:(.text+0x7d0):
 multiple definition of `_DXVA2_Fixed32OpaqueAlpha'
 libavcodec/libavcodec.a(dxva2_h264.o):dxva2_h264.c:(.text+0x1870): first
 defined here
 libavcodec/libavcodec.a(dxva2_mpeg2.o):dxva2_mpeg2.c:(.text+0x7e0):
 multiple definition of `_DXVA2_Fixed32TransparentAlpha'
 libavcodec/libavcodec.a(dxva2_h264.o):dxva2_h264.c:(.text+0x1880): first
 defined here
 libavcodec/libavcodec.a(dxva2_mpeg2.o):dxva2_mpeg2.c:(.text+0x7f0):
 multiple definition of `_DXVA2FixedToFloat'
 libavcodec/libavcodec.a(dxva2_h264.o):dxva2_h264.c:(.text+0x1890): first
 defined here
 libavcodec/libavcodec.a(dxva2_mpeg2.o):dxva2_mpeg2.c:(.text+0x830):
 multiple definition of `_DXVA2FloatToFixed'
 libavcodec/libavcodec.a(dxva2_h264.o):dxva2_h264.c:(.text+0x18d0): first
 defined here
 libavcodec/libavcodec.a(dxva2.o):dxva2.c:(.text+0x170): multiple
 definition of `_DXVA2_Fixed32OpaqueAlpha'
 libavcodec/libavcodec.a(dxva2_h264.o):dxva2_h264.c:(.text+0x1870): first
 defined here
 libavcodec/libavcodec.a(dxva2.o):dxva2.c:(.text+0x180): multiple
 definition of `_DXVA2_Fixed32TransparentAlpha'
 libavcodec/libavcodec.a(dxva2_h264.o):dxva2_h264.c:(.text+0x1880): first
 defined here
 libavcodec/libavcodec.a(dxva2.o):dxva2.c:(.text+0x190): multiple
 definition of `_DXVA2FixedToFloat'
 libavcodec/libavcodec.a(dxva2_h264.o):dxva2_h264.c:(.text+0x1890): first
 defined here
 libavcodec/libavcodec.a(dxva2.o):dxva2.c:(.text+0x1d0): multiple
 definition of `_DXVA2FloatToFixed'
 libavcodec/libavcodec.a(dxva2_h264.o):dxva2_h264.c:(.text+0x18d0): first
 defined here
 collect2: ld returned 1 exit status
 make: *** [ffmpeg_g.exe] Error 1
 }}}

 make V=1 shows:


 {{{
 i686-w64-mingw32-gcc -Llibavcodec -Llibavdevice -Llibavfilter
 -Llibavformat -Llibavutil -Llibpostproc -Llibswscale -Wl,--as-needed -Wl
 ,--warn-common -Wl,-rpath-
 link=libpostproc:libswscale:libavfilter:libavdevice:libavformat:libavcodec:libavutil
 -o ffmpeg_g.exe ffmpeg.o cmdutils.o -lavdevice -lavfilter -lavformat
 -lavcodec -lpostproc -lswscale -lavutil -lavicap32 -lpsapi -lole32
 -lstrmiids -luuid -lws2_32 -lm -lpthread -lpsapi
 }}}

 I'm using GCC 4.6.1 to compile, I believe the issue could be on MinGW-w64s
 end, but I'm not sure because I had no other issues compiling other
 software with the toolchain.

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/391>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list