help-octave
[Top][All Lists]
Advanced

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

Re: 2.9.4 on mac OSX tiger


From: Marius Schamschula
Subject: Re: 2.9.4 on mac OSX tiger
Date: Mon, 23 Jan 2006 18:12:06 -0600

Carlo,

Try setting your path to ignore /usr/local, i.e.

export PATH=/bin:/usr/bin:/sw/bin

or the equivalent for your shell. This will also prevent searching /usr/local/(include|lib).

On Jan 23, 2006, at 4:40 AM, Carlo de Falco wrote:

On 1/22/06, Dmitri A. Sergatskov <address@hidden> wrote:

Marius Schamschula wrote:
Dmitri,

Option? You can't build octave-forge if octave is built statically. The
problem is simply how not to link against Apple's BSD readline...


One should be able to build a shared liboctave, yet link in
a static libreadline.a.
E.g. on my linux, octave has ATLAS linked in statically, yet
I built a shared liboctave...

Dmitri.
--

Dnitri, Marius,

I am a bit puzzled...

I tried moving the apple library in /usr/lib
and configuring with --enable-readline
I set LDFLAGS="-L/sw/lib" so I would expect
to link to the fink-installed dynamic GNU version of readline
residing in /sw/lib.

configure and compile work ok, but:

$ otool -L /opt/octave/lib/liboctave.dylib | grep readline
$

gives no results

$ nm /opt/octave/lib/liboctave.dylib | grep _rl_set_keyboard_input_timeout
0050efd8 T _rl_set_keyboard_input_timeout
$

so it seems that I linked in the static version which is in
/usr/local/lib!!

This is ok for me, everything works fine ( exept that the octave installation
is now 263Mb instead of 37!!) but I am very annoyed by the fact
that it seems that I'm not able to chose clearly with linker options
what library to use...

It's even more puzzling if you consider that libncurses is also installed
both in /usr/lib and in /sw/lib but this time the linker picks the fink version,
wich is the expected behaviour given the configuration options but is not
consistent with the behaviour for libreadline.

Summarizing, as for myself,
I will give it a last try by also removing /usr/local/libreadline.a
before configuring so the linker should have no choice but using the
/sw/lib/libreadline.dylib dynamic library. Otherwise I will stick with the
current version with readline linked in statically.

But do you think I should also consider this behaviour a bug in the
apple linker and report it to apple?

Thanks again,
Carlo



Marius

--

Marius Schamschula                               Webmaster


        The Huntsville Macintosh Users Group

                    www.hmug.org


webmaster at hmug dot org    marius at schamschula dot com




reply via email to

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