Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 547322 - media-gfx/brlcad-7.18.4 mged fails to find from dev-tcltk/itk-3.4.1
Summary: media-gfx/brlcad-7.18.4 mged fails to find from dev-tcltk/itk-3.4.1
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 1 vote (vote)
Assignee: Dongxu Li
Whiteboard: Pending removal: 2016-12-27
Keywords: PMASKED
Depends on:
Blocks: 586300
  Show dependency tree
Reported: 2015-04-21 17:02 UTC by Gustav Schaffter
Modified: 2016-12-31 14:08 UTC (History)
5 users (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Gustav Schaffter 2015-04-21 17:02:46 UTC
When brlcad 7.18.4 is built, it will link to /usr/lib64/itk3.4 but will fail to find the library from that directory.

Don't know if the problem is considered being in brlcad or itk, so for the time being I name both of them. Developers will point their fingers in the desired direction...

See my 'dirty' work-around below.

Reproducible: Always

Steps to Reproduce:
1. emerge media-gfx/brlcad-7.18.4
2. open terminal window
3. run mged
4. Read error messsage
Actual Results:  
user$ mged
mged: error while loading shared libraries: cannot open shared object file: No such file or directory

root# locate

root# qfile /usr/lib64/itk3.4/
dev-tcltk/itk (/usr/lib64/itk3.4/

root# eix -I dev-tcltk/itk
[I] dev-tcltk/itk
     Available versions:  3.4_pre20090417 ~3.4_pre20090417-r1 3.4.1 ~4.0.0 ~4.0.1 {test}
     Installed versions:  3.4.1(05:24:01 PM 04/15/2015)(-test)
     Description:         Object Oriented Enhancements for Tcl/Tk

Let's use brlcad's built-in diagnose utility...

user$ brlcad-config --cflags
-I/usr/brlcad/include/brlcad -I/usr/brlcad/include -DBRLCADBUILD=1 -O2 -march=athlon64 -pipe -fno-strict-aliasing -fno-common -fexceptions -w

user$ brlcad-config --ldflags
-L/usr/brlcad/lib64 -Wl,-O1 -Wl,--as-needed -L/usr/lib64/itcl3.4 -L/usr/lib64/itk3.4 -L/usr/local/lib64 -L/usr/local/lib -pipe -fno-strict-aliasing -fno-common -fexceptions -w

Obviously, brlcad as installed by default looks for libraries in /usr/lib64/itk3.4 but fails to find it.

Apparently it also looks in /usr/lib64/ because if I do the following 'dirty' workaround, it will work:

root# cd /usr/lib64
root# ln -s itk3.4/ .

user$ mged    #And mged starts as expected.

As I said, a dirty work-around, but it could/should help to pin-point the actual problem.

Expected Results:  
mged should find the library and start execution without root having to create a local symlink in a non-standard way.

root# emerge --info
Portage 2.2.18 (python 2.7.9-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.8.4, glibc-2.20-r2, 3.18.11-gentoo-embla x86_64)
System uname: Linux-3.18.11-gentoo-embla-x86_64-AMD_Athlon-tm-_64_Processor_4000+-with-gentoo-2.2
KiB Mem:     2055700 total,     30704 free
KiB Swap:     996024 total,    575496 free
Timestamp of repository gentoo: Tue, 21 Apr 2015 01:45:01 +0000
sh bash 4.2_p53
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p53::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r1::gentoo, 3.3.5-r1::gentoo, 3.4.1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.13.11::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.10.3-r1::gentoo, 1.11.6-r1::gentoo, 1.13.4::gentoo
sys-devel/binutils:       2.24-r3::gentoo
sys-devel/gcc:            4.7.3-r1::gentoo, 4.8.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo

    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://
    priority: -1000

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

CFLAGS="-O2 -march=athlon64 -pipe"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=athlon64 -pipe"
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 sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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"
USE="X a52 aac acl acpi alsa amd64 apache2 bazaar berkdb branding bsf bzip2 cacert cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fortran freeimage gd gdbm gif glamor gpm gstreamer gtk iconv icu ipv6 java jpeg kde kdenlive kipi lcms ldap libnotify lua mad melt mercurial mikmod mjpeg mmx mmxext mng mod modules mono mp3 mp4 mpeg multilib mysql ncurses nls nptl offlinehelp ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds python qt3support qt4 readline scanner sdl semantic-desktop session soprano spell sqlite sse sse2 ssl startup-notification svg tcpd threads tiff tk tools truetype tty-helpers udev udisks unicode upower usb vorbis wavpack wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="64 32" ALSA_CARDS="intel8x0 usb-audio" 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 cgi 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 authn_core authz_core unixd socache_shmcb" APACHE2_MPMS="worker" 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="3dnow 3dnowext mmx mmxext sse sse2" 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 pdfimport" LINGUAS="en en_US en_GB fr it sv" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" SANE_BACKENDS="canon net" USERLAND="GNU" VIDEO_CARDS="nouveau" 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"
Comment 1 Pacho Ramos gentoo-dev 2016-11-07 11:09:17 UTC
We need to either get the newer versions from sci overlay here (they will use :8.5 slot for tcl/tk) or this be treecleaned and push people to rely on sci overlay (as it seems this ebuild is really outdated compared with the one in overlay)
Comment 2 Martin DiViaio 2016-11-28 20:55:00 UTC
The sci overlay version of brl-cad is dependant on tcl/tk 8.5. This, for me, created a circular dependency problem where many packages om the system wanted tcl/tk 8.6 and brl-cad wanted 8.5 and tcl/tk doesn't slot.

What I found was that brl-cad sources have a bundled tcl implementation that can be enabled at build time.

I added the following to src_configure():


This goes just before the call to cmake-utils_src_configure in src_configure().

I was then able to remove the version lock on dev-lang/tcl and dev-lang/tk in $DEPEND.

Obaviously, I did this from brlcad-9999.ebuild in my own custom overlay.

Comment 3 Pacho Ramos gentoo-dev 2016-12-31 14:08:05 UTC