2005-09-15 12:55:44

by Budde, Marco

[permalink] [raw]
Subject: How to find "Unresolved Symbols"

Hi,

I am working on a larger kernel module.
This module will be based on a lot of
portable code, for which I have to implement
the OS depended code.

At the moment I can compile the complete
code into a module. Some of OS depended
code is still missing, but I do not get
any warnings from kbuild.

When I try to load the module, I can a really
strange error message:

insmod: error inserting 'foo.o': -795847932 Function not implemented

What does that mean? How can I get a list
of missing symbols?

cu, Marco

--
telos EDV Systementwicklung GmbH


2005-09-15 14:16:41

by linux-os (Dick Johnson)

[permalink] [raw]
Subject: Re: How to find "Unresolved Symbols"


On Thu, 15 Sep 2005, Budde, Marco wrote:

> Hi,
>
> I am working on a larger kernel module.
> This module will be based on a lot of
> portable code, for which I have to implement
> the OS depended code.
>
> At the moment I can compile the complete
> code into a module. Some of OS depended
> code is still missing, but I do not get
> any warnings from kbuild.
>
> When I try to load the module, I can a really
> strange error message:
>
> insmod: error inserting 'foo.o': -795847932 Function not implemented
>
> What does that mean? How can I get a list
> of missing symbols?
>
> cu, Marco
>

Upgrade your module tools, probably also your build procedure.



Cheers,
Dick Johnson
Penguin : Linux version 2.6.13 on an i686 machine (5589.53 BogoMips).
Warning : 98.36% of all statistics are fiction.
.
I apologize for the following. I tried to kill it with the above dot :

****************************************************************
The information transmitted in this message is confidential and may be privileged. Any review, retransmission, dissemination, or other use of this information by persons or entities other than the intended recipient is prohibited. If you are not the intended recipient, please notify Analogic Corporation immediately - by replying to this message or by sending an email to [email protected] - and destroy all copies of this information, including any attachments, without reading or disclosing them.

Thank you.

2005-09-15 15:33:44

by Fawad Lateef

[permalink] [raw]
Subject: Re: How to find "Unresolved Symbols"

On 9/15/05, Budde, Marco <[email protected]> wrote:
> Hi,
>
> I am working on a larger kernel module.
> This module will be based on a lot of
> portable code, for which I have to implement
> the OS depended code.
>

Are you creating a module for multiple platforms or migrating an
existing one to new version ?? And what do u mean by OS dependent code
??? I think it might be Architecture dependent code !!!!

> At the moment I can compile the complete
> code into a module. Some of OS depended
> code is still missing, but I do not get
> any warnings from kbuild.
>
> When I try to load the module, I can a really
> strange error message:
>
> insmod: error inserting 'foo.o': -795847932 Function not implemented
>
> What does that mean? How can I get a list
> of missing symbols?
>
> cu, Marco
>

Plz tell which kernel version you are using and which distribution
!!!! b/c there is a probability that you distro might have old
modutils etc ......

--
Fawad Lateef

2005-09-15 16:33:19

by Sam Ravnborg

[permalink] [raw]
Subject: Re: How to find "Unresolved Symbols"

On Thu, Sep 15, 2005 at 02:47:02PM +0200, Budde, Marco wrote:
> Hi,
>
> I am working on a larger kernel module.
> This module will be based on a lot of
> portable code, for which I have to implement
> the OS depended code.
>
> At the moment I can compile the complete
> code into a module. Some of OS depended
> code is still missing, but I do not get
> any warnings from kbuild.
>
> When I try to load the module, I can a really
> strange error message:
>
> insmod: error inserting 'foo.o': -795847932 Function not implemented
>
> What does that mean? How can I get a list
> of missing symbols?

How do you compile the module?
I you use:
make dir/file.ko
then kbuild will warn you about undefined symbols.
Here I assume you only use standard methods in your kbuild file, and do
not play funny tricks with vermagic etc.

Sam