pkgsrc-Users archive

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

Re: Problem building finance/gnucash



Marc Baudoin <babafou%babafou.eu.org@localhost> writes:

> For several weeks now, I've been unable to build finance/gnucash
> on NetBSD/amd64 8.0 with an updated pkgsrc tree:
>
> [ 87%] Linking CXX shared library ../../lib/libgnc-gnome.so
> /usr/pkg/guile/2.2/lib/libguile-2.2.so: warning: warning: tmpnam() possibly used unsafely, use mkstemp() or mkdtemp()
> ../../lib/libgnc-backend-xml-utils.so: warning: warning: mktemp() possibly used unsafely, use mkstemp() or mkdtemp()

(above warnings are not your problem and should be fixed upstream)

> /usr/bin/ld: warning: libstdc++.so.8, needed by /usr/pkgsrc/finance/gnucash/work/.buildlink/lib/libboost_locale.so, may conflict with libstdc++.so.7
> [ 87%] Built target gnc-gnome
> gmake: *** [Makefile:163: all] Error 2

You have built programs with different compilers.

> Any idea on how to fix this?

Figure out which libstdc++ libraries you have, and why, and which
libraries link against them.

On a netbsd-8 evbarm box, I see libstdc++.so.8.

So I suspect you have upgraded from 7, and have libraries built under 7
that have not been rebuilt.

If you have not rebuilt all packages since upgrading from netbsd-7 to
netbsd-8, do so.  "pkg_admin set rebuild=yes \*" and then
pkg_rolling-replace. is one option.

To figure out what's, wrong, use ldd on libraries in /usr/pkg/lib and
find ones that use libstdc++.so.7.
$ ldd /usr/pkg/lib/*.so > LDD.txt
look for .so.7 in LDD.txt


Home | Main Index | Thread Index | Old Index