ncftp install error !! new install

Ballevill

Verified User
Joined
Jun 7, 2014
Messages
22
Hi, I have a problem with ncftp on 2 servers clean directadmin installations and both do not work backup ftp when trying to install ncftp I have such an error.

Compiling io_sendfile.c: [ERROR]
gcc -D_REENTRANT -O2 -W -Wall -Wno-format-y2k -DLINUX= -DLINUX_GLIBC=21700 -D
O_S="linux-x86_64-glibc2.17" -DHAVE_CONFIG_H -DLINUX= -DLINUX_GLIBC=21700 -I/
usr/local/directadmin/scripts/packages/ncftp-3.2.6 -I/usr/local/directadmin/s
cripts/packages/ncftp-3.2.6/libncftp -I/usr/local/directadmin/scripts/package
s/ncftp-3.2.6/sio -I/usr/local/directadmin/scripts/packages/ncftp-3.2.6/Strn
io_sendfile.c -c
io_sendfile.c: In function ‘DoSendfileAvailable’:
io_sendfile.c:137:32: error: operator '>=' has no left operand
#elif defined(LINUX) && (LINUX >= 22000)
^
io_sendfile.c: In function ‘DoSendfile’:
io_sendfile.c:269:30: error: operator '>=' has no left operand
#if defined(LINUX) && (LINUX >= 22000)
^
io_sendfile.c:361:30: error: operator '>=' has no left operand
#if defined(LINUX) && (LINUX >= 22000)
^
make[1]: *** [io_sendfile.o] Błąd 1
make[1]: Opuszczenie katalogu `/usr/local/directadmin/scripts/packages/ncftp-3.2.6/libncftp'
make: *** [libs] Błąd 2
make[1]: Wejście do katalogu `/usr/local/directadmin/scripts/packages/ncftp-3.2.6/ncftp'
Compiling cmds.c: [OK]
Compiling cmdlist.c: [OK]
Compiling ls.c: [OK]
Compiling main.c: [OK]
Compiling shell.c: [OK]
Compiling util.c: [OK]
Compiling readln.c: [OK]
Compiling progress.c: [OK]
Compiling bookmark.c: [OK]
Compiling pref.c: [OK]
Compiling preffw.c: [OK]
Compiling trace.c: [OK]
Compiling spool.c: [OK]
Compiling spoolutil.c: [OK]
Compiling log.c: [OK]
make[1]: *** Brak reguł do zrobienia obiektu `../libncftp/libncftp.a', wymaganego przez `../bin/ncftp'. Stop.
make[1]: Opuszczenie katalogu `/usr/local/directadmin/scripts/packages/ncftp-3.2.6/ncftp'
make: *** [install] Błąd 2


some solution ?

Thanks and best regards
 
Compiling io_sendfile.c

Hi! Found same problem with my new instalation:
(...)
Compiling ftp.c: [OK]
ftp.c:24:19: warning: ‘gNoSignalsMarker’ defined but not used [-Wunused-c
onst-variable=]
static const char gNoSignalsMarker[] = "@(#) LibNcFTP - NO_SIGNALS";
^~~~~~~~~~~~~~~~
Compiling ftw.c: [OK]
ftw.c: In function ‘Readdir’:
ftw.c:134:2: warning: ‘readdir_r’ is deprecated [-Wdeprecated-declaration
s]
if ((readdir_r(dir, dp, &p) == 0) && (p != NULL))
^~
In file included from syshdrs.h:154:0,
from ftw.c:12:
/usr/include/dirent.h:183:12: note: declared here
extern int readdir_r (DIR *__restrict __dirp,

(...)

Compiling io_sendfile.c: [ERROR]
gcc -D_REENTRANT -O2 -W -Wall -Wno-format-y2k -DLINUX= -DLINUX_GLIBC=22400 -D
O_S="linux-x86_64-glibc2.24" -DHAVE_CONFIG_H -DLINUX= -DLINUX_GLIBC=22400 -I/
usr/local/directadmin/scripts/packages/ncftp-3.2.6 -I/usr/local/directadmin/s
cripts/packages/ncftp-3.2.6/libncftp -I/usr/local/directadmin/scripts/package
s/ncftp-3.2.6/sio -I/usr/local/directadmin/scripts/packages/ncftp-3.2.6/Strn
io_sendfile.c -c
io_sendfile.c: In function ‘DoSendfileAvailable’:
io_sendfile.c:137:32: error: operator '>=' has no left operand
#elif defined(LINUX) && (LINUX >= 22000)
^~
io_sendfile.c: In function ‘DoSendfile’:
io_sendfile.c:269:30: error: operator '>=' has no left operand
#if defined(LINUX) && (LINUX >= 22000)
^~
io_sendfile.c:361:30: error: operator '>=' has no left operand
#if defined(LINUX) && (LINUX >= 22000)
^~
Makefile:101: recipe for target 'io_sendfile.o' failed
make[1]: *** [io_sendfile.o] Error 1
make[1]: Leaving directory '/usr/local/directadmin/scripts/packages/ncftp-3.2.6/libncftp'
Makefile:33: recipe for target 'libs' failed
make: *** [libs] Error 2
make[1]: Entering directory '/usr/local/directadmin/scripts/packages/ncftp-3.2.6/ncftp'

(...)

Compiling log.c: [OK]
make[1]: *** No rule to make target '../libncftp/libncftp.a', needed by '../bin/ncftp'. Stop.
make[1]: Leaving directory '/usr/local/directadmin/scripts/packages/ncftp-3.2.6/ncftp'
Makefile:44: recipe for target 'install' failed
make: *** [install] Error 2

ncftp.sh is:

#!/bin/sh

CWD=`pwd`

NAME=ncftp
VERSION=3.2.6
PRIMARY=http://files.directadmin.com/services
SECONDARY=http://files3.directadmin.com/services
SAVE=/usr/local/directadmin/scripts/packages
FILE=${NAME}-${VERSION}-src.tar.gz
DIR=${NAME}-${VERSION}

OS=`uname`

if [ "$OS" = "FreeBSD" ]; then
WGET=/usr/local/bin/wget
else
WGET=/usr/bin/wget
fi

if [ ! -s $SAVE/$FILE ]; then
$WGET -O $SAVE/$FILE $PRIMARY/$FILE
fi
if [ ! -s $SAVE/$FILE ]; then
$WGET -O $SAVE/$FILE $SECONDARY/$FILE
fi
if [ ! -s $SAVE/$FILE ]; then
echo "Unable to get $SAVE/$FILE"
exit 1;
fi

cd $SAVE

tar xzf $FILE

cd $DIR

./configure --prefix=/usr
make
make install

cd $CWD;
 
Back
Top