Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 533606 - =sci-libs/vtk-6.1.0 configure fails at JsonCpp
Summary: =sci-libs/vtk-6.1.0 configure fails at JsonCpp
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Justin Lecher (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-26 13:49 UTC by Stephen Bosch
Modified: 2015-01-05 15:03 UTC (History)
0 users

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


Attachments
build log (build.log,62.30 KB, text/plain)
2014-12-26 13:51 UTC, Stephen Bosch
Details
development ebuild for vtk-6.1.0 (vtk-6.1.0.ebuild,9.04 KB, text/plain)
2014-12-26 14:52 UTC, Stephen Bosch
Details
build log (build.log,63.43 KB, text/plain)
2014-12-26 20:05 UTC, Stephen Bosch
Details
vtk 6.1.0 build log (build.log,35.37 KB, text/plain)
2014-12-27 13:46 UTC, Yury Gavrilovich
Details
New ebuild with jsoncpp as required dependency (vtk-6.1.0-r1.ebuild,10.07 KB, text/plain)
2014-12-28 21:46 UTC, Stephen Bosch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen Bosch 2014-12-26 13:49:53 UTC
Configure fails looking for JsonCpp.

Reproducible: Always

Steps to Reproduce:
1. emerge -av vtk


Actual Results:  
-- Performing Test GLX_DEFINES_TYPE_GLXFBConfig - Success
-- GLX_DEFINES_MACRO_GLX_VERSION_1_1=1
-- GLX_DEFINES_MACRO_GLX_VERSION_1_2=1
-- GLX_DEFINES_MACRO_GLX_VERSION_1_3=1
-- GLX_DEFINES_MACRO_GLX_VERSION_1_4=1
-- GLX_DEFINES_MACRO_GLX_ARB_get_proc_address=1
-- GLX_INCLUDES_GLXEXT=1
-- GLX_USES_MACRO_GLX_GLXEXT_LEGACY=TRUE
-- GLX_DEFINES_TYPE_GLXextFuncPtr=1
-- GLX_DEFINES_TYPE_GLXextFuncPtr_AS_EMPTY=
-- GLX_DECLARES_FUNCTION_glXGetProcAddressARB=1
-- GLX_DECLARES_FUNCTION_glXGetProcAddress=1
-- GLX_DECLARES_FUNCTION_glXGetProcAddressARB_AS_EMPTY=
-- GLX_DECLARES_FUNCTION_glXGetProcAddress_AS_EMPTY=
-- GLX_DEFINES_TYPE_GLXFBConfig=1
-- Looking for glXGetProcAddressARB
-- Looking for glXGetProcAddressARB - found
-- Looking for glXGetProcAddressARB in GL/glx.h
-- Looking for glXGetProcAddressARB in GL/glx.h - TRUE
-- Found GL2PS: /usr/lib64/libgl2ps.so  
-- Found LibXml2: /usr/lib64/libxml2.so (found version "2.9.2") 
CMake Error at CMake/FindPackageHandleStandardArgs.cmake:97 (MESSAGE):
  Could NOT find JsonCpp (missing: JsonCpp_LIBRARIES JsonCpp_INCLUDE_DIRS)
Call Stack (most recent call first):
  CMake/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE)
  CMake/FindJsonCpp.cmake:23 (find_package_handle_standard_args)
  CMake/vtkModuleMacros.cmake:702 (find_package)
  ThirdParty/jsoncpp/CMakeLists.txt:1 (vtk_module_third_party)


-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/sci-libs/vtk-6.1.0/work/vtk-6.1.0_build/CMakeFiles/CMakeOutput.log".
See also "/var/tmp/portage/sci-libs/vtk-6.1.0/work/vtk-6.1.0_build/CMakeFiles/CMakeError.log".


Expected Results:  
An ebuild I prepared myself configures and builds successfully with USE="-examples".

GENTOO_VM=  CLASSPATH="" JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="" COMPILER=""

# emerge --info '=sci-libs/vtk-6.1.0::gentoo'
Portage 2.2.14 (python 3.3.5-final-0, default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.19-r1, 3.16.5-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.16.5-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9400_@_2.53GHz-with-gentoo-2.2
KiB Mem:     8090616 total,    569824 free
KiB Swap:    3903788 total,   3893176 free
Timestamp of tree: Fri, 26 Dec 2014 13:00:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p53
dev-java/java-config:     2.2.0
dev-lang/perl:            5.18.2-r2
dev-lang/python:          2.7.7, 3.3.5-r1, 3.4.1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.7.3-r1, 4.8.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo kde tox-overlay science gis
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://mirror.netcologne.de/gentoo/ rsync://mirror.netcologne.de/gentoo/"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/kde /var/lib/layman/tox-overlay /var/lib/layman/science /var/lib/layman/gis"
USE="X a52 aac acl acpi alsa amd64 amr bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus device-mapper dri dts dvd dvdr emboss encode exif extras faac fam firefox flac fortran gdbm gif gimp glamor gpm gtk hwdb iconv icu ipv6 jpeg kde kdeprefix laptop lcms ldap libnotify lm_sensors mad mmx mng modules mp3 mp4 mpeg multilib ncurses nls nptl nsplugin ogg opengl openmp pam pango parport pcre pdf perl png policykit ppds python qt3support qt4 readline rtmp sdl semantic-desktop session spell sqlite sse sse2 sse3 ssl ssse3 startup-notification svg taglib tcpd theora threads tiff truetype udev udisks unicode upower usb v4l video vorbis win32codecs wxwidgets x264 xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ublox ubx" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en fr nb nb_NO en_GB en_CA" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel vesa radeon" 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"
USE_PYTHON="2.7 3.3"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC
Comment 1 Stephen Bosch 2014-12-26 13:51:02 UTC
Created attachment 392440 [details]
build log
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2014-12-26 14:14:36 UTC
Could you please show me your version?
Comment 3 Stephen Bosch 2014-12-26 14:52:27 UTC
Created attachment 392448 [details]
development ebuild for vtk-6.1.0
Comment 4 Justin Lecher (RETIRED) gentoo-dev 2014-12-26 18:16:49 UTC
Please try again with. I commit a fix.
Comment 5 Stephen Bosch 2014-12-26 20:04:44 UTC
(In reply to Justin Lecher from comment #4)
> Please try again with. I commit a fix.

I did emerge sync and tried

emerge -av =sys-libs/vtk-6.1.0::gentoo

and got almost the same error:

-- Performing Test GLX_DEFINES_TYPE_GLXFBConfig - Success
-- GLX_DEFINES_MACRO_GLX_VERSION_1_1=1
-- GLX_DEFINES_MACRO_GLX_VERSION_1_2=1
-- GLX_DEFINES_MACRO_GLX_VERSION_1_3=1
-- GLX_DEFINES_MACRO_GLX_VERSION_1_4=1
-- GLX_DEFINES_MACRO_GLX_ARB_get_proc_address=1
-- GLX_INCLUDES_GLXEXT=1
-- GLX_USES_MACRO_GLX_GLXEXT_LEGACY=TRUE
-- GLX_DEFINES_TYPE_GLXextFuncPtr=1
-- GLX_DEFINES_TYPE_GLXextFuncPtr_AS_EMPTY=
-- GLX_DECLARES_FUNCTION_glXGetProcAddressARB=1
-- GLX_DECLARES_FUNCTION_glXGetProcAddress=1
-- GLX_DECLARES_FUNCTION_glXGetProcAddressARB_AS_EMPTY=
-- GLX_DECLARES_FUNCTION_glXGetProcAddress_AS_EMPTY=
-- GLX_DEFINES_TYPE_GLXFBConfig=1
-- Looking for glXGetProcAddressARB
-- Looking for glXGetProcAddressARB - found
-- Looking for glXGetProcAddressARB in GL/glx.h
-- Looking for glXGetProcAddressARB in GL/glx.h - TRUE
-- Found GL2PS: /usr/lib64/libgl2ps.so  
-- Found LibXml2: /usr/lib64/libxml2.so (found version "2.9.2") 
CMake Error at CMake/FindPackageHandleStandardArgs.cmake:97 (MESSAGE):
  Could NOT find JsonCpp (missing: JsonCpp_LIBRARIES JsonCpp_INCLUDE_DIRS)
Call Stack (most recent call first):
  CMake/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE)
  CMake/FindJsonCpp.cmake:23 (find_package_handle_standard_args)
  CMake/vtkModuleMacros.cmake:702 (find_package)
  ThirdParty/jsoncpp/CMakeLists.txt:1 (vtk_module_third_party)


-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/sci-libs/vtk-6.1.0/work/vtk-6.1.0_build/CMakeFiles/CMakeOutput.log".
See also "/var/tmp/portage/sci-libs/vtk-6.1.0/work/vtk-6.1.0_build/CMakeFiles/CMakeError.log".
 * ERROR: sci-libs/vtk-6.1.0::gentoo failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_configure
 *   environment, line 5546:  Called cmake-utils_src_configure
 *   environment, line 1127:  Called _execute_optionally 'src_configure'
 *   environment, line  470:  Called enable_cmake-utils_src_configure
 *   environment, line 1603:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 * 
 * If you need support, post the output of `emerge --info '=sci-libs/vtk-6.1.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sci-libs/vtk-6.1.0::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info =vtk-6.1.0
 * The complete build log is located at '/var/tmp/portage/sci-libs/vtk-6.1.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-libs/vtk-6.1.0/temp/environment'.
 * Working directory: '/var/tmp/portage/sci-libs/vtk-6.1.0/work/vtk-6.1.0_build'
 * S: '/var/tmp/portage/sci-libs/vtk-6.1.0/work/VTK-6.1.0'

I will attach the build log.

This error would be expected if jsoncpp is not present. I suspect that if I were to build jsoncpp, configure would succeed, but USE="-json" should make it so that JSON isn't requested in the first place.
Comment 6 Stephen Bosch 2014-12-26 20:05:48 UTC
Created attachment 392458 [details]
build log
Comment 7 Yury Gavrilovich 2014-12-27 13:46:11 UTC
Created attachment 392512 [details]
vtk 6.1.0 build log
Comment 8 Yury Gavrilovich 2014-12-27 13:47:56 UTC
Looks like I've got the same error as Stephen Bosch has:
Since I don't need vtk on my home PC, I was trying to emerge it to test reproducibility of another bug with the following command:
USE="tcl tk rendering" emerge vtk

$ emerge --info
Portage 2.2.14 (python 2.7.9-final-0, default/linux/amd64/13.0/desktop, gcc-4.8.3, glibc-2.19-r1, 3.16.5-gentoo x86_64)
=================================================================
System uname: Linux-3.16.5-gentoo-x86_64-AMD_Phenom-tm-_II_X4_925_Processor-with-gentoo-2.2
KiB Mem:     4047472 total,    209716 free
KiB Swap:    2251740 total,   2246088 free
Timestamp of tree: Sat, 27 Dec 2014 12:45:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p53
dev-java/java-config:     2.2.0
dev-lang/perl:            5.18.2-r2
dev-lang/python:          2.7.9-r1, 3.2.5-r6, 3.3.5-r1, 3.4.1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.11.6-r1, 1.12.6, 1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.7.3-r1, 4.8.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=amdfam10 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=amdfam10 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://gentoo.po.opole.pl ftp://gentoo.po.opole.pl http://gentoo.mirror.pw.edu.pl/ http://mirror.yandex.ru/gentoo-distfiles/ ftp://mirror.yandex.ru/gentoo-distfiles/"
LANG="en_US.utf8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.cz.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 apache apache2 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr chm cli color consolekit cracklib crypt cups cxx dbus djvu dri dts dvd dvdr emacs emboss encode exif faac fam ffmpeg firefox flac fortran gdbm gif glamor gpm gtk iconv icq ipv6 irc jabber jpeg jpeg2k lcms ldap libnotify lzma mad mmx mmxext mng modules mp3 mp4 mpeg mplayer multilib mysql ncurses nls nptl ntfs ogg opengl openmp pam pango pcre pdf pdo php png policykit ppds pulseaudio python qt3support readline sdl session spell sse sse2 sse3 sse4 ssl ssse3 startup-notification svg tcpd tiff tk truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5 php5-4 php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3 python2_7 python 3_2 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="radeon fglrx" 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"
USE_PYTHON="2.7 3.2 3.3"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 9 David Kredba 2014-12-28 07:57:07 UTC
With dev-libs/jsoncpp present in the system it works.
Found JsonCpp: /usr/lib64/libjsoncpp.so

Dev-libs/jsoncpp is missing as dependency in .ebuild.
Comment 10 Stephen Bosch 2014-12-28 09:37:29 UTC
(In reply to David Kredba from comment #9)
> With dev-libs/jsoncpp present in the system it works.
> Found JsonCpp: /usr/lib64/libjsoncpp.so
> 
> Dev-libs/jsoncpp is missing as dependency in .ebuild.

JsonCpp is not a hard dependency. This is primarily a configuration problem; my ebuild builds fine without dev-libs/jsoncpp when USE="-examples". Please see https://bugs.gentoo.org/show_bug.cgi?id=533606#c5.
Comment 11 Stephen Bosch 2014-12-28 10:42:06 UTC
The reason for the difference between my ebuild (which configures without dev-libs/jsoncpp) and the current one in tree is the following:

126c145,147
< 	for x in expat freetype gl2ps hdf5 jpeg libxml2 netcdf oggtheora png tiff zlib; do
---
> 	# missing: VPIC alglib exodusII freerange ftgl libproj4 mrmpi sqlite utf8 verdict xmdf2 xmdf3
> 	for x in expat freetype gl2ps hdf5 jpeg jsoncpp libxml2 netcdf oggtheora png tiff zlib; do
> 		ebegin "Dropping bundled ${x}"
127a149
> 		eend $?

The bundled jsoncpp is not dropped in my ebuild, which suggests that jsoncpp is a hard dependency, after all.
Comment 12 Stephen Bosch 2014-12-28 21:43:16 UTC
Removing jsoncpp from these lines

   for x in expat freetype gl2ps hdf5 jpeg jsoncpp libxml2 netcdf oggtheora png tiff zlib; do

        ebegin "Dropping bundled ${x}"
        rm -r ThirdParty/${x}/vtk${x} || die
        eend $?

did not, as expected, result in configuration succeeding. I get the same error.

Patch vtk-6.1.0-system.patch is the reason. If that is omitted, then configuration succeeds. Whatever the case, it seems that jsoncpp is a required dependency (at least it is if we want to avoid using bundled third party libraries!) After adding it to RDEPEND, there is no more jsoncpp error.

I will post my revised ebuild.

However, with USE="examples" configuration is still failing, so that problem remains unresolved.

I am also skeptical about all the patches, they look like they were taken over from the 6.0.0 ebuild. Are they necessary? I can get vtk-6.1.0 to build without them.
Comment 13 Stephen Bosch 2014-12-28 21:46:16 UTC
Created attachment 392606 [details]
New ebuild with jsoncpp as required dependency

This version pulls jsoncpp.
Comment 14 Juergen Rose 2015-01-01 15:48:04 UTC
(In reply to Stephen Bosch from comment #13)
> Created attachment 392606 [details]
> New ebuild with jsoncpp as required dependency
> 
> This version pulls jsoncpp.

Thanks Stephen,

the ebuild works for me.
Comment 15 Stephen Bosch 2015-01-02 17:10:38 UTC
(In reply to Juergen Rose from comment #14)
> (In reply to Stephen Bosch from comment #13)
> > Created attachment 392606 [details]
> > New ebuild with jsoncpp as required dependency
> > 
> > This version pulls jsoncpp.
> 
> Thanks Stephen,
> 
> the ebuild works for me.

That is good news; strangely, it fails for me at installation (bug 534036). Do you have USE="web", perhaps?
Comment 16 Alexis Ballier gentoo-dev 2015-01-05 15:03:14 UTC
+*vtk-6.1.0-r1 (05 Jan 2015)
+
+  05 Jan 2015; Alexis Ballier <aballier@gentoo.org> +vtk-6.1.0-r1.ebuild:
+  Add missing dep on jsoncpp, bug #533606 by Stephen Bosch; do not set
+  VTK_INSTALL_NO_DEVELOPMENT=ON as this makes it installs only libraries, not
+  headers nor cmake helpers, bug #534750 by Andreas Schäfer; override
+  webapp.eclass exported functions as we want webapp support optional, bug
+  #534036
+

thanks!