LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-24-2014, 01:59 PM   #1
//////
Member
 
Registered: Nov 2005
Location: Land of Linux :: Finland
Distribution: Arch x86_64 | OpenBSD 6.7 bridge | Virtualbox Guest windows 10 pro
Posts: 577

Rep: Reputation: 277Reputation: 277Reputation: 277
problems making cdemu vhba kernel module.


hey guys/gals.

im having difficulties making CDemu's vhba kernel module, here is the build log when i try to install vhba-dkms_20140609-1_all.deb which i made from tarball with command : dpkg-buildpackage -b -uc -tc
Code:
DKMS make.log for vhba-20140609 for kernel 3.14-kali1-amd64 (x86_64)
Thu Jul 24 20:48:56 EEST 2014
make -C /lib/modules/3.14-kali1-amd64/build M=/var/lib/dkms/vhba/20140609/build modules
make[1]: Entering directory `/usr/src/linux-headers-3.14-kali1-amd64'
  CC [M]  /var/lib/dkms/vhba/20140609/build/vhba.o
/var/lib/dkms/vhba/20140609/build/vhba.c:41:5: error: "LINUX_VERSION_CODE" is not defined [-Werror=undef]
/var/lib/dkms/vhba/20140609/build/vhba.c:41:27: error: "KERNEL_VERSION" is not defined [-Werror=undef]
/var/lib/dkms/vhba/20140609/build/vhba.c:41:41: error: missing binary operator before token "("
/var/lib/dkms/vhba/20140609/build/vhba.c:78:5: error: "LINUX_VERSION_CODE" is not defined [-Werror=undef]
/var/lib/dkms/vhba/20140609/build/vhba.c:78:26: error: "KERNEL_VERSION" is not defined [-Werror=undef]
/var/lib/dkms/vhba/20140609/build/vhba.c:78:40: error: missing binary operator before token "("
/var/lib/dkms/vhba/20140609/build/vhba.c:87:5: error: "LINUX_VERSION_CODE" is not defined [-Werror=undef]
/var/lib/dkms/vhba/20140609/build/vhba.c:87:27: error: "KERNEL_VERSION" is not defined [-Werror=undef]
/var/lib/dkms/vhba/20140609/build/vhba.c:87:41: error: missing binary operator before token "("
/var/lib/dkms/vhba/20140609/build/vhba.c: In function ‘do_request’:
/var/lib/dkms/vhba/20140609/build/vhba.c:551:25: error: ‘struct scatterlist’ has no member named ‘page’
/var/lib/dkms/vhba/20140609/build/vhba.c:551:25: error: ‘KM_USER0’ undeclared (first use in this function)
/var/lib/dkms/vhba/20140609/build/vhba.c:551:25: note: each undeclared identifier is reported only once for each function it appears in
/var/lib/dkms/vhba/20140609/build/vhba.c:551:17: error: too many arguments to function ‘kmap_atomic’
In file included from /var/lib/dkms/vhba/20140609/build/vhba.c:23:0:
/usr/src/linux-headers-3.14-kali1-common/include/linux/highmem.h:66:21: note: declared here
/var/lib/dkms/vhba/20140609/build/vhba.c:554:41: error: macro "kunmap_atomic" passed 2 arguments, but takes just 1
/var/lib/dkms/vhba/20140609/build/vhba.c:554:17: error: ‘kunmap_atomic’ undeclared (first use in this function)
/var/lib/dkms/vhba/20140609/build/vhba.c: In function ‘do_response’:
/var/lib/dkms/vhba/20140609/build/vhba.c:636:25: error: ‘struct scatterlist’ has no member named ‘page’
/var/lib/dkms/vhba/20140609/build/vhba.c:636:25: error: ‘KM_USER0’ undeclared (first use in this function)
/var/lib/dkms/vhba/20140609/build/vhba.c:636:17: error: too many arguments to function ‘kmap_atomic’
In file included from /var/lib/dkms/vhba/20140609/build/vhba.c:23:0:
/usr/src/linux-headers-3.14-kali1-common/include/linux/highmem.h:66:21: note: declared here
/var/lib/dkms/vhba/20140609/build/vhba.c:639:41: error: macro "kunmap_atomic" passed 2 arguments, but takes just 1
/var/lib/dkms/vhba/20140609/build/vhba.c:639:17: error: ‘kunmap_atomic’ undeclared (first use in this function)
cc1: all warnings being treated as errors
make[4]: *** [/var/lib/dkms/vhba/20140609/build/vhba.o] Error 1
make[3]: *** [_module_/var/lib/dkms/vhba/20140609/build] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.14-kali1-amd64'
make: *** [modules] Error 2
makefile looks like this :
Code:
VHBA_VERSION := 20140609
PACKAGE := vhba-module-$(VHBA_VERSION)
DOCS := AUTHORS ChangeLog COPYING INSTALL NEWS README
DIST := vhba.c Makefile

KERNELRELEASE ?= $(shell uname -r)
KDIR ?= /lib/modules/$(KERNELRELEASE)/build
PWD ?= $(shell pwd)

obj-m := vhba.o
ccflags-y := -DVHBA_VERSION=\"$(VHBA_VERSION)\" -Werror
clean-dirs := $(PACKAGE)
clean-files := $(PACKAGE).tar.gz $(PACKAGE).tar.bz2

export VHBA_VERSION

.PHONY: default install dist modules modules_install clean dist-dir dist-gzip dist-bzip2

default: modules
install: modules_install
dist: dist-xz

modules modules_install clean:
	$(MAKE) -C $(KDIR) M=$(PWD) $@

dist-dir:
	rm -rf $(PACKAGE)
	install -m 755 -d $(PACKAGE)
	install -m 644 -t $(PACKAGE) $(DIST) $(DOCS)
	install -m 755 -d $(PACKAGE)/debian $(PACKAGE)/debian/patches $(PACKAGE)/debian/source
	install -m 644 -t $(PACKAGE)/debian         $(shell find debian -type f)
	install -m 644 -t $(PACKAGE)/debian/patches $(shell find debian/patches -type f)
	install -m 644 -t $(PACKAGE)/debian/source  $(shell find debian/source -type f)

dist-gzip: dist-dir
	tar -c $(PACKAGE) | gzip > $(PACKAGE).tar.gz
	rm -rf $(PACKAGE)

dist-bzip2: dist-dir
	tar -c $(PACKAGE) | bzip2 > $(PACKAGE).tar.bz2
	rm -rf $(PACKAGE)

dist-xz: dist-dir
	tar -c $(PACKAGE) | xz > $(PACKAGE).tar.xz
	rm -rf $(PACKAGE)
i dont have much experience about makefiles, but ill try to find an solution, maybe ill get lucky :P

edit: ill get this error message when i try to install vhba-xx.xx.xx.deb :
Code:
root@kalibox:/home/ville/Downloads/cdemu# dpkg -i vhba-dkms_20140609-1_all.deb
(Reading database ... 227929 files and directories currently installed.)
Preparing to replace vhba-dkms 20140609-1 (using vhba-dkms_20140609-1_all.deb) ...

------------------------------
Deleting module version: 20140609
completely from the DKMS tree.
------------------------------
Done.
WARNING: Module was not running.
Unpacking replacement vhba-dkms ...
Setting up vhba-dkms (20140609-1) ...
Loading new vhba-20140609 DKMS files...
First Installation: checking all kernels...
Building only for 3.14-kali1-amd64
Building initial module for 3.14-kali1-amd64
Error! Bad return status for module build on kernel: 3.14-kali1-amd64 (x86_64)
Consult /var/lib/dkms/vhba/20140609/build/make.log for more information.
WARNING: Group 'cdrom' already exists.
FATAL: Module vhba not found.
ERROR: Unable to load module.
dpkg: error processing vhba-dkms (--install):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 vhba-dkms
root@kalibox:/home/ville/Downloads/cdemu#

Last edited by //////; 07-24-2014 at 02:06 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Errors in making Kernel module shaaraddalvi Linux - Kernel 5 02-13-2013 05:50 AM
Making sure a module is loaded in the kernel upon boot. madde Linux - Newbie 2 12-23-2010 04:13 PM
vhba module for opensuse 11 - error with "make" RAFAL Linux - Software 5 08-27-2009 04:36 PM
Making kernel module yannifan Programming 1 02-04-2007 09:00 AM
Problems while making the module in Mandrake 10.1 atulhi Mandriva 7 03-05-2005 05:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration