Source: rdfind Version: 1.3.2-1 Severity: important Tags: patch User: debian-h...@lists.debian.org Usertags: hurd
Hi, Currently [1], rdfind fails to compile on GNU/Hurd. (rdfind is a build-dependency of glibc since 2.17-4.) The build failure is due to that st_dev is used in struct Fileinfostat in Fileinfo.cc, as defined in Fileinfo.hh. On GNU/Hurd st_dev is defined as st_fsid which is reflected by inclusion of <sys/stat.h>. That file is included in Fileinfo.cc but not in Fileinfo.hh. By simply defining st_dev as st_fsid in Fileinfo.hh the problem is resolved, see the attached patch. Thanks! [1]https://buildd.debian.org/status/fetch.php?pkg=rdfind&arch=hurd-i386&ver=1.3.2-1&stamp=1367901858
--- a/Fileinfo.hh 2012-06-10 13:52:40.000000000 +0200 +++ b/Fileinfo.hh 2013-06-09 09:12:49.000000000 +0200 @@ -64,6 +64,10 @@ public: CREATE_SHA1_CHECKSUM, }; +#ifdef __GNU__ +# define st_dev st_fsid +#endif + //to store info about the file typedef off_t filesizetype; //defined in sys/types.h struct Fileinfostat {