During the test phase of media-libs/libvisio-0.1.3, the test "test-importtest.o" can not be build due to undefined references to "librevenge::RVNGFileStream::RVNGFileStream(char const*)" and "librevenge::RVNGFileStream::~RVNGFileStream()." /bin/sh ../../libtool --tag=CXX --mode=link x86_64-pc-linux-gnu-g++ -I../../inc -I/usr/include/librevenge-0.0 -I/usr/include/libxml2 -DNDEBUG -march=native -mtune=native -O2 -pipe -fvisibility=hidden -DLIBVISIO_VISIBILITY -Wall -Wextra -Wshadow -pedantic -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -o test test-xmldrawinggenerator.o test-importtest.o test-test.o ../lib/libvisio-0.1.la -lcppunit -lrevenge-0.0 -lxml2 -lz -licui18n -licuuc -licudata libtool: link: x86_64-pc-linux-gnu-g++ -I../../inc -I/usr/include/librevenge-0.0 -I/usr/include/libxml2 -DNDEBUG -march=native -mtune=native -O2 -pipe -fvisibility=hidden -DLIBVISIO_VISIBILITY -Wall -Wextra -Wshadow -pedantic -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -o .libs/test test-xmldrawinggenerator.o test-importtest.o test-test.o ../lib/.libs/libvisio-0.1.so -lcppunit -lrevenge-0.0 -lxml2 -lz -licui18n -licuuc -licudata test-importtest.o: In function `(anonymous namespace)::parse(char const*, _xmlBuffer*)': importtest.cpp:(.text+0xf21): undefined reference to `librevenge::RVNGFileStream::RVNGFileStream(char const*)' importtest.cpp:(.text+0x12a4): undefined reference to `librevenge::RVNGFileStream::~RVNGFileStream()' importtest.cpp:(.text+0x1563): undefined reference to `librevenge::RVNGFileStream::~RVNGFileStream()' collect2: error: ld returned 1 exit status Makefile:624: recipe for target 'test' failed make[3]: *** [test] Error 1 make[3]: Leaving directory '/var/tmp/portage/media-libs/libvisio-0.1.3/work/libvisio-0.1.3/src/test' Makefile:952: recipe for target 'check-am' failed make[2]: *** [check-am] Error 2 make[2]: Leaving directory '/var/tmp/portage/media-libs/libvisio-0.1.3/work/libvisio-0.1.3/src/test' Makefile:381: recipe for target 'check-recursive' failed make[1]: *** [check-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/media-libs/libvisio-0.1.3/work/libvisio-0.1.3/src' Makefile:489: recipe for target 'check-recursive' failed make: *** [check-recursive] Error 1 * ERROR: media-libs/libvisio-0.1.3::gentoo failed (test phase): * Make check failed. See above for details. * * Call stack: * ebuild.sh, line 93: Called src_test * environment, line 2029: Called default * phase-functions.sh, line 763: Called default_src_test * phase-functions.sh, line 792: Called __eapi0_src_test * phase-helpers.sh, line 760: Called die * The specific snippet of code: * $emake_cmd ${internal_opts} check || \ * die "Make check failed. See above for details." * * If you need support, post the output of `emerge --info '=media-libs/libvisio-0.1.3::gentoo'`, * the complete build log and the output of `emerge -pqv '=media-libs/libvisio-0.1.3::gentoo'`. * The complete build log is located at '/var/tmp/portage/media-libs/libvisio-0.1.3/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-libs/libvisio-0.1.3/temp/environment'. * Working directory: '/var/tmp/portage/media-libs/libvisio-0.1.3/work/libvisio-0.1.3' * S: '/var/tmp/portage/media-libs/libvisio-0.1.3/work/libvisio-0.1.3' >>> Failed to emerge media-libs/libvisio-0.1.3, Log file: Reproducible: Always # emerge --info '=media-libs/libvisio-0.1.3::gentoo' Portage 2.2.20 (python 3.4.3-final-0, hardened/linux/amd64/no-multilib, gcc-4.9.3, glibc-2.21-r1, 4.1.4 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-4.1.4-x86_64-Intel-R-_Core-TM-_i7-3720QM_CPU_@_2.60GHz-with-gentoo-2.2 KiB Mem: 16400108 total, 12577356 free KiB Swap: 17825788 total, 17825788 free Timestamp of repository gentoo: Fri, 07 Aug 2015 08:30:01 +0000 sh bash 4.3_p39 ld GNU ld (Gentoo 2.25.1 p1.0) 2.25.1 app-shells/bash: 4.3_p39::gentoo dev-java/java-config: 2.2.0::gentoo dev-lang/perl: 5.22.0::gentoo dev-lang/python: 2.7.10::gentoo, 3.4.3::gentoo dev-util/cmake: 3.3.0::gentoo dev-util/pkgconfig: 0.28-r3::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.17::gentoo sys-apps/sandbox: 2.6-r1::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r1::gentoo sys-devel/automake: 1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo sys-devel/binutils: 2.25.1::gentoo sys-devel/gcc: 4.7.4::gentoo, 4.8.5::gentoo, 4.9.3::gentoo sys-devel/gcc-config: 1.8::gentoo sys-devel/libtool: 2.4.6-r1::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 4.1::gentoo (virtual/os-headers) sys-libs/glibc: 2.21-r1::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 local location: /var/lib/portage-local/local masters: gentoo priority: 0 testing location: /var/lib/portage-local/testing masters: gentoo priority: 1 science location: /var/lib/layman/science masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -mtune=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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=native -mtune=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps=y" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs cgroup collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox news parallel-fetch preserve-libs protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu" MAKEOPTS="-j8" 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" USE="X a52 acl acpi alsa amd64 avx berkdb bzip2 cairo caps cdda cddb cdparanoia cli cracklib crypt cups cxx dbus dri dts dvd fam ffmpeg fftw flac fontconfig foomaticdb gdbm gif gimp gmp gnutls gtk hardened iconv icu idn ipv6 jpeg justify lame lcms libnotify lzma mad matroska mmap mmx mmxext modules mp3 mpeg ncurses networkmanager nptl ogg opengl openmp pam pcre pie png policykit ppds readline sasl sdl session sse sse2 sse3 sse4 sse4_1 sse4_2 ssl ssp ssse3 startup-notification svg tcpd theora threads tiff truetype udev udisks unicode upower vaapi vorbis wayland x264 xattr xcb xml xtpax 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" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev synaptics" 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" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="i965 intel nouveau" XFCE_PLUGINS="battery brightness logout menu power trash" 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, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON # emerge -pqv '=media-libs/libvisio-0.1.3::gentoo' [ebuild U ] media-libs/libvisio-0.1.3 [0.1.1] USE="{test} -doc -static-libs -tools%"
Created attachment 408462 [details] build.log
This "works" if built with USE=tools, because that triggers configure to check for and add the necessary reference to librevenge-stream. I use quote marks because the tests still fail for me, but I'm still investigating that and it might turn out to be a local problem.
See also: https://github.com/gentoo/gentoo/pull/178
(In reply to David Leverton from comment #2) > I use quote marks because the tests still fail for me So there are two failures reported in the log: Test name: ImportTest::testVsdMetadataTitleUtf8 equality assertion failed - Expected: 2014-11-26T09:24:56Z - Actual : 2014-11-26T08:24:56Z - Attribute 'creation-date' of '/document/setDocumentMetaData': incorrect value and Test name: ImportTest::testVsdxCharBgColor equality assertion failed - Expected: 1 - Actual : 3 - In <>, XPath '/document/page/layer/textObject/paragraph/span' number of nodes is incorrect The first seems to represent an actual bug in the library - it decodes the timestamp using local time, but then puts a "Z" in the result indicating UTC (and even if it used a proper time zone specification, that would break the string comparison used in the test). The "expected" string is from a UTC+1 time zone, and the test passes with the TZ environment variable set accordingly. I think the second is covered by a patch in the above-mentioned pull request, which is good because I have no desire to investigate that mess of OOXML or the way it gets translated to the library's own data model....
FYI media-libs/libvisio-0.1.5 passes all tests for me.
(In reply to tka from comment #5) > FYI media-libs/libvisio-0.1.5 passes all tests for me. OK fixed then, stabilizing that.