linuxbuh / vhci_hcd Goto Github PK
View Code? Open in Web Editor NEWФорк проекта vhci_hcd
Home Page: https://sourceforge.net/p/usb-vhci/vhci_hcd/ci/master/tree/
License: GNU General Public License v2.0
Форк проекта vhci_hcd
Home Page: https://sourceforge.net/p/usb-vhci/vhci_hcd/ci/master/tree/
License: GNU General Public License v2.0
Hi,
I've downloaded the code from vhci_hcd and tried to build it, but get the following errors:
/home/dev/workspace/fido/vhci_hcd/usb-vhci-hcd.c:59:3: warning: #warning DEBUG is defined [-Wcpp]
^~~~~~~
In file included from ./include/linux/stat.h:7:0,
from ./include/linux/module.h:10,
from /home/dev/workspace/fido/vhci_hcd/usb-vhci-hcd.c:24:
./include/uapi/linux/stat.h:30:17: error: expected ‘)’ before numeric constant
#define S_IRUSR 00400
^
/home/dev/workspace/fido/vhci_hcd/usb-vhci-hcd.c:1312:34: note: in expansion of macro ‘S_IRUSR’
static DRIVER_ATTR(debug_output, S_IRUSR | S_IWUSR, show_debug_output, store_debug_output);
^~~~~~~
/home/dev/workspace/fido/vhci_hcd/usb-vhci-hcd.c: In function ‘init’:
/home/dev/workspace/fido/vhci_hcd/usb-vhci-hcd.c:1334:56: error: ‘driver_attr_debug_output’ undeclared (first use in this function); did you mean ‘store_debug_output’?
retval = driver_create_file(&vhci_hcd_driver.driver, &driver_attr_debug_output);
^~~~~~~~~~~~~~~~~~~~~~~~
store_debug_output
/home/dev/workspace/fido/vhci_hcd/usb-vhci-hcd.c:1334:56: note: each undeclared identifier is reported only once for each function it appears in
/home/dev/workspace/fido/vhci_hcd/usb-vhci-hcd.c: In function ‘cleanup’:
/home/dev/workspace/fido/vhci_hcd/usb-vhci-hcd.c:1349:47: error: ‘driver_attr_debug_output’ undeclared (first use in this function); did you mean ‘store_debug_output’?
driver_remove_file(&vhci_hcd_driver.driver, &driver_attr_debug_output);
^~~~~~~~~~~~~~~~~~~~~~~~
store_debug_output
At top level:
/home/dev/workspace/fido/vhci_hcd/usb-vhci-hcd.c:1299:16: warning: ‘store_debug_output’ defined but not used [-Wunused-function]
static ssize_t store_debug_output(struct device_driver *drv, const char *buf, size_t count)
^~~~~~~~~~~~~~~~~~
/home/dev/workspace/fido/vhci_hcd/usb-vhci-hcd.c:1284:16: warning: ‘show_debug_output’ defined but not used [-Wunused-function]
static ssize_t show_debug_output(struct device_driver *drv, char *buf)
^~~~~~~~~~~~~~~~~
scripts/Makefile.build:339: recipe for target '/home/dev/workspace/fido/vhci_hcd/usb-vhci-hcd.o' failed
make[2]: *** [/home/dev/workspace/fido/vhci_hcd/usb-vhci-hcd.o] Error 1
Makefile:1551: recipe for target 'module/home/dev/workspace/fido/vhci_hcd' failed
make[1]: *** [module/home/dev/workspace/fido/vhci_hcd] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-42-generic'
Makefile:35: recipe for target 'default' failed
make: *** [default] Error 2
I'm building it on ubuntu 18.04.
Thanks,
Собственно вся проблема описана в заголовке. Нужно патчить aksparlnx/Makefile и м.б. ещё aksparlnx/aksparpub.c
Кроме этого, в ebuild'е потеряна зависимость от app-arch/rpm2targz. Без этого пакета ни как.
DEPEND="${RDEPEND}
app-arch/rpm2targz"
vhci_hcd перестал собираться на ядре 6.2 и выше
DKMS make.log for vhci_hcd-1.15.1 for kernel 6.6.8-1 (x86_64)
Wed Dec 27 19:46:03 MSK 2023
make testconfig
make[1]: Entering directory '/home/arch/abs/testing/vhci_hcd/src/build/vhci_hcd/1.15.1/build'
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 -C /lib/modules/6.6.8-1/build M=/home/arch/abs/testing/vhci_hcd/src/build/vhci_hcd/1.15.1/build/test PWD=/home/arch/abs/testing/vhci_hcd/src/build/vhci_hcd/1.15.1/build/test BUILD_PREFIX= KDIR=/lib/modules/6.6.8-1/build KVERSION=6.6.8-1 EXTRA_CFLAGS='-Wno-unused -DEXPORT_SYMTAB -DKBUILD_EXTMOD -DINCLUDE_CORE_HCD="/lib/modules/6.6.8-1/build/include/linux/usb/hcd.h" -DKERNEL_VER=6 ' modules
make[2]: Entering directory '/usr/lib/modules/6.6.8-1/build'
CC [M] /home/arch/abs/testing/vhci_hcd/src/build/vhci_hcd/1.15.1/build/test/test.o
MODPOST /home/arch/abs/testing/vhci_hcd/src/build/vhci_hcd/1.15.1/build/test/Module.symvers
CC [M] /home/arch/abs/testing/vhci_hcd/src/build/vhci_hcd/1.15.1/build/test/test.mod.o
LD [M] /home/arch/abs/testing/vhci_hcd/src/build/vhci_hcd/1.15.1/build/test/test.ko
BTF [M] /home/arch/abs/testing/vhci_hcd/src/build/vhci_hcd/1.15.1/build/test/test.ko
make[2]: Leaving directory '/usr/lib/modules/6.6.8-1/build'
mkdir -p conf/
echo "// do not edit; automatically generated by 'make testconfig' in vhci-hcd sourcedir" >conf/usb-vhci.config.h
echo "#define USB_VHCI_HCD_VERSION "1.15.1"" >>conf/usb-vhci.config.h
echo "#define USB_VHCI_HCD_DATE "2023-12-27"" >>conf/usb-vhci.config.h
echo "#define USB_VHCI_IOCIFC_VERSION "1.15.1"" >>conf/usb-vhci.config.h
echo "#define USB_VHCI_IOCIFC_DATE USB_VHCI_HCD_DATE" >>conf/usb-vhci.config.h
make clean-test
make[2]: Entering directory '/home/arch/abs/testing/vhci_hcd/src/build/vhci_hcd/1.15.1/build'
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 '/home/arch/abs/testing/vhci_hcd/src/build/vhci_hcd/1.15.1/build'
if make -C /lib/modules/6.6.8-1/build M=/home/arch/abs/testing/vhci_hcd/src/build/vhci_hcd/1.15.1/build/test PWD=/home/arch/abs/testing/vhci_hcd/src/build/vhci_hcd/1.15.1/build/test BUILD_PREFIX= KDIR=/lib/modules/6.6.8-1/build KVERSION=6.6.8-1 EXTRA_CFLAGS='-Wno-unused -DEXPORT_SYMTAB -DKBUILD_EXTMOD -DINCLUDE_CORE_HCD="/lib/modules/6.6.8-1/build/include/linux/usb/hcd.h" -DKERNEL_VER=6 -DTEST_GIVEBACK_MECH' modules >/dev/null 2>&1; then
echo "//#define OLD_GIVEBACK_MECH" >>conf/usb-vhci.config.h;
else
echo "#define OLD_GIVEBACK_MECH" >>conf/usb-vhci.config.h;
fi
make clean-test
make[2]: Entering directory '/home/arch/abs/testing/vhci_hcd/src/build/vhci_hcd/1.15.1/build'
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 '/home/arch/abs/testing/vhci_hcd/src/build/vhci_hcd/1.15.1/build'
if make -C /lib/modules/6.6.8-1/build M=/home/arch/abs/testing/vhci_hcd/src/build/vhci_hcd/1.15.1/build/test PWD=/home/arch/abs/testing/vhci_hcd/src/build/vhci_hcd/1.15.1/build/test BUILD_PREFIX= KDIR=/lib/modules/6.6.8-1/build KVERSION=6.6.8-1 EXTRA_CFLAGS='-Wno-unused -DEXPORT_SYMTAB -DKBUILD_EXTMOD -DINCLUDE_CORE_HCD="/lib/modules/6.6.8-1/build/include/linux/usb/hcd.h" -DKERNEL_VER=6 -DTEST_DEV_BUS_ID' modules >/dev/null 2>&1; then
echo "//#define OLD_DEV_BUS_ID" >>conf/usb-vhci.config.h;
else
echo "#define OLD_DEV_BUS_ID" >>conf/usb-vhci.config.h;
fi
make clean-test
make[2]: Entering directory '/home/arch/abs/testing/vhci_hcd/src/build/vhci_hcd/1.15.1/build'
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 '/home/arch/abs/testing/vhci_hcd/src/build/vhci_hcd/1.15.1/build'
if make -C /lib/modules/6.6.8-1/build M=/home/arch/abs/testing/vhci_hcd/src/build/vhci_hcd/1.15.1/build/test PWD=/home/arch/abs/testing/vhci_hcd/src/build/vhci_hcd/1.15.1/build/test BUILD_PREFIX= KDIR=/lib/modules/6.6.8-1/build KVERSION=6.6.8-1 EXTRA_CFLAGS='-Wno-unused -DEXPORT_SYMTAB -DKBUILD_EXTMOD -DINCLUDE_CORE_HCD="/lib/modules/6.6.8-1/build/include/linux/usb/hcd.h" -DKERNEL_VER=6 -DTEST_DEV_INIT_NAME' modules >/dev/null 2>&1; then
echo "//#define NO_DEV_INIT_NAME" >>conf/usb-vhci.config.h;
else
echo "#define NO_DEV_INIT_NAME" >>conf/usb-vhci.config.h;
fi
make clean-test
make[2]: Entering directory '/home/arch/abs/testing/vhci_hcd/src/build/vhci_hcd/1.15.1/build'
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 '/home/arch/abs/testing/vhci_hcd/src/build/vhci_hcd/1.15.1/build'
if make -C /lib/modules/6.6.8-1/build M=/home/arch/abs/testing/vhci_hcd/src/build/vhci_hcd/1.15.1/build/test PWD=/home/arch/abs/testing/vhci_hcd/src/build/vhci_hcd/1.15.1/build/test BUILD_PREFIX= KDIR=/lib/modules/6.6.8-1/build KVERSION=6.6.8-1 EXTRA_CFLAGS='-Wno-unused -DEXPORT_SYMTAB -DKBUILD_EXTMOD -DINCLUDE_CORE_HCD="/lib/modules/6.6.8-1/build/include/linux/usb/hcd.h" -DKERNEL_VER=6 -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 '/home/arch/abs/testing/vhci_hcd/src/build/vhci_hcd/1.15.1/build'
make -C /lib/modules/6.6.8-1/build M=/home/arch/abs/testing/vhci_hcd/src/build/vhci_hcd/1.15.1/build PWD=/home/arch/abs/testing/vhci_hcd/src/build/vhci_hcd/1.15.1/build BUILD_PREFIX= KDIR=/lib/modules/6.6.8-1/build KVERSION=6.6.8-1 modules
make[1]: Entering directory '/usr/lib/modules/6.6.8-1/build'
CC [M] /home/arch/abs/testing/vhci_hcd/src/build/vhci_hcd/1.15.1/build/usb-vhci-hcd.o
CC [M] /home/arch/abs/testing/vhci_hcd/src/build/vhci_hcd/1.15.1/build/usb-vhci-iocifc.o
/home/arch/abs/testing/vhci_hcd/src/build/vhci_hcd/1.15.1/build/usb-vhci-iocifc.c:1073:10: error: ‘struct class’ has no member named ‘owner’
1073 | .owner = THIS_MODULE,
| ^~~~~
In file included from ./include/linux/linkage.h:7,
from ./arch/x86/include/asm/cache.h:5,
from ./include/linux/cache.h:6,
from ./arch/x86/include/asm/current.h:9,
from ./include/linux/sched.h:12,
from ./include/linux/uaccess.h:8,
from /home/arch/abs/testing/vhci_hcd/src/build/vhci_hcd/1.15.1/build/usb-vhci-iocifc.c:23:
./include/linux/export.h:29:21: error: initialization of ‘const char *’ from incompatible pointer type ‘struct module *’ [-Werror=incompatible-pointer-types]
29 | #define THIS_MODULE (&__this_module)
| ^
/home/arch/abs/testing/vhci_hcd/src/build/vhci_hcd/1.15.1/build/usb-vhci-iocifc.c:1073:18: note: in expansion of macro ‘THIS_MODULE’
1073 | .owner = THIS_MODULE,
| ^~~~~~~~~~~
./include/linux/export.h:29:21: note: (near initialization for ‘vhci_iocifc_class.name’)
29 | #define THIS_MODULE (&__this_module)
| ^
/home/arch/abs/testing/vhci_hcd/src/build/vhci_hcd/1.15.1/build/usb-vhci-iocifc.c:1073:18: note: in expansion of macro ‘THIS_MODULE’
1073 | .owner = THIS_MODULE,
| ^~~~~~~~~~~
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:243: /home/arch/abs/testing/vhci_hcd/src/build/vhci_hcd/1.15.1/build/usb-vhci-iocifc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [/usr/lib/modules/6.6.8-1/build/Makefile:1911: /home/arch/abs/testing/vhci_hcd/src/build/vhci_hcd/1.15.1/build] Error 2
make[1]: *** [Makefile:234: __sub-make] Error 2
make[1]: Leaving directory '/usr/lib/modules/6.6.8-1/build'
make: *** [Makefile:82: default] Error 2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.