Показано с 1 по 10 из 1275
Древовидный режим
-
29.12.2021, 02:40 #11
- Регистрация
- 14.12.2011
- Сообщений
- 1
- Сказал(а) спасибо
- 0
- Поблагодарили 0 раз(а) в 0 сообщениях
Re: как ломануть 1C 8.3 for Linux
Подскажите пожалуйста: после выполнения команды make KVERSION="$(uname -r)" KSRC=/usr/src/linux-source-"$(uname -r | cut -d'-' -f1)"
вываливает ошибку:
Код:echo "#define NO_DEV_INIT_NAME" >>conf/usb-vhci.config.h; \ fi make clean-test make[2]: Entering directory '/root/git/vhci_hcd' rm -f test/*.o test/*.ko test/.*.cmd test/.*.flags test/*.mod.c test/Module.symvers test/Module.markers test/modules.order rm -rf test/.tmp_versions/ make[2]: Leaving directory '/root/git/vhci_hcd' if make -C /lib/modules/4.15.0-88-generic/build M=/root/git/vhci_hcd/test PWD=/root/git/vhci_hcd/test BUILD_PREFIX= KDIR=/lib/modules/4.15.0-88-generic/build KVERSION=4.15.0-88-generic EXTRA_CFLAGS='-Wno-unused -DEXPORT_SYMTAB -DKBUILD_EXTMOD -DINCLUDE_CORE_HCD=\"/lib/modules/4.15.0-88-generic/build/include/linux/usb/hcd.h\" -DTEST_HAS_TT_FLAG' modules >/dev/null 2>&1; then \ echo "//#define NO_HAS_TT_FLAG" >>conf/usb-vhci.config.h; \ else \ echo "#define NO_HAS_TT_FLAG" >>conf/usb-vhci.config.h; \ fi echo "// end of file" >>conf/usb-vhci.config.h make[1]: Leaving directory '/root/git/vhci_hcd' make -C /lib/modules/4.15.0-88-generic/build M=/root/git/vhci_hcd PWD=/root/git/vhci_hcd BUILD_PREFIX= KDIR=/lib/modules/4.15.0-88-generic/build KVERSION=4.15.0-88-generic modules make[1]: Entering directory '/usr/src/linux-headers-4.15.0-88-generic' CC [M] /root/git/vhci_hcd/usb-vhci-hcd.o CC [M] /root/git/vhci_hcd/usb-vhci-iocifc.o /root/git/vhci_hcd/usb-vhci-iocifc.c: In function ‘ioc_register’: /root/git/vhci_hcd/usb-vhci-iocifc.c:216:5: error: implicit declaration of function ‘copy_to_user’; did you mean ‘copy_to_iter’? [-Werror=implicit-function-declaration] if(copy_to_user(arg->bus_id, dname, i)) ^~~~~~~~~~~~ copy_to_iter In file included from ./include/linux/kernel.h:10:0, from ./include/linux/list.h:9, from ./include/linux/module.h:9, from /root/git/vhci_hcd/usb-vhci-iocifc.c:25: /root/git/vhci_hcd/usb-vhci-iocifc.c: In function ‘ioc_fetch_work’: /root/git/vhci_hcd/usb-vhci-iocifc.c:461:15: error: implicit declaration of function ‘__copy_to_user’; did you mean ‘raw_copy_to_user’? [-Werror=implicit-function-declaration] if(unlikely(__copy_to_user(&arg->work.urb, &urb, sizeof urb))) ^ ./include/linux/compiler.h:77:42: note: in definition of macro ‘unlikely’ # define unlikely(x) __builtin_expect(!!(x), 0) ^ /root/git/vhci_hcd/usb-vhci-iocifc.c: In function ‘ioc_giveback_common’: /root/git/vhci_hcd/usb-vhci-iocifc.c:599:90: error: macro "access_ok" requires 3 arguments, but only 2 given if(!access_ok((void *)iso, iso_count * sizeof(struct usb_vhci_ioc_iso_packet_giveback))) ^ /root/git/vhci_hcd/usb-vhci-iocifc.c:599:8: error: ‘access_ok’ undeclared (first use in this function) if(!access_ok((void *)iso, iso_count * sizeof(struct usb_vhci_ioc_iso_packet_giveback))) ^~~~~~~~~ /root/git/vhci_hcd/usb-vhci-iocifc.c:599:8: note: each undeclared identifier is reported only once for each function it appears in In file included from ./include/linux/kernel.h:10:0, from ./include/linux/list.h:9, from ./include/linux/module.h:9, from /root/git/vhci_hcd/usb-vhci-iocifc.c:25: /root/git/vhci_hcd/usb-vhci-iocifc.c:624:15: error: implicit declaration of function ‘copy_from_user’; did you mean ‘copy_from_iter’? [-Werror=implicit-function-declaration] if(unlikely(copy_from_user(urbp->urb->transfer_buffer, buf, act)))
Код:root@vm-1:~/git/vhci_hcd# uname -r 4.15.0-88-generic
Социальные закладки