You are not logged in.

#1 2006-05-11 21:51:48

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

lftp rebuild error

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

#2 2006-05-11 22:21:56

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: lftp rebuild error

Have you "rm -rf src" before building the package?

Offline

#3 2006-05-11 23:30:54

kth5
Member
Registered: 2004-04-29
Posts: 657
Website

Re: lftp rebuild error

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? smile


I recognize that while theory and practice are, in theory, the same, they are, in practice, different. -Mark Mitchell

Offline

#4 2006-05-12 18:17:40

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: lftp rebuild error

That didn't work!  How annoying.  Any more ideas?

Offline

#5 2006-05-12 18:44:24

kth5
Member
Registered: 2004-04-29
Posts: 657
Website

Re: lftp rebuild error

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

#6 2006-05-13 12:21:52

jakob
Member
From: Berlin
Registered: 2005-10-27
Posts: 419

Re: lftp rebuild error

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

#7 2006-05-13 17:47:42

kth5
Member
Registered: 2004-04-29
Posts: 657
Website

Re: lftp rebuild error

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

#8 2006-05-13 19:13:05

jakob
Member
From: Berlin
Registered: 2005-10-27
Posts: 419

Re: lftp rebuild error

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

Board footer

Powered by FluxBB