Gentoo Forums
Gentoo Forums
Quick Search: in
mjpegtools fails due to undeclared variables [solved]
View unanswered posts
View posts from last 24 hours

rackathon
 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
DaggyStyle
Veteran
Veteran


Joined: 22 Mar 2006
Posts: 1644

PostPosted: Mon Nov 10, 2008 8:50 am    Post subject: mjpegtools fails due to undeclared variables [solved] Reply with quote

it happens with newer versions too.
here are some outputs:

emerge --info:
Code:
Portage 2.2_rc13 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.25-gentoo-r7 x86_64)
=================================================================
System uname: Linux-2.6.25-gentoo-r7-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T8100_@_2.10GHz-with-glibc2.2.5
Timestamp of tree: Mon, 10 Nov 2008 05:45:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.4.6-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.hamakor.org.il/pub/mirrors/gentoo http://gentoo.llarian.net/ ftp://gentoo.llarian.net/pub/gentoo http://pandemonium.tiscali.de/pub/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/ http://linuv.uv.es/mirror/gentoo/ http://gentoo.blueyonder.co.uk ftp://mirrors.blueyonder.co.uk/mirrors/gentoo "
LDFLAGS="-Wl,-O1"
LINGUAS="en he es"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=180"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 amr audiofile berkdb bidi bluetooth bzip2 cairo cdparanoia cjk cli cracklib crypt cups dbus dri dts dv dvb dvd dvdr dvdread edb encode esd ffmpeg flac fortran ftp gdbm gif gphoto2 gpm gtk hal iconv icq id3tag ieee1394 imagemagick isdnlog java javascript joystick jpeg jpeg2k kde lame ldap lirc mad matroska midi mmx mp3 mp4 mpeg mtp mudflap multilib nas ncurses nls nptl nptlonly nsplugin ogg openexr opengl openmp oss pam pcre perl php png pppd python qt3 qt4 quicktime readline reflection samba sdl session smp sndfile spl srt sse sse2 sse3 ssl ssse3 sysfs tcpd theora threads tiff unicode usb v4l v4l2 vcd vorbis wavpack wifi wma x264 xine xml xorg xulrunner xv xvid xvmc zlib" ALSA_CARDS="hda-intel usb-audio" ALSA_PCM_PLUGINS="multi asym rate dmix dshare dsnoop softvol plug extplug ioplug hooks empty route file" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="mouse synaptics keyboard evdev joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en he es" USERLAND="GNU" VIDEO_CARDS="vesa radeon fglrx v4l radeonhd"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS



emerge -ptv output:
Code:
[ebuild  N    ] media-video/mjpegtools-1.8.0-r1  USE="X dv gtk png quicktime sdl sse v4l -3dnow -dga (-mmx) -yv12" 0 kB


and the error:
Code:
/bin/sh ../libtool --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils    -march=core2 -O2 -pipe -fno-strict-aliasing -pthread  -MT motionest.lo -MD -MP -MF .deps/motionest.Tpo -c -o motionest.lo motionest.cc
 x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils -march=core2 -O2 -pipe -fno-strict-aliasing -pthread -MT encoderparams.lo -MD -MP -MF .deps/encoderparams.Tpo -c encoderparams.cc -o encoderparams.o >/dev/null 2>&1
mv -f .deps/encoderparams.Tpo .deps/encoderparams.Plo
/bin/sh ../libtool --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils    -march=core2 -O2 -pipe -fno-strict-aliasing -pthread  -MT mpeg2coder.lo -MD -MP -MF .deps/mpeg2coder.Tpo -c -o mpeg2coder.lo mpeg2coder.cc
 x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils -march=core2 -O2 -pipe -fno-strict-aliasing -pthread -MT motionest.lo -MD -MP -MF .deps/motionest.Tpo -c motionest.cc  -fPIC -DPIC -o .libs/motionest.o
 x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils -march=core2 -O2 -pipe -fno-strict-aliasing -pthread -MT macroblock.lo -MD -MP -MF .deps/macroblock.Tpo -c macroblock.cc  -fPIC -DPIC -o .libs/macroblock.o
In file included from macroblock.hh:54,
                 from macroblock.cc:24:
encodertypes.h: In member function 'int MotionVector::CodingPenaltyForSAD() const':
encodertypes.h:76: error: 'abs' was not declared in this scope
macroblock.cc: In member function 'void MacroBlock::SelectCodingModeOnVariance()':
macroblock.cc:52: error: 'INT_MAX' was not declared in this scope
make[2]: *** [macroblock.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
 x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils -march=core2 -O2 -pipe -fno-strict-aliasing -pthread -MT mpeg2coder.lo -MD -MP -MF .deps/mpeg2coder.Tpo -c mpeg2coder.cc  -fPIC -DPIC -o .libs/mpeg2coder.o
 x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils -march=core2 -O2 -pipe -fno-strict-aliasing -pthread -MT motionest.lo -MD -MP -MF .deps/motionest.Tpo -c motionest.cc -o motionest.o >/dev/null 2>&1
 x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils -march=core2 -O2 -pipe -fno-strict-aliasing -pthread -MT mpeg2coder.lo -MD -MP -MF .deps/mpeg2coder.Tpo -c mpeg2coder.cc -o mpeg2coder.o >/dev/null 2>&1
mv -f .deps/mpeg2coder.Tpo .deps/mpeg2coder.Plo
mv -f .deps/motionest.Tpo .deps/motionest.Plo
make[2]: Leaving directory `/var/tmp/portage/media-video/mjpegtools-1.8.0-r1/work/mjpegtools-1.8.0/mpeg2enc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-video/mjpegtools-1.8.0-r1/work/mjpegtools-1.8.0'
make: *** [all] Error 2
 *
 * ERROR: media-video/mjpegtools-1.8.0-r1 failed.
 * Call stack:
 * ebuild.sh, line   49:  Called src_compile
 * environment, line 2923:  Called die
 * The specific snippet of code:
 * emake || die "emake failed";
 * The die message:
 * emake failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/media-video/mjpegtools-1.8.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-video/mjpegtools-1.8.0-r1/temp/environment'.
 *


help
thanks in advance
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein

[img]http://boinc.mundayweb.com/one/teamStats.php/userID:8653/.png[/img]


Last edited by DaggyStyle on Mon Nov 10, 2008 1:16 pm; edited 1 time in total
Back to top
View user's profile Send private message
VoidMage
l33t
l33t


Joined: 14 Oct 2006
Posts: 995

PostPosted: Mon Nov 10, 2008 9:48 am    Post subject: Reply with quote

You probably need at least 1.9.0_rc3,
cause that is a common gcc 4.3 error, due to missing includes.
Back to top
View user's profile Send private message
DaggyStyle
Veteran
Veteran


Joined: 22 Mar 2006
Posts: 1644

PostPosted: Mon Nov 10, 2008 1:16 pm    Post subject: Reply with quote

right, typo in package.keywords, solved.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein

[img]http://boinc.mundayweb.com/one/teamStats.php/userID:8653/.png[/img]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum