You are not logged in.
Pages: 1
if /bin/sh ../libtool --silent --tag=CXX --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -march=i686 -O2 -pipe -Wall -Wwrite-strings -Woverloaded-virtual -fno-exceptions -fno-rtti -fno-implement-inlines -Winline -MT ftpclass.lo -MD -MP -MF ".deps/ftpclass.Tpo" -c -o ftpclass.lo ftpclass.cc;
then mv -f ".deps/ftpclass.Tpo" ".deps/ftpclass.Plo"; else rm -f ".deps/ftpclass.Tpo"; exit 1; fi
ftpclass.cc: In member function 'virtual int Ftp::Do()':
ftpclass.cc:1333: error: 'class Ftp::Connection' has no member named 'prot'
make[1]: *** [ftpclass.lo] Error 1
make[1]: Leaving directory `/var/abs/network/lftp/src/lftp-3.4.6/src'
make: *** [all-recursive] Error 1
PKGBUILD
# $Id: PKGBUILD,v 1.47 2006/05/04 01:37:34 dale Exp $
# Maintainer: dorphell <dorphell>
pkgname=lftp-custom
pkgver=3.4.6
pkgrel=1
pkgdesc="Sophisticated command line based FTP client"
#depends=('gcc' 'readline' 'openssl' 'expat')
depends=('gcc' 'readline' 'expat')
url="http://lftp.yar.ru/"
backup=('etc/lftp.conf')
provides=('lftp')
conflicts=('lftp')
source=(http://ftp.yars.free.net/pub/source/lftp/lftp-$pkgver.tar.bz2)
md5sums=('ed456c48929f1e60ddde9f2525768136')
build() {
cd $startdir/src/lftp-$pkgver
./configure --prefix=/usr --without-gnutls
# --with-openssl
make || return 1
make DESTDIR=$startdir/pkg install
rm -rf $startdir/pkg/usr/lib
}
How can changing the PKGBUILD stop it building with such an error?
Offline
Have you "rm -rf src" before building the package?
Offline
could be that you need to uninstall lftp first. kexi in koffice for example tries to use installed libs to link itself together which of course might not always work because headers changes. these are on the other hand used from the source tarball.
maybe it's worth a shot?
I recognize that while theory and practice are, in theory, the same, they are, in practice, different. -Mark Mitchell
Offline
That didn't work! How annoying. Any more ideas?
Offline
that should do it:
PKGBUILD
# $Id: PKGBUILD,v 1.47 2006/05/04 01:37:34 dale Exp $
# Maintainer: dorphell <dorphell>
pkgname=lftp
pkgver=3.4.6
pkgrel=1
pkgdesc="Sophisticated command line based FTP client"
depends=('gcc' 'readline' 'expat')
url="http://lftp.yar.ru/"
backup=('etc/lftp.conf')
source=(http://ftp.yars.free.net/pub/source/lftp/$pkgname-$pkgver.tar.bz2
no-ssl.patch)
build() {
cd $startdir/src/$pkgname-$pkgver
patch -Np1 -i $startdir/src/no-ssl.patch || return 1
./configure --prefix=/usr --without-gnutls
--without-openssl
make || return 1
make DESTDIR=$startdir/pkg install
rm -rf $startdir/pkg/usr/lib
}
md5sums=('ed456c48929f1e60ddde9f2525768136' 'fb3af8ea645d0c0ff2755321064c5fd0')
no-ssl.patch
--- lftp-3.4.6/src/ftpclass.cc.orig 2006-05-12 20:40:09.000000000 +0200
+++ lftp-3.4.6/src/ftpclass.cc 2006-05-12 20:40:53.000000000 +0200
@@ -1326,12 +1326,14 @@
goto usual_return;
pre_CONNECTED_STATE:
+#if USE_SSL
if(ftps && (!proxy || conn->proxy_is_http))
{
conn->MakeSSLBuffers(hostname);
const char *initial_prot=ResMgr::Query("ftps:initial-prot",hostname);
conn->prot=initial_prot[0];
}
+#endif
if(use_telnet_iac)
conn->InitTelnetLayer();
I recognize that while theory and practice are, in theory, the same, they are, in practice, different. -Mark Mitchell
Offline
I have no problems with this PKGBUILD:
# $Id: PKGBUILD,v 1.46 2006/02/20 19:28:16 dorphell Exp $
# Maintainer: dorphell <dorphell>
pkgname=lftp
pkgver=3.4.6
pkgrel=1
pkgdesc="Sophisticated command line based FTP client"
depends=('gcc' 'readline' 'bash' 'expat')
url="http://lftp.yar.ru/"
backup=('etc/lftp.conf')
provides=('lftp')
conflicts=('lftp')
source=(http://ftp.yars.free.net/pub/source/lftp/$pkgname-$pkgver.tar.bz2)
md5sums=('ed456c48929f1e60ddde9f2525768136')
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr --without-gnutls --with-openssl="/usr/bin/"
make || return 1
make DESTDIR=$startdir/pkg install
rm -rf $startdir/pkg/usr/lib
}
Offline
run namcap against it an you'll see that you miss a dep. openssl being disabled was the obvious difference between the stock lftp and dtw's.
I recognize that while theory and practice are, in theory, the same, they are, in practice, different. -Mark Mitchell
Offline
Ah I missed the sharp (#) in front of the line with --with-openssl in dtw's PKGBUILD.
And thx for the hint with openssl, forgot that.
Offline
Pages: 1