* Package: media-video/motion-3.2.12-r3 * Repository: gentoo * Maintainer: media-video@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc ffmpeg kernel_linux mysql userland_GNU v4l * FEATURES: preserve-libs sandbox userpriv usersandbox * Adding user 'motion' to your system ... * - Userid: 231 * - Shell: /sbin/nologin * - Home: /dev/null * - Groups: video * - GECOS: added by portage for motion >>> Unpacking source... >>> Unpacking motion-3.2.12.tar.gz to /var/tmp/portage/media-video/motion-3.2.12-r3/work >>> Source unpacked in /var/tmp/portage/media-video/motion-3.2.12-r3/work >>> Preparing source in /var/tmp/portage/media-video/motion-3.2.12-r3/work/motion-3.2.12 ... * Applying ffmpeg-1.patch ... [ ok ] * Applying ffmpeg-2.patch ... [ ok ] * Applying ffmpeg-3.patch ... [ ok ] * Applying ffmpeg-4.patch ... [ ok ] * Applying ffmpeg-5.patch ... [ ok ] * Applying libav-9.patch ... [ ok ] * Applying motion-3.2.12-workaround-v4l1_deprecation.patch ... [ ok ] * Running eautoreconf in '/var/tmp/portage/media-video/motion-3.2.12-r3/work/motion-3.2.12' ... * Running aclocal ... [ ok ] * This package has a configure.in file which has long been deprecated. Please * update it to use configure.ac instead as newer versions of autotools will die * when it finds this file. See https://bugs.gentoo.org/426262 for details. * Running autoconf --force ... [ ok ] * Running autoheader ... [ ok ] * Running elibtoolize in: motion-3.2.12/ >>> Source prepared. >>> Configuring source in /var/tmp/portage/media-video/motion-3.2.12-r3/work/motion-3.2.12 ... ./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 --libdir=/usr/lib64 --with-v4l --with-ffmpeg --with-mysql --without-pgsql --without-optimizecpu configure: loading site script /usr/share/config.site checking for Darwin... no checking for *BSD... no 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 threads... yes checking for libjpeg-mmx... skipping checking for libjpeg... checking for jpeg_set_defaults in -ljpeg... yes checking for ffmpeg autodetecting libraries... found in /usr/lib64 checking for ffmpeg headers in /usr... found /usr/include/libavformat/avformat.h checking file_protocol is defined in ffmpeg ?... no checking for mysql support... testing checking autodect mysql headers... yes checking autodect mysql libs... /usr/lib64 checking for mysql_init in -lmysqlclient... yes checking for PostgreSQL... skipped 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 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 linux/videodev.h usability... no checking linux/videodev.h presence... no checking for linux/videodev.h... no checking linux/videodev2.h usability... yes checking linux/videodev2.h presence... yes checking for linux/videodev2.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 checking for get_current_dir_name... yes checking for struct v4l2_buffer... no checking for V42L support... no checking for V42L *old* support... testing checking for linux/videodev2.h... (cached) yes checking size of short... 2 checking size of int... 4 checking size of long int... 8 checking size of long long... 8 checking size of int *... 8 checking size of void *... 8 checking for an ANSI C-conforming const... yes checking for bswap instruction... yes checking for avformat_alloc_context... yes checking for av_avformat_alloc_context... no checking for av_register_protocol2... no checking for av_register_protocol... no configure: creating ./config.status config.status: creating thread1.conf config.status: creating thread2.conf config.status: creating thread3.conf config.status: creating thread4.conf config.status: creating motion-dist.conf config.status: creating motion.init-FreeBSD.sh config.status: creating motion.init-Debian config.status: creating motion.init-Fedora config.status: creating motion.spec config.status: creating Makefile config.status: creating config.h ******************************* Configure status motion 3.2.12 ******************************* OS : Linux pthread Support: Yes jpeg Support: Yes V4L included: Yes V4L2 supported: Yes FFmpeg Support: Yes MYSQL Support: Yes PostgreSQL Support: No CFLAGS: -march=native -O2 -pipe -D_REENTRANT -DHAVE_FFMPEG -I/usr/include -DFFMPEG_NEW_INCLUDES -DHAVE_FFMPEG_NEW -I/usr/include/mysql -DMOTION_V4L2 -DMOTION_V4L2_OLD -DTYPE_32BIT="int" -DHAVE_BSWAP LIBS: -lm -lpthread -ljpeg -L/usr/lib64 -lavformat -lavcodec -lavutil -lm -lz -L/usr/lib64 -lmysqlclient -lz LDFLAGS: -Wl,-O1 -Wl,--as-needed -L/usr/lib64 Install prefix: /usr >>> Source configured. >>> Compiling source in /var/tmp/portage/media-video/motion-3.2.12-r3/work/motion-3.2.12 ... 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. Run "make updateguide" to download the latest version of the Motion Guide. Version: 3.2.12 Platform: Linux (if this is incorrect, please read README.FreeBSD) Generating dependencies, please wait... Compiling Motion object files... -------------------------------------------------------------------------------- x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -D_REENTRANT -DHAVE_FFMPEG -I/usr/include -DFFMPEG_NEW_INCLUDES -DHAVE_FFMPEG_NEW -I/usr/include/mysql -DMOTION_V4L2 -DMOTION_V4L2_OLD -DTYPE_32BIT="int" -DHAVE_BSWAP -Wall -DVERSION=\"3.2.12\" -Dsysconfdir=\"/etc\" -c -o motion.o motion.c x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -D_REENTRANT -DHAVE_FFMPEG -I/usr/include -DFFMPEG_NEW_INCLUDES -DHAVE_FFMPEG_NEW -I/usr/include/mysql -DMOTION_V4L2 -DMOTION_V4L2_OLD -DTYPE_32BIT="int" -DHAVE_BSWAP -Wall -DVERSION=\"3.2.12\" -Dsysconfdir=\"/etc\" -c -o conf.o conf.c x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -D_REENTRANT -DHAVE_FFMPEG -I/usr/include -DFFMPEG_NEW_INCLUDES -DHAVE_FFMPEG_NEW -I/usr/include/mysql -DMOTION_V4L2 -DMOTION_V4L2_OLD -DTYPE_32BIT="int" -DHAVE_BSWAP -Wall -DVERSION=\"3.2.12\" -Dsysconfdir=\"/etc\" -c -o draw.o draw.c x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -D_REENTRANT -DHAVE_FFMPEG -I/usr/include -DFFMPEG_NEW_INCLUDES -DHAVE_FFMPEG_NEW -I/usr/include/mysql -DMOTION_V4L2 -DMOTION_V4L2_OLD -DTYPE_32BIT="int" -DHAVE_BSWAP -Wall -DVERSION=\"3.2.12\" -Dsysconfdir=\"/etc\" -c -o jpegutils.o jpegutils.c jpegutils.c: In function ‘decode_jpeg_gray_raw’: jpegutils.c:777:20: warning: variable ‘hsf’ set but not used [-Wunused-but-set-variable] int numfields, hsf[3], field, yl, yc, xsl, xsc, xs, xd, hdown; ^ x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -D_REENTRANT -DHAVE_FFMPEG -I/usr/include -DFFMPEG_NEW_INCLUDES -DHAVE_FFMPEG_NEW -I/usr/include/mysql -DMOTION_V4L2 -DMOTION_V4L2_OLD -DTYPE_32BIT="int" -DHAVE_BSWAP -Wall -DVERSION=\"3.2.12\" -Dsysconfdir=\"/etc\" -c -o video.o video.c video.c: In function ‘v4l_open_vidpipe’: video.c:445:15: warning: variable ‘ostatus’ set but not used [-Wunused-but-set-variable] char *ostatus; ^ video.c:441:15: warning: variable ‘loop’ set but not used [-Wunused-but-set-variable] char *loop; ^ x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -D_REENTRANT -DHAVE_FFMPEG -I/usr/include -DFFMPEG_NEW_INCLUDES -DHAVE_FFMPEG_NEW -I/usr/include/mysql -DMOTION_V4L2 -DMOTION_V4L2_OLD -DTYPE_32BIT="int" -DHAVE_BSWAP -Wall -DVERSION=\"3.2.12\" -Dsysconfdir=\"/etc\" -c -o video2.o video2.c x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -D_REENTRANT -DHAVE_FFMPEG -I/usr/include -DFFMPEG_NEW_INCLUDES -DHAVE_FFMPEG_NEW -I/usr/include/mysql -DMOTION_V4L2 -DMOTION_V4L2_OLD -DTYPE_32BIT="int" -DHAVE_BSWAP -Wall -DVERSION=\"3.2.12\" -Dsysconfdir=\"/etc\" -c -o video_common.o video_common.c x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -D_REENTRANT -DHAVE_FFMPEG -I/usr/include -DFFMPEG_NEW_INCLUDES -DHAVE_FFMPEG_NEW -I/usr/include/mysql -DMOTION_V4L2 -DMOTION_V4L2_OLD -DTYPE_32BIT="int" -DHAVE_BSWAP -Wall -DVERSION=\"3.2.12\" -Dsysconfdir=\"/etc\" -c -o netcam.o netcam.c x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -D_REENTRANT -DHAVE_FFMPEG -I/usr/include -DFFMPEG_NEW_INCLUDES -DHAVE_FFMPEG_NEW -I/usr/include/mysql -DMOTION_V4L2 -DMOTION_V4L2_OLD -DTYPE_32BIT="int" -DHAVE_BSWAP -Wall -DVERSION=\"3.2.12\" -Dsysconfdir=\"/etc\" -c -o netcam_ftp.o netcam_ftp.c netcam_ftp.c: In function ‘ftp_send_type’: netcam_ftp.c:813:20: warning: variable ‘utype’ set but not used [-Wunused-but-set-variable] char buf[100], utype; ^ x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -D_REENTRANT -DHAVE_FFMPEG -I/usr/include -DFFMPEG_NEW_INCLUDES -DHAVE_FFMPEG_NEW -I/usr/include/mysql -DMOTION_V4L2 -DMOTION_V4L2_OLD -DTYPE_32BIT="int" -DHAVE_BSWAP -Wall -DVERSION=\"3.2.12\" -Dsysconfdir=\"/etc\" -c -o netcam_jpeg.o netcam_jpeg.c x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -D_REENTRANT -DHAVE_FFMPEG -I/usr/include -DFFMPEG_NEW_INCLUDES -DHAVE_FFMPEG_NEW -I/usr/include/mysql -DMOTION_V4L2 -DMOTION_V4L2_OLD -DTYPE_32BIT="int" -DHAVE_BSWAP -Wall -DVERSION=\"3.2.12\" -Dsysconfdir=\"/etc\" -c -o netcam_wget.o netcam_wget.c x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -D_REENTRANT -DHAVE_FFMPEG -I/usr/include -DFFMPEG_NEW_INCLUDES -DHAVE_FFMPEG_NEW -I/usr/include/mysql -DMOTION_V4L2 -DMOTION_V4L2_OLD -DTYPE_32BIT="int" -DHAVE_BSWAP -Wall -DVERSION=\"3.2.12\" -Dsysconfdir=\"/etc\" -c -o track.o track.c x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -D_REENTRANT -DHAVE_FFMPEG -I/usr/include -DFFMPEG_NEW_INCLUDES -DHAVE_FFMPEG_NEW -I/usr/include/mysql -DMOTION_V4L2 -DMOTION_V4L2_OLD -DTYPE_32BIT="int" -DHAVE_BSWAP -Wall -DVERSION=\"3.2.12\" -Dsysconfdir=\"/etc\" -c -o alg.o alg.c x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -D_REENTRANT -DHAVE_FFMPEG -I/usr/include -DFFMPEG_NEW_INCLUDES -DHAVE_FFMPEG_NEW -I/usr/include/mysql -DMOTION_V4L2 -DMOTION_V4L2_OLD -DTYPE_32BIT="int" -DHAVE_BSWAP -Wall -DVERSION=\"3.2.12\" -Dsysconfdir=\"/etc\" -c -o event.o event.c x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -D_REENTRANT -DHAVE_FFMPEG -I/usr/include -DFFMPEG_NEW_INCLUDES -DHAVE_FFMPEG_NEW -I/usr/include/mysql -DMOTION_V4L2 -DMOTION_V4L2_OLD -DTYPE_32BIT="int" -DHAVE_BSWAP -Wall -DVERSION=\"3.2.12\" -Dsysconfdir=\"/etc\" -c -o picture.o picture.c picture.c: In function ‘put_ppm_bgr24_file’: picture.c:332:9: warning: variable ‘warningkiller’ set but not used [-Wunused-but-set-variable] int warningkiller; ^ x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -D_REENTRANT -DHAVE_FFMPEG -I/usr/include -DFFMPEG_NEW_INCLUDES -DHAVE_FFMPEG_NEW -I/usr/include/mysql -DMOTION_V4L2 -DMOTION_V4L2_OLD -DTYPE_32BIT="int" -DHAVE_BSWAP -Wall -DVERSION=\"3.2.12\" -Dsysconfdir=\"/etc\" -c -o rotate.o rotate.c x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -D_REENTRANT -DHAVE_FFMPEG -I/usr/include -DFFMPEG_NEW_INCLUDES -DHAVE_FFMPEG_NEW -I/usr/include/mysql -DMOTION_V4L2 -DMOTION_V4L2_OLD -DTYPE_32BIT="int" -DHAVE_BSWAP -Wall -DVERSION=\"3.2.12\" -Dsysconfdir=\"/etc\" -c -o webhttpd.o webhttpd.c webhttpd.c: In function ‘send_template_raw’: webhttpd.c:218:13: warning: variable ‘nwrite’ set but not used [-Wunused-but-set-variable] ssize_t nwrite = 0; ^ webhttpd.c: In function ‘send_template_end_client’: webhttpd.c:224:13: warning: variable ‘nwrite’ set but not used [-Wunused-but-set-variable] ssize_t nwrite = 0; ^ webhttpd.c: In function ‘response_client’: webhttpd.c:230:13: warning: variable ‘nwrite’ set but not used [-Wunused-but-set-variable] ssize_t nwrite = 0; ^ x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -D_REENTRANT -DHAVE_FFMPEG -I/usr/include -DFFMPEG_NEW_INCLUDES -DHAVE_FFMPEG_NEW -I/usr/include/mysql -DMOTION_V4L2 -DMOTION_V4L2_OLD -DTYPE_32BIT="int" -DHAVE_BSWAP -Wall -DVERSION=\"3.2.12\" -Dsysconfdir=\"/etc\" -c -o webcam.o webcam.c x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -D_REENTRANT -DHAVE_FFMPEG -I/usr/include -DFFMPEG_NEW_INCLUDES -DHAVE_FFMPEG_NEW -I/usr/include/mysql -DMOTION_V4L2 -DMOTION_V4L2_OLD -DTYPE_32BIT="int" -DHAVE_BSWAP -Wall -DVERSION=\"3.2.12\" -Dsysconfdir=\"/etc\" -c -o ffmpeg.o ffmpeg.c ffmpeg.c:26:10: warning: #warning ************************************************** [-Wcpp] # warning ************************************************** ^ ffmpeg.c:27:10: warning: #warning Your version of FFmpeg is newer than version 0.4.8 [-Wcpp] # warning Your version of FFmpeg is newer than version 0.4.8 ^ ffmpeg.c:28:10: warning: #warning Newer versions of ffmpeg do not support MPEG1 with [-Wcpp] # warning Newer versions of ffmpeg do not support MPEG1 with ^ ffmpeg.c:29:10: warning: #warning non-standard framerate. MPEG1 will be disabled for [-Wcpp] # warning non-standard framerate. MPEG1 will be disabled for ^ ffmpeg.c:30:10: warning: #warning normal video output. You can still use mpeg4 and [-Wcpp] # warning normal video output. You can still use mpeg4 and ^ ffmpeg.c:31:10: warning: #warning and mpeg4ms which are both better in terms of size [-Wcpp] # warning and mpeg4ms which are both better in terms of size ^ ffmpeg.c:32:10: warning: #warning and quality. MPEG1 is always used for timelapse. [-Wcpp] # warning and quality. MPEG1 is always used for timelapse. ^ ffmpeg.c:33:10: warning: #warning Please read the Motion Guide for more information. [-Wcpp] # warning Please read the Motion Guide for more information. ^ ffmpeg.c:34:10: warning: #warning Note that this is not an error message! [-Wcpp] # warning Note that this is not an error message! ^ ffmpeg.c:35:10: warning: #warning ************************************************** [-Wcpp] # warning ************************************************** ^ ffmpeg.c: In function ‘get_oformat’: ffmpeg.c:304:31: error: ‘CODEC_ID_MSMPEG4V2’ undeclared (first use in this function) of->video_codec = CODEC_ID_MSMPEG4V2; ^ ffmpeg.c:304:31: note: each undeclared identifier is reported only once for each function it appears in ffmpeg.c:320:27: error: ‘CODEC_ID_FLV1’ undeclared (first use in this function) of->video_codec = CODEC_ID_FLV1; ^ ffmpeg.c:331:31: error: ‘CODEC_ID_FFV1’ undeclared (first use in this function) of->video_codec = CODEC_ID_FFV1; ^ ffmpeg.c: In function ‘ffmpeg_open’: ffmpeg.c:411:45: error: ‘CODEC_ID_NONE’ undeclared (first use in this function) if (ffmpeg->oc->oformat->video_codec != CODEC_ID_NONE) { ^ ffmpeg.c:432:36: error: ‘CODEC_ID_MPEG1VIDEO’ undeclared (first use in this function) is_mpeg1 = c->codec_id == CODEC_ID_MPEG1VIDEO; ^ ffmpeg.c:484:18: error: ‘PIX_FMT_YUV420P’ undeclared (first use in this function) c->pix_fmt = PIX_FMT_YUV420P; ^ ffmpeg.c:512:5: warning: implicit declaration of function ‘avcodec_alloc_frame’ [-Wimplicit-function-declaration] ffmpeg->picture = avcodec_alloc_frame(); ^ ffmpeg.c:512:21: warning: assignment makes pointer from integer without a cast ffmpeg->picture = avcodec_alloc_frame(); ^ ffmpeg.c: In function ‘ffmpeg_put_frame’: ffmpeg.c:711:9: warning: implicit declaration of function ‘avcodec_encode_video’ [-Wimplicit-function-declaration] out_size = avcodec_encode_video(AVSTREAM_CODEC_PTR(ffmpeg->video_st), ^ ffmpeg.c:720:13: warning: ‘coded_frame’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:2945) [-Wdeprecated-declarations] pkt.pts = AVSTREAM_CODEC_PTR(ffmpeg->video_st)->coded_frame->pts; ^ ffmpeg.c:721:13: warning: ‘coded_frame’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:2945) [-Wdeprecated-declarations] if (AVSTREAM_CODEC_PTR(ffmpeg->video_st)->coded_frame->key_frame) { ^ ffmpeg.c: In function ‘ffmpeg_prepare_frame’: ffmpeg.c:758:13: warning: assignment makes pointer from integer without a cast picture = avcodec_alloc_frame(); ^ ffmpeg.c: In function ‘ffmpeg_deinterlace’: ffmpeg.c:798:13: warning: assignment makes pointer from integer without a cast picture = avcodec_alloc_frame(); ^ ffmpeg.c:812:5: warning: implicit declaration of function ‘avpicture_deinterlace’ [-Wimplicit-function-declaration] avpicture_deinterlace((AVPicture *)picture, (AVPicture *)picture, PIX_FMT_Y ^ ffmpeg.c:812:71: error: ‘PIX_FMT_YUV420P’ undeclared (first use in this function) avpicture_deinterlace((AVPicture *)picture, (AVPicture *)picture, PIX_FMT_YUV ^ : recipe for target 'ffmpeg.o' failed make: *** [ffmpeg.o] Error 1 * ERROR: media-video/motion-3.2.12-r3::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=media-video/motion-3.2.12-r3::gentoo'`, * the complete build log and the output of `emerge -pqv '=media-video/motion-3.2.12-r3::gentoo'`. * The complete build log is located at '/var/log/portage/media-video:motion-3.2.12-r3:20160229-091006.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/media-video/motion-3.2.12-r3/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-video/motion-3.2.12-r3/temp/environment'. * Working directory: '/var/tmp/portage/media-video/motion-3.2.12-r3/work/motion-3.2.12' * S: '/var/tmp/portage/media-video/motion-3.2.12-r3/work/motion-3.2.12'