Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mol and the 2.6.9 kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
dtmetz
n00b
n00b


Joined: 20 Jun 2004
Posts: 30

PostPosted: Tue Nov 02, 2004 12:13 am    Post subject: mol and the 2.6.9 kernel Reply with quote

I've finally got my kernel compiled correctly so I'm trying to get MOL to work now. My kernel is 2.6.9-gentoo-r1 and I have my .config file in the /boot/ directory.

When I try "emerge mol" I get

Code:

+ Entering kmod
+ Entering Linux
/var/tmp/portage/mol-0.9.70/work/mol-0.9.70/src/kmod/Linux/../build/tmp-offsets.c:0: fatal error: can't open tmp-offsets.s for writing: Permission denied
compilation terminated.
The bug is not reproducible, so it is likely a hardware or OS problem.
make[5]: *** [/var/tmp/portage/mol-0.9.70/work/mol-0.9.70/src/kmod/Linux/../build/asm_offsets.h] Error 1
make[4]: *** [_module_/var/tmp/portage/mol-0.9.70/work/mol-0.9.70/src/kmod/Linux/../build] Error 2
nm: '../build/mol.ko': No such file
nm: '../build/mol.ko': No such file
checker.pl failed
rm: cannot remove `../build/mol.ko': No such file or directory
make[3]: *** [all-local] Error 1
make[2]: *** [sub-Linux-all] Error 2
make[1]: *** [sub-kmod-all] Error 2
make: *** [sub-src-all] Error 2

!!! ERROR: app-emulation/mol-0.9.70 failed.
!!! Function src_compile, Line 72, Exitcode 2
!!! Build mol with: FEATURES="-userpriv -strict" emerge mol


I downloaded the source for mol and ran make and got the same problem.

I looked around and found this http://lists.maconlinux.org/pipermail/mol-general/2004-May/003188.html. So I edited the makefile like the link says to.

I try then running a make and get this
Code:

+ Entering kmod
+ Entering Linux
  Building modules, stage 2.
    Kernel source                 : /lib/modules/2.6.9-gentoo-r1/build
    Module compiled for           : 2.6.9-gentoo-r1
    Running kernel                : 2.6.9-gentoo-r1
+ Entering netdriver
/home/dan/mol-0.9.70/src/netdriver/build/sheep.c: In function `sheep_net_receiver':
/home/dan/mol-0.9.70/src/netdriver/build/sheep.c:154: error: union has no member named `ethernet'
/home/dan/mol-0.9.70/src/netdriver/build/sheep.c:168: error: union has no member named `ethernet'
/home/dan/mol-0.9.70/src/netdriver/build/sheep.c:179: error: union has no member named `ethernet'
/home/dan/mol-0.9.70/src/netdriver/build/sheep.c:183: error: union has no member named `ethernet'
/home/dan/mol-0.9.70/src/netdriver/build/sheep.c:188: error: union has no member named `ethernet'
/home/dan/mol-0.9.70/src/netdriver/build/sheep.c:216: error: union has no member named `ethernet'
/home/dan/mol-0.9.70/src/netdriver/build/sheep.c: In function `sheep_net_open':
/home/dan/mol-0.9.70/src/netdriver/build/sheep.c:250: warning: use of cast expressions as lvalues is deprecated
/home/dan/mol-0.9.70/src/netdriver/build/sheep.c: In function `sheep_net_writev':
/home/dan/mol-0.9.70/src/netdriver/build/sheep.c:397: error: union has no member named `ethernet'
make[4]: *** [/home/dan/mol-0.9.70/src/netdriver/build/sheep.o] Error 1
make[3]: *** [_module_/home/dan/mol-0.9.70/src/netdriver/build] Error 2


While it seems to get further then before, now it gets tripped up on the ethernet section. I can't find any information on this. Has anyone else had trouble getting mol to work in the 2.6.x kernel? Any ideas would be great. Thanks.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Nov 02, 2004 7:36 am    Post subject: Reply with quote

Please look at bug: https://bugs.gentoo.org/show_bug.cgi?id=68224
Back to top
View user's profile Send private message
dtmetz
n00b
n00b


Joined: 20 Jun 2004
Posts: 30

PostPosted: Wed Nov 03, 2004 12:13 am    Post subject: Reply with quote

Thanks! That worked. I'll make sure to check if my next problem is a bug first.
Back to top
View user's profile Send private message
Tolstoi
l33t
l33t


Joined: 20 May 2004
Posts: 678

PostPosted: Sat Dec 18, 2004 8:54 pm    Post subject: Reply with quote

Could you please explain what exactly you did to solve the problem? Got the same thing here on my box.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sun Dec 19, 2004 7:15 am    Post subject: Reply with quote

You're using either the userpriv or usersandbox in your FEATURES in your make.conf. These lines control how portage behaves with regards to the privilages it has when compiling software. All you should need to do is remove these features from your make.conf or simply emerge with FEATURES="-userpriv -usersandbox" emerge mol.

Good luck.
Back to top
View user's profile Send private message
Tolstoi
l33t
l33t


Joined: 20 May 2004
Posts: 678

PostPosted: Sun Dec 19, 2004 9:43 am    Post subject: Reply with quote

I set the FEATURES="-userpriv -usersandbox" and get this error message:

Code:

bash-2.05b# startmol -X
Mac-on-Linux 0.9.70-gentoo -gentoo  [Dec 19 2004 11:39]
Copyright (C) 1997-2004 Samuel Rydh
Starting MOL session 1
Loading Mac-on-Linux kernel module:
   /usr/lib/mol/0.9.70/modules/2.6.9-gentoo-r1/mol.ko
insmod: error inserting '/usr/lib/mol/0.9.70/modules/2.6.9-gentoo-r1/mol.ko': -1 Invalid module format
====================================================================
  Failed to load the module - try recompiling the MOL kernel
  module. Instructions (and information about common problems)
  are available at <http://www.maconlinux.org>.
====================================================================


I tried compiling it myself, but that didn't work either.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sun Dec 19, 2004 1:04 pm    Post subject: Reply with quote

Yes, if you check your dmesg, you'll see exactly what the problem is. The version of GCC that you've compiled MOL with is probably different from the version of GCC the kernel was compiled with. Make sure they are the same. If that doesn't solve your problem, please post the error message in your dmesg.
Back to top
View user's profile Send private message
Tolstoi
l33t
l33t


Joined: 20 May 2004
Posts: 678

PostPosted: Sun Dec 19, 2004 3:12 pm    Post subject: Reply with quote

Yes, that did it. I recompiled the Kernel and mol and now everything works fine

Thanks for the help. :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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