lftp >= 3.0.4 breaks when building protocols on rh73, el2

Dag Wieers <[email protected]>
Newsgroups gmane.network.lftp.devel
Organization 3TI Web Hosting Services
Message-ID <[email protected]>
Hi,

I noticed that since a few releases most of the protocols are not being 
build because when linking it is assumed that the libraries are installed 
in /usr/lib/lftp/<version>/ instead of the prepended buildroot (which is 
often the case when packaging or building/installing in a somewhat 
protected environment.

 /usr/bin/libtool --mode=install /usr/bin/install -c  'liblftp-network.la' 
'/mnt/dar/tmp/lftp-3.0.9-1.0.rh7.dag
-root/usr/lib/lftp/3.0.9/liblftp-network.la'
/usr/bin/install -c .libs/liblftp-network.so 
/mnt/dar/tmp/lftp-3.0.9-1.0.rh7.dag-root/usr/lib/lftp/3.0.9/liblft
p-network.so
/usr/bin/install -c .libs/liblftp-network.lai 
/mnt/dar/tmp/lftp-3.0.9-1.0.rh7.dag-root/usr/lib/lftp/3.0.9/liblf
tp-network.la
/usr/bin/install -c .libs/liblftp-network.a 
/mnt/dar/tmp/lftp-3.0.9-1.0.rh7.dag-root/usr/lib/lftp/3.0.9/liblftp
-network.a
ranlib 
/mnt/dar/tmp/lftp-3.0.9-1.0.rh7.dag-root/usr/lib/lftp/3.0.9/liblftp-network.a
chmod 644 
/mnt/dar/tmp/lftp-3.0.9-1.0.rh7.dag-root/usr/lib/lftp/3.0.9/liblftp-network.a
libtool: install: warning: remember to run `libtool --finish 
/usr/lib/lftp/3.0.9'
 /usr/bin/libtool --mode=install /usr/bin/install -c  'proto-ftp.la' 
'/mnt/dar/tmp/lftp-3.0.9-1.0.rh7.dag-root/
usr/lib/lftp/3.0.9/proto-ftp.la'
libtool: install: warning: relinking `proto-ftp.la'
(cd /mnt/dar/build/lftp-3.0.9/src; /bin/sh /usr/bin/libtool --mode=relink 
i386-redhat-linux-gcc -O2 -march=i386
 -mcpu=i686 -Wall -Wwrite-strings -Woverloaded-virtual -fno-exceptions 
-fno-rtti -fno-implement-inlines -Winlin
e -s -o proto-ftp.la -module -avoid-version -rpath /usr/lib/lftp/3.0.9 
ftpclass.lo FtpListInfo.lo FtpDirList.lo
 md5.lo ftp-opie.lo FileCopyFtp.lo -L/usr/lib/lftp/3.0.9 
liblftp-network.la -lutil -lcurses -lresolv -ldl -lm)
gcc -shared  ftpclass.lo FtpListInfo.lo FtpDirList.lo md5.lo ftp-opie.lo 
FileCopyFtp.lo  -Wl,--rpath -Wl,/usr/l
ib/lftp/3.0.9  -L/usr/lib/lftp/3.0.9 -llftp-network -lutil -lcurses 
-lresolv -ldl -lm   -Wl,-soname -Wl,proto-f
tp.so -o .libs/proto-ftp.so
/usr/bin/ld: cannot find -llftp-network
collect2: ld returned 1 exit status
libtool: install: error: relink `proto-ftp.la' with the above command 
before installing it
libtool: install: warning: remember to run `libtool --finish 
/usr/lib/lftp/3.0.9'

With newer libtools this is apparently not a problem, but with the 
buildtools on Red Hat 7.3 and Red Hat Enterprise 2.1 this breaks horribly 
and results in a non-functional ftp client.

This happened since release 3.0.4 apparently. You can find the buildlogs 
from 3.0.6 and upward at:

	http://dag.wieers.com/packages/lftp/_buildlogs/

Kind regards,
--   dag wieers,  [email protected],  http://dag.wieers.com/   --
[Any errors in spelling, tact or fact are transmission errors]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.