pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Adding lang/gcc6-libs As a Full Dependency to audio/musicpd and graphics/hugin



Since pkgsrc-2018Q3 I'd had issues with both the Music Player Daemon
(audio/musicpd) and Hugin (graphics/hugin) after installing them from
binary packages in my pkgsrc chroot environment. I'd get these error
messages:

For MPD: 

/usr/lib/libstdc++.so.7: version GLIBCXX_3.4.14 required by mpd not
defined

For Hugin:

/usr/lib/libstdc++.so.7: version CXXABI_1.3 required
by /usr/pkg/lib/libImath-2_3.so.24 not defined

Using ldd on both binaries in my main environment versus my chroot
environment revealed the issue: GCC 6 was installed in the chroot
environment since it was required to build both packages, so the
libraries were available. This wasn't the case in my main environment,
so they used /usr/lib/libstdc++.so.7 instead.

In the chroot environment:

# ldd /usr/pkg/bin/mpd | grep stdc
        -lstdc++.8 => /usr/lib/libstdc++.so.8
        -lstdc++.7 => /usr/pkg/gcc6/x86_64--netbsd/lib/./libstdc++.so.7

# ldd /usr/pkg/bin/hugin | grep stdc
        -lstdc++.8 => /usr/lib/libstdc++.so.8
        -lstdc++.7 => /usr/pkg/gcc6/x86_64--netbsd/lib/./libstdc++.so.7

In the main environment:

ramiel$ ldd /usr/pkg/bin/mpd | grep stdc
        -lstdc++.8 => /usr/lib/libstdc++.so.8
        -lstdc++.7 => /usr/lib/libstdc++.so.7

ramiel$ ldd /usr/pkg/bin/hugin | grep stdc
        -lstdc++.8 => /usr/lib/libstdc++.so.8
        -lstdc++.7 => /usr/lib/libstdc++.so.7

After installing gcc6-libs, the problem goes away in the main
environment:

ramiel$ sudo pkgin install gcc6-libs
calculating dependencies...done.

1 package to install:
  gcc6-libs-6.5.0nb3

0 to refresh, 0 to upgrade, 1 to install
0B to download, 20M to install

proceed ? [Y/n] y
installing gcc6-libs-6.5.0nb3...
pkg_install warnings: 0, errors: 0
reading local summary...
processing local summary...
marking gcc6-libs-6.5.0nb3 as non auto-removable
ramiel$ ldd /usr/pkg/bin/mpd | grep stdc
        -lstdc++.8 => /usr/lib/libstdc++.so.8
        -lstdc++.7 => /usr/pkg/gcc6/x86_64--netbsd/lib/./libstdc++.so.7
ramiel$ ldd /usr/pkg/bin/hugin | grep stdc
        -lstdc++.8 => /usr/lib/libstdc++.so.8
        -lstdc++.7 => /usr/pkg/gcc6/x86_64--netbsd/lib/./libstdc++.so.7

And both MPD and Hugin run just fine.  Therefore I suggest that, at
least for NetBSD if not in general lang/gcc6-libs be added as a full
dependency for both of these packages, since they depend on the GCC 6
version of libstdc++.so.7 and won't run without it, even though they
compile and install just fine.  Thoughts?

- Dave V.

Attachment: pgposK1hzgscZ.pgp
Description: OpenPGP digital signature



Home | Main Index | Thread Index | Old Index