Source: inotail
Version: 0.5-2

It failed to build on arm64:

http://buildd.debian.org/status/package.php?p=inotail&suite=sid

The error was:

In file included from inotail.c:37:0:
inotify-syscalls.h:83:3: error: #error "inotify not supported on this
architecture!"
 # error "inotify not supported on this architecture!"

If you want to make this work on arm64, the system call numbers are:

# define __NR_inotify_init1    26
# define __NR_inotify_add_watch    27
# define __NR_inotify_rm_watch    28

Note that arm64 does not have "inotify_init". Instead it has
"inotify_init1", which you can call with an argument of 0:

http://man7.org/linux/man-pages/man2/inotify_init.2.html

However, it wouldn't hurt to give inotify_init the extra argument, so
you could just add something like this:

+#elif defined (__aarch64__)
+# define __NR_inotify_init    26 /* it's inotify_init1, really */
+# define __NR_inotify_add_watch    27
+# define __NR_inotify_rm_watch    28

Then replace

    return syscall(__NR_inotify_init);

with:

    return syscall(__NR_inotify_init, 0);


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to