Motion - Bug Report 2009x 02x 28x 113951
You are here: Foswiki>Motion Web>BugReports>BugReport2009x02x28x113951 (01 Mar 2009, AngelCarpintero)Edit Attach

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

Topic revision: r3 - 01 Mar 2009, AngelCarpintero
Copyright © 1999-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.