Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 327957 - sci-libs/vtk-5.6.* fails to compile with ffmpeg USE flag
Summary: sci-libs/vtk-5.6.* fails to compile with ffmpeg USE flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Markus Dittrich (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-12 17:20 UTC by Juergen Rose
Modified: 2011-04-28 15:03 UTC (History)
8 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
gzipped /var/tmp/portage/sci-libs/vtk-5.6.0-r2/temp/build.log (build.log.gz,280.16 KB, application/octet-stream)
2010-07-12 17:23 UTC, Juergen Rose
Details
compressed /var/tmp/portage/sci-libs/vtk-5.6.0-r2/temp/build.log (build.log.bz2,136.18 KB, application/x-bzip)
2010-09-14 13:34 UTC, Juergen Rose
Details
bzip2ed /var/tmp/portage/sci-libs/vtk-5.6.1/temp/build.log (build.log.bz2,137.14 KB, application/x-bzip)
2011-04-25 04:45 UTC, Juergen Rose
Details
/var/tmp/portage/sci-libs/vtk-5.6.1/temp/build.log (build.log.bz2,137.11 KB, application/x-bzip)
2011-04-28 10:52 UTC, Juergen Rose
Details
output of qlist ffmpeg (qlist_ffmpeg,8.68 KB, text/plain)
2011-04-28 13:21 UTC, Juergen Rose
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2010-07-12 17:20:45 UTC
'emerge vtk' fails with:
...
cd /var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK_build/IO && /usr/bin/x86_64-pc-linux-gnu-g++  -DvtkIO_EXPORTS -DVTK_IN_VTK -DBUILD_REAL_64_BIT_MODE  -DNDEBUG -O2 -pipe   -Wno-deprecated -fPIC -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK_build -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK_build/Common -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK_build/Utilities -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK_build/VolumeRendering -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK_build/Rendering -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK_build/Charts -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK_build/Utilities/vtkalglib -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Infovis -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Geovis -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Views -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Parallel -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/VolumeRendering -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Hybrid -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Widgets -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Rendering -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Charts -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Rendering/Testing/Cxx -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/IO -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Imaging -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Graphics -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/GenericFiltering -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Filtering -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Common -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Utilities -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Common/Testing/Cxx -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK_build/Utilities/vtklibproj4 -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Utilities/vtklibproj4 -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK_build/Utilities/DICOMParser -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Utilities/DICOMParser -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK_build/Utilities/vtknetcdf -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Utilities/vtknetcdf -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK_build/Utilities/vtkexodus2/include -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Utilities/vtkexodus2/include -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK_build/Utilities/MaterialLibrary -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Utilities/MaterialLibrary -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK_build/Utilities/verdict -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Utilities/verdict -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK_build/Utilities/Cosmo -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Utilities/Cosmo -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK_build/Utilities/VPIC -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Utilities/VPIC -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Utilities/utf8/source -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/GUISupport/Qt -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK_build/GUISupport/Qt -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/GUISupport/Qt/Chart -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK_build/GUISupport/Qt/Chart -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Utilities/vtkalglib -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Utilities/ftgl/src -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK_build/Utilities/ftgl -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Utilities/TclTk/internals/tk8.5 -I/usr/include/python2.6 -I/usr/lib/icedtea6/include -I/usr/lib/icedtea6/include/linux -I/usr/include/boost-1_42 -I/usr/lib/R/include -I/usr/include/libxml2 -I/usr/include/freetype2 -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK_build/IO -I/usr/include/mysql   -fvisibility=hidden -fvisibility-inlines-hidden -o CMakeFiles/vtkIO.dir/vtkFFMPEGWriter.cxx.o -c /var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/IO/vtkFFMPEGWriter.cxx
In file included from /usr/include/libavutil/avutil.h:81,
                 from /usr/include/libavcodec/avcodec.h:30,
                 from /usr/include/libavformat/avformat.h:56,
                 from /var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/IO/vtkFFMPEGWriter.cxx:27:
/usr/include/libavutil/common.h: In function 'int32_t av_clipl_int32(int64_t)':
/usr/include/libavutil/common.h:154: error: 'UINT64_C' was not declared in this scope
/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/IO/vtkFFMPEGWriter.cxx: In member function 'int vtkFFMPEGWriterInternal::Start()':
/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/IO/vtkFFMPEGWriter.cxx:117: warning: 'AVFormatContext* av_alloc_format_context()' is deprecated (declared at /usr/include/libavformat/avformat.h:933)
/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/IO/vtkFFMPEGWriter.cxx:117: warning: 'AVFormatContext* av_alloc_format_context()' is deprecated (declared at /usr/include/libavformat/avformat.h:933)
/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/IO/vtkFFMPEGWriter.cxx:126: warning: 'AVOutputFormat* guess_format(const char*, const char*, const char*)' is deprecated (declared at /usr/include/libavformat/avformat.h:787)
/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/IO/vtkFFMPEGWriter.cxx:126: warning: 'AVOutputFormat* guess_format(const char*, const char*, const char*)' is deprecated (declared at /usr/include/libavformat/avformat.h:787)
make[2]: *** [IO/CMakeFiles/vtkIO.dir/vtkFFMPEGWriter.cxx.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK_build'


Reproducible: Always




root@moose:/usr/local/portage/app-emulation/libvirt(36)# emerge --info =sci-libs/vtk-5.6.0-r2
Portage 2.1.8.3 (default/linux/amd64/10.0/desktop, gcc-4.4.4, glibc-2.11.2-r0, 2.6.34-gentoo-r1 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.34-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9650_@_3.00GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 12 Jul 2010 02:00:02 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
virtual/os-headers:  2.6.34
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 skype-eula googleearth AdobeFlash-10.1 cadsoft"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
FFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 "
LINGUAS="de fr"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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="/var/lib/layman/science /var/lib/layman/x11 /var/lib/layman/n4g /var/lib/layman/java-overlay /var/lib/layman/sunrise /var/lib/layman/arcon /var/lib/layman/zugaina /var/lib/layman/dotnet /usr/local/portage /var/lib/cpan"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="64bit R X Xaw3d a52 aac abiword acl acpi afs alsa amd64 ao apache2 applet archive arpack asf aspell assistant audacious audiofile automap automount bash-completion beagle berkdb blas blast bluetooth boo boost branding bzip2 cairo cdda cddb cdf cdio cdparanoia cdr cg cgi chm cli consolekit corba cracklib crypt css cuda cups curl cxx daap db dbase dbi dbm dbus designer devhelp device-mapper dga dia djvu doc dri ds2490 ds9097 ds9097u dts dv dvb dvd dvdr dvi dynamicplugin eds elf emacs emboss empathy encode epiphany evo examples exif expat extensions extra extras fam fame ffmpeg fftw firefox fits flac fltk foomaticdb fortran fpx fts3 fuse galago garmin gd gdal gdbm gedit geoip geolocation geos gif gimp ginac git glade glib glitz gml gmp gmtsuppl gnokii gnome gnome-keyring gnome-print gnuplot gnutls gphoto2 gpm grammar graphics graphtft graphviz grass gs gsl gsm gstreamer gtk guile hal harness hddtemp hdf hdf5 hdri hlapi http httpd hvm iconv icq icu id3 ide imagemagick imap innodb inotify ipod ipv6 irda ithreads jabber jadetex java java5 java6 jbig john jpeg jpeg2k kdrive kerberos kpathsea kqemu kvm ladspa lame lapack latex latex3 lcms ldap lensfun libffi libgda libnotify libsamplerate lirc lm_sensors lua lzo mad mail maildir mailwrapper mapnik math matroska mikmod mkl mmx mmxext mng modules mono moonlight motif mozdevelop mozilla mp3 mp4 mpeg mpi mplayer mtp mudflap multilib musicbrainz mysql mysqli nautilus ncurses neXt netcdf netpbm network networking networkmanager nfs nls nntp nptl nptlonly nsplugin ntfs ntp numarray numeric nvidia obex objc ocaml octave odbc ogdi ogg ole openexr opengl openmp overview pae pam pango pcre pda pdf perl plotutils plugins png podcast policykit posix postgres postscript ppds pppd preview-latex proj projectx pstricks pulseaudio pymol python python-bindings qemu qhull qt3support qt4 quicktime readline reflection reiserfs rle romio rpc rrdcgi rrdtool samba sasl science sdl secure-delete semantic-desktop server session sip slang slp smbclient smp sms sndfile snmp soup sox speex spell spl sql sqlite sse sse2 ssl startup-notification stlport subtitles subversion suexec svg swig sysfs szip t1lib tcl tcpd tex tex4ht texmacs theora threads thunderbird tidy tiff tk tntc tools truetype udev unicode usb userlocales utempter v4l2 virtualbox vorbis wav webdav webdav-serf webkit wifi wmf wxwidgets x264 xattr xcb xemacs xext xine xml xmlreader xmlrpc xorg xpm xulrunner xv xvid xvmc zlib zvbi" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse                evdev               " KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de fr" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy gsf harness ide identity j2ee java mobility nb php profiler ruby websvccommon xml" QEMU_SOFTMMU_TARGETS="i386 ppc ppc64 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby18 jruby" USERLAND="GNU" VIDEO_CARDS="nv nvidia nouveau vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

sci-libs/vtk-5.6.0-r2 was built with the following:
USE="R boost cg doc examples java mpi (multilib) mysql odbc patented postgres python qt4 tcl theora threads tk -ffmpeg" 


root@moose:/usr/local/portage/app-emulation/libvirt(37)# emerge -pqv =sci-libs/vtk-5.6.0-r2
[ebuild   R   ] sci-libs/vtk-5.6.0-r2  USE="R boost cg doc examples ffmpeg* java mpi mysql odbc patented postgres python qt4 tcl theora threads tk"
Comment 1 Juergen Rose 2010-07-12 17:23:37 UTC
Created attachment 238471 [details]
gzipped /var/tmp/portage/sci-libs/vtk-5.6.0-r2/temp/build.log
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2010-07-24 16:17:02 UTC
+  24 Jul 2010; Justin Lecher <jlec@gentoo.org> vmd-1.8.7-r1.ebuild:
+  Added prefix changes, thanks rei4dan #327517; keyworded for ~-linux prefix
+
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2010-07-24 16:17:41 UTC
(In reply to comment #2)
> +  24 Jul 2010; Justin Lecher <jlec@gentoo.org> vmd-1.8.7-r1.ebuild:
> +  Added prefix changes, thanks rei4dan #327517; keyworded for ~-linux prefix
> +
> 

Sorry wrong bug
Comment 4 Justin Lecher (RETIRED) gentoo-dev 2010-07-24 16:18:20 UTC
@ffmeg maintainers
Is this a bug in ffmpeg? It seems to me as if.
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2010-07-24 17:00:33 UTC
It's not a bug:

http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2010-May/088074.html

You can easily solve this by adding:

append-cppflags -D__STDC_CONSTANT_MACROS

to vtk's ebuild, if it respects CPPFLAGS... otherwise just use "append-flags"
Comment 6 Justin Lecher (RETIRED) gentoo-dev 2010-07-24 18:38:39 UTC
Thanks Samuli, fixed.
Comment 7 Juergen Rose 2010-08-02 08:34:06 UTC
'emerge -vD vtk' works for me now with vtk-5.6.0-r2, thanks.
Comment 8 Juergen Rose 2010-09-14 13:31:35 UTC
'emerge -vD vtk' fails again with mpeg USE flag. It fails now with:
...
cd /var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK_build/IO && /usr/bin/x86_64-pc-linux-gnu-g++  -DvtkIO_EXPORTS -DVTK_IN_VTK -DBUILD_REAL_64_BIT_MODE  -D__STDC_CONSTANT_MACROS -DNDEBUG -O2 -march=k8   -Wno-deprecated -fPIC -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK_build -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK_build/Common -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK_build/Utilities -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK_build/VolumeRendering -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK_build/Rendering -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK_build/Charts -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK_build/Utilities/vtkalglib -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Infovis -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Geovis -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Views -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Parallel -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/VolumeRendering -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Hybrid -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Widgets -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Rendering -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Charts -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Rendering/Testing/Cxx -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/IO -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Imaging -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Graphics -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/GenericFiltering -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Filtering -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Common -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Utilities -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Common/Testing/Cxx -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK_build/Utilities/vtklibproj4 -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Utilities/vtklibproj4 -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK_build/Utilities/DICOMParser -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Utilities/DICOMParser -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK_build/Utilities/vtknetcdf -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Utilities/vtknetcdf -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK_build/Utilities/vtkexodus2/include -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Utilities/vtkexodus2/include -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK_build/Utilities/MaterialLibrary -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Utilities/MaterialLibrary -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK_build/Utilities/verdict -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Utilities/verdict -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK_build/Utilities/Cosmo -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Utilities/Cosmo -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK_build/Utilities/VPIC -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Utilities/VPIC -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Utilities/utf8/source -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/GUISupport/Qt -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK_build/GUISupport/Qt -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/GUISupport/Qt/Chart -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK_build/GUISupport/Qt/Chart -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Utilities/vtkalglib -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Utilities/ftgl/src -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK_build/Utilities/ftgl -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/Utilities/TclTk/internals/tk8.5 -I/usr/include/python2.6 -I/opt/sun-jdk-1.6.0.21/include -I/opt/sun-jdk-1.6.0.21/include/linux -I/usr/include/boost-1_42 -I/usr/lib/R/include -I/usr/include/libxml2 -I/usr/include/freetype2 -I/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK_build/IO -I/usr/include/mysql   -fvisibility=hidden -fvisibility-inlines-hidden -o CMakeFiles/vtkIO.dir/vtkFFMPEGWriter.cxx.o -c /var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/IO/vtkFFMPEGWriter.cxx
/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/IO/vtkFFMPEGWriter.cxx:25:30: error: ffmpeg/avformat.h: No such file or directory
/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/IO/vtkFFMPEGWriter.cxx:32:30: error: ffmpeg/swscale.h: No such file or directory
/var/tmp/portage/sci-libs/vtk-5.6.0-r2/work/VTK/IO/vtkFFMPEGWriter.cxx:57: error: ISO C++ forbids declaration of 'AVFormatContext' with no type


root@grizzly:/usr/src/linux(107)# emerge --info =sci-libs/vtk-5.6.0-r2
--- Unmatch removal atom in /var/lib/layman/java-overlay/profiles/package.mask: -=dev-java/sun-jdk-1.5*
Portage 2.1.9.5 (default/linux/amd64/10.0/desktop, gcc-4.4.4, glibc-2.12.1-r1, 2.6.34-gentoo-r1 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.34-gentoo-r1-x86_64-AMD_Athlon-tm-_64_Processor_3200+-with-gentoo-2.0.1
Timestamp of tree: Tue, 14 Sep 2010 09:00:22 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.3
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.67
sys-devel/automake:  1.4_p6-r1, 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.35 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 skype-eula googleearth AdobeFlash-10.1 cadsoft"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=k8"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=k8"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ rsync://ftp.fi.muni.cz/pub/linux/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo ftp://ftp.easynet.nl/mirror/gentoo/ "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de fr"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages/"
PORTAGE_CONFIGROOT="/"
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="/var/lib/layman/java-overlay /var/lib/layman/lordvan /var/lib/layman/science /var/lib/layman/x11 /var/lib/layman/sunrise /var/lib/layman/arcon /usr/local/portage /var/lib/cpan"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 64bit R X Xaw3d a52 aac abiword acl acpi admin afs alsa amd64 ao apache2 applet archive arpack asf aspell assistant audacious audiofile automap automount bash-completion beagle berkdb blas blast bluetooth boo boost branding bzip2 cairo cdda cddb cdf cdio cdparanoia cdr cgi chm cli consolekit corba cracklib crypt css cups curl cxx daap db dbase dbi dbm dbus designer devhelp device-mapper dga dia djvu doc dri ds2490 ds9097 ds9097u dts dv dvb dvd dvdr dvi dynamicplugin eds elf emacs emboss empathy encode epiphany evo examples exif expat extensions extra extras fam fame ffmpeg fftw firefox fits flac fltk fontconfig foomaticdb fortran fpx fts3 fuse galago garmin gd gdal gdbm gedit geoip geolocation geos gif gimp ginac git glade glib glitz gml gmp gmtsuppl gnokii gnome gnome-keyring gnome-print gnuplot gnutls gphoto2 gpm grammar graphics graphtft graphviz grass gs gsl gsm gstreamer gtk guile hal harness hddtemp hdf hdf5 hdri hlapi http httpd iconv icq icu id3 ide imagemagick imap innodb inotify ipod ipv6 irda ithreads jabber jadetex java java5 java6 jbig john jpeg jpeg2k kdrive kerberos kpathsea ladspa lame lapack latex latex3 lcms ldap lensfun libffi libgda libnotify libsamplerate lirc lm_sensors lua lzo mad mail maildir mailwrapper mapnik math matroska mikmod mkl mmx mmxext mng modules mono moonlight motif mozdevelop mozilla mp3 mp4 mpeg mpi mplayer mtp mudflap multilib musicbrainz mysql mysqli nautilus ncurses neXt netcdf netpbm network networking networkmanager nfs nls nntp nptl nptlonly nsplugin ntfs ntp numarray numeric obex objc ocaml octave odbc ogdi ogg ole openexr opengl openmp overview pae pam pango pcre pda pdf perl plotutils plugins png podcast policykit posix postgres postscript ppds pppd preview-latex proj projectx pstricks pulseaudio pymol python python-bindings qemu qhull qt3support qt4 quicktime readline reflection reiserfs rle romio rpc rrdcgi rrdtool samba sasl science sdl secure-delete semantic-desktop server session sip slang slp smbclient sms sndfile snmp soup sox speex spell sql sqlite sse sse2 ssl startup-notification stlport subtitles subversion suexec svg swig sysfs szip t1lib tcl tcpd tex tex4ht texmacs theora threads thunderbird tidy tiff tk tntc tools truetype udev unicode usb userlocales utempter v4l2 video virtualbox vorbis wav webdav webdav-serf webkit wmf wxwidgets x264 xattr xcb xemacs xext xine xml xmlreader xmlrpc xorg xpm xulrunner xv xvid xvmc zlib zvbi" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon" DVB_CARDS="tda10046 saa7134" ELIBC="glibc" INPUT_DEVICES="keyboard mouse                evdev               " KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de fr" LIRC_DEVICES="hauppauge_dvb" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy gsf harness ide identity j2ee java mobility nb php profiler ruby websvccommon xml" QEMU_SOFTMMU_TARGETS="i386 ppc ppc64 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby18 jruby" USERLAND="GNU" VIDEO_CARDS="radeon ati vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

sci-libs/vtk-5.6.0-r2 was built with the following:
USE="R boost doc examples java mpi (multilib) mysql odbc patented postgres python qt4 tcl theora threads tk -cg -ffmpeg" 
LDFLAGS="-Wl,-O1"

root@grizzly:/usr/src/linux(108)# emerge -pqv =sci-libs/vtk-5.6.0-r2
--- Unmatch removal atom in /var/lib/layman/java-overlay/profiles/package.mask: -=dev-java/sun-jdk-1.5*
[ebuild   R   ] sci-libs/vtk-5.6.0-r2  USE="R boost doc examples ffmpeg* java mpi mysql odbc patented postgres python qt4 tcl theora threads tk -cg" 
Comment 9 Juergen Rose 2010-09-14 13:34:14 UTC
Created attachment 247258 [details]
compressed /var/tmp/portage/sci-libs/vtk-5.6.0-r2/temp/build.log
Comment 10 François Bissey 2010-09-14 23:50:43 UTC
*sigh* version of ffmpeg used?
Comment 11 Juergen Rose 2010-09-15 06:14:11 UTC
root@grizzly:/usr/src/linux(122)# qlist -Iv ffmp
kde-base/ffmpegthumbs-4.5.1
media-plugins/gst-plugins-ffmpeg-0.10.9
media-video/ffmpeg-0.6
media-video/ffmpegthumbnailer-2.0.4
Comment 12 François Bissey 2010-09-15 10:27:15 UTC
(In reply to comment #11)
> root@grizzly:/usr/src/linux(122)# qlist -Iv ffmp
> kde-base/ffmpegthumbs-4.5.1
> media-plugins/gst-plugins-ffmpeg-0.10.9
> media-video/ffmpeg-0.6
> media-video/ffmpegthumbnailer-2.0.4
> 
Thanks for the info, I'll have to check on my ~x86 box later.
Comment 13 François Bissey 2010-09-17 03:55:10 UTC
I was thinking some headers had moved in ffmpeg but I think the cmake detection
rule in vtk has gone nuts, according to your build log it think you have "old style" ffmpeg headers, which is just plain wrong. 
More investigation will be needed.
Comment 14 François Bissey 2010-09-26 02:52:26 UTC
OK - sorry for the delay. I checked the finding rules in vtk. It looks for
old styles headers before the new style. Would you happen to have any of the following files on your system - at the precise location I am giving:
/usr/include/avformat.h
/usr/local/include/avformat.h
/usr/include/ffmpeg/avformat.h
/usr/local/include/ffmpeg/avformat.h

In ffmpeg-0.5 and over it should be installed in
/usr/include/libavformat/avformat.h
But cmake will be looking for it in the other location I mentioned first.
Comment 15 Juergen Rose 2010-10-03 11:26:37 UTC
I have also only /usr/include/libavformat/avformat.h.
Comment 16 François Bissey 2010-10-03 19:34:52 UTC
(In reply to comment #15)
> I have also only /usr/include/libavformat/avformat.h.
> 
OK, so something in cmake or the cmake parsing is broken in your
system. I will make a patch to remove the detectection of ffmpeg 
in the old location and see how it goes. It may take a few hours
as I am currently invigilating an exam. 
Comment 17 François Bissey 2010-10-26 22:14:14 UTC
Sorry - it has been crunch time here - slowing down but I can do more things.
I have imported vtk-5.6.1 in the science overlay (package masked for now).
Can you try it and tell me if the problem is still present.
Comment 18 Juergen Rose 2010-10-31 17:15:36 UTC
I tried to solve this issue by reemerging cmake. But it did not change something related to vtk-5.6.0-r2. 'emerge vtk' with ffmpeg USE flag fails with the same error.
Comment 19 Juergen Rose 2010-11-29 11:44:55 UTC
sci-libs/vtk-5.6.1 fails with the same error:
...
cd /var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build/IO && /usr/bin/x86_64-pc-linux-gnu-g++  -DvtkIO_EXPORTS -DVTK_IN_VTK -DBUILD_REAL_64_BIT_MODE  -D__STDC_CONSTANT_MACROS -DNDEBUG -march=nocona -O2 -pipe -fomit-frame-pointer   -Wno-deprecated -fPIC -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build/Common -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build/Utilities -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build/VolumeRendering -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build/Rendering -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build/Charts -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build/Utilities/vtkalglib -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Infovis -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Geovis -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Views -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Parallel -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/VolumeRendering -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Hybrid -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Widgets -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Rendering -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Charts -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Rendering/Testing/Cxx -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/IO -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Imaging -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Graphics -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/GenericFiltering -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Filtering -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Common -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Utilities -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Common/Testing/Cxx -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build/Utilities/vtklibproj4 -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Utilities/vtklibproj4 -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build/Utilities/DICOMParser -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Utilities/DICOMParser -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build/Utilities/vtknetcdf -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Utilities/vtknetcdf -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build/Utilities/vtkexodus2/include -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Utilities/vtkexodus2/include -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build/Utilities/MaterialLibrary -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Utilities/MaterialLibrary -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build/Utilities/verdict -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Utilities/verdict -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build/Utilities/Cosmo -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Utilities/Cosmo -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build/Utilities/VPIC -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Utilities/VPIC -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Utilities/utf8/source -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/GUISupport/Qt -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build/GUISupport/Qt -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/GUISupport/Qt/Chart -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build/GUISupport/Qt/Chart -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Utilities/vtkalglib -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Utilities/ftgl/src -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build/Utilities/ftgl -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Utilities/TclTk/internals/tk8.5 -I/usr/include/python2.6 -I/opt/sun-jdk-1.6.0.22/include -I/opt/sun-jdk-1.6.0.22/include/linux -I/usr/include/boost-1_42 -I/usr/lib/R/include -I/usr/include/libxml2 -I/usr/include/freetype2 -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build/IO -I/usr/include/mysql   -fvisibility=hidden -fvisibility-inlines-hidden -o CMakeFiles/vtkIO.dir/vtkFFMPEGWriter.cxx.o -c /var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/IO/vtkFFMPEGWriter.cxx
/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/IO/vtkFFMPEGWriter.cxx:25:30: fatal error: ffmpeg/avformat.h: No such file or directory
compilation terminated.
make[2]: *** [IO/CMakeFiles/vtkIO.dir/vtkFFMPEGWriter.cxx.o] Error 1
Comment 20 Juergen Rose 2010-11-29 13:51:16 UTC
And again I have only /usr/include/libavformat/avformat.h:

root@condor:/root(15)# find /usr -name avformat.h
/usr/include/libavformat/avformat.h

root@condor:/root(2)# qfile -v avformat.h
media-video/ffmpeg-0.6_p25767 (/usr/include/libavformat/avformat.h)
Comment 21 François Bissey 2010-12-01 01:57:39 UTC
Hi, I am in the middle of a relocation and have no gentoo machine at the moment.
So I am unable to do anything for the next 2 weeks roughly.
If someone else wants to look into it in the meantime that would be great.
Comment 22 Justin Lecher (RETIRED) gentoo-dev 2011-04-16 10:41:58 UTC
Patch is in. please retest and reopen if still valid.
Comment 23 Juergen Rose 2011-04-23 12:17:48 UTC
It still fails:

/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/IO/vtkFFMPEGWriter.cxx:25:34: fatal error: libavcodec/avformat.h: No such file or directory
compilation terminated.
make[2]: *** [IO/CMakeFiles/vtkIO.dir/vtkFFMPEGWriter.cxx.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build'
make[1]: *** [IO/CMakeFiles/vtkIO.dir/all] Error 2
make[1]: Leaving directory `/var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build'
make: *** [all] Error 2
emake failed
 * ERROR: sci-libs/vtk-5.6.1 failed (compile phase):

root@condor:/usr/src(18)# emerge -pqv =sci-libs/vtk-5.6.1
[ebuild   R   ] sci-libs/vtk-5.6.1  USE="R boost cg doc examples ffmpeg* java mpi mysql odbc patented postgres python qt4 tcl theora threads tk"
Comment 24 Justin Lecher (RETIRED) gentoo-dev 2011-04-23 12:48:17 UTC
(In reply to comment #23)
> It still fails:
> 
> /var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/IO/vtkFFMPEGWriter.cxx:25:34:
> fatal error: libavcodec/avformat.h: No such file or directory

But now this is something else. Please check where and from which package avformat.h is provided.
Comment 25 Juergen Rose 2011-04-23 13:17:44 UTC
avformat.h belongs to ffmpeg-0.6.90_rc0-r2 and is at /usr/include/libavformat/avformat.h:

root@condor:/usr/src/linux(32)# qfile -v avformat.h
media-video/ffmpeg-0.6.90_rc0-r2 (/usr/include/libavformat/avformat.h)
root@condor:/usr/src/linux(33)# emerge -pvD ffmpeg

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] media-video/ffmpeg-0.6.90_rc0-r2  USE="3dnow 3dnowext X alsa amr bzip2 doc encode gsm hardcoded-tables ieee1394 jpeg2k mmx mmxext mp3 network sdl speex ssse3 theora threads truetype v4l v4l2 vorbis x264 xvid zlib (-altivec) -avx -bindist -cpudetection -custom-cflags -debug -dirac -faac -frei0r -jack -oss -pic -qt-faststart -rtmp -schroedinger -static-libs -test -vaapi -vdpau -vpx" VIDEO_CARDS="-nvidia" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB
root@condor:/usr/src/linux(34)# ll /usr/include/libavformat/avformat.h
-rw-r--r-- 1 root root 57564 Apr 14 08:49 /usr/include/libavformat/avformat.h
Comment 26 Justin Lecher (RETIRED) gentoo-dev 2011-04-23 14:54:03 UTC
So it is there and it is in the right folder. Please give me the complete build log. I don't see what is going wrong.
Comment 27 Juergen Rose 2011-04-25 04:45:19 UTC
Created attachment 271065 [details]
bzip2ed /var/tmp/portage/sci-libs/vtk-5.6.1/temp/build.log
Comment 28 Justin Lecher (RETIRED) gentoo-dev 2011-04-25 08:59:59 UTC
My bad, I made some typo:

/libavformat/libavcodec/

and wasn't able to spot. Iam doing some test runs and commit it after that.
Comment 29 Justin Lecher (RETIRED) gentoo-dev 2011-04-25 09:54:35 UTC
Now for ever :)


+  25 Apr 2011; Justin Lecher <jlec@gentoo.org> vtk-5.6.0-r2.ebuild,
+  vtk-5.6.0-r3.ebuild, vtk-5.6.1.ebuild, files/vtk-5.6.1-ffmpeg.patch,
+  +files/vtk-5.6.1-gcc-46.patch:
+  Correct patch for USE=ffmpeg, 327957; Fix for gcc-4.6
+


If not, please bother me again. :)
Comment 30 Juergen Rose 2011-04-28 10:38:56 UTC
Now it fails at least on two systems with:
...
cd /var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build/IO && /usr/bin/x86_64-pc-linux-gnu-g++  -DvtkIO_EXPORTS -DVTK_IN_VTK -DBUILD_REAL_64_BIT_MODE  -D__STDC_CONSTANT_MACROS -DNDEBUG -march=nocona -O2 -pipe -fomit-frame-pointer   -Wno-deprecated -fPIC -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build/Common -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build/Utilities -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build/VolumeRendering -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build/Rendering -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build/Charts -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build/Utilities/vtkalglib -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Infovis -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Geovis -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Views -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Parallel -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/VolumeRendering -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Hybrid -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Widgets -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Rendering -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Charts -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Rendering/Testing/Cxx -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/IO -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Imaging -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Graphics -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/GenericFiltering -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Filtering -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Common -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Utilities -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Common/Testing/Cxx -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build/Utilities/vtklibproj4 -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Utilities/vtklibproj4 -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build/Utilities/DICOMParser -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Utilities/DICOMParser -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build/Utilities/vtknetcdf -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Utilities/vtknetcdf -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build/Utilities/vtkexodus2/include -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Utilities/vtkexodus2/include -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build/Utilities/MaterialLibrary -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Utilities/MaterialLibrary -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build/Utilities/verdict -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Utilities/verdict -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build/Utilities/Cosmo -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Utilities/Cosmo -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build/Utilities/VPIC -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Utilities/VPIC -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Utilities/utf8/source -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/GUISupport/Qt -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build/GUISupport/Qt -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/GUISupport/Qt/Chart -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build/GUISupport/Qt/Chart -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Utilities/vtkalglib -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Utilities/ftgl/src -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build/Utilities/ftgl -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Utilities/TclTk/internals/tk8.5 -I/usr/include/python2.7 -I/opt/sun-jdk-1.6.0.25/include -I/opt/sun-jdk-1.6.0.25/include/linux -I/usr/include/boost-1_42 -I/usr/lib/R/include -I/usr/include/libxml2 -I/usr/include/freetype2 -I/var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build/IO -I/usr/include/mysql   -fvisibility=hidden -fvisibility-inlines-hidden -o CMakeFiles/vtkIO.dir/vtkFFMPEGWriter.cxx.o -c /var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/IO/vtkFFMPEGWriter.cxx
/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/IO/vtkFFMPEGWriter.cxx:32:30: fatal error: ffmpeg/swscale.h: No such file or directory
compilation terminated.


I have only /usr/include/libswscale/swscale.h belonging to ffmpeg-0.6.90_rc0-r2:

root@condor:/root(34)# qfile -v swscale.h
media-video/ffmpeg-0.6.90_rc0-r2 (/usr/include/libswscale/swscale.h)


root@condor:/root(35)# emerge --info =sci-libs/vtk-5.6.1
Portage 2.1.9.46 (default/linux/amd64/10.0/desktop, gcc-4.5.2, libc-0-r0, 2.6.38 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.38-x86_64-Intel-R-_Core-TM-2_CPU_6600_@_2.40GHz-with-gentoo-2.0.2
Timestamp of tree: Thu, 28 Apr 2011 07:00:01 +0000
app-shells/bash:     4.2_p8
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.7.1-r1, 3.1.3-r1
dev-util/cmake:      2.8.4-r1
sys-apps/baselayout: 2.0.2
sys-apps/openrc:     0.8.2
sys-apps/sandbox:    2.5
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.4.5, 4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
sys-kernel/linux-headers: 2.6.38
virtual/os-headers:  0
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 skype-eula googleearth AdobeFlash-10.1 cadsoft"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /usr/share/openvpn/easy-rsa /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.2/ext-active/ /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.2/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.2/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ rsync://ftp.fi.muni.cz/pub/linux/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo rsync://gd.tuwien.ac.at/opsys/linux/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo http://gentoo.oregonstate.edu"
LANG="en_US.UTF-8"
LC_ALL="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de fr"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages/"
PORTAGE_CONFIGROOT="/"
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="/var/lib/layman/java-overlay /var/lib/layman/lordvan /var/lib/layman/science /var/lib/layman/x11 /var/lib/layman/sunrise /var/lib/layman/arcon /usr/local/portage /var/lib/cpan /var/lib/g-octave"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="64bit R X Xaw3d a52 aac abiword accessibility acl acpi admin afs alsa amd64 ao apache2 applet archive arpack asf aspell assistant audacious audiofile automap automount bash-completion beagle berkdb blas blast bluetooth boo boost branding bzip2 cairo cdda cddb cdf cdio cdparanoia cdr cg cgi chm cli consolekit corba cracklib crypt css cuda cups curl cxx daap db dbase dbi dbm dbus declarative designer devhelp device-mapper dga dia djvu doc dri ds2490 ds9097 ds9097u dts dv dvb dvd dvdr dvi dynamicplugin eds elf emacs emboss emf encode epiphany evo examples exif expat extensions extra extras fam fame ffmpeg fftw firefox fits flac fltk fontconfig foomaticdb fortran fortran95 fpx fts3 fuse galago garmin gcj gd gdal gdbm gdu gedit geoip geolocation geos gfortran gif gimp ginac git glade glib gml gmp gmtsuppl gnome gnome-keyring gnome-print gnuplot gnutls gphoto2 gpm grammar graphics graphtft graphviz grass gs gsl gsm gstreamer gtk guile harness hddtemp hdf hdf5 hdri http httpd hvm iconv icq icu id3 ide imagemagick imap innodb inotify ipod ipv6 irda ithreads jabber jadetex java java6 jbig john jpeg jpeg2k kdrive kerberos kpathsea kqemu kvm ladspa lame lapack latex latex3 lcms ldap lensfun libffi libgda libnotify libsamplerate lirc lm_sensors lua lzo mad mail maildir mapnik math matroska mikmod mkl mmx mmxext mng modules mono moonlight motif mozilla mp3 mp4 mpeg mpi mplayer mtp mudflap multilib musicbrainz mysql mysqli nautilus ncurses neXt netcdf netpbm network networking networkmanager nfs nls nntp nptl nptlonly nsplugin ntfs ntp numpy obex objc ocaml octave odbc ogdi ogg ole openexr opengl openmp overview pae pam pango pcre pda pdf perl plotutils plugins png podcast policykit portaudio posix postgres postscript ppds pppd preview-latex proj projectx pstricks pulseaudio python python-bindings q16 q32 qemu qhull qt3support qt4 quicktime readline reiserfs reports rle romio rpc rrdcgi rrdtool samba sasl science sdk sdl secure-delete semantic-desktop server session sip slang slp smbclient smp sms sndfile snmp soup sox speex spell sql sqlite sse sse2 ssl startup-notification stlport subtitles subversion suexec svg svm swig sysfs szip t1lib tcl tcpd tex tex4ht texmacs tgif theora threads thunderbird tidy tiff tk tntc tools truetype udev unicode usb userlocales utempter v4l2 video virtualbox vorbis wav webdav webdav-serf webkit wmf wxwidgets x264 xattr xcb xemacs xext xine xml xmlreader xmlrpc xorg xpm xulrunner xv xvid xvmc yaml zlib zvbi" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DVB_CARDS="tda10045 tda10046lifeview" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de fr" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy gsf harness ide identity j2ee java mobility nb php profiler ruby websvccommon xml" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 ppc ppc64 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv nouveau vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

sci-libs/vtk-5.6.1 was built with the following:
USE="R boost cg doc examples java mpi (multilib) mysql odbc patented postgres python qt4 tcl theora threads tk -ffmpeg"




root@condor:/root(36)# emerge -pqv =sci-libs/vtk-5.6.1
[ebuild   R   ] sci-libs/vtk-5.6.1  USE="R boost cg doc examples ffmpeg* java mpi mysql odbc patented postgres python qt4 tcl theora threads tk"
Comment 31 Justin Lecher (RETIRED) gentoo-dev 2011-04-28 10:43:56 UTC
Okay, I used latest stable ffmpeg. I will fix it to latest and restrict the dep. Sorry for all the inconvenience.
Comment 32 Juergen Rose 2011-04-28 10:52:35 UTC
Created attachment 271439 [details]
/var/tmp/portage/sci-libs/vtk-5.6.1/temp/build.log
Comment 33 Justin Lecher (RETIRED) gentoo-dev 2011-04-28 11:36:05 UTC
Please attach the output of qlist ffmpeg.

And ll /usr/include/ffmpeg
Comment 34 Justin Lecher (RETIRED) gentoo-dev 2011-04-28 11:48:41 UTC
@cmake-maintainer

I need help here. Somehow the check for old/new style ffmpeg goes wrong here. Do you have any idea, what could be the cause?
Comment 35 Juergen Rose 2011-04-28 13:21:41 UTC
Created attachment 271451 [details]
output of qlist ffmpeg
Comment 36 Juergen Rose 2011-04-28 13:23:13 UTC
root@condor:/root(51)# ll /usr/include/ffmpeg
total 96
-rw-r--r-- 1 root root 92162 Nov 21  2007 avcodec.h~


I will now remove the directory /usr/include/ffmpeg.
Comment 37 Juergen Rose 2011-04-28 13:29:33 UTC
root@condor:/root(2)# qlist -Iv ffmpeg
kde-base/ffmpegthumbs-4.6.2
media-plugins/gst-plugins-ffmpeg-0.10.11-r1
media-video/ffmpeg-0.6.90_rc0-r2
media-video/ffmpegthumbnailer-2.0.6
virtual/ffmpeg-0.6.90
Comment 38 Justin Lecher (RETIRED) gentoo-dev 2011-04-28 13:41:12 UTC
(In reply to comment #36)
> root@condor:/root(51)# ll /usr/include/ffmpeg
> total 96
> -rw-r--r-- 1 root root 92162 Nov 21  2007 avcodec.h~
> 
> 
> I will now remove the directory /usr/include/ffmpeg.

This was/is the problem. Remove the directory and everything is fine.
Comment 39 Juergen Rose 2011-04-28 13:54:17 UTC
root@condor:/root(2)# qlist -Iv ffmpeg
kde-base/ffmpegthumbs-4.6.2
media-plugins/gst-plugins-ffmpeg-0.10.11-r1
media-video/ffmpeg-0.6.90_rc0-r2
media-video/ffmpegthumbnailer-2.0.6
virtual/ffmpeg-0.6.90
Comment 40 Juergen Rose 2011-04-28 13:54:44 UTC
Strange, on both affected computers I have this directory /usr/include/ffmpeg/ with the file avcodec.h~.

After the removal of /usr/include/ffmpeg the compilation of vtk is still continuing.
Comment 41 Juergen Rose 2011-04-28 14:50:29 UTC
... and fails with:
...
cd /var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build/Wrapping/Tcl && /usr/bin/cmake -E cmake_link_script CMakeFiles/pvtk.dir/link.txt --verbose=TRUE
/usr/bin/x86_64-pc-linux-gnu-g++   -march=nocona -O2 -pipe -fomit-frame-pointer   -Wno-deprecated  -Wl,-O1 -Wl,--as-needed  CMakeFiles/pvtk.dir/vtkParaTkAppInit.cxx.o  -o ../../bin/pvtk -rdynamic -L/opt/sun-jdk-1.6.0.25/jre/lib/amd64/xawt -L/opt/sun-jdk-1.6.0.25/jre/lib/amd64/server ../../bin/libvtkCommonTCL.so.5.6.1 ../../bin/libvtkFilteringTCL.so.5.6.1 ../../bin/libvtkGraphicsTCL.so.5.6.1 ../../bin/libvtkImagingTCL.so.5.6.1 ../../bin/libvtkIOTCL.so.5.6.1 ../../bin/libvtkParallelTCL.so.5.6.1 -lmpi_cxx -lmpi -lopen-rte -lopen-pal -ldl -lnsl -lutil -lm -ldl ../../bin/libvtkHybridTCL.so.5.6.1 ../../bin/libvtkWidgetsTCL.so.5.6.1 ../../bin/libvtkVolumeRenderingTCL.so.5.6.1 ../../bin/libvtkGeovisTCL.so.5.6.1 ../../bin/libvtkInfovisTCL.so.5.6.1 ../../bin/libvtkViewsTCL.so.5.6.1 -lnsl -lutil -lm ../../bin/libvtkVolumeRendering.so.5.6.1 ../../bin/libvtkInfovisTCL.so.5.6.1 ../../bin/libvtkWidgetsTCL.so.5.6.1 ../../bin/libvtkHybridTCL.so.5.6.1 ../../bin/libvtkIOTCL.so.5.6.1 -lpq -lmysqlclient -lz -liodbc ../../bin/libvtkRenderingTCL.so.5.6.1 ../../bin/libvtkGraphicsTCL.so.5.6.1 ../../bin/libvtkImagingTCL.so.5.6.1 ../../bin/libvtkFilteringTCL.so.5.6.1 ../../bin/libvtkCommonTCL.so.5.6.1 -ltk -ltcl -lm -lSM -lICE -lX11 -lXext ../../bin/libvtkGeovis.so.5.6.1 ../../bin/libvtkViews.so.5.6.1 ../../bin/libvtkInfovis.so.5.6.1 ../../bin/libvtkWidgets.so.5.6.1 ../../bin/libvtkHybrid.so.5.6.1 ../../bin/libvtkParallel.so.5.6.1 ../../bin/libvtkRendering.so.5.6.1 ../../bin/libvtkGraphics.so.5.6.1 ../../bin/libvtkImaging.so.5.6.1 ../../bin/libvtkIO.so.5.6.1 ../../bin/libvtkFiltering.so.5.6.1 ../../bin/libvtkCommon.so.5.6.1 -lm ../../bin/libvtksys.so.5.6.1 -ldl -Wl,-rpath-link,/var/tmp/portage/sci-libs/vtk-5.6.1/work/vtk-5.6.1_build/bin 
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libx264.so.114, needed by /usr/lib64/libavcodec.so.52, not found (try using -rpath or -rpath-link)
/usr/lib64/libavcodec.so.52: undefined reference to `x264_encoder_headers'
/usr/lib64/libavcodec.so.52: undefined reference to `x264_param_default'
/usr/lib64/libavcodec.so.52: undefined reference to `x264_picture_init'
/usr/lib64/libavcodec.so.52: undefined reference to `x264_encoder_open_114'
/usr/lib64/libavcodec.so.52: undefined reference to `x264_encoder_delayed_frames'
/usr/lib64/libavcodec.so.52: undefined reference to `x264_encoder_close'
/usr/lib64/libavcodec.so.52: undefined reference to `x264_encoder_encode'
/usr/lib64/libavcodec.so.52: undefined reference to `x264_encoder_reconfig'
collect2: ld returned 1 exit status
make[2]: *** [bin/pvtk] Error 1


I have:
root@condor:/root(55)# ll /usr/lib64/libx264*
-rw-r--r-- 1 root root 961202 Apr 28 10:16 /usr/lib64/libx264.a
lrwxrwxrwx 1 root root     14 Apr 28 10:16 /usr/lib64/libx264.so -> libx264.so.115*
-rwxr-xr-x 1 root root 670816 Apr 28 10:16 /usr/lib64/libx264.so.115*

I will try revdep-rebuild.
Comment 42 Justin Lecher (RETIRED) gentoo-dev 2011-04-28 15:03:43 UTC
Okay, that's not our bug anymore. Closing.

For the underlinking problem, file a new bug.