[gamin] inotify-0.22 (2.6.11-1) gamin-0.0.26



Hi,

Trying to build gnome-vfs, wanting to try out inotify/gamin.  Linux
kernel is a 2.6.11.4 with inotify-0.22-rml-2.6.11-1.patch applied,
dmesg | grep inotify tells me that the kernel is running inotify.

Found the first gotcha and copied inotify.h to
/usr/include/linux/inotify.h gamin configure now finds inotify.h

During make I get the following error;

gam_inotify.Tpo"; exit 1; fi
gam_inotify.c: In function `gam_inotify_add_rm_handler':
gam_inotify.c:119: error: structure has no member named `name'
gam_inotify.c:123: error: structure has no member named `name'
make[2]: *** [gam_inotify.o] Error 1
make[2]: Leaving directory `/sources/gamin-0.0.26/server'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/sources/gamin-0.0.26'
make: *** [all] Error 2

The offending part of gam_inotify.c is;

    struct inotify_watch_request iwr;

    <snip>

	iwr.name = g_strdup(path);
	iwr.mask = 0xffffffff; // all events

        wd = ioctl(fd, INOTIFY_WATCH, &iwr);
        g_free(iwr.name);

Looking at inotify.h the declaration of inotify_watch_request is as follows;

struct inotify_watch_request {
	int        fd;         /* fd of filename to watch */
	__u32   mask;    /* event mask */
};

Clearly inotify_watch_request has no field called `name` inotify_event does.

Can you please advise where the error in the above is?  Do I need to
rebuild my kernel with a different inotify or do I need to patch
gamin?

Any suggestions greatfully appreciated,

Mark Carey



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]