Error on gnupg-2.1.20 installation

Daniel Kahn Gillmor dkg at
Wed May 10 17:09:00 CEST 2017

On Wed 2017-05-10 09:51:32 +0000, Antonino Augusta wrote:
> When I try to install the gnupg-2.1.20 package, during the make i receive the following error message:
> sysutils.c: In function ‘gnupg_inotify_watch_socket’:
> sysutils.c:1163: error: ‘IN_EXCL_UNLINK’ undeclared (first use in this function)
> sysutils.c:1163: error: (Each undeclared identifier is reported only once
> sysutils.c:1163: error: for each function it appears in.)
> make[2]: *** [libcommon_a-sysutils.o] Error 1
> make[2]: Leaving directory `/root/GnuPG_Pkgs/gnupg-2.1.20/common'
> make[1]: *** [check] Error 2
> make[1]: Leaving directory `/root/GnuPG_Pkgs/gnupg-2.1.20/common'
> make: *** [check-recursive] Error 1

On most GNU/Linux systems, this inotify definition is typically made
available by either your libc development package, or by headers
supplied by Linux dev packages.

On debian, you'll need the libc6-dev package, which i can't imagine you
could have even gotten this far without having it available.

This line should also only be compiled if the C preprocessor has defined
HAVE_INOTIFY_INIT, in which case you should already have #include
<sys/inotify.h>, which is where the IN_EXCL_UNLINK definition is
typically located.

So i'm perplexed why you'd be running into this.  perhaps your copy of
inotify.h is really old or something?  what OS are you using?

if you "grep -r IN_EXCL_UNLINK /usr/include" does anything show up?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: </pipermail/attachments/20170510/06f096e9/attachment.sig>

More information about the Gnupg-users mailing list