BUG: multiple definition of `file_protocol'
make fails with the above error. ffmpeg installed, jpeglib & jpeglib-devel installed. used svn
[root@localhost motion]# make
Welcome to the setup procedure for Motion, the motion detection daemon! If you get
error messages during this procedure, please report them to the mailing list. The
Motion Guide contains all information you should need to get Motion up and running.
Run "make updateguide" to download the latest version of the Motion Guide.
Version: trunk-r441
Platform: Linux (if this is incorrect, please read README.FreeBSD)
Compiling Motion object files...
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Motion object files compiled.
Linking Motion...
--------------------------------------------------------------------------------
gcc -L/usr/local/lib -o motion motion.o logger.o conf.o draw.o jpegutils.o vloopback_motion.o video.o
video2.o video_common.o netcam.o netcam_ftp.o netcam_jpeg.o netcam_wget.o track.o alg.o event.o
picture.o rotate.o webhttpd.o stream.o ffmpeg.o -lm -lpthread -ljpeg -L/usr/local/lib -lavformat
-lavcodec -lavutil -lm -lz
/usr/local/lib/libavformat.a(file.o):(.data+0x0): multiple definition of `file_protocol'
ffmpeg.o:(.data+0x40): first defined here
collect2: ld returned 1 exit status
make: *** [motion] Error 1
Environment
Motion version: |
3.2.11 |
ffmpeg version: |
latest |
Shared libraries: |
ffmpeg |
Server OS: |
Linpus Elite Acer Aspire One |
--
KostasNik - 28 Feb 2009
Follow up
You reported motion version 3.2.11 but your log belongs to svn trunk. Motion doesn't support ALL version of ffmpeg only those stabled in linux distros and BSD , so trunk is not supported. Please use a ffmpeg version deployed by any distro or BSD.
--
AngelCarpintero - 01 Mar 2009
I tried latest version of ffmpeg : svn-r17694 ( FFmpeg version SVN-r1769 )
with latest svn revision of motion trunk-r442 and got no problem :
LIBAVCODEC_BUILD 3412992 LIBAVFORMAT_BUILD 3415808
So probably you didn't compile on the rigth way ffmpeg as is explained in FAQ and other question support :
- ffmpeg :
./configure --enable-share ; make ; make install ; ldconfig
- motion :
./configure --with-ffmpeg=/usr/local ; make ; make install
--
AngelCarpintero - 01 Mar 2009