On Fri, 7 Nov 2008, Justin Piszcz wrote:
On Fri, 7 Nov 2008, Alexander V. Lukyanov wrote: Does not compile: .deps/commands.Tpo -c -o commands.lo commands.cc commands.cc: In member function 'Job* CmdExec::builtin_exit()': commands.cc:706: error: 'waitpid' was not declared in this scope make[1]: *** [commands.lo] Error 1 make[1]: Leaving directory `/home/jpiszcz/lftp-3.7.5/src' make: *** [all-recursive] Error 1 Command exited with non-zero status 2
It was missing a header file: patch: 2008-11-08 17:52 diff -lru lftp-3.7.5/src/commands.cc lftp-3.7.5.patch/src/commands.cc Page 1 --- lftp-3.7.5/src/commands.cc 2008-11-06 05:56:35.000000000 -0500 +++ lftp-3.7.5.patch/src/commands.cc 2008-11-08 17:51:58.503521321 -0500 @@ -21,6 +21,7 @@ /* $Id: commands.cc,v 1.289 2008/11/06 10:56:35 lav Exp $ */ #include <config.h> +#include <sys/wait.h> #include "modconfig.h" $ patch -p1 < /tmp/lftp-3.7.5.patch patching file src/commands.cc $ lftp --version LFTP | Version 3.7.5 | Copyright (c) 1996-2008 Alexander V. Lukyanov Justin.
2008-11-08 17:52 diff -lru lftp-3.7.5/src/commands.cc lftp-3.7.5.patch/src/commands.cc Page 1 --- lftp-3.7.5/src/commands.cc 2008-11-06 05:56:35.000000000 -0500 +++ lftp-3.7.5.patch/src/commands.cc 2008-11-08 17:51:58.503521321 -0500 @@ -21,6 +21,7 @@ /* $Id: commands.cc,v 1.289 2008/11/06 10:56:35 lav Exp $ */ #include <config.h> +#include <sys/wait.h> #include "modconfig.h"
