On Jul 7, 2008, at 10:26, Shane wrote:

I'm getting the exact same error now when compiling against both the included readline with Leopard

Leopard doesn't have the GPL-licensed readline proper, it comes with a same-named BSD-licensed replacement called libedit which happens to be different enough to be incompatible with lftp.

Per the INSTALL file I've tried using --with-included-readline however

There isn't an included readline in the lftp distribution since some versions ago, so these configure switches don't exist any more.

(10.5.3) and also when I build against a static build of readline-5.2 I made.

That's really all you need, just take a note of what prefix you installed it to.

The configure command I'm using is:
[...]
--with-openssl=/usr/include/openssl
No, make that --with-openssl=/usr, or just plain --with-openssl will do, it's smart enough.

--without-included-readline
--with-readline=/usr
According to lftp's ./configure --help, there are no switches like this, so these shouldn't change a thing.

So you final configure switches should look more like this:

MY_STATIC_READLINE_PREFIX="/this/is/my/static/readline/prefix"

CXXFLAGS="-O0 -Wall -fno-exceptions -fno-rtti -fno-implement-inlines" \
LDFLAGS="-Xlinker -search_paths_first -L$MY_STATIC_READLINE_PREFIX/ lib" \
CPPFLAGS="-I$MY_STATIC_READLINE_PREFIX/include" ./configure \
--with-openssl --disable-shared --disable-nls


Assuming that you first installed readline-5.2 statically linked something like this: ./configure --prefix="$MY_STATIC_READLINE_PREFIX" --disable- shared ......... \
&& make && make install


In the lftp configure line, the "-Xlinker -search_paths_first" is necessary so that the linker won't prefer the system's shared /usr/lib/ libreadline.dylib to your static libreadline.a.

Disabling optimizations with -O0, the whole CXXFLAGS section is only needed for Intel Macs, you should remove that when building for PowerPC. It's to work around a crash in the cls -s command:
http://www.mail-archive.com/[email protected]/msg02857.html

Also, since you are compiling lftp 3.7.3, you're also affected by the rpl_poll issue.
See http://www.mail-archive.com/lftp%40uniyar.ac.ru/msg03300.html

Reply via email to