Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 624576 - sci-libs/plplot-5.12.0-r1[tcl] : libplplottcltk.so.13.0.0: undefined reference to Matrix_Init
Summary: sci-libs/plplot-5.12.0-r1[tcl] : libplplottcltk.so.13.0.0: undefined referenc...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 644414
  Show dependency tree
 
Reported: 2017-07-11 17:56 UTC by Toralf Förster
Modified: 2019-12-27 12:53 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.55 KB, text/plain)
2017-07-11 17:56 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,133.88 KB, text/plain)
2017-07-11 17:57 UTC, Toralf Förster
Details
environment (environment,225.28 KB, text/plain)
2017-07-11 17:57 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,23.01 KB, application/x-bzip)
2017-07-11 17:57 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,10.01 KB, application/x-bzip)
2017-07-11 17:57 UTC, Toralf Förster
Details
sci-libs:plplot-5.12.0-r1:20170711-032132.log (sci-libs:plplot-5.12.0-r1:20170711-032132.log,115.43 KB, text/plain)
2017-07-11 17:57 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,56.65 KB, application/x-bzip)
2017-07-11 17:57 UTC, Toralf Förster
Details
build.log (build.log,122.10 KB, text/plain)
2017-10-16 17:03 UTC, Martin Mokrejš
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-07-11 17:56:54 UTC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libqsastime.so.0, needed by ../../src/libplplot.so.14.0.0, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libtclmatrix.so.10, needed by libplplottcltk.so.13.0.0, not found (try using -rpath or -rpath-link)
libplplottcltk.so.13.0.0: undefined reference to `Matrix_Init'
../../src/libplplot.so.14.0.0: undefined reference to `btimeqsas'
../../src/libplplot.so.14.0.0: undefined reference to `csa_addpoints'
../../src/libplplot.so.14.0.0: undefined reference to `csa_create'

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 13.0-desktop-plasma_20170706-205055

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-6.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python2.7 (fallback)
  [3]   pypy (fallback)
Available Ruby profiles:
  [1]   ruby21 (with Rubygems) *
  [2]   ruby22 (with Rubygems)
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.4.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm
Comment 1 Toralf Förster gentoo-dev 2017-07-11 17:56:57 UTC
Created attachment 483132 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-07-11 17:57:00 UTC
Created attachment 483134 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2017-07-11 17:57:03 UTC
Created attachment 483136 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2017-07-11 17:57:06 UTC
Created attachment 483138 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2017-07-11 17:57:10 UTC
Created attachment 483140 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2017-07-11 17:57:13 UTC
Created attachment 483142 [details]
sci-libs:plplot-5.12.0-r1:20170711-032132.log
Comment 7 Toralf Förster gentoo-dev 2017-07-11 17:57:16 UTC
Created attachment 483144 [details]
temp.tbz2
Comment 8 Martin Mokrejš 2017-10-16 16:59:58 UTC
Same here with sci-libs/plplot-5.12.0-r1 using gcc-5.4.0:

# emerge --info '=sci-libs/plplot-5.12.0-r1::gentoo'
Portage 2.3.11 (python 3.4.6-final-0, default/linux/amd64/13.0, gcc-5.4.0, glibc-2.25-r7, 4.13.6 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.13.6-x86_64-Intel-R-_Core-TM-_i7-6700HQ_CPU_@_2.60GHz-with-gentoo-2.4.1
KiB Mem:    16387480 total,   4437784 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 16 Oct 2017 14:30:01 +0000
Head commit of repository gentoo: 319c86d1f048618da77824081843a43f049eadb5
sh bash 4.4_p12
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.26.9999::gentoo
dev-lang/python:          2.7.14::gentoo, 3.4.6::gentoo, 3.5.4::gentoo, 3.6.3::gentoo
dev-util/cmake:           3.9.4::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.33::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo, 2.27::gentoo, 2.28-r2::gentoo, 2.29.1::gentoo
sys-devel/gcc:            4.2.4-r1::gentoo, 4.3.6-r1::gentoo, 4.4.7::gentoo, 4.7.4::gentoo, 4.8.5::gentoo, 4.9.4::gentoo, 5.4.0-r3::gentoo, 6.3.0::gentoo, 6.4.0::gentoo
sys-devel/gcc-config:     1.9.0::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r7::gentoo
Repositories:

gentoo
    location: /scratch/usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 

x-portage
    location: /scratch/usr/local/portage
    masters: gentoo
    priority: 0

x-layman
    location: /scratch/var/lib/layman
    masters: gentoo
    priority: 1

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

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

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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm Oracle-BCLA-JavaSE IBM-J1.6 skype-eula Nero-EULA-US AdobeFlash-10.3 skype-4.0.0.7-copyright AdobeFlash-11.x OPERA-2014 RAR"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=sandybridge -mtune=native -ftree-vectorize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.3/conf /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/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 -march=sandybridge -mtune=native -ftree-vectorize"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.wheel.sk/ http://ftp.fi.muni.cz/pub/linux/gentoo/ http://gentoo.mirror.web4u.cz/ rsync://gentoo.mirror.dkm.cz/gentoo/ ftp://gentoo.mirror.web4u.cz/"
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="/scratch/var/tmp"
USE="X acpi alsa amd64 amr apache apache2 asm avx avx2 berkdb bindist bluetooth boost bzip2 cairo cgi cli coin consolekit cracklib crypt cryptlib cryptsetup cups cxx dbus device-mapper dhcp directfb drm dvd emboss encode fax fbcon ffmpeg flac fontconfig fortran gbm gcrypt gd gdbm geoip gimp glpk gmp gnutls gpm gtk hal hpijs hwdb iconv id3tag imaging innodb inotify java javafx javascript jce jpeg jpg js jscript keymap ladspa lapack laptop lcms libnotify lm_sensors mad matroska mmx modemmanager modules multilib ncurses nfs nls nptl nptlonly nscd nss ntfsprogs objc ocr ogg opengl openmp openssl pam parport pcre pcre16 pdf perl php png policykit polkit ppds pppd python qt3support qt4 qt5 readline rendering resolvconf romio scanner sctp seccomp server session slideshow sndfile sqlite sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification suexec svg syslog tcl tcpd threads tiff tk truetype udev unicode usb v4l v4l2 vim-syntax vnc wavpack wifi x11 xattr xcb xml xorg xrandr xv xvid xvmc 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="alias authz_host auth_basic auth_digest cgi cgid deflate dir env filter include info mem_cache mime mime_magic negotiation remoteip setenvif status userdir vhost_alias rewrite usertrack cache file_cache disk_cache charset_lite log_config log_forensic" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" 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 efi-64" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" L10N="en-US en en-GB cs" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_US en_GB en cs" OFFICE_IMPLEMENTATION="libreoffice" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4 python3_5" RUBY_TARGETS="ruby21 ruby23 ruby24" USERLAND="GNU" VIDEO_CARDS="vesa vmware fbdev intel i915 i965" 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, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 9 Martin Mokrejš 2017-10-16 17:03:47 UTC
Created attachment 498844 [details]
build.log
Comment 10 Juergen Rose 2018-01-12 21:35:35 UTC
I have the same issue with sys-devel/gcc-7.2.0-r1:
...
[ 18%] Linking C executable pltcl
cd /var/tmp/portage/sci-libs/plplot-5.12.0-r1/work/plplot-5.12.0_build/bindings/tcl && /usr/bin/cmake -E cmake_link_script CMakeFiles/pltcl.dir/link.txt --verbose=1
/usr/bin/x86_64-pc-linux-gnu-gcc -march=broadwell -O2 -pipe  -Wl,-O1 -Wl,--as-needed -rdynamic CMakeFiles/pltcl.dir/pltcl.c.o  -o pltcl ../../src/libplplot.so.14.0.0 libplplottcltk_Main.so.1.0.0 libplplottcltk.so.13.0.0 -ltcl 
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libcsirocsa.so.0, needed by ../../src/libplplot.so.14.0.0, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libcsironn.so.0, needed by ../../src/libplplot.so.14.0.0, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libqsastime.so.0, needed by ../../src/libplplot.so.14.0.0, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libtclmatrix.so.10, needed by libplplottcltk.so.13.0.0, not found (try using -rpath or -rpath-link)
libplplottcltk.so.13.0.0: undefined reference to `Matrix_Init'
../../src/libplplot.so.14.0.0: undefined reference to `btimeqsas'
../../src/libplplot.so.14.0.0: undefined reference to `csa_addpoints'
../../src/libplplot.so.14.0.0: undefined reference to `csa_create'
../../src/libplplot.so.14.0.0: undefined reference to `closeqsas'
libplplottcltk.so.13.0.0: undefined reference to `Tcl_GetMatrixPtr'
Comment 11 Larry the Git Cow gentoo-dev 2018-01-16 01:33:53 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=98b94123d53721c8177f0d6583702d7e5ff7a580

commit 98b94123d53721c8177f0d6583702d7e5ff7a580
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2018-01-16 01:32:55 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2018-01-16 01:33:30 +0000

    profiles: Stable-mask sci-libs/plplot[tcl]
    
    Bug: https://bugs.gentoo.org/624576

 profiles/base/package.use.stable.mask | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)}
Comment 12 Emil Medve 2018-03-01 17:27:50 UTC
This failure started to happen in conjunction with this change:

@@ -149,8 +153,7 @@ src_configure() {
                ## Features
                -DBUILD_DOC=OFF
                -DBUILD_DOX_DOC=OFF
-               -DUSE_RPATH=OFF
-               -DCMAKE_SKIP_INSTALL_RPATH=ON
+               -DCMAKE_SKIP_RPATH=ON
                -DPREBUILT_DOC=$(usex doc)
                -DHAVE_SHAPELIB=$(usex shapefile)
                -DWITH_FREETYPE=$(usex truetype)

from:

commit e094f6f984fe57e55a2850f60ba11be9dfaf23a6
Author: David Seifert <soap@gentoo.org>
Date:   Sun Jul 9 14:02:26 2017 -0700

    sci-libs/plplot: Re-enable OCaml support

    * Convert absolute -L paths to relative ones in
      order to prevent ocamlmklib's braindead behaviour
      of randomly inserting RPATHs into libraries.

    Package-Manager: Portage-2.3.6, Repoman-2.3.2
Comment 13 Juergen Rose 2018-07-21 10:35:04 UTC
plplot still fails to emerge, now with gcc-7.3.0-r3 and cmake-3.12.0:
...
/usr/bin/x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe  -Wl,-O1 -Wl,--as-needed -rdynamic CMakeFiles/pltcl.dir/pltcl.c.o  -o pltcl ../../src/libplplot.so.14.0.0 libplplottcltk_Main.so.1.0.0 libplplottcltk.so.13.0.0 -ltcl 
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libcsirocsa.so.0, needed by ../../src/libplplot.so.14.0.0, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libcsironn.so.0, needed by ../../src/libplplot.so.14.0.0, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libqsastime.so.0, needed by ../../src/libplplot.so.14.0.0, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libtclmatrix.so.10, needed by libplplottcltk.so.13.0.0, not found (try using -rpath or -rpath-link)
libplplottcltk.so.13.0.0: undefined reference to `Matrix_Init'
Comment 14 Juergen Rose 2018-07-21 10:55:48 UTC
(In reply to Emil Medve from comment #12)
> This failure started to happen in conjunction with this change:
> 
> @@ -149,8 +153,7 @@ src_configure() {
>                 ## Features
>                 -DBUILD_DOC=OFF
>                 -DBUILD_DOX_DOC=OFF
> -               -DUSE_RPATH=OFF
> -               -DCMAKE_SKIP_INSTALL_RPATH=ON
> +               -DCMAKE_SKIP_RPATH=ON
>                 -DPREBUILT_DOC=$(usex doc)
>                 -DHAVE_SHAPELIB=$(usex shapefile)
>                 -DWITH_FREETYPE=$(usex truetype)
> 
> from:
> 
> commit e094f6f984fe57e55a2850f60ba11be9dfaf23a6
> Author: David Seifert <soap@gentoo.org>
> Date:   Sun Jul 9 14:02:26 2017 -0700
> 
>     sci-libs/plplot: Re-enable OCaml support
> 
>     * Convert absolute -L paths to relative ones in
>       order to prevent ocamlmklib's braindead behaviour
>       of randomly inserting RPATHs into libraries.
> 
>     Package-Manager: Portage-2.3.6, Repoman-2.3.2


If I reset these changes in  plplot-5.12.0-r1.ebuild, I am again able to emerge plplot. Are there any disadvantages using the old behaviour?
Comment 15 Larry the Git Cow gentoo-dev 2019-12-27 12:53:31 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb6e02b6dd02c5f5466dc82818490693ab361f81

commit bb6e02b6dd02c5f5466dc82818490693ab361f81
Author:     Pacho Ramos <pacho@gentoo.org>
AuthorDate: 2019-12-27 12:51:58 +0000
Commit:     Pacho Ramos <pacho@gentoo.org>
CommitDate: 2019-12-27 12:53:18 +0000

    sci-libs/plplot: Bump to 5.15.0
    
    Closes: https://bugs.gentoo.org/604358
    Closes: https://bugs.gentoo.org/606760
    Closes: https://bugs.gentoo.org/624576
    Closes: https://bugs.gentoo.org/624592
    Closes: https://bugs.gentoo.org/645292
    Closes: https://bugs.gentoo.org/659252
    Closes: https://bugs.gentoo.org/661144
    Closes: https://bugs.gentoo.org/666633
    Package-Manager: Portage-2.3.84, Repoman-2.3.20
    Signed-off-by: Pacho Ramos <pacho@gentoo.org>

 sci-libs/plplot/Manifest                           |   1 +
 ...hange-install-tree-location-of-wxPLViewer.patch | 117 ++++++
 .../plplot/files/plplot-5.12.0-safe-string.patch   |  20 +
 sci-libs/plplot/files/plplot-5.15.0-ieee.patch     |  19 +
 .../plplot/files/plplot-5.15.0-multiarch.patch     |  56 +++
 .../plplot/files/plplot-5.15.0-ocaml-rpath.patch   | 166 ++++++++
 sci-libs/plplot/files/plplot-5.15.0-ocaml.patch    |  43 ++
 sci-libs/plplot/files/replace-gdc-extensions.patch | 434 +++++++++++++++++++++
 sci-libs/plplot/plplot-5.15.0.ebuild               | 288 ++++++++++++++
 9 files changed, 1144 insertions(+)