RE: Compiling Modules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

AFAIK, Module.sysmvers work only with the latest linux kernels (2.6.16 or higher) and not for 2.4 kernel. So still the only option for the 2.4 kernel is kbuild system but that is also not possible in every case. Please CMIIW.

-- 
Regards,
Gaurav Aggarwal

-----Original Message-----
From: kernelnewbies-bounce@xxxxxxxxxxxx [mailto:kernelnewbies-bounce@xxxxxxxxxxxx] On Behalf Of Thomas Petazzoni
Sent: Monday, August 20, 2007 9:18 PM
To: kernelnewbies@xxxxxxxxxxxx
Subject: Re: Compiling Modules

Hi,

Le Mon, 13 Aug 2007 19:25:58 -0700 (PDT),
Talib Alium <talibalm@xxxxxxxxxxx> a écrit :

> Module B, which uses kernel API like wake_up_interruptible and
> exported function calls from Module A. When module B is linked, its
> prints a line for every function call and symbol it access from
> module A but not from kernel (makefile is attached)
> 
> *** Warning: "XYZ" [module-b.ko] undefined!
> 
> I think for kernel symbols it is able to find compiled object but for
> module-a it cannot. Can anybody tell how can I specify where to objs
> for module-a are. So that it will not complain at link time.

The compilation of module-A should generation a file called
Module.symvers. Copy it to the directory of module-B before compiling
it.

See
http://lxr.free-electrons.com/source/Documentation/kbuild/modules.txt#484.
It gives the explanation, and another solution than the one I proposed
above.

Sincerly,

Thomas
-- 
Thomas Petazzoni - thomas.petazzoni@xxxxxxxx
http://{thomas,sos,kos}.enix.org - http://www.toulibre.org
http://www.{livret,agenda}dulibre.org

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux