mis-match library in 10.1 octave/g++48 package

Jin Guojun jguojun at sbcglobal.net
Fri Apr 3 04:37:54 UTC 2015


It looks like that libstdc++.so.6 is too old, which does not support GLIB 3.4.10 or later.
libstdc++.so.6 is part of system installation, not a package. 
Question is if installing a latest libstdc++.so, will it break the current system?
-Jin

%./a.out
/libexec/ld-elf.so.1: /usr/lib/libstdc++.so.6: version GLIBCXX_3.4.15 required by /usr/local/lib/octave/3.6.3/liboctave.so.2 not found
%strings /usr/lib/libstdc++.so.6 | grep GLIB
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_FORCE_NEW
 


     On Thursday, April 2, 2015 2:50 AM, Bernt Hansson <bah at bananmonarki.se> wrote:
   

 There is a PR for this error

http://lists.freebsd.org/pipermail/freebsd-ports-bugs/2014-March/275149.html


On 2015-04-02 09:08, Jin Guojun wrote:
> I installed octave-3.8.2 and compiled code but got run time error as following:
> g++48 octave-c-api.c -I/usr/local/include/octave-3.8.2/octave -I/usr/local/include -L/usr/local/lib/octave/3.8.2 -loctave -lpcre
>
> ./a.out
> /lib/libgcc_s.so.1: version GCC_4.6.0 required by /usr/local/lib/gcc48/libgfortran.so.3 not found
> GNU C library often cause such problem, but it is not clear why gcc 4.8 requires 4.6 library.Does anyone know how to solve this problem?
> Current octave package requires gnu c++ (g++) to build, and native BSD c++ does not work on this build.I wonder if octave can be built by BSD C/C++ compiler instead of G++ to avoid such problem in future.
> Also, since 10.1-R use pkg to fetch/install packages from a centralized repository, and package is keeping to update to the latest release, some mechanism needs to be used to insure the library will match.
> -Jin


   


More information about the freebsd-questions mailing list