On Fri, Aug 14, 2020 at 10:54:59PM +0200, Andreas M. Kirchwitz wrote: > $ gcc --version > gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-23) > $ ./configure --prefix=/usr/local --with-openssl=/usr/local/ssl > --without-gnutls --disable-nls > $ make > [...] > /bin/sh ../libtool --silent --tag=CXX --mode=compile g++ > -DHAVE_CONFIG_H -I. -I../lib -I../lib -I../trio > -I/usr/local/ssl/include -O2 -Wall -Wwrite-strings -Woverloaded-virtual > -fno-exceptions -fno-rtti -fno-implement-inlines -MT FileAccess.lo -MD > -MP -MF .deps/FileAccess.Tpo -c -o FileAccess.lo FileAccess.cc > In file included from FileAccess.cc:1026: > FileCopy.h:383: error: expected ‘;’ before ‘override’
That lines reads: const char *UseTempFile(const char *) override; The override specifier was added into C11 version of the C++ language. According to <https://gcc.gnu.org/projects/cxx-status.html#cxx11>, the specificer is suppoted since GCC 4.7. The UseTempFile() method was added into lftp with: commit 8f9719b85bd6984215068c5477f332032fcef6ea Author: Alexander V. Lukyanov <lavv...@gmail.com> Date: Fri Jun 5 00:32:54 2020 +0300 get/mget: fixed -O option with remote URL and xfer:use-temp-file being true (fix #577) I believe that removing the override specifier from the line should help you without affecting the program, because the only purpose of the specifier is to provide an additional compile-time check to the compiler. Alternatively, you can use a newer GCC from Red Hat Developer Toolset software collection (usually available for RHEL subscribers). -- Petr
signature.asc
Description: PGP signature
_______________________________________________ lftp mailing list lftp@uniyar.ac.ru http://univ.uniyar.ac.ru/mailman/listinfo/lftp