помогите собрать inotify-tools пожалуйста
день добрый, помогите пожалуйста собрать inotify-tools, не получается.
вот конфиг роутера
Code:
# cat /.version
1.9.2.7-rtn-r3121
# uname -r
2.6.22.19
делал как вот тут описано http://www.hub.ru/wiki/%D0%9A%D0%BE%...BE%D1%80%D0%B0, пакеты нужные поставил
Code:
# ipkg list_installed | grep -E \(buildroot\|optware-devel\)
buildroot - 4.1.1-13 - uClibc compilation toolchain
optware-devel - 6.8-10 - This is a meta package that bundles all the packages required for optware native development. When fully functional, it should
распаковал inotify-tools-3.14.tar.gz, далее
make вываливается вот с такой ошибкой
Code:
/opt/bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../../libinotifytools/src/inotifytools -std=c99 -g -O2 -MT inotifytools.lo -MD -MP -MF .deps/inotifytools.Tpo -c -o inotifytools.lo inotifytools.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../libinotifytools/src/inotifytools -std=c99 -g -O2 -MT inotifytools.lo -MD -MP -MF .deps/inotifytools.Tpo -c inotifytools.c -fPIC -DPIC -o .libs/inotifytools.o
In file included from inotifytools/inotify.h:12,
from inotifytools.c:34:
inotifytools/inotify-nosys.h: In function ‘inotify_init’:
inotifytools/inotify-nosys.h:153: error: ‘__NR_inotify_init’ undeclared (first use in this function)
inotifytools/inotify-nosys.h:153: error: (Each undeclared identifier is reported only once
inotifytools/inotify-nosys.h:153: error: for each function it appears in.)
inotifytools/inotify-nosys.h: In function ‘inotify_add_watch’:
inotifytools/inotify-nosys.h:158: error: ‘__NR_inotify_add_watch’ undeclared (first use in this function)
inotifytools/inotify-nosys.h: In function ‘inotify_rm_watch’:
inotifytools/inotify-nosys.h:163: error: ‘__NR_inotify_rm_watch’ undeclared (first use in this function)
make[4]: *** [inotifytools.lo] Error 1
make[4]: Leaving directory `/opt/home/root/inotify-tools-3.14/libinotifytools/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/opt/home/root/inotify-tools-3.14/libinotifytools/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/home/root/inotify-tools-3.14/libinotifytools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/home/root/inotify-tools-3.14'
make: *** [all] Error 2
если я правильно понял эта функция ‘__NR_inotify_rm_watch’ должна быть где-то в исходниках ядра.
скачал исходники linux-2.6.22.19.tar.bz2 прошелся по ним
Code:
# grep -r "__NR_inotify_rm_watch" *
include/asm-powerpc/unistd.h:#define __NR_inotify_rm_watch 277
include/asm-parisc/unistd.h:#define __NR_inotify_rm_watch (__NR_Linux + 271)
include/asm-s390/unistd.h:#define __NR_inotify_rm_watch 286
include/asm-avr32/unistd.h:#define __NR_inotify_rm_watch 242
include/asm-m68k/unistd.h:#define __NR_inotify_rm_watch 286
include/asm-i386/unistd.h:#define __NR_inotify_rm_watch 293
include/asm-x86_64/unistd.h:#define __NR_inotify_rm_watch 255
include/asm-x86_64/unistd.h:__SYSCALL(__NR_inotify_rm_watch, sys_inotify_rm_watch)
include/asm-blackfin/unistd.h:#define __NR_inotify_rm_watch 293
include/asm-sparc/unistd.h:#define __NR_inotify_rm_watch 156 /* Linux specific */
include/asm-sh64/unistd.h:#define __NR_inotify_rm_watch 320
include/asm-h8300/unistd.h:#define __NR_inotify_rm_watch 293
include/asm-mips/unistd.h:#define __NR_inotify_rm_watch (__NR_Linux + 286)
include/asm-mips/unistd.h:#define __NR_inotify_rm_watch (__NR_Linux + 245)
include/asm-mips/unistd.h:#define __NR_inotify_rm_watch (__NR_Linux + 249)
include/asm-sparc64/unistd.h:#define __NR_inotify_rm_watch 156 /* Linux specific */
include/asm-m68knommu/unistd.h:#define __NR_inotify_rm_watch 286
include/asm-arm/unistd.h:#define __NR_inotify_rm_watch (__NR_SYSCALL_BASE+318)
include/asm-ia64/unistd.h:#define __NR_inotify_rm_watch 1279
include/asm-alpha/unistd.h:#define __NR_inotify_rm_watch 446
include/asm-frv/unistd.h:#define __NR_inotify_rm_watch 293
include/asm-sh/unistd.h:#define __NR_inotify_rm_watch 292
в исходниках ядра вроде все есть. может их надо куда-то подложить при компиляции? Далее для меня скользая тема, но в /opt/include/linux/version.h строка
Code:
#define UTS_RELEASE "2.4.20"
может в этой прошивке инклуды только для 2.4 ? inotify появился в 22.6.13.
подскажите пожалуйста как собрать пакет, спасибо