Description of Problem: When trying to rebuild lftp-2.3.11-2.src.rpm I need to have lftp already installed. Else there are appearing messages like ----------- mkdir /var/tmp/lftp-2.3.11-root/usr/lib/lftp/2.3.11 /bin/sh ../libtool --silent --mode=install /usr/bin/install -c proto-ftp.la /var/tmp/lftp-2.3.11-root/usr/lib/lftp/2.3.11/proto-ftp.la libtool: install: warning: relinking `proto-ftp.la' gcc -shared ftpclass.lo FtpListInfo.lo FtpGlob.lo FtpDirList.lo md5.lo ftp-opie.lo FtpSplitList.lo FileCopyFtp.lo -Wl,--rpath -Wl,/usr/lib/lftp/2.3.11 -L/usr/lib/lftp/2.3.11 -lnetwork -lresolv -ldl -lm -lc -Wl,-soname -Wl,proto-ftp.so -o .libs/proto-ftp.so /usr/bin/ld: cannot find -lnetwork 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/2.3.11' /bin/sh ../libtool --silent --mode=install /usr/bin/install -c proto-http.la /var/tmp/lftp-2.3.11-root/usr/lib/lftp/2.3.11/proto-http.la libtool: install: warning: relinking `proto-http.la' gcc -shared Http.lo HttpDir.lo -Wl,--rpath -Wl,/usr/lib/lftp/2.3.11 -L/usr/lib/lftp/2.3.11 -lnetwork -lresolv -ldl -lm -lc -Wl,-soname -Wl,proto-http.so -o .libs/proto-http.so /usr/bin/ld: cannot find -lnetwork collect2: ld returned 1 exit status libtool: install: error: relink `proto-http.la' with the above command before installing it ------------------ while the %build-stage. The corresponding modules (proto-ftp.so & proto-http) are missing in the package also. Therefore lftp won't be able to handle ftp or http. The other modules (proto-file,libnetwork,cmd-sleep,cmd-mirror) are ok. How Reproducible: evrytime Steps to Reproduce: 1. uninstall lftp 2. rpm --rebuild lftp-2.3.11-2.src.rpm 3. rpm -qlp lftp-2.3.11-2.i386.rpm Actual Results: no proto-http.so or proto-ftp.so file Expected Results: /usr/lib/lftp/2.3.11/proto-ftp.la /usr/lib/lftp/2.3.11/proto-ftp.so /usr/lib/lftp/2.3.11/proto-http.la /usr/lib/lftp/2.3.11/proto-http.so Additional Information: $ rpm -q autoconf automake libtool binutils gcc glibc autoconf-2.13-10 automake-1.4p2-1 libtool-1.4-6 binutils-2.11.90.0.8-1 gcc-2.96-91 glibc-2.2.3-11
Small mistake: happens not in the %build but in %install stage.
Just clearing out old bugs here. This one was fixed a long time ago and is definitely fixed in current version: lftp-3.0.6-2 .