Re: Compile dazuko and kernel 2.6 fails

John Ogness <[email protected]>
Newsgroups gmane.linux.dazuko.devel
Message-ID <[email protected]>
Hi,

You need to make sure that the new security model is configured in your 
kernel.

CONFIG_SECURITY

If you do not have the new security model configured, then you will get 
exactly these errors. If you do "make menuconfig" you will see that 
there is a new section for security. You only have to activate security 
support. You do not need to activate all the special sub-options for 
security.

John Ogness


Dirk Vornheder wrote:
> Hi !
> 
> Compile dazuko 2.0.0pre5 against kernel 2.6 fails:
> 
> root@pcbkup /privat/kernel/dazuko-2.0.0-pre5 > make
> cc -Wall -O -DLINUX -Dlinux -c dazukoio.c
> cc -Wall -O -DLINUX -Dlinux -c dazukoio_compat12.c
> ar r dazukoio.a dazukoio.o dazukoio_compat12.o
> ranlib dazukoio.a
> cc -Wall -O -DLINUX -Dlinux -o example example.c dazukoio.a
> cc -Wall -O -DLINUX -Dlinux -pthread -o example_mt example_mt.c dazukoio.a
> make -C /lib/modules/2.6.0/build SUBDIRS=/privat/kernel/dazuko-2.0.0-pre5 
> modules
> make[1]: Entering directory `/privat/kernel/linux-2.6.0'
>   CHK     include/linux/version.h
> *** Warning: Overriding SUBDIRS on the command line can cause
> ***          inconsistencies
> make[2]: `arch/i386/kernel/asm-offsets.s' is up to date.
>   CC [M]  /privat/kernel/dazuko-2.0.0-pre5/dazuko_xp.o
>   CC [M]  /privat/kernel/dazuko-2.0.0-pre5/dazuko_linux26.o
> /privat/kernel/dazuko-2.0.0-pre5/dazuko_linux26.c:440: error: variable 
> `dazuko_ops' has initializer but incomplete type
> /privat/kernel/dazuko-2.0.0-pre5/dazuko_linux26.c:441: error: unknown field 
> `inode_permission' specified in initializer
> /privat/kernel/dazuko-2.0.0-pre5/dazuko_linux26.c:441: warning: excess 
> elements in struct initializer
> /privat/kernel/dazuko-2.0.0-pre5/dazuko_linux26.c:441: warning: (near 
> initialization for `dazuko_ops')
> /privat/kernel/dazuko-2.0.0-pre5/dazuko_linux26.c: In function `xp_sys_hook':
> /privat/kernel/dazuko-2.0.0-pre5/dazuko_linux26.c:487: warning: implicit 
> declaration of function `register_security'
> /privat/kernel/dazuko-2.0.0-pre5/dazuko_linux26.c:489: warning: implicit 
> declaration of function `mod_reg_security'
> /privat/kernel/dazuko-2.0.0-pre5/dazuko_linux26.c: In function 
> `xp_sys_unhook':
> /privat/kernel/dazuko-2.0.0-pre5/dazuko_linux26.c:508: warning: implicit 
> declaration of function `mod_unreg_security'
> /privat/kernel/dazuko-2.0.0-pre5/dazuko_linux26.c:510: warning: implicit 
> declaration of function `unregister_security'
> /privat/kernel/dazuko-2.0.0-pre5/dazuko_linux26.c: At top level:
> /privat/kernel/dazuko-2.0.0-pre5/dazuko_linux26.c:440: error: storage size of 
> `dazuko_ops' isn't known
> make[2]: *** [/privat/kernel/dazuko-2.0.0-pre5/dazuko_linux26.o] Error 1
> make[1]: *** [/privat/kernel/dazuko-2.0.0-pre5] Error 2
> make[1]: Leaving directory `/privat/kernel/linux-2.6.0'
> make: *** [dummy_rule.o] Error 2
> 
> Dirk

-- 
Dazuko Maintainer
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.