tags 624991 + patch thanks On Mon, May 02, 2011 at 02:35:02PM +0200, Lucas Nussbaum wrote: > Relevant part: > > g++ -DHAVE_CONFIG_H -I. -I.. -Wall -O3 -c -o logkeys.o logkeys.cc > > logkeys.cc: In function 'int main(int, char**)': > > logkeys.cc:473:13: error: 'umask' was not declared in this scope > > make[3]: *** [logkeys.o] Error 1
Adding the includes mentioned in man 2 umask solves this issue. The package builds successfully with the attached debdiff in pbuilder. Helmut
diff -Nru logkeys-0.1.0/debian/changelog logkeys-0.1.0/debian/changelog --- logkeys-0.1.0/debian/changelog 2010-02-07 01:25:32.000000000 +0100 +++ logkeys-0.1.0/debian/changelog 2011-12-13 12:11:28.000000000 +0100 @@ -1,3 +1,11 @@ +logkeys (0.1.0-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Fix "FTBFS: logkeys.cc:473:13: error: 'umask' was not declared in + this scope" add missing includes (Closes: #624991) + + -- Helmut Grohne <hel...@subdivi.de> Tue, 13 Dec 2011 12:11:17 +0100 + logkeys (0.1.0-1) unstable; urgency=low * Initial release (Closes: #567414) diff -Nru logkeys-0.1.0/debian/patches/series logkeys-0.1.0/debian/patches/series --- logkeys-0.1.0/debian/patches/series 2010-02-23 22:57:08.000000000 +0100 +++ logkeys-0.1.0/debian/patches/series 2011-12-13 12:04:54.000000000 +0100 @@ -1,3 +1,4 @@ disable-install-exec-hook.patch # don't suid disable-dev-input-checks.patch # no /dev/input in pbuilder move_pidfile_to_var_run.patch +umask_undeclared.patch diff -Nru logkeys-0.1.0/debian/patches/umask_undeclared.patch logkeys-0.1.0/debian/patches/umask_undeclared.patch --- logkeys-0.1.0/debian/patches/umask_undeclared.patch 1970-01-01 01:00:00.000000000 +0100 +++ logkeys-0.1.0/debian/patches/umask_undeclared.patch 2011-12-13 12:05:39.000000000 +0100 @@ -0,0 +1,13 @@ +Index: logkeys-0.1.0/src/logkeys.cc +=================================================================== +--- logkeys-0.1.0.orig/src/logkeys.cc 2011-12-13 11:58:50.000000000 +0100 ++++ logkeys-0.1.0/src/logkeys.cc 2011-12-13 12:05:35.000000000 +0100 +@@ -16,6 +16,8 @@ + #include <getopt.h> + #include <sys/file.h> + #include <linux/input.h> ++#include <sys/types.h> ++#include <sys/stat.h> + + #include <config.h> // config produced from ./configure +