Problem with make

sk8erbender

New Member
Feb 9, 2016
10
0
1
34
Hello again guys. Since I cant use pci passthrough with my configuration I decided to use it in system.

uname -a

Linux servervm 4.2.6-1-pve #1 SMP Wed Dec 9 10:49:55 CET 2015 x86_64 GNU/Linux

Ive decided to install HASP.

Ive installed the following packeges with

dpkg -i haspd_7.40-eter6debian_amd64.deb haspd-modules_7.40-eter6debian_amd64.deb dkms-aksparlnx_7.40-eter1debian_all.deb

After that

/etc/init.d/haspd status
Hardware protection keys support bundle. Etersoft (c) 2008-2016
HASPD package 7.40 with /dev/bus/usb support
Aladdin HASP 4/HL/SRM driver status:
kernel module aksparlnx is not loaded (WARNING: HASP LPT keys supportabled! Run service haspd build if needed.)
aksusbd is running
winehasp is running
hasplm is running
hasplmd is running
aksusbd version 7.40.1.50292 - key API (USB) version: 3.88 (parallel drivavailable)
/proc/bus/usb workaround is enabled
Smartkey 3 USB/LPT driver status:
skeyd is stopped
SafeNet Sentinel status:
usbsentinel is stopped
SntlKeysSrvrlnx is stopped

I need that LPT keys support working

Before that Ive downloaded headers
apt-get install pve-headers-4.2.6-1-pve

Then I run
service haspd build

Error! The module aksparlnx 7.40 is not currently installed.
This module is not currently ACTIVE for kernel 4.2.6-1-pve (x86_64).

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=4.2.6-1-pve kernel3....(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.2.6-1-pve (x86_64)
Consult /var/lib/dkms/aksparlnx/7.40/build/make.log for more information.

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=4.2.6-1-pve kernel3....(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.2.6-1-pve (x86_64)
Consult /var/lib/dkms/aksparlnx/7.40/build/make.log for more information.
no kernel sources found at /lib/modules/4.2.6-1-pve/build or kernel not configured
use KERNSRC to set correct location
aborting


here is the output from/var/lib/dkms/aksparlnx .....

make V=1 -C /lib/modules/4.2.6-1-pve/build here=$(pwd)/ SUBDIRS=$(pwd) modules
make[1]: Entering directory '/usr/src/linux-headers-4.2.6-1-pve'
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo >&2; \
echo >&2 " ERROR: Kernel configuration is invalid."; \
echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo >&2 ; \
/bin/false)
mkdir -p /var/lib/dkms/aksparlnx/7.40/build/.tmp_versions ; rm -f /var/lib/dkms/aksparlnx/7.40/build/.tmp_versions/*
make -f ./scripts/Makefile.build obj=/var/lib/dkms/aksparlnx/7.40/build
gcc -Wp,-MD,/var/lib/dkms/aksparlnx/7.40/build/.aksparpub.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.9/include -I./arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/inc$
/var/lib/dkms/aksparlnx/7.40/build/aksparpub.c: In function ‘hl_parport_claim_or_block’:
/var/lib/dkms/aksparlnx/7.40/build/aksparpub.c:1033:13: error: implicit declaration of function ‘interruptible_sleep_on_timeout’ [-Werror=implicit-function-declaration]
*timeout = interruptible_sleep_on_timeout(&port->wait_q, *timeout);
^
/var/lib/dkms/aksparlnx/7.40/build/aksparpub.c:1035:13: error: implicit declaration of function ‘interruptible_sleep_on’ [-Werror=implicit-function-declaration]
interruptible_sleep_on(&port->wait_q);
^
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target '/var/lib/dkms/aksparlnx/7.40/build/aksparpub.o' failed
make[2]: *** [/var/lib/dkms/aksparlnx/7.40/build/aksparpub.o] Error 1
Makefile:1398: recipe for target '_module_/var/lib/dkms/aksparlnx/7.40/build' failed
make[1]: *** [_module_/var/lib/dkms/aksparlnx/7.40/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.2.6-1-pve'
Makefile:55: recipe for target 'kernel26' failed
make: *** [kernel26] Error 2


So I run 'make oldconfig && make prepare' on kernel src to fix it.

root@servervm:/usr/src/linux-headers-4.2.6-1-pve# make oldconfig && make prepare
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --oldconfig Kconfig
#
# configuration written to .config
#
scripts/kconfig/conf --silentoldconfig Kconfig
make[1]: *** No rule to make target 'arch/x86/entry/syscalls/syscall_32.tbl', needed by 'arch/x86/entry/syscalls/../../include/generated/asm/syscalls_32.h'. Stop.
arch/x86/Makefile:184: recipe for target 'archheaders' failed
make: *** [archheaders] Error 2


Guys IM totally lost.. What should I do to make this module in kernel working??/
 
ls -1 /lib/modules/4.2.6-1-pv
ls -1 /lib/modules/4.2.6-1-pve/
build
kernel
modules.alias
modules.alias.bin
modules.builtin
modules.builtin.bin
modules.dep
modules.dep.bin
modules.devname
modules.order
modules.softdep
modules.symbols
modules.symbols.bin
zfs
root@servervm:~# ls -1 /usr/src
aksparlnx-7.40
drbd-8.3.15
linux-headers-4.2.6-1-pve

e/
build
kernel
modules.alias
modules.alias.bin
modules.builtin
modules.builtin.bin
modules.dep
modules.dep.bin
modules.devname
modules.order
modules.softdep
modules.symbols
modules.symbols.bin
zfs
root@servervm:~# ls -1 /usr/src
aksparlnx-7.40
drbd-8.3.15
linux-headers-4.2.6-1-pve