Remote backups - ./ncftp.sh failure

ieh

Verified User
Joined
Aug 5, 2019
Messages
13
Location
Williamsburg, VA
$ ./ncftp.sh

[...]

Compiling io_listmem.c: [OK]
Compiling io_put.c: [OK]
Compiling io_putfiles.c: [OK]
Compiling io_putmem.c: [OK]
Compiling io_putonefile.c: [OK]
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] Error 1
make[1]: Leaving directory `/usr/local/directadmin/scripts/packages/ncftp-3.2.6/libncftp'
make: *** [libs] Error 2
make[1]: Entering directory `/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]

Then after a few more successes:

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'
make: *** [install] Error 2

Any ideas on where to go from here? Compiling binaries is definitely not something I have much experience with yet.
 
Forgot to explain...

Forgot to explain that when trying to do Admin Backup/Transfer to remote FTP, the following error popped up:

Error during Backup Creation

*** Unable to get list ***
Please install /usr/bin/ncftpls by running:
cd /usr/local/directadmin/scripts
./ncftp.sh
FTP information invalid.
 
I've patched the ncftp-3.2.6.tar.gz file. The define of "LINUX" appears to be set but blank on some OSs, I'm really not sure why.
Looking at their code, it appears to be trying to match some version, but as the last release was in 2016, we can assume that all new installs will satisfy whatever version they were worried about.

Side-note, with the change of ftp_upload.php to use curl for both FTP and FTPS (was ncftpput for FTP and curl for FTPS), we'll likely be swapping the ftp_list.php to also use full curl, then we'll probably drop ncftp entirely.

John
 
Back
Top