Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 140314 - dazuko don't compile on kernel 2.6.17-gentoo-r2
Summary: dazuko don't compile on kernel 2.6.17-gentoo-r2
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Alon Bar-Lev (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-14 01:04 UTC by wikwam
Modified: 2007-01-27 11:50 UTC (History)
1 user (show)

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


Attachments
Dazuko 2.3.0 ebuild (dazuko-2.3.0.ebuild,1.35 KB, application/octet-stream)
2006-08-08 10:39 UTC, Lawrence Lee
Details
Patch to strip devfs_* functioncalls (dazuko_stripdevfs.diff,1.87 KB, patch)
2006-08-08 10:41 UTC, Lawrence Lee
Details | Diff
Dazuko 2.3.1-pre3 (dazuko-2.3.1_pre3.ebuild,1.35 KB, application/octet-stream)
2006-09-06 12:07 UTC, Lawrence Lee
Details

Note You need to log in before you can comment on or make changes to this bug.
Description wikwam 2006-07-14 01:04:42 UTC
I upgraded kernel to 2.6.17-gentoo-r2 and now dazuko don't compile.

>>> Emerging (1 of 4) sys-fs/dazuko-2.2.0 to /
>>> checking ebuild checksums ;-)
>>> checking auxfile checksums ;-)
>>> checking miscfile checksums ;-)
>>> checking dazuko-2.2.0.tar.gz ;-)
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.17-gentoo-r2
 * Checking for suitable kernel configuration options...                                               [ ok ]
>>> Unpacking source...
>>> Unpacking dazuko-2.2.0.tar.gz to /var/tmp/portage/dazuko-2.2.0/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dazuko-2.2.0/work/dazuko-2.2.0 ...
checking host system type... Linux
checking for make utility... ok (make)
checking for C compiler... ok (cc)
acquiring Linux kernel code configuration... ok
checking if Linux is RSBAC patched... no
checking if devfs is enabled... no
discovered host system... Linux (2.6.17)
checking if security module support is enabled... yes
verifying capabilities are not built-in... ok
locating LSM API header... ok
identifying LSM API... ok
inspecting suspend function... ok (suspend1)
checking whether __d_path() is exported... no (using local copy)
inspecting class type... ok (class)
disabling ON_CLOSE events (not available for Linux 2.6)
configure: creating Makefile
configure: creating library/Makefile
configure: creating example_c/Makefile

./configure successful

=======================
 Configuration summary
=======================

module events = ON_OPEN ON_EXEC
devfs support = no
rsbac support = no
stacking support = yes
local __d_path() = yes
module debug = no
library 1.x compatibility = yes

 * Converting Makefile to use M= instead of SUBDIRS= ...                                               [ ok ]
 * Preparing dazuko module
make -C /usr/src/linux M="/var/tmp/portage/dazuko-2.2.0/work/dazuko-2.2.0" modules
make[1]: Entering directory `/usr/src/linux-2.6.17-gentoo-r2'
  CC [M]  /var/tmp/portage/dazuko-2.2.0/work/dazuko-2.2.0/dazuko_core.o
  CC [M]  /var/tmp/portage/dazuko-2.2.0/work/dazuko-2.2.0/dazuko_transport.o
  CC [M]  /var/tmp/portage/dazuko-2.2.0/work/dazuko-2.2.0/dazuko_linux26_lsm.o
In file included from /var/tmp/portage/dazuko-2.2.0/work/dazuko-2.2.0/dazuko_linux26_lsm.c:20:
/var/tmp/portage/dazuko-2.2.0/work/dazuko-2.2.0/dazuko_linux26_lsm.h:554: warning: initialization from incompatible pointer type
/var/tmp/portage/dazuko-2.2.0/work/dazuko-2.2.0/dazuko_linux26_lsm.h:627: error: unknown field `socket_getpeersec' specified in initializer
/var/tmp/portage/dazuko-2.2.0/work/dazuko-2.2.0/dazuko_linux26_lsm.c: In function `dazuko_security_socket_getpeersec':
/var/tmp/portage/dazuko-2.2.0/work/dazuko-2.2.0/dazuko_linux26_lsm.c:1224: error: structure has no member named `socket_getpeersec'
/var/tmp/portage/dazuko-2.2.0/work/dazuko-2.2.0/dazuko_linux26_lsm.c:1224: error: structure has no member named `socket_getpeersec'
/var/tmp/portage/dazuko-2.2.0/work/dazuko-2.2.0/dazuko_linux26_lsm.c:1224: error: structure has no member named `socket_getpeersec'
/var/tmp/portage/dazuko-2.2.0/work/dazuko-2.2.0/dazuko_linux26_lsm.c:1224: error: structure has no member named `socket_getpeersec'
make[2]: *** [/var/tmp/portage/dazuko-2.2.0/work/dazuko-2.2.0/dazuko_linux26_lsm.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [_module_/var/tmp/portage/dazuko-2.2.0/work/dazuko-2.2.0] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.17-gentoo-r2'
make: *** [dummy_rule] Error 2

!!! ERROR: sys-fs/dazuko-2.2.0 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  dazuko-2.2.0.ebuild, line 37:   Called linux-mod_src_compile
  linux-mod.eclass, line 515:   Called die

!!! Unable to make   dummy_rule.
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 1 Lawrence Lee 2006-08-08 10:39:21 UTC
Created attachment 93773 [details]
Dazuko 2.3.0 ebuild

I have written an ebuild for the newwest version of dazuko which supports system call hooking on the GNU/Linux kernel versions 2.6.* even if they don't support LSM
Comment 2 Lawrence Lee 2006-08-08 10:41:59 UTC
Created attachment 93774 [details, diff]
Patch to strip devfs_* functioncalls

This is the patch that goes with the above ebuild. It strips the devfs_* function calls out of two files, since the newest kernels have dropped devfs support. It still works fine on my system with udev though.
Comment 3 Lawrence Lee 2006-09-06 12:07:18 UTC
Created attachment 96205 [details]
Dazuko 2.3.1-pre3

For kernel 2.6.18.
Comment 4 Leo 2006-09-22 01:47:29 UTC
(In reply to comment #3)
> Created an attachment (id=96205) [edit]
> Dazuko 2.3.1-pre3
> 
> For kernel 2.6.18.
> 
I get the following error :-(
it seems that the /usr/src/linux-2.6.18-lsd/include/linux/version.h.tmp it is not created... exist only  the /usr/src/linux-2.6.18-lsd/include/linux/version.h file

=======================
 Configuration summary
=======================
module events = ON_OPEN ON_EXEC
devfs support = no
rsbac support = no
stacking support = yes
local __d_path() = yes
module debug = no
library 1.x compatibility = yes
 * Converting Makefile to use M= instead of SUBDIRS= ...                                                                                                                                                                              [ ok ]
 * Preparing dazuko module
make -C /usr/src/linux include/linux/version.h include/asm scripts
make[1]: Entering directory `/usr/src/linux-2.6.18-lsd'
  CHK     include/linux/version.h
ACCESS DENIED  open_wr:   /usr/src/linux-2.6.18-lsd/include/linux/version.h.tmp
/bin/sh: include/linux/version.h.tmp: Permission denied
  UPD     include/linux/version.h
mv: cannot stat `include/linux/version.h.tmp': No such file or directory
make[1]: *** [include/linux/version.h] Error 1
make[1]: Leaving directory `/usr/src/linux-2.6.18-lsd'
make: *** [dummy_rule] Error 2
!!! ERROR: sys-fs/dazuko-2.3.1_pre3 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  dazuko-2.3.1_pre3.ebuild, line 40:   Called linux-mod_src_compile
  linux-mod.eclass, line 469:   Called die
!!! Unable to make   dummy_rule.
!!! If you need support, post the topmost build error, and the call stack if relevant.
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-sys-fs_-_dazuko-2.3.1_pre3-1913.log"
open_wr:   /usr/src/linux-2.6.18-lsd/include/linux/version.h.tmp
--------------------------------------------------------------------------------
!!! This ebuild is from an overlay: '/usr/local/portage/lsd'
Comment 5 mike daugird 2006-09-22 14:07:22 UTC
I get the following using the 2.3.1-pre3 ebuild

DavidCPU dazuko # ebuild dazuko-2.3.1-pre3.ebuild digest
!!! sys-fs/dazuko-2.3.1-pre3 does not follow correct package syntax.
Comment 6 mike daugird 2006-09-27 10:50:36 UTC
I now get the same error that Leo gets.

 * Converting Makefile to use M= instead of SUBDIRS= ...                                                                                               [ ok ]
 * Preparing dazuko module
make -C /usr/src/linux include/linux/version.h include/asm scripts
make[1]: Entering directory `/usr/src/linux-2.6.18-suspend2'
  CHK     include/linux/version.h
ACCESS DENIED  open_wr:   /usr/src/linux-2.6.18-suspend2/include/linux/version.h.tmp
/bin/sh: include/linux/version.h.tmp: Permission denied
  UPD     include/linux/version.h
mv: cannot stat `include/linux/version.h.tmp': No such file or directory
make[1]: `include/asm' is up to date.
make[1]: *** [include/linux/version.h] Error 1
make[1]: Leaving directory `/usr/src/linux-2.6.18-suspend2'
make: *** [dummy_rule] Error 2

!!! ERROR: sys-fs/dazuko-2.3.1_pre3 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  dazuko-2.3.1_pre3.ebuild, line 40:   Called linux-mod_src_compile
  linux-mod.eclass, line 469:   Called die

!!! Unable to make   dummy_rule.
!!! If you need support, post the topmost build error, and the call stack if relevant.

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-sys-fs_-_dazuko-2.3.1_pre3-11303.log"

open_wr:   /usr/src/linux-2.6.18-suspend2/include/linux/version.h.tmp
--------------------------------------------------------------------------------
!!! This ebuild is from an overlay: '/usr/local/portage'
Comment 7 Christian Heim (RETIRED) gentoo-dev 2007-01-27 11:46:45 UTC
(In reply to comment #6)
> I now get the same error that Leo gets.
> 
>  * Converting Makefile to use M= instead of SUBDIRS= ...                       
>                                                                        [ ok ]
>  * Preparing dazuko module
> make -C /usr/src/linux include/linux/version.h include/asm scripts
> make[1]: Entering directory `/usr/src/linux-2.6.18-suspend2'
>   CHK     include/linux/version.h
> ACCESS DENIED  open_wr:  
> /usr/src/linux-2.6.18-suspend2/include/linux/version.h.tmp
> /bin/sh: include/linux/version.h.tmp: Permission denied
>   UPD     include/linux/version.h
> mv: cannot stat `include/linux/version.h.tmp': No such file or directory
> make[1]: `include/asm' is up to date.
> make[1]: *** [include/linux/version.h] Error 1
> make[1]: Leaving directory `/usr/src/linux-2.6.18-suspend2'
> make: *** [dummy_rule] Error 2
> 
> !!! ERROR: sys-fs/dazuko-2.3.1_pre3 failed.
> Call stack:
>   ebuild.sh, line 1546:   Called dyn_compile
>   ebuild.sh, line 937:   Called src_compile
>   dazuko-2.3.1_pre3.ebuild, line 40:   Called linux-mod_src_compile
>   linux-mod.eclass, line 469:   Called die
> 
> !!! Unable to make   dummy_rule.
> !!! If you need support, post the topmost build error, and the call stack if
> relevant.
> 
> --------------------------- ACCESS VIOLATION SUMMARY
> ---------------------------
> LOG FILE = "/var/log/sandbox/sandbox-sys-fs_-_dazuko-2.3.1_pre3-11303.log"
> 
> open_wr:   /usr/src/linux-2.6.18-suspend2/include/linux/version.h.tmp
> --------------------------------------------------------------------------------
> !!! This ebuild is from an overlay: '/usr/local/portage'

dazuko-2.3.3_pre1 works for me
Comment 8 Alon Bar-Lev (RETIRED) gentoo-dev 2007-01-27 11:50:24 UTC
Oh...
Right!
Was fixed this a long time ago...