lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 11 Aug 2010 16:54:03 -0700
From:	Randy Dunlap <randy.dunlap@...cle.com>
To:	Pistis Valentino <vale.pistis@...il.com>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: Problems Compile Misc Module Example

On Thu, 12 Aug 2010 01:46:27 +0200 Pistis Valentino wrote:

> Hello everyone,
> 
> I'm studying how to build kernel modules.
> Right now I have found some strange errors and nothing solutions in the web.
> 
> I compiled my kernel module "driver_ase" whose files are driver_ase.h,
> driver_ase.c.
> No errors in compilation, the module is also loaded correctly.
> 
> I wrote a small service "service_ase.c" using the kernel module that I created.
> I found a lot of errors.
> the only explanation IMO is that the directory has been renamed  from
> "/usr/src/linux-2.6.34.2/include/asm" in
> "/usr/src/linux-2.6.34.2/include/asm-generic", the errors make me
> think that some header file has not yet updated.
> 
> You may like this or something wrong?
> 
> Could you help me please?
> 
> I'm using Debian Sidux with 2.6.34.2 kernel compiled.
> 
> In the bottom of the mail has the source codes, and the error.
> It is a bit long error message, sorry!

You need a minimal Makefile.
Please see Documentation/kbuild/modules.txt, section 2. How to build external modules.


---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ