Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 605318 - media-gfx/k3d-0.8.0.5 fails to build
Summary: media-gfx/k3d-0.8.0.5 fails to build
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard: Pending removal: 2018-04-17
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2017-01-10 22:27 UTC by Fabian Kislat
Modified: 2018-04-29 18:01 UTC (History)
2 users (show)

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


Attachments
Build log (build.log,367.78 KB, text/plain)
2017-01-10 22:27 UTC, Fabian Kislat
Details
Output of emerge --info (emerge-info,6.07 KB, text/plain)
2017-01-10 22:28 UTC, Fabian Kislat
Details
Patch for utility.cpp (gtkmm-2.24.5.patch,250 bytes, patch)
2017-01-10 22:48 UTC, Fabian Kislat
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Kislat 2017-01-10 22:27:10 UTC
With dev-cpp/glibmm-2.48.1 and dev-cpp/gtkmm-2.24.5 k3d 0.8.0.5 won't compile due to a missing #include <glibmm/main.h> in k3dsdk/ngui/utility.cpp.

Reproducible: Always

Steps to Reproduce:
1. emerge media-gfx/k3d-0.8.0.5



emerge -pqv '=media-gfx/k3d-0.8.0.5::gentoo'

[ebuild  N    ] media-gfx/k3d-0.8.0.5  USE="jpeg nls png python tiff truetype -3ds -cuda -gnome -gts -imagemagick -openexr"
Comment 1 Fabian Kislat 2017-01-10 22:27:57 UTC
Created attachment 459536 [details]
Build log
Comment 2 Fabian Kislat 2017-01-10 22:28:51 UTC
Created attachment 459538 [details]
Output of emerge --info
Comment 3 Fabian Kislat 2017-01-10 22:48:43 UTC
Created attachment 459540 [details, diff]
Patch for utility.cpp
Comment 4 Fabian Kislat 2017-01-10 22:53:19 UTC
Note that this has been fixed upstream, but there is no release with the fix, yet.
Comment 5 Bob Johnson 2017-03-24 18:27:47 UTC
I ran into this as well. I also had two other issues compiling k3d-0.8.0.5:

1) The build system picks up the installation of dev-games/ode-0.12 and tries to build a plugin module, which fails with:

media-gfx:k3d-0.8.0.5:20170324-154647.log:/usr/include/ode/common.h:111:2: error: #error You must #define dSINGLE or dDOUBLE

That was fixed by adding the following line in the ebuild:

        -DK3D_BUILD_ODE_MODULE=OFF

as dev-games/ode isn't listed as a dependency in the ebuild and it appears the ODE module is an experimental one.

I also ran into:

../lib64/libk3dsdk.so.1: undefined reference to `boost::system::system_category()'
../lib64/libk3dsdk.so.1: undefined reference to `boost::system::generic_category()'
collect2: error: ld returned 1 exit status
make[2]: *** [make-module-proxy/CMakeFiles/k3d-make-module-proxy.dir/build.make:106: bin/k3d-make-module-proxy] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-gfx/k3d-0.8.0.5/work/k3d-0.8.0.5_build'
make[1]: *** [CMakeFiles/Makefile2:1067: make-module-proxy/CMakeFiles/k3d-make-module-proxy.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

That was fixed with this patch:

--- k3d-k3d-0.8.0.5/cmake/modules/K3DFindBoost.cmake    2015-11-07 05:00:59.000000000 -0800
+++ /tmp/K3DFindBoost.cmake     2017-03-24 09:26:12.996407233 -0700
@@ -7,4 +7,5 @@
 SET(Boost_ADDITIONAL_VERSIONS 1.43 1.43.0)
 SET(Boost_USE_MULTITHREADED ${K3D_BOOST_USE_MULTITHREADED})
 FIND_PACKAGE(Boost 1.42 COMPONENTS ${K3D_BOOST_COMPONENTS} REQUIRED)
+ADD_DEFINITIONS(-DBOOST_SYSTEM_NO_DEPRECATED)


After applying the above two fixes, plus the patch in this bug, k3d compiled. However, the program segfaults five out of six times when trying to start it. (Just keep trying and it will eventually 'catch'.) It doesn't seem to be a particularly polished app, so I lost interest in it at that point and didn't debug any further. Back to blender.

# emerge --info media-gfx/k3d 
Portage 2.3.3 (python 2.7.12-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-4.9.4, glibc-2.23-r3, 4.9.16-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.9.16-gentoo-x86_64-Intel-R-_Core-TM-_i5-3570_CPU_@_3.40GHz-with-gentoo-2.3
KiB Mem:    32936536 total,  15760108 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of repository gentoo: Fri, 24 Mar 2017 15:15:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.22.3_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.23.2::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.26.1::gentoo
sys-devel/gcc:            4.9.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.namerica.gentoo.org/gentoo-portage
    priority: -1000

local
    location: /usr/local/portage
    masters: gentoo
    priority: 0

printer-drivers
    location: /var/lib/layman/printer-drivers
    masters: gentoo
    priority: 50

vmware
    location: /var/lib/layman/vmware
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA vmware"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php7.0/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=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-march=native -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 xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 apache2 berkdb bluetooth branding bzip2 cairo cdda cdr cli colord consolekit cracklib crypt cups curl cxx dbus declarative doc dri dts dvd dvdr emboss encode examples exif fam firefox flac fontconfig fortran gcj gd gdbm gif glamor gtk handbook iconv icu ipv6 jack java jbig jpeg jpeg2k kde kipi kpathsea kwallet lcms ldap libnotify lzma mad mbox mng modules mp3 mp4 mpeg multilib ncurses nls nptl odbc ogg openexr opengl openmp pam pango pcre pdf phonon plasma png policykit postgres ppds qml qt3support qt4 qt5 readline sdl seccomp semantic-desktop session source spell ssl startup-notification svg t1lib tcpd threads tiff truetype udev udisks unicode upower usb vim-syntax vorbis webp widgets wxwidgets x264 xattr xcb xcomposite xinerama xml xpm xscreensaver xv xvid zlib" ABI_X86="64 32" 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="actions alias auth_basic auth_digest authn_anon authn_core authn_dbd authn_dbm authn_default authn_file authz_core 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 http2 ident imagemap include info lbmethod_byrequests log_config log_forensic logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif slotmem_shm socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon" 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 isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="keyboard mouse evdev vmmouse wacom joystick" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver presenter-minimizer wiki-publisher" LINGUAS="en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-0" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" SANE_BACKENDS="epson2" USERLAND="GNU" VIDEO_CARDS="fbdev intel r600 radeon vesa vmware" XFCE_PLUGINS="clock 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

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

media-gfx/k3d-0.8.0.5::gentoo was built with the following:
USE="gts jpeg nls openexr png tiff truetype -3ds -cuda -gnome -imagemagick -python" ABI_X86="64"
Comment 6 Pacho Ramos gentoo-dev 2018-04-29 18:01:43 UTC
removed