On Thursday 18 March 2010 12:33, Vladimir Dronnikov wrote: > >> and yes, I do find the notify.h in include/linux/ in kernel source tree. > > What does intotifyd.c include, related to inotify.h? > <> > > Try to replace > #include <sys/inotify.h> > with > #include </absolute/path/to/sys/inotify/in/your/toolchain.h> > > If not, try to replace > #include <sys/inotify.h> > with > #include <linux/inotify.h>
Vladimir, you are not thinking about the problem. Please stop confusing the user. He is getting a _linker_ error: /usr/local/arc.4.2.1/sk885x-2.6/lib/gcc/arc-linux-uclibc/4.2.1/../../../../arc-linux-uclibc/bin/ld: Warning: gc-sections option ignored miscutils/lib.a(inotifyd.o): In function `inotifyd_main': inotifyd.c:(.text.inotifyd_main+0x20): undefined reference to `inotify_init' It has nothing to do with kernel. It's just his libc not having those routines in libc.a file. Interestingy, headers _do_. (Unless he forgot to inform us that he also is getting some warning...) Murali: which libc do you use? If it is a statically linked uclibc, locate its libc.a and do this: # ar t libc.a | grep ino inotify.o Do you get this output? If yes: # ar x libc.a inotify.o # nm --size-sort inotify.o 0000001d T inotify_init 00000029 T inotify_rm_watch 0000002f T inotify_add_watch Do you get something like this? -- vda _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
