* Package: media-video/motion-4.1.1-r1 * Repository: gentoo * Maintainer: media-video@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox * Adding user 'motion' to your system ... * - Userid: 954 * - Shell: /sbin/nologin * - Home: /dev/null * - Groups: video * - GECOS: added by portage for motion >>> Unpacking source... >>> Unpacking motion-release-4.1.1.tar.gz to /var/tmp/portage/media-video/motion-4.1.1-r1/work >>> Source unpacked in /var/tmp/portage/media-video/motion-4.1.1-r1/work >>> Preparing source in /var/tmp/portage/media-video/motion-4.1.1-r1/work/motion-release-4.1.1 ... * Applying Fix-build-errors-with-FFmpeg-4.0.patch ... [ ok ] * Running eautoreconf in '/var/tmp/portage/media-video/motion-4.1.1-r1/work/motion-release-4.1.1' ... * Running aclocal ... [ ok ] * Running autoconf --force ... [ ok ] * Running autoheader ... [ ok ] * Running elibtoolize in: motion-release-4.1.1/ >>> Source prepared. >>> Configuring source in /var/tmp/portage/media-video/motion-4.1.1-r1/work/motion-release-4.1.1 ... ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --docdir=/usr/share/doc/motion-4.1.1-r1 --htmldir=/usr/share/doc/motion-4.1.1-r1/html --libdir=/usr/lib64 --without-ffmpeg --without-mmal --without-mysql --without-pgsql --without-sqlite3 --without-v4l2 --without-webp --without-optimizecpu configure: loading site script /usr/share/config.site checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking for x86_64-pc-linux-gnu-gcc... (cached) x86_64-pc-linux-gnu-gcc checking whether we are using the GNU C compiler... (cached) yes checking whether x86_64-pc-linux-gnu-gcc accepts -g... (cached) yes checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... (cached) none needed checking for ANSI C header files... (cached) yes checking for an ANSI C-conforming const... yes checking for Darwin/BSD... no checking for pthread_setname_np... yes checking for pthread_getname_np... yes checking for XSI strerror_r... no checking setjmp.h usability... yes checking setjmp.h presence... yes checking for setjmp.h... yes checking jerror.h usability... yes checking jerror.h presence... yes checking for jerror.h... yes checking jpeglib.h usability... yes checking jpeglib.h presence... yes checking for jpeglib.h... yes checking jpg libraries... yes checking for pkg-config... yes checking for sqlite3... skipping checking for mysql support... skipped checking for pgsql support... skipped checking stdio.h usability... yes checking stdio.h presence... yes checking for stdio.h... yes checking for unistd.h... (cached) yes checking for stdint.h... (cached) yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking time.h usability... yes checking time.h presence... yes checking for time.h... yes checking signal.h usability... yes checking signal.h presence... yes checking for signal.h... yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking sys/mman.h usability... yes checking sys/mman.h presence... yes checking for sys/mman.h... yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking for sys/types.h... (cached) yes configure: creating ./config.status config.status: creating camera1-dist.conf config.status: creating camera2-dist.conf config.status: creating camera3-dist.conf config.status: creating camera4-dist.conf config.status: creating motion-dist.conf config.status: creating motion.init-FreeBSD.sh config.status: creating motion.init-Debian config.status: creating motion.service config.status: creating motion.spec config.status: creating Makefile config.status: creating config.h ************************** Configure status motion 4.1.1 ************************** OS : Linux pthread support: Yes jpeg support: Yes webp support: No V4L2 support: No BKTR support: No MMAL support: disabled FFmpeg support: No SQLite3 support: No MYSQL support: No PostgreSQL support: No CFLAGS: -O2 -pipe -march=native -fno-common -D_THREAD_SAFE LIBS: -lm -pthread -ljpeg LDFLAGS: -Wl,-O1 -Wl,--as-needed Install prefix: /usr >>> Source configured. >>> Compiling source in /var/tmp/portage/media-video/motion-4.1.1-r1/work/motion-release-4.1.1 ... make -j1 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. Version: 4.1.1 Platform: Linux (if this is incorrect, please read README.FreeBSD) Generating dependencies, please wait... Compiling Motion object files... -------------------------------------------------------------------------------- Compiling motion.c into motion.o... Compiling logger.c into logger.o... Compiling conf.c into conf.o... conf.c: In function ‘conf_load’: conf.c:2232:41: warning: ‘/motion.conf’ directive output may be truncated writing 12 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 2232 | snprintf(filename, PATH_MAX, "%s/motion.conf", path); | ^~~~~~~~~~~~ In file included from /usr/include/stdio.h:867, from motion.h:33, from conf.c:30: /usr/include/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 13 and 4108 bytes into a destination of size 4096 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:494, from conf.c:28: In function ‘strncpy’, inlined from ‘conf_load’ at conf.c:2252:7: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output may be truncated copying 4095 bytes from a string of length 4095 [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Compiling draw.c into draw.o... Compiling jpegutils.c into jpegutils.o... Compiling video_loopback.c into video_loopback.o... Compiling video_v4l2.c into video_v4l2.o... Compiling video_common.c into video_common.o... video_common.c: In function ‘vid_greytoyuv420p’: video_common.c:484:45: warning: integer overflow in expression ‘-4784 * (int)*r - 9437 * (int)*r + 14221 * (int)*r’ of type ‘int’ results in ‘0’ [-Woverflow] 484 | *u += ((-4784 ** r - 9437 ** r + 14221 ** r) >> 17) + 32; | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ video_common.c:489:45: warning: integer overflow in expression ‘-4784 * (int)*r - 9437 * (int)*r + 14221 * (int)*r’ of type ‘int’ results in ‘0’ [-Woverflow] 489 | *u += ((-4784 ** r - 9437 ** r + 14221 ** r) >> 17) + 32; | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ Compiling video_bktr.c into video_bktr.o... Compiling netcam.c into netcam.o... Compiling netcam_http.c into netcam_http.o... Compiling netcam_ftp.c into netcam_ftp.o... Compiling netcam_jpeg.c into netcam_jpeg.o... Compiling netcam_wget.c into netcam_wget.o... Compiling track.c into track.o... Compiling alg.c into alg.o... Compiling event.c into event.o... event.c: In function ‘event_ffmpeg_newfile’: event.c:738:60: warning: ‘%s’ directive output may be truncated writing up to 4095 bytes into a region of size between 4083 and 4087 [-Wformat-truncation=] 738 | snprintf(cnt->motionfilename, PATH_MAX - 4, "%s/%s_%sm", cnt->conf.filepath, codec, stamp); | ^~ ~~~~~ In file included from /usr/include/stdio.h:867, from ffmpeg.h:4, from event.c:11: /usr/include/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output 7 or more bytes (assuming 4106) into a destination of size 4092 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ event.c:739:57: warning: ‘%s’ directive output may be truncated writing up to 4095 bytes into a region of size between 4083 and 4087 [-Wformat-truncation=] 739 | snprintf(cnt->newfilename, PATH_MAX - 4, "%s/%s_%s", cnt->conf.filepath, codec, stamp); | ^~ ~~~~~ In file included from /usr/include/stdio.h:867, from ffmpeg.h:4, from event.c:11: /usr/include/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output 6 or more bytes (assuming 4105) into a destination of size 4092 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ event.c:741:57: warning: ‘%s’ directive output may be truncated writing up to 4095 bytes into a region of size 4091 [-Wformat-truncation=] 741 | snprintf(cnt->motionfilename, PATH_MAX - 4, "%s/%sm", cnt->conf.filepath, stamp); | ^~ ~~~~~ In file included from /usr/include/stdio.h:867, from ffmpeg.h:4, from event.c:11: /usr/include/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output 3 or more bytes (assuming 4098) into a destination of size 4092 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ event.c:742:54: warning: ‘%s’ directive output may be truncated writing up to 4095 bytes into a region of size 4091 [-Wformat-truncation=] 742 | snprintf(cnt->newfilename, PATH_MAX - 4, "%s/%s", cnt->conf.filepath, stamp); | ^~ ~~~~~ In file included from /usr/include/stdio.h:867, from ffmpeg.h:4, from event.c:11: /usr/include/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output 2 or more bytes (assuming 4097) into a destination of size 4092 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ event.c: In function ‘event_ffmpeg_timelapse’: event.c:844:60: warning: ‘%s’ directive output may be truncated writing up to 4095 bytes into a region of size 4091 [-Wformat-truncation=] 844 | snprintf(cnt->timelapsefilename, PATH_MAX - 4, "%s/%s", cnt->conf.filepath, tmp); | ^~ ~~~ In file included from /usr/include/stdio.h:867, from ffmpeg.h:4, from event.c:11: /usr/include/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output 2 or more bytes (assuming 4097) into a destination of size 4092 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ event.c: In function ‘event_image_snapshot’: event.c:491:42: warning: ‘%s’ directive output may be truncated writing between 3 and 4 bytes into a region of size between 0 and 4095 [-Wformat-truncation=] 491 | snprintf(filename, PATH_MAX, "%s.%s", filepath, imageext(cnt)); | ^~ In file included from /usr/include/stdio.h:867, from ffmpeg.h:4, from event.c:11: /usr/include/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 5 and 4101 bytes into a destination of size 4096 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ event.c:492:48: warning: ‘__builtin___snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=] 492 | snprintf(fullfilename, PATH_MAX, "%s/%s", cnt->conf.filepath, filename); | ^ In file included from /usr/include/stdio.h:867, from ffmpeg.h:4, from event.c:11: /usr/include/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output 2 or more bytes (assuming 4097) into a destination of size 4096 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ event.c:473:42: warning: ‘%s’ directive output may be truncated writing between 3 and 4 bytes into a region of size between 0 and 4095 [-Wformat-truncation=] 473 | snprintf(filename, PATH_MAX, "%s.%s", filepath, imageext(cnt)); | ^~ In file included from /usr/include/stdio.h:867, from ffmpeg.h:4, from event.c:11: /usr/include/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 5 and 4101 bytes into a destination of size 4096 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ event.c:474:48: warning: ‘__builtin___snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=] 474 | snprintf(fullfilename, PATH_MAX, "%s/%s", cnt->conf.filepath, filename); | ^ In file included from /usr/include/stdio.h:867, from ffmpeg.h:4, from event.c:11: /usr/include/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output 2 or more bytes (assuming 4097) into a destination of size 4096 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ event.c: In function ‘event_imagem_detect.part.0’: event.c:439:43: warning: ‘__builtin___snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=] 439 | snprintf(filenamem, PATH_MAX, "%sm", filename); | ^ In file included from /usr/include/stdio.h:867, from ffmpeg.h:4, from event.c:11: /usr/include/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 2 and 4097 bytes into a destination of size 4096 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ event.c:440:49: warning: ‘.’ directive output may be truncated writing 1 byte into a region of size between 0 and 4095 [-Wformat-truncation=] 440 | snprintf(fullfilenamem, PATH_MAX, "%s/%s.%s", cnt->conf.filepath, filenamem, imageext(cnt)); | ^ In file included from /usr/include/stdio.h:867, from ffmpeg.h:4, from event.c:11: /usr/include/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output 6 or more bytes (assuming 4102) into a destination of size 4096 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ event.c: In function ‘event_image_detect.part.0’: event.c:402:48: warning: ‘.’ directive output may be truncated writing 1 byte into a region of size between 0 and 4095 [-Wformat-truncation=] 402 | snprintf(fullfilename, PATH_MAX, "%s/%s.%s", cnt->conf.filepath, filename, imageext(cnt)); | ^ In file included from /usr/include/stdio.h:867, from ffmpeg.h:4, from event.c:11: /usr/include/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output 6 or more bytes (assuming 4102) into a destination of size 4096 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ event.c: In function ‘event_create_extpipe.part.0’: event.c:567:58: warning: ‘%s’ directive output may be truncated writing up to 4095 bytes into a region of size 4091 [-Wformat-truncation=] 567 | snprintf(cnt->extpipefilename, PATH_MAX - 4, "%s/%s", cnt->conf.filepath, stamp); | ^~ ~~~~~ In file included from /usr/include/stdio.h:867, from ffmpeg.h:4, from event.c:11: /usr/include/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output 2 or more bytes (assuming 4097) into a destination of size 4092 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Compiling picture.c into picture.o... picture.c: In function ‘put_jpeg_exif’: picture.c:243:42: warning: ‘%02d’ directive output may be truncated writing between 2 and 11 bytes into a region of size between 9 and 16 [-Wformat-truncation=] 243 | snprintf(datetime_buf, 21, "%04d:%02d:%02d %02d:%02d:%02d", | ^~~~ picture.c:243:36: note: directive argument in the range [-2147483647, 2147483647] 243 | snprintf(datetime_buf, 21, "%04d:%02d:%02d %02d:%02d:%02d", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:867, from motion.h:33, from picture.h:13, from picture.c:12: /usr/include/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 20 and 72 bytes into a destination of size 21 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ picture.c: In function ‘preview_save’: picture.c:1245:51: warning: ‘.’ directive output may be truncated writing 1 byte into a region of size between 0 and 4095 [-Wformat-truncation=] 1245 | snprintf(previewname, PATH_MAX, "%s/%s.%s", cnt->conf.filepath, filename, imageext(cnt)); | ^ In file included from /usr/include/stdio.h:867, from motion.h:33, from picture.h:13, from picture.c:12: /usr/include/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output 3 or more bytes (assuming 4098) into a destination of size 4096 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:494, from motion.h:38, from picture.h:13, from picture.c:12: In function ‘strncpy’, inlined from ‘preview_save’ at picture.c:1216:17: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin___strncpy_chk’ specified bound depends on the length of the source argument [-Wstringop-overflow=] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ picture.c: In function ‘preview_save’: picture.c:1215:32: note: length computed here 1215 | basename_len = strlen(cnt->newfilename) - 3; | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:494, from motion.h:38, from picture.h:13, from picture.c:12: In function ‘strncpy’, inlined from ‘preview_save’ at picture.c:1211:17: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin___strncpy_chk’ specified bound depends on the length of the source argument [-Wstringop-overflow=] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ picture.c: In function ‘preview_save’: picture.c:1210:32: note: length computed here 1210 | basename_len = strlen(cnt->extpipefilename) + 1; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ Compiling rotate.c into rotate.o... Compiling webhttpd.c into webhttpd.o... In file included from /usr/include/string.h:494, from motion.h:38, from webhttpd.h:16, from webhttpd.c:13: In function ‘strncpy’, inlined from ‘get_host’ at webhttpd.c:355:5: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output may be truncated copying 1024 bytes from a string of length 1024 [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Compiling stream.c into stream.o... In file included from /usr/include/string.h:494, from motion.h:38, from picture.h:13, from stream.c:22: In function ‘strncpy’, inlined from ‘get_host’ at stream.c:62:5: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output may be truncated copying 1024 bytes from a string of length 1024 [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘strncpy’, inlined from ‘read_http_request.constprop’ at stream.c:178:9: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output may be truncated copying between 0 and 511 bytes from a string of length 511 [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘strncpy’, inlined from ‘handle_md5_digest’ at stream.c:496:5: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ stream.c: In function ‘handle_md5_digest’: stream.c:496:5: note: length computed here 496 | strncpy(server_pass, h + 1, strlen(h + 1)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Compiling md5.c into md5.o... Compiling netcam_rtsp.c into netcam_rtsp.o... Compiling ffmpeg.c into ffmpeg.o... -------------------------------------------------------------------------------- Motion object files compiled. Linking Motion... -------------------------------------------------------------------------------- x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -o motion motion.o logger.o conf.o draw.o jpegutils.o video_loopback.o video_v4l2.o video_common.o video_bktr.o netcam.o netcam_http.o netcam_ftp.o netcam_jpeg.o netcam_wget.o track.o alg.o event.o picture.o rotate.o webhttpd.o stream.o md5.o netcam_rtsp.o ffmpeg.o -lm -pthread -ljpeg /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: logger.o:(.bss+0x0): multiple definition of `caps'; motion.o:(.bss+0x4c): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: conf.o:(.bss+0x0): multiple definition of `caps'; motion.o:(.bss+0x4c): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: draw.o:(.bss+0x4e58): multiple definition of `caps'; motion.o:(.bss+0x4c): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: jpegutils.o:(.bss+0x0): multiple definition of `caps'; motion.o:(.bss+0x4c): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: video_loopback.o:(.bss+0x0): multiple definition of `caps'; motion.o:(.bss+0x4c): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: video_v4l2.o:(.bss+0x0): multiple definition of `caps'; motion.o:(.bss+0x4c): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: video_common.o:(.bss+0x0): multiple definition of `caps'; motion.o:(.bss+0x4c): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: video_bktr.o:(.bss+0x0): multiple definition of `caps'; motion.o:(.bss+0x4c): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: netcam.o:(.bss+0x0): multiple definition of `caps'; motion.o:(.bss+0x4c): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: netcam_http.o:(.bss+0x0): multiple definition of `caps'; motion.o:(.bss+0x4c): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: netcam_ftp.o:(.bss+0x0): multiple definition of `caps'; motion.o:(.bss+0x4c): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: netcam_jpeg.o:(.bss+0x0): multiple definition of `caps'; motion.o:(.bss+0x4c): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: netcam_wget.o:(.bss+0x0): multiple definition of `caps'; motion.o:(.bss+0x4c): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: track.o:(.bss+0x0): multiple definition of `caps'; motion.o:(.bss+0x4c): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: alg.o:(.bss+0x0): multiple definition of `caps'; motion.o:(.bss+0x4c): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: event.o:(.bss+0x0): multiple definition of `caps'; motion.o:(.bss+0x4c): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: picture.o:(.bss+0x0): multiple definition of `caps'; motion.o:(.bss+0x4c): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: rotate.o:(.bss+0x0): multiple definition of `caps'; motion.o:(.bss+0x4c): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: webhttpd.o:(.bss+0x48): multiple definition of `caps'; motion.o:(.bss+0x4c): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: stream.o:(.bss+0x28): multiple definition of `caps'; motion.o:(.bss+0x4c): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: netcam_rtsp.o:(.bss+0x0): multiple definition of `caps'; motion.o:(.bss+0x4c): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ffmpeg.o:(.bss+0x0): multiple definition of `caps'; motion.o:(.bss+0x4c): first defined here collect2: error: ld returned 1 exit status make: *** [Makefile:87: motion] Error 1 * ERROR: media-video/motion-4.1.1-r1::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=media-video/motion-4.1.1-r1::gentoo'`, * the complete build log and the output of `emerge -pqv '=media-video/motion-4.1.1-r1::gentoo'`. * The complete build log is located at '/var/log/portage/media-video:motion-4.1.1-r1:20200130-022418.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/media-video/motion-4.1.1-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-video/motion-4.1.1-r1/temp/environment'. * Working directory: '/var/tmp/portage/media-video/motion-4.1.1-r1/work/motion-release-4.1.1' * S: '/var/tmp/portage/media-video/motion-4.1.1-r1/work/motion-release-4.1.1'