[MEncoder-users] redefinition of 'av_log2' error

Evert | Rooftop evert at rooftopsolutions.nl
Wed Nov 12 22:30:48 CET 2008


Hey Guys,

I'm attempting to compile mencoder, using an alternative --prefix  
directory, but make fails royally. I'm hoping somebody can tell me  
what I'm doing wrong.

I'm using some extra include/lib directories, so I wonder if it has to  
do with that, and how I would correct this.

My configure line is :
./configure --prefix=/home/converter/bin --codecsdir=/home/converter/ 
bin/lib/codecs --disable-mplayer

My extra environment vars are:
declare -x CFLAGS="-I/home/converter/bin/include"
declare -x LDFLAGS="-L/home/converter/bin/lib"

Make gives me:
make
./version.sh `cc -dumpversion`
cc -I/home/converter/bin/include -I./libavcodec -I./libavformat - 
Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement  
-I. -I. -I./libavutil -I/home/converter/bin/include -D_REENTRANT - 
D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE - 
DHAVE_CONFIG_H    -c -o mencoder.o mencoder.c
In file included from ./libavutil/bswap.h:30,
                  from ./mpbswap.h:4,
                  from libmpdemux/aviheader.h:6,
                  from libmpdemux/stheader.h:4,
                  from mencoder.c:55:
./libavutil/common.h:98: error: redefinition of 'av_log2'
/home/converter/bin/include/libavutil/common.h:125: error: previous  
definition of 'av_log2' was here
./libavutil/common.h:116: error: redefinition of 'av_log2_16bit'
/home/converter/bin/include/libavutil/common.h:141: error: previous  
definition of 'av_log2_16bit' was here
./libavutil/common.h:131: error: redefinition of 'mid_pred'
/home/converter/bin/include/libavutil/common.h:154: error: previous  
definition of 'mid_pred' was here
./libavutil/common.h:178: error: redefinition of 'av_clip'
/home/converter/bin/include/libavutil/common.h:201: error: previous  
definition of 'av_clip' was here
./libavutil/common.h:190: error: redefinition of 'av_clip_uint8'
/home/converter/bin/include/libavutil/common.h:213: error: previous  
definition of 'av_clip_uint8' was here
./libavutil/common.h:201: error: redefinition of 'av_clip_int16'
/home/converter/bin/include/libavutil/common.h:224: error: previous  
definition of 'av_clip_int16' was here
./libavutil/common.h:212: error: redefinition of 'ff_get_fourcc'
/home/converter/bin/include/libavutil/common.h:249: error: previous  
definition of 'ff_get_fourcc' was here
./libavutil/common.h:300: error: conflicting types for 'read_time'
/home/converter/bin/include/libavutil/common.h:328: error: previous  
definition of 'read_time' was here
In file included from ./libavutil/bswap.h:30,
                  from ./mpbswap.h:4,
                  from libmpdemux/aviheader.h:6,
                  from libmpdemux/stheader.h:4,
                  from mencoder.c:55:
./libavutil/common.h:349:1: warning: "STOP_TIMER" redefined
In file included from libmpdemux/aviheader.h:5,
                  from libmpdemux/stheader.h:4,
                  from mencoder.c:55:
/home/converter/bin/include/libavutil/common.h:376:1: warning: this is  
the location of the previous definition
make: *** [mencoder.o] Error 1




More information about the MEncoder-users mailing list