El dom, 29-05-2016 a las 01:58 +0800, Andrew Lowe escribió:
> Hi all,
>       I'm attempting to build Blender, 2,7,6 but am running into a
> problem 
> during linking. I am getting a series of errors referring to an, for 
> example:
> 
> unresolved reference to 'Imf_2_1::Header::view[abi:cxx11]() const
> 
I've hit this sort of errors a few times(libreoffice mainly), no need
for blender experts.
The problem is your when linking the libraries/binaries, it is trying
to link code compiled with -std=c++11 and some library compiled with an
older standard,and thus it the linker cannot find binary code that
maches what your newly compiled programs wants. there was a news item
about this, you should read/revisit it, named:
  Title                     GCC 5 Defaults to the New C++11 ABI
  Author                    Mike Frysinger <[email protected]>
  Posted                    2015-10-22
  Revision                  2

The proposed solution is:
(quote from the news item)
For gentoolkit-0.3.1 or higher:
# revdep-rebuild --library 'libstdc++.so.6' -- --exclude gcc

For previous versions of gentoolkit:
# revdep-rebuild --library 'libstdc\+\+\.so\.6' -- --exclude gcc

But I've encountered some packages that weren't rebuild with that, so
what I do is: search for the library that needs rebuild(hint e.g. for
your case,  eix imf) and then emerge -av1 that library, and try again
rebuilding the package I wanted in the first place(blender for you). I
say rebuild but I really just manually call ´ebuild $PORDTDIR/cat/pkg-
ver' install as the portage user, and then package, and install it as a
binary at the end, but how to do this is out of the scope of the
interest of this thread.
BTW, eix won't help you here, I tried it, so the next step is to find
what provides the symbol 'Imf_2_1::Header::view', after some searches
with find and then google, I arrived at opencv(though not 100% sure),
so you might need to rebuild that and make sure(read the log) g++ is
being called with std=c++11. tracking this sort of stuff might be
tricky.


Reply via email to