Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 131130

Summary: media-video/motion-3.1.19 failed at compile
Product: Gentoo Linux Reporter: oc666 <oc666>
Component: New packagesAssignee: Gentoo Media-video project <media-video>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: 2006.0   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description oc666 2006-04-24 12:21:29 UTC
emerge motion
Calculating dependencies ...done!
>>> emerge (1 of 1) media-video/motion-3.1.19 to /
>>> md5 files   ;-) motion-3.1.19.ebuild
>>> md5 files   ;-) files/digest-motion-3.1.19
>>> md5 src_uri ;-) motion-3.1.19.tar.gz
>>> Unpacking source...
>>> Unpacking motion-3.1.19.tar.gz to /var/tmp/portage/motion-3.1.19/work
>>> Source unpacked.
./configure --prefix=/usr --host=i586-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --build=i586-pc-linux-gnu
checking for i586-pc-linux-gnu-gcc... i586-pc-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i586-pc-linux-gnu-gcc accepts -g... yes
checking for i586-pc-linux-gnu-gcc option to accept ANSI C... none needed
checking for pthread_create in -lpthread... yes
checking for jpeg_set_defaults in -ljpeg... yes
checking for ffmpeg autodetecting... found
checking for xmlrpc-c... yes
checking for MySQL... no
Invalid MySQL directory - unable to find libmysqlclient.a or libmysqlclient.so.
checking for PostgreSQL... yes
checking for PQcmdTuples in -lpq... yes
checking for PQoidValue in -lpq... yes
checking for PQclientEncoding in -lpq... yes
checking for pg_encoding_to_char in -lpq... yes
checking how to run the C preprocessor... i586-pc-linux-gnu-gcc -E
checking for egrep... 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 stdlib.h... (cached) yes
checking for unistd.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... yes
checking linux/videodev.h presence... yes
checking for linux/videodev.h... yes
checking for memmem... yes
checking for short int... yes
checking size of short int... 2
checking for int... yes
checking size of int... 4
checking for an ANSI C-conforming const... yes
Detected CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz
CPU optimization: -march=pentium4 -mfpmath=sse -msse2  -mmmx
checking for bswap instruction... yes
configure: creating ./config.status
config.status: creating motion.init-Debian
config.status: creating motion.init-RH
config.status: creating motion.init-FreeBSD.sh
config.status: creating motion.spec
config.status: creating Makefile

  ************************
  *   Configure status   *
  ************************

pthread Support:     Yes
jpeg Support:        Yes
V4L included:        Yes
FFmpeg Support:      Yes
xmlrpc-c Support:    Yes
MYSQL Support:       No
PostgreSQL Support:  Yes

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.
Generating dependencies, please wait...

Version:  3.1.19
Platform: Linux (if this is incorrect, please read README.FreeBSD)

Compiling Motion object files...
--------------------------------------------------------------------------------
i586-pc-linux-gnu-gcc -I/usr/include/ffmpeg -O2 -march=i586 -pipe -DHAVE_FFMPEG -DHAVE_XMLRPC -I/usr/include -DHAVE_PGSQL -I/usr/include -DHAVE_MEMMEM -DTYPE_32BIT="int"   -march=pentium4 -mfpmath=sse -msse2  -mmmx -DHAVE_BSWAP -Wall -DVERSION=\"3.1.19\" -D_REENTRANT -Dsysconfdir=\"/etc\"   -c -o motion.o motion.c
i586-pc-linux-gnu-gcc -I/usr/include/ffmpeg -O2 -march=i586 -pipe -DHAVE_FFMPEG -DHAVE_XMLRPC -I/usr/include -DHAVE_PGSQL -I/usr/include -DHAVE_MEMMEM -DTYPE_32BIT="int"   -march=pentium4 -mfpmath=sse -msse2  -mmmx -DHAVE_BSWAP -Wall -DVERSION=\"3.1.19\" -D_REENTRANT -Dsysconfdir=\"/etc\"   -c -o conf.o conf.c
i586-pc-linux-gnu-gcc -I/usr/include/ffmpeg -O2 -march=i586 -pipe -DHAVE_FFMPEG -DHAVE_XMLRPC -I/usr/include -DHAVE_PGSQL -I/usr/include -DHAVE_MEMMEM -DTYPE_32BIT="int"   -march=pentium4 -mfpmath=sse -msse2  -mmmx -DHAVE_BSWAP -Wall -DVERSION=\"3.1.19\" -D_REENTRANT -Dsysconfdir=\"/etc\"   -c -o draw.o draw.c

i586-pc-linux-gnu-gcc -I/usr/include/ffmpeg -O2 -march=i586 -pipe -DHAVE_FFMPEG -DHAVE_XMLRPC -I/usr/include -DHAVE_PGSQL -I/usr/include -DHAVE_MEMMEM -DTYPE_32BIT="int"   -march=pentium4 -mfpmath=sse -msse2  -mmmx -DHAVE_BSWAP -Wall -DVERSION=\"3.1.19\" -D_REENTRANT -Dsysconfdir=\"/etc\"   -c -o video.o video.c
i586-pc-linux-gnu-gcc -I/usr/include/ffmpeg -O2 -march=i586 -pipe -DHAVE_FFMPEG -DHAVE_XMLRPC -I/usr/include -DHAVE_PGSQL -I/usr/include -DHAVE_MEMMEM -DTYPE_32BIT="int"   -march=pentium4 -mfpmath=sse -msse2  -mmmx -DHAVE_BSWAP -Wall -DVERSION=\"3.1.19\" -D_REENTRANT -Dsysconfdir=\"/etc\"   -c -o track.o track.c
i586-pc-linux-gnu-gcc -I/usr/include/ffmpeg -O2 -march=i586 -pipe -DHAVE_FFMPEG -DHAVE_XMLRPC -I/usr/include -DHAVE_PGSQL -I/usr/include -DHAVE_MEMMEM -DTYPE_32BIT="int"   -march=pentium4 -mfpmath=sse -msse2  -mmmx -DHAVE_BSWAP -Wall -DVERSION=\"3.1.19\" -D_REENTRANT -Dsysconfdir=\"/etc\"   -c -o alg.o alg.c
i586-pc-linux-gnu-gcc -I/usr/include/ffmpeg -O2 -march=i586 -pipe -DHAVE_FFMPEG -DHAVE_XMLRPC -I/usr/include -DHAVE_PGSQL -I/usr/include -DHAVE_MEMMEM -DTYPE_32BIT="int"   -march=pentium4 -mfpmath=sse -msse2  -mmmx -DHAVE_BSWAP -Wall -DVERSION=\"3.1.19\" -D_REENTRANT -Dsysconfdir=\"/etc\"   -c -o event.o event.c
i586-pc-linux-gnu-gcc -I/usr/include/ffmpeg -O2 -march=i586 -pipe -DHAVE_FFMPEG -DHAVE_XMLRPC -I/usr/include -DHAVE_PGSQL -I/usr/include -DHAVE_MEMMEM -DTYPE_32BIT="int"   -march=pentium4 -mfpmath=sse -msse2  -mmmx -DHAVE_BSWAP -Wall -DVERSION=\"3.1.19\" -D_REENTRANT -Dsysconfdir=\"/etc\"   -c -o picture.o picture.c
i586-pc-linux-gnu-gcc -I/usr/include/ffmpeg -O2 -march=i586 -pipe -DHAVE_FFMPEG -DHAVE_XMLRPC -I/usr/include -DHAVE_PGSQL -I/usr/include -DHAVE_MEMMEM -DTYPE_32BIT="int"   -march=pentium4 -mfpmath=sse -msse2  -mmmx -DHAVE_BSWAP -Wall -DVERSION=\"3.1.19\" -D_REENTRANT -Dsysconfdir=\"/etc\"   -c -o rotate.o rotate.c
i586-pc-linux-gnu-gcc -I/usr/include/ffmpeg -O2 -march=i586 -pipe -DHAVE_FFMPEG -DHAVE_XMLRPC -I/usr/include -DHAVE_PGSQL -I/usr/include -DHAVE_MEMMEM -DTYPE_32BIT="int"   -march=pentium4 -mfpmath=sse -msse2  -mmmx -DHAVE_BSWAP -Wall -DVERSION=\"3.1.19\" -D_REENTRANT -Dsysconfdir=\"/etc\"   -c -o netcam.o netcam.c
i586-pc-linux-gnu-gcc -I/usr/include/ffmpeg -O2 -march=i586 -pipe -DHAVE_FFMPEG -DHAVE_XMLRPC -I/usr/include -DHAVE_PGSQL -I/usr/include -DHAVE_MEMMEM -DTYPE_32BIT="int"   -march=pentium4 -mfpmath=sse -msse2  -mmmx -DHAVE_BSWAP -Wall -DVERSION=\"3.1.19\" -D_REENTRANT -Dsysconfdir=\"/etc\"   -c -o netcam_wget.o netcam_wget.c
i586-pc-linux-gnu-gcc -I/usr/include/ffmpeg -O2 -march=i586 -pipe -DHAVE_FFMPEG -DHAVE_XMLRPC -I/usr/include -DHAVE_PGSQL -I/usr/include -DHAVE_MEMMEM -DTYPE_32BIT="int"   -march=pentium4 -mfpmath=sse -msse2  -mmmx -DHAVE_BSWAP -Wall -DVERSION=\"3.1.19\" -D_REENTRANT -Dsysconfdir=\"/etc\"   -c -o webcam.o webcam.c
i586-pc-linux-gnu-gcc -I/usr/include/ffmpeg -O2 -march=i586 -pipe -DHAVE_FFMPEG -DHAVE_XMLRPC -I/usr/include -DHAVE_PGSQL -I/usr/include -DHAVE_MEMMEM -DTYPE_32BIT="int"   -march=pentium4 -mfpmath=sse -msse2  -mmmx -DHAVE_BSWAP -Wall -DVERSION=\"3.1.19\" -D_REENTRANT -Dsysconfdir=\"/etc\"   -c -o ffmpeg.o ffmpeg.c
i586-pc-linux-gnu-gcc -I/usr/include/ffmpeg -O2 -march=i586 -pipe -DHAVE_FFMPEG -DHAVE_XMLRPC -I/usr/include -DHAVE_PGSQL -I/usr/include -DHAVE_MEMMEM -DTYPE_32BIT="int"   -march=pentium4 -mfpmath=sse -msse2  -mmmx -DHAVE_BSWAP -Wall -DVERSION=\"3.1.19\" -D_REENTRANT -Dsysconfdir=\"/etc\"   -c -o xmlrpc-httpd.o xmlrpc-httpd.c
ffmpeg.c:27:3: warning: #warning **************************************************
ffmpeg.c:28:3: warning: #warning Your version of FFmpeg is newer than version 0.4.8
ffmpeg.c:29:9: warning: #warning Newer versions of ffmpeg do not support MPEG1 with
ffmpeg.c:30:3: warning: #warning non-standard framerate. MPEG1 will be disabled for
ffmpeg.c:31:3: warning: #warning normal video output. You can still use mpeg4 and
ffmpeg.c:32:9: warning: #warning and mpeg4ms which are both better in terms of size
ffmpeg.c:33:9: warning: #warning and quality. MPEG1 is always used for timelapse.
ffmpeg.c:34:9: warning: #warning Please read the Motion Guide for more information.
ffmpeg.c:35:9: warning: #warning Note that this is not an error message!
ffmpeg.c:36:3: warning: #warning **************************************************
ffmpeg.c: In function `ffmpeg_open':
ffmpeg.c:250: warning: assignment from incompatible pointer type
ffmpeg.c:262: error: structure has no member named `frame_rate'
ffmpeg.c:263: error: structure has no member named `frame_rate_base'
ffmpeg.c:293: error: request for member `codec_id' in something not a structure or union
ffmpeg.c:301: warning: passing arg 1 of `avcodec_open' from incompatible pointer type
ffmpeg.c: In function `ffmpeg_cleanups':
ffmpeg.c:393: warning: passing arg 1 of `avcodec_close' from incompatible pointer type
ffmpeg.c: In function `ffmpeg_close':
ffmpeg.c:421: warning: passing arg 1 of `avcodec_close' from incompatible pointer type
ffmpeg.c: In function `ffmpeg_put_frame':
ffmpeg.c:492: warning: passing arg 1 of `avcodec_encode_video' from incompatible pointer type
ffmpeg.c:499: error: request for member `coded_frame' in something not a structure or union
ffmpeg.c:500: error: request for member `coded_frame' in something not a structure or union
make: *** [ffmpeg.o] 1 &#1492;&#1500;&#1511;&#1514; #### translate: fault
make: *** ...&#1493;&#1502;&#1497;&#1497;&#1514;&#1505;&#1504; &#1501;&#1512;&#1496;&#1513; &#1514;&#1493;&#1491;&#1493;&#1489;&#1506;&#1500; &#1503;&#1497;&#1514;&#1502;&#1502; #### translate: waiting for jobs which not end

!!! ERROR: media-video/motion-3.1.19 failed.
!!! Function src_compile, Line 566, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.



XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX


emerge --info
Portage 2.0.54 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.5-r3, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i586-pc-linux-gnu"
CFLAGS="-O2 -march=i586 -pipe"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=i586 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LANG="he_IL.UTF-8"
LC_ALL="he_IL.UTF-8"
LINGUAS="he"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dfx 3dnow X aac alsa apache2 apm arts audiofile avi berkdb bidi bitmap-fonts bzip2 cdr cli crypt cups curl divx4linux dri dts eds emboss encode esd exif expat fam ffmpeg foomaticdb fortran gdbm gif gpm gstreamer gtk2 hal idn imagemagick imlib ipv6 isdnlog jpeg kde lcms libg++ libwww live mad mikmod mmx mmxext mng motif mp3 mpeg msn mysqli ncurses nls nptl nvidia ogg opengl oss pam pcre pdflib perl png postgresql ppds pppd python qt quicktime readline real recode reflection samba sdl session spell spl sse sse2 ssl svga symlink tcpd tiff truetype truetype-fonts type1-fonts udev usb v4l v4l2 vorbis win32codecs xine xinerama xml xml2 xmms xorg xv xvid zlib linguas_he userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LDFLAGS, PORTDIR_OVERLAY

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

some likely error at (im not sure if it's exactly the same problem!!!): 
http://www.lavrsen.dk/twiki/bin/view/Motion/BugReport2005x08x05x210647
and solution for it at:
http://www.lavrsen.dk/twiki/bin/view/Motion/FfmpegCodecPatch
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-05-24 12:30:59 UTC

*** This bug has been marked as a duplicate of 109198 ***