Re: Problems building lftp on x86_64
Dag Wieers <[email protected]>
| Newsgroups | gmane.network.lftp.devel |
|---|---|
| Organization | 3TI Web Hosting Services |
| Message-ID | <[email protected]> |
On Tue, 25 May 2004, Alexander V. Lukyanov wrote:
> On Tue, May 25, 2004 at 12:54:57PM +0200, Dag Wieers wrote:
> > Building lftp on x86_64 with the default (minimal) SPEC file, results in
> > most of the modules missing.
> >
> > /usr/lib64/lftp/3.0.3/cmd-mirror.a
> > /usr/lib64/lftp/3.0.3/cmd-sleep.a
> > /usr/lib64/lftp/3.0.3/liblftp-network.so
> > /usr/lib64/lftp/3.0.3/liblftp-pty.so
> > /usr/lib64/lftp/3.0.3/proto-file.a
> > /usr/lib64/lftp/3.0.3/proto-fish.a
> > /usr/lib64/lftp/3.0.3/proto-ftp.a
> > /usr/lib64/lftp/3.0.3/proto-http.a
> > /usr/lib64/lftp/3.0.3/proto-sftp.a
> >
> > It's strange that instead of only .so files, .a files are available.
> > The log is attached.
> >
> > Problem is probably related to /usr/lib64 and /lib64 not being in the
> > default linker-path. Any help in finding a correct solution is welcome ;)
>
> libtool outputs lots of errors and explains why it has made static modules.
> Please fix those libtool errors.
Yes, still I have all these libraries (they are build requirements so it
wouldn't even try if they weren't available).
It seems that for some reason /usr/lib64 and /lib64 are not processed and
therefor it thinks it can't link.
I verified with Red Hat's package and it seems the problem is due to the
fact that lftp uses its own libtool. For some reason this libtool doesn't
work properly on x86_64. Red Hat fixes this by doing:
if pkg-config openssl ; then
CPPFLAGS=`pkg-config --cflags openssl`; export CPPFLAGS
LDFLAGS=`pkg-config --libs-only-L openssl`; export LDFLAGS
fi
LDFLAGS="-L`pwd`/src/.libs $LDFLAGS"; export LDFLAGS
%configure --with-modules --disable-static --with-ssl --with-debug
export tagname=CC
make LIBTOOL=%{_bindir}/libtool
rm -rf $RPM_BUILD_ROOT
export tagname=CC
%makeinstall LIBTOOL=%{_bindir}/libtool
It would be nice if lftp could be packaged (like on i386) by just doing:
./configure --options
make
make install
Everything else could be fixed in the buildtools.
Is that possible for a next release ? I probably have to work around it
for lftp 3.0.3.
-- dag wieers, [email protected], http://dag.wieers.com/ --
[Any errors in spelling, tact or fact are transmission errors]