help-octave
[Top][All Lists]
Advanced

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

Re: Force link to local lib?


From: Luke M
Subject: Re: Force link to local lib?
Date: Tue, 25 Jan 2011 10:00:14 -0800 (PST)

Actually those paths are (mostly) expected, though there are duplicates. 
/data/personal is my personal build environment, with GCC 4.5.0 and the rest
of Octave's dependencies.  This is necessary because RHEL 5.3 ships with GCC
4.1.2, which was too old to build some of the dependencies.  My problem is I
want Octave to use the "/data/personal/" prefix for everything, but it's
not.

I've done some more searching and I'm pretty sure libtool is the problem. 
>From what I've read, it purposes breaks the ability to move shared objects
around and define library search paths for the sake of platform portability. 
That's especially annoying because I realize now I'm not going to be able to
easily transplant my environment from my local machine to a network drive. 
And it's forcing Octave to ignore my LD_LIBRARY_PATH and LD_RUN_PATH by
hardcoding the library locations.

I think the secret is either in the libtool script itself or in libtool's
special *.la files, but for the life of me I can't figure out how to change
the behavior.  I actually manually removed /usr/lib64 from the Fortran
libraries in the Makefile after you posted and got excited because the
warnings that "libstdc++.la and libgfortran.la appear to have moved" went
away.  But alas, Octave doesn't want to give up on linking to the libraries
there:

> ./run-octave
/data/personal/octave/src/.libs/lt-octave: /usr/lib64/libstdc++.so.6:
version `GLIBCXX_3.4.11' not found (required by
/data/personal/octave/src/.libs/liboctinterp-3.5.0+.so)
/data/personal/octave/src/.libs/lt-octave: /usr/lib64/libstdc++.so.6:
version `GLIBCXX_3.4.14' not found (required by
/data/personal/octave/src/.libs/liboctinterp-3.5.0+.so)
/data/personal/octave/src/.libs/lt-octave: /usr/lib64/libstdc++.so.6:
version `GLIBCXX_3.4.9' not found (required by
/data/personal/octave/src/.libs/liboctinterp-3.5.0+.so)
/data/personal/octave/src/.libs/lt-octave: /usr/lib64/libstdc++.so.6:
version `GLIBCXX_3.4.14' not found (required by
/data/personal/octave/liboctave/.libs/liboctave-3.5.0+.so)
/data/personal/octave/src/.libs/lt-octave: /usr/lib64/libstdc++.so.6:
version `GLIBCXX_3.4.9' not found (required by
/data/personal/octave/liboctave/.libs/liboctave-3.5.0+.so)
-- 
View this message in context: 
http://octave.1599824.n4.nabble.com/Force-link-to-local-lib-tp3230870p3236670.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]