[Dovecot] *notify config for 1.0.x doesn't enable inotify

Marcus Rueckert darix at opensu.se
Sat Nov 3 00:49:03 EET 2007


On 2007-11-02 20:42:03 +0100, Paolo wrote:
> On Fri, Nov 02, 2007 at 06:07:35PM +0200, Timo Sirainen wrote:
> > On Fri, 2007-11-02 at 14:56 +0100, Paolo wrote:
> > > the current code has changed include linux/inotify.h to sys/inotify.h since
> > > 2006-01-17, but that won't work with inotify*.h as documented in the wiki.
> > 
> > The wiki entry seems to create /usr/local/include/sys/inotify.h and it
> > should be possible to include that as <sys/inotify.h>. Maybe the real
> > problem is that if you tried that, the /usr/local/include isn't in the
> > standard include lookup paths. So you should do:
> > 
> > CPPFLAGS='-I /usr/local/include' ./configure --with-notify=inotify
> > 
> 
> indeed, I spent a while to convince the autoconf to look that up, but then I
> realized the problem isn't the path, the test program always fails, simply 
> because the new defs have been splitted in the 2 files mentioned in the wiki,
> the problem being that inotify.h doesn't #include inotify-syscalls.h on its
> own, and compile fails for undefined functions, eg inotify_add_watch(), which
> instead are defined in the single linux/inotify.h.
> 
> Perhaps such "#include <sys/inotify-syscalls.h>" should be in inotify.h,
> but I think those .h are older versions, since current in-kernel inotify.h
> is just that, all in one.

they old splitted headers were never meant to be used in the userspace.
headers in /usr/include/linux/ are in general not meant for userspace
apps.

    darix

-- 
           openSUSE - SUSE Linux is my linux
               openSUSE is good for you
                   www.opensuse.org


More information about the dovecot mailing list