Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem building vmnet module with om kernel [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
behd
Apprentice
Apprentice


Joined: 11 Feb 2003
Posts: 155

PostPosted: Thu May 06, 2004 2:17 pm    Post subject: Problem building vmnet module with om kernel [SOLVED] Reply with quote

Hie,

I'm having problem to compile the vmnet module (for vmware) with the unofficial release of openmosix kernel. I always get this error:

Code:

make: Entering directory `/tmp/vmware-config0/vmnet-only'
make: Leaving directory `/tmp/vmware-config0/vmnet-only'
Unable to make a vmnet module that can be loaded in the running kernel:
/tmp/vmware-config0/vmnet.o: unresolved symbol deputy_csum_partial_copy_to_user
/tmp/vmware-config0/vmnet.o:
Hint: You are trying to load a module without a GPL compatible license
      and it has unresolved symbols.  The module may be trying to access
      GPLONLY symbols but the problem is more likely to be a coding or
      user error.  Contact the module supplier for assistance, only they
      can help you.

There is probably a slight difference in the kernel configuration between the
set of C header files you specified and your running kernel.  You may want to
rebuild a kernel based on that directory, or specify another directory.


Already tried:
- fake GPL license when building modules [ Result: Yay, I can modprobe vmmon w/o warning about tainting my kernel but vmnet still have the same unresolved symbol]
- give a try to 2.4.26-openmosix (NB. I am running a 2.4.25-openmosix-r3) kernel but vmnet still have the same unresolved symbol
- give a try to a vanilla 2.4.25 kernel, yep both module compile and are inserted w/o problem
(but then the problem, is that I don't have OM anymore :( )

Conclusion:
It really seems to be a problem with OM patch... but I don't know how I could troubleshoot furhter...

If anyone can help, it's more than welcome... TIA !!!

[Edit] Ooops, I forgot to tell my version of vmware (if it can be of any use).
vmware-workstation 4.5.1.7568


Last edited by behd on Mon May 10, 2004 10:56 am; edited 1 time in total
Back to top
View user's profile Send private message
behd
Apprentice
Apprentice


Joined: 11 Feb 2003
Posts: 155

PostPosted: Mon May 10, 2004 10:54 am    Post subject: Reply with quote

okie solved thanks to petr:
http://www.vmware.com/community/thread.jspa?forumID=19&threadID=4437&messageID=24100#24100

Cheers and thanks to vmware community !

If someone is also using this kind of kernel with vmware, here's the patch I created:
-------------------cut here---
--- hpc/export.c 2004-04-26 09:40:40.000000000 +0200
+++ hpc/export.c 2004-05-10 11:14:44.000000000 +0200
@@ -17,6 +17,8 @@

EXPORT_SYMBOL(deputy_copy_to_user);
EXPORT_SYMBOL(deputy_copy_from_user);
+EXPORT_SYMBOL(deputy_csum_partial_copy_from_user);
+EXPORT_SYMBOL(deputy_csum_partial_copy_to_user);
EXPORT_SYMBOL(deputy_clear_user);
EXPORT_SYMBOL(deputy_strncpy_from_user);
EXPORT_SYMBOL(deputy_strnlen_user);

--- include/asm-i386/uaccess.h 2004-04-26 11:30:23.000000000 +0200
+++ include/asm-i386/uaccess.h 2004-05-10 11:52:05.000000000 +0200
@@ -95,6 +95,8 @@

extern unsigned long deputy_copy_from_user(void *, void *, unsigned long, int);
extern unsigned long deputy_copy_to_user(void *, void *, unsigned long, int);
+extern unsigned int deputy_csum_partial_copy_from_user(const char *, char *,int, int, int *);
+extern unsigned int deputy_csum_partial_copy_to_user(const char *, char *, int, int, int *);
extern unsigned long deputy_clear_user(void *, int, int);
extern long deputy_strncpy_from_user(char *, char *, int, int);
extern long deputy_strnlen_user(char *, long);
-------------------stop cutting---

As I have played with lot of files in the kernel sources, I hope that I did not modified other files... if it doesn't work for you let me know....
NB. notify me by mail: palclan AT host DOT sk
Back to top
View user's profile Send private message
tecknojunky
Veteran
Veteran


Joined: 19 Oct 2002
Posts: 1937
Location: Montréal

PostPosted: Fri Nov 26, 2004 8:03 pm    Post subject: Reply with quote

Well, Googling deputy_csum_partial_copy_to_user will rank 1st the link to that patch submitted by Pter.

I think the patch should be added to the OM ebuild.

edit:I submitted a bug
_________________
(7 of 9) Installing star-trek/species-8.4.7.2::talax.
Back to top
View user's profile Send private message
behd
Apprentice
Apprentice


Joined: 11 Feb 2003
Posts: 155

PostPosted: Sun Nov 28, 2004 7:21 pm    Post subject: Reply with quote

LoL my patch ranks first... Yay :D

> I think the patch should be added to the OM ebuild.
normally it has already been sent to openmosix-devel:
https://bugs.gentoo.org/show_bug.cgi?id=50622
Back to top
View user's profile Send private message
tecknojunky
Veteran
Veteran


Joined: 19 Oct 2002
Posts: 1937
Location: Montréal

PostPosted: Sun Nov 28, 2004 11:27 pm    Post subject: Reply with quote

Ok, I changed my bug entry as a duplicate of yours.

Is there any one taking care of the OM ebuilds? Your bug is dating from last may... 6 months ago! 8O
_________________
(7 of 9) Installing star-trek/species-8.4.7.2::talax.
Back to top
View user's profile Send private message
behd
Apprentice
Apprentice


Joined: 11 Feb 2003
Posts: 155

PostPosted: Tue Nov 30, 2004 8:44 am    Post subject: Reply with quote

Well normally Konstantin took care of that...

Quote:

------- Additional Comment #3 From Konstantin Arkhipov 2004-05-23 07:18 PST -------

Merged into migshm-testing patchset, sent to tab and to openmosix-devel@


------- Additional Comment #4 From Konstantin Arkhipov 2004-05-23 07:40 PST -------

Merged into mainline and tab's patchset.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum