Motion - Bug Report 2008x 07x 10x 125835
You are here: Foswiki>Motion Web>BugReports>BugReport2008x07x10x125835 (10 Jul 2008, AngelCarpintero)Edit Attach

BUG: adding wvc200 patch to .deb package

unable to "make" motion with patched files..

as i purchased a new linksys WVC200 camera i came across the new patch provided for current version. as there's no .deb package out with this patch included (right?) i removed motion with apt and tried to patch the source downloaded from this site. both patches (1.1 and 1.2) did leave some unpatched parts so i tried to patch them recording to to diff file manually.. (and i think i changed it right) configure did run proberly with mjpeg support. but when i tried to make, then i got quite a lot of error-messages.. (see below) i would love it if you guys help me out or create a patched .deb file..

after ./configure --with-mjpeg=yes

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: 3.2.10.1
Platform: Linux (if this is incorrect, please read README.FreeBSD)

Generating dependencies, please wait...

Compiling Motion object files...
--------------------------------------------------------------------------------
gcc -g -O2 -D_REENTRANT -DMJPEGT -DHAVE_FFMPEG -I/usr/include/ffmpeg -I/usr/include/mysql -DMOTION_V4L2 -DTYPE_32BIT="int" -DHAVE_BSWAP   -march=pentium4 -mfpmath=sse -msse2  -mmmx -Wall -DVERSION=\"3.2.10.1\" -Dsysconfdir=\"/usr/local/etc\" -Ddocdir=\"/usr/local/share/doc/motion-3.2.10.1\"   -c -o motion.o motion.c
In file included from ffmpeg.h:6,
                 from motion.c:9:
/usr/include/ffmpeg/avformat.h:228: warning: âAVFracâ is deprecated
/usr/include/ffmpeg/avformat.h:378: warning: âAVImageInfoâ is deprecated
/usr/include/ffmpeg/avformat.h:381: warning: âAVImageInfoâ is deprecated
/usr/include/ffmpeg/avformat.h:386: warning: âAVImageFormatâ is deprecated
/usr/include/ffmpeg/avformat.h:391: warning: âAVImageFormatâ is deprecated
/usr/include/ffmpeg/avformat.h:392: warning: âAVImageInfoâ is deprecated
/usr/include/ffmpeg/avformat.h:393: warning: âAVImageFormatâ is deprecated
/usr/include/ffmpeg/avformat.h:393: warning: âAVImageInfoâ is deprecated
gcc -g -O2 -D_REENTRANT -DMJPEGT -DHAVE_FFMPEG -I/usr/include/ffmpeg -I/usr/include/mysql -DMOTION_V4L2 -DTYPE_32BIT="int" -DHAVE_BSWAP   -march=pentium4 -mfpmath=sse -msse2  -mmmx -Wall -DVERSION=\"3.2.10.1\" -Dsysconfdir=\"/usr/local/etc\" -Ddocdir=\"/usr/local/share/doc/motion-3.2.10.1\"   -c -o conf.o conf.c
gcc -g -O2 -D_REENTRANT -DMJPEGT -DHAVE_FFMPEG -I/usr/include/ffmpeg -I/usr/include/mysql -DMOTION_V4L2 -DTYPE_32BIT="int" -DHAVE_BSWAP   -march=pentium4 -mfpmath=sse -msse2  -mmmx -Wall -DVERSION=\"3.2.10.1\" -Dsysconfdir=\"/usr/local/etc\" -Ddocdir=\"/usr/local/share/doc/motion-3.2.10.1\"   -c -o draw.o draw.c
gcc -g -O2 -D_REENTRANT -DMJPEGT -DHAVE_FFMPEG -I/usr/include/ffmpeg -I/usr/include/mysql -DMOTION_V4L2 -DTYPE_32BIT="int" -DHAVE_BSWAP   -march=pentium4 -mfpmath=sse -msse2  -mmmx -Wall -DVERSION=\"3.2.10.1\" -Dsysconfdir=\"/usr/local/etc\" -Ddocdir=\"/usr/local/share/doc/motion-3.2.10.1\"   -c -o video.o video.c
gcc -g -O2 -D_REENTRANT -DMJPEGT -DHAVE_FFMPEG -I/usr/include/ffmpeg -I/usr/include/mysql -DMOTION_V4L2 -DTYPE_32BIT="int" -DHAVE_BSWAP   -march=pentium4 -mfpmath=sse -msse2  -mmmx -Wall -DVERSION=\"3.2.10.1\" -Dsysconfdir=\"/usr/local/etc\" -Ddocdir=\"/usr/local/share/doc/motion-3.2.10.1\"   -c -o video2.o video2.c
gcc -g -O2 -D_REENTRANT -DMJPEGT -DHAVE_FFMPEG -I/usr/include/ffmpeg -I/usr/include/mysql -DMOTION_V4L2 -DTYPE_32BIT="int" -DHAVE_BSWAP   -march=pentium4 -mfpmath=sse -msse2  -mmmx -Wall -DVERSION=\"3.2.10.1\" -Dsysconfdir=\"/usr/local/etc\" -Ddocdir=\"/usr/local/share/doc/motion-3.2.10.1\"   -c -o video_common.o video_common.c
gcc -g -O2 -D_REENTRANT -DMJPEGT -DHAVE_FFMPEG -I/usr/include/ffmpeg -I/usr/include/mysql -DMOTION_V4L2 -DTYPE_32BIT="int" -DHAVE_BSWAP   -march=pentium4 -mfpmath=sse -msse2  -mmmx -Wall -DVERSION=\"3.2.10.1\" -Dsysconfdir=\"/usr/local/etc\" -Ddocdir=\"/usr/local/share/doc/motion-3.2.10.1\"   -c -o netcam.o netcam.c
netcam.c: In function ânetcam_read_first_headerâ:
netcam.c:673: error: duplicate case value
netcam.c:667: error: previously used here
netcam.c: In function ânetcam_connectâ:
netcam.c:831: warning: unused variable âselecttimeâ
netcam.c:830: warning: unused variable âfd_wâ
netcam.c:829: warning: unused variable âlenâ
netcam.c:826: warning: unused variable âback_errâ
netcam.c:825: warning: unused variable âsaveflagsâ
netcam.c:824: warning: unused variable âretâ
netcam.c:823: warning: unused variable âresâ
netcam.c:822: warning: unused variable âserverâ
netcam.c: At top level:
netcam.c:888: error: expected identifier or â(â before âifâ
netcam.c:902: error: expected declaration specifiers or â...â before â&â token
netcam.c:902: error: expected declaration specifiers or â...â before numeric constant
netcam.c:902: error: expected declaration specifiers or â...â before âsizeofâ
netcam.c:902: warning: data definition has no type or storage class
netcam.c:902: warning: type defaults to âintâ in declaration of âmemsetâ
netcam.c:902: error: conflicting types for âmemsetâ
netcam.c:903: error: expected declaration specifiers or â...â before â&â token
netcam.c:903: error: expected declaration specifiers or â...â before âresâ
netcam.c:903: error: expected declaration specifiers or â...â before âsizeofâ
netcam.c:903: warning: data definition has no type or storage class
netcam.c:903: warning: type defaults to âintâ in declaration of âmemcpyâ
netcam.c:903: error: conflicting types for âmemcpyâ
netcam.c:904: warning: data definition has no type or storage class
netcam.c:904: warning: type defaults to âintâ in declaration of âfreeaddrinfoâ
netcam.c:904: warning: parameter names (without types) in function declaration
netcam.c:904: error: conflicting types for âfreeaddrinfoâ
/usr/include/netdb.h:637: error: previous declaration of âfreeaddrinfoâ was here
netcam.c:906: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â.â token
netcam.c:907: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â.â token
netcam.c:907: error: expected identifier or â(â before â)â token
netcam.c:914: error: expected identifier or â(â before âifâ
netcam.c:921: error: expected identifier or â(â before âifâ
netcam.c:928: warning: data definition has no type or storage class
netcam.c:928: warning: type defaults to âintâ in declaration of âretâ
netcam.c:928: error: ânetcamâ undeclared here (not in a function)
netcam.c:928: error: âserverâ undeclared here (not in a function)
netcam.c:929: error: initializer element is not constant
netcam.c:930: warning: data definition has no type or storage class
netcam.c:930: warning: type defaults to âintâ in declaration of âback_errâ
netcam.c:930: error: initializer element is not constant
netcam.c:933: error: expected identifier or â(â before âifâ
netcam.c:943: error: expected identifier or â(â before âdoâ
netcam.c:943: error: expected identifier or â(â before âwhileâ
netcam.c:944: error: expected â(â before âvolatileâ
netcam.c:945: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â.â token
netcam.c:946: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â.â token
netcam.c:947: warning: data definition has no type or storage class
netcam.c:947: warning: type defaults to âintâ in declaration of âretâ
netcam.c:947: error: redefinition of âretâ
netcam.c:928: error: previous definition of âretâ was here
netcam.c:947: error: âfd_wâ undeclared here (not in a function)
netcam.c:947: error: âselecttimeâ undeclared here (not in a function)
netcam.c:947: error: initializer element is not constant
netcam.c:949: error: expected identifier or â(â before âifâ
netcam.c:963: warning: data definition has no type or storage class
netcam.c:963: warning: type defaults to âintâ in declaration of âlenâ
netcam.c:965: error: expected identifier or â(â before âifâ
netcam.c:972: error: expected identifier or â(â before âifâ
netcam.c:982: warning: data definition has no type or storage class
netcam.c:982: warning: type defaults to âintâ in declaration of ârbuf_initializeâ
netcam.c:982: warning: parameter names (without types) in function declaration
netcam.c:982: error: conflicting types for ârbuf_initializeâ
netcam_wget.h:62: error: previous declaration of ârbuf_initializeâ was here
netcam.c:984: error: expected identifier or â(â before âreturnâ
netcam.c:985: error: expected identifier or â(â before â}â token
netcam.c:1574: error: redefinition of ânetcam_http_requestâ
netcam.c:1319: error: previous definition of ânetcam_http_requestâ was here
netcam.c:1630: error: redefinition of ânetcam_mjpg_buffer_refillâ
netcam.c:1362: error: previous definition of ânetcam_mjpg_buffer_refillâ was here
netcam.c:1691: error: redefinition of ânetcam_read_mjpg_jpegâ
netcam.c:1419: error: previous definition of ânetcam_read_mjpg_jpegâ was here
make: *** [netcam.o] Error 1

Environment

Motion version: 3.2.10.1
ffmpeg version:  
Shared libraries: ffmpeg, mysql, postgresql
Server OS: Debian 2.6.20-16

-- DavidSpuler - 10 Jul 2008

Follow up

This is not a bug at all ... you didn't backport properly the patch .

the patch in only merge in trunk not in 3.2.x , so you have to backport to 3.2.10.1 or use trunk.

Fix record

BugReportForm edit

TopicTitle adding wvc200 patch to .deb package / unable to "make" motion with patched files
BugStatus Rejected
AssignedBugTo
SubmittedBy Main.dave
Topic revision: r2 - 10 Jul 2008, AngelCarpintero
Copyright © 1999-2024 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.