Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68224 - MOL porting to linux-mod eclass (was MOL does not build when FEATURES includes userpriv or usersandbox)
Summary: MOL porting to linux-mod eclass (was MOL does not build when FEATURES include...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: PPC Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 74396
  Show dependency tree
 
Reported: 2004-10-19 17:35 UTC by Armando Di Cianno (RETIRED)
Modified: 2005-03-28 05:23 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
mol-0.9.70-r1.ebuild (mol-0.9.70-r1.ebuild,3.95 KB, text/plain)
2005-01-03 13:00 UTC, Daniel Black (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Armando Di Cianno (RETIRED) gentoo-dev 2004-10-19 17:35:08 UTC
When userpriv or usersandbox is set in FEATURES, mol does not complete building.  It looks like it fails when it is compiling the kernel module portion of mol.  Removing these flags allows the build to complete.

Reproducible: Always
Steps to Reproduce:
1. set FEATURES="... userpriv usersandbox" in /etc/make.conf
2. emerge mol
3. watch it fail

Actual Results:  
= Building molvconfig             : ok
+ 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

Expected Results:  
complete building

Likely mol needs to use the new style kernel module build stuff.  I haven't
looked at the ebuild yet, so just guessing. ;-)
Comment 1 Lars Weiler (RETIRED) gentoo-dev 2004-10-21 08:20:01 UTC
Yep, the new kernel module build stuff would be fine.  But I hadn't time to find out, how it works.  If you want, you could help.
Comment 2 Daniel Black (RETIRED) gentoo-dev 2005-01-03 13:00:52 UTC
Created attachment 47516 [details]
mol-0.9.70-r1.ebuild

Work in progress. I haven't made it actually make mol and sheep the modules
yet.

This makes the tun module from the kernel rather than the included on and
coding looking they should be compatible.

BTW I haven't been able to get existing versions to compile hence the trouble
working out what to do.
Comment 3 Joe Jezak (RETIRED) gentoo-dev 2005-03-28 05:23:34 UTC
Converted mol-0.9.71_pre1 to linux-mod.  It required a small patch to prevent the access violations.  If there are still problems, feel free to reopen the bug.