Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

Re: lug-bg: LKM compilation


  • Subject: Re: lug-bg: LKM compilation
  • From: whitefang@xxxxxx ( )
  • Date: Fri, 12 Apr 2002 14:52:30 +0300



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 12 April 2002 14:18, you wrote:
>     Zdraveite,
>   Poslednite dni si namerih nova zanimavka - pisaneto na LKMs
> Ne mi triabva za neshto seriozno, samo s poznavatelna cel. Obache imam
> slednia problem: dolnia mnogo prost source:
> ------------------------------------------
> #define MODVERSIONS
> #include <linux/modversions.h>
> #include <linux/kernel.h>
> #include <linux/module.h>
>
> int init_module()
> {
> 	printk("<1> Hello World Module Start\n");
> 	return 0;
> }
>
> void cleanup_module()
> {
> 	printk("<1> Hello World Module Cleanup\n");
> }
> ------------------------------------------
> compiliram s komanden red:
> ------------------------------------------

> [edac kmod]$ gcc -c -DMODULE -D__KERNEL__ -DLINUX m1hw.c

Mahni #define MODVERSION
#include <linux/moversion>

gcc -c -DMODULE -DMODVERSIONS -D__KERNEL -DLINUX -include 
/usr/src/linux/include/linux/modevrsions.h -I /usr/src/linux/include m1hw.c

> In file included from m1hw.c:3:
> /usr/include/linux/kernel.h:73: parse error before `size_t'
> /usr/include/linux/kernel.h:75: parse error before `size_t'
> In file included from /usr/include/asm/page.h:16,
>                  from /usr/include/asm/processor.h:13,
>                  from /usr/include/linux/prefetch.h:13,
>                  from /usr/include/linux/list.h:6,
>                  from /usr/include/linux/module.h:12,
>                  from m1hw.c:4:
> /usr/include/asm/mmx.h:10: parse error before `size_t'
> ------------------------------------------
> Rovih se iz .h files ama ne mojah da vidia neshto trevojno.
> gcc 2.95.3,
> kernel 2.4.18
> /*
> #define CONFIG_MODULES 1
> #define CONFIG_MODVERSIONS 1
> #define CONFIG_KMOD 1
> */
> /usr/include/asm e symlink kym /usr/src/linux/include/asm, koeto
> pyk e symlink kym /usr/src/linux/include/asm-i386
> /usr/include/linux e symlink kum /usr/src/linux/include/linux
> /* ako gornite neshta imat niakakvo znachenie */
>
> Blagodaria predvaritelno i syjeliavam za leko dylgia mail
>
> ===========================================================================
> A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
> http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8tsqDmx3uqe61brwRAnkYAJoCBcD+t3Bweti3oXN2sY0JohePRwCeJnKF
9xiU+6EhA7QScCRjF9B+u8s=
=xZ2H
-----END PGP SIGNATURE-----
===========================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora



 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.