Re: Tiger and libreadline
Re: Tiger and libreadline
- Subject: Re: Tiger and libreadline
- From: Bill Northcott <email@hidden>
- Date: Mon, 2 May 2005 13:27:12 +1000
On 01/05/2005, at 6:56 PM, Martin Costabel wrote:
Many GNU packages rely on libreadline.
It seems that in Darwin there is a BSD libedit, which is symlinked
as libreadline and has a corresponding readline.h. This breaks
Octave and probably other builds.
Yes, this is annoying, but it fits into the pattern of Apple first
putting a broken version of a new open source package into OSX
(there are quite a few historical examples for this). A correct
version can probably be expected for the OSX release "Sabre-tooth
cat" :-)
The Tiger version is neither broken nor 'incorrect'. It does what it
says on the tin. It is however the BSD version not the GNU version.
If the GNU readline is installed in /usr/local, is there a
preferred way to ensure that configure scripts pick it up?
Fink has a patch line
perl -pi -e 's|LIBREADLINE=\"-lreadline|LIBREADLINE=\"-L%p/lib -
lreadline|g' mkoctfile
in its octave package description for Tiger. Replace %p by /usr/
local in your case. Actually by default /usr/local/lib should be
searched before /usr/lib and /usr/local/include before /usr/
include, so this shouldn't even be necessary in your case.
At link time -lreadline will pick up the GNU version, but the problem
is the in the configuration file.
Also I believe I believe in fixing once and fixing properly, not
maintaining a massive and growing database of patches like Fink.
I think the answer is to use a use an autoconf macro like the one in
R, which clearly differentiates between the BSD and GNU versions of
readline. The current Octave macro will likely break on a number of
other UNIXen.
Bill Northcott
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden