Send Motion-user mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/motion-user
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Motion-user digest..."


Today's Topics:

   1. Re: motion crashing or stops working (S Andreason)


----------------------------------------------------------------------

Message: 1
Date: Mon, 15 Feb 2021 08:37:18 -0800
From: S Andreason <[email protected]>
To: Motion-user <[email protected]>
Subject: Re: [Motion-user] motion crashing or stops working
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8; format=flowed

Hi,

I have results from the directive to compile from source.

Following those instructions required me to add 28+8 packages, but did 
not upgrade the other 160 available for upgrade.
To be clear, I did do the full upgrade and synchronization October 26 so 
all packages were up to date, when I installed the new motion version 4.3.2

I performed the configure and make ok, but halted upon errors from make 
check. Here's the relevant output:

$ ./configure
[...clip...]
 ?? **************************
 ????? Configure status
 ????? motion 4.3.2
 ?? **************************

CFLAGS: -D_THREAD_SAFE -I/usr/include/p11-kit-1? -Irasppicam 
-I/opt/vc/include? -I/usr/include/arm-linux-gnueabihf? -g -O2

LIBS:? -pthread?? -ljpeg -lmicrohttpd? -L/opt/vc/lib -lmmal -lmmal_core 
-lmmal_util -lmmal_vc_client -lbcm_host -lvcsm -lvcos -lvchostif? 
-lavutil -lavformat -lavcodec -lswscale -lavdevice

LDFLAGS:


OS????????????????? : linux-gnueabihf
pthread_np????????? : no
pthread_setname_np? : yes
pthread_getname_np? : yes
XSI error?????????? : no
webp support??????? : yes
V4L2 support??????? : yes
BKTR support??????? : no
MMAL support??????? : yes
FFmpeg support????? : yes
libavformat version : 58.20.100
SQLite3 support???? : no
MYSQL support?????? : no
PostgreSQL support? : no
MariaDB support???? : no

Install prefix:?????? /usr/local

$ make
$ make check
[...clip successful lines...]
depbase=`echo mmalcam.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. -Dsysconfdir=\"/usr/local/etc/motion\" 
-DLOCALEDIR=\"/usr/local/share/locale\"? -D_THREAD_SAFE 
-I/usr/include/p11-kit-1? -Irasppicam -I/opt/vc/include 
-I/usr/include/arm-linux-gnueabihf? -W -Werror -Wall -Wextra -Wformat 
-Wshadow -Wpointer-arith -Wwrite-strings -Waggregate-return 
-Wnested-externs -Winline -Wredundant-decls -Wno-long-long -ggdb -g3 -g 
-O2 -MT mmalcam.o -MD -MP -MF $depbase.Tpo -c -o mmalcam.o mmalcam.c &&\
mv -f $depbase.Tpo $depbase.Po
In file included from /opt/vc/include/interface/vcos/vcos.h:118,
 ???????????????? from mmalcam.c:20:
/opt/vc/include/interface/vcos/pthreads/vcos_platform.h:792:23: error: 
redundant redeclaration of ?_vcos_thread_sem_wait? [-Werror=redundant-decls]
 ?VCOS_INLINE_DECL void _vcos_thread_sem_wait(void);
 ?????????????????????? ^~~~~~~~~~~~~~~~~~~~~
/opt/vc/include/interface/vcos/pthreads/vcos_platform.h:644:6: note: 
previous definition of ?_vcos_thread_sem_wait? was here
 ?void _vcos_thread_sem_wait(void) {
 ????? ^~~~~~~~~~~~~~~~~~~~~
/opt/vc/include/interface/vcos/pthreads/vcos_platform.h:793:23: error: 
redundant redeclaration of ?_vcos_thread_sem_post? [-Werror=redundant-decls]
 ?VCOS_INLINE_DECL void _vcos_thread_sem_post(VCOS_THREAD_T *);
 ?????????????????????? ^~~~~~~~~~~~~~~~~~~~~
/opt/vc/include/interface/vcos/pthreads/vcos_platform.h:650:6: note: 
previous definition of ?_vcos_thread_sem_post? was here
 ?void _vcos_thread_sem_post(VCOS_THREAD_T *target) {
 ????? ^~~~~~~~~~~~~~~~~~~~~
In file included from /opt/vc/include/interface/vcos/vcos.h:128,
 ???????????????? from mmalcam.c:20:
/opt/vc/include/interface/vcos/vcos_semaphore.h:85:15: error: redundant 
redeclaration of ?vcos_semaphore_create? [-Werror=redundant-decls]
 ?VCOS_STATUS_T vcos_semaphore_create(VCOS_SEMAPHORE_T *sem, const char 
*name, VCOS_UNSIGNED count);
 ?????????????? ^~~~~~~~~~~~~~~~~~~~~
In file included from /opt/vc/include/interface/vcos/vcos.h:118,
 ???????????????? from mmalcam.c:20:
/opt/vc/include/interface/vcos/pthreads/vcos_platform.h:324:15: note: 
previous definition of ?vcos_semaphore_create? was here
 ?VCOS_STATUS_T vcos_semaphore_create(VCOS_SEMAPHORE_T *sem,
 ?????????????? ^~~~~~~~~~~~~~~~~~~~~
In file included from /opt/vc/include/interface/vcos/vcos.h:128,
 ???????????????? from mmalcam.c:20:

[...clip many similar errors...]

mmalcam.c: In function ?camera_control_callback?:
mmalcam.c:66:50: error: unused parameter ?port? [-Werror=unused-parameter]
 ?static void camera_control_callback(MMAL_PORT_T *port, 
MMAL_BUFFER_HEADER_T *buffer)
 ???????????????????????????????????? ~~~~~~~~~~~~~^~~~
mmalcam.c: In function ?mmalcam_next?:
mmalcam.c:397:38: error: comparison of integer expressions of different 
signedness: ?uint32_t? {aka ?unsigned int?} and ?int? [-Werror=sign-compare]
 ???????????? && camera_buffer->length >= cnt->imgs.size_norm) {
 ????????????????????????????????????? ^~
cc1: all warnings being treated as errors
make[3]: *** [Makefile:471: mmalcam.o] Error 1
make[3]: Leaving directory '/usr/local/src/motion-release-4.3.2/src'
make[2]: *** [Makefile:553: all-recursive] Error 1
make[2]: Leaving directory '/usr/local/src/motion-release-4.3.2'
make[1]: *** [Makefile:397: all] Error 2
make[1]: Leaving directory '/usr/local/src/motion-release-4.3.2'
make: *** [Makefile:995: check] Error 2


I don't see the motion binary to try without overwriting the existing, 
maybe this one is only created at install?

Are these errors/warnings serious? If not,should I continue with install 
anyways?

or is there a future dependency out of sequence, so that going back to 
upgrade 160 upgradable packages would make a difference, and try again 
fresh?

Thank you,
Stewart

tosiara wrote:
> Can you try to compile from sources?
> https://raw.githubusercontent.com/Motion-Project/motion/master/doc/INSTALL
>
> On Tue, Feb 9, 2021 at 10:57 PM S Andreason <[email protected]> wrote:
>> Downloaded:
>> 485892 Oct 26 06:01  pi_buster_motion_4.3.2-1_armhf.deb
>> and:
>> $ sudo apt install ./pi_buster_motion_4.3.2-1_armhf.deb
>>
>>
>> tosiara wrote:
>>> How did you install motion?
>>>
>>>




------------------------------



------------------------------

Subject: Digest Footer

_______________________________________________
Motion-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/motion-user


------------------------------

End of Motion-user Digest, Vol 176, Issue 26
********************************************

Reply via email to