bugDazuko - Bugs: bug #17148, Compilation failed on Linux...

 
 

bug #17148: Compilation failed on Linux 2.6.18-rc1-mm2

Submitted by:  None
Submitted on:  Wed 19 Jul 2006 10:07:43 AM UTC  
 
Status: NoneAssigned to: John Ogness <ogman>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 29 Jul 2006 09:43:03 AM UTC, comment #4:

These problems have been fixed with the 2.2.2-pre2 version. Thanks for your help!

John Ogness <ogman>
Project AdministratorIn charge of this item.
Fri 21 Jul 2006 01:50:46 AM UTC, comment #3:

So now I got it finally. Only the second one of these fixies works in 2.6.17.6. The first does not because there is no file linux/utsrelease.h in kernel's inlude directory.

Btw. there is also one big bug in it (Dazuko 2.3.0). It detects that I have Linux 2.6, but schedules dazuko_linux instead of dazuko_linux26 for compilation (even when I manually select system type), which causes segmentation fault in kernel when modprobed. When I have modified Makefile to compile dazuko_linux26, everything is fine, except that sysctl hooks works only for ON_OPEN and ON_EXEC. Well, at least KlamAV works, so I give it up for a moment.

Anonymous
Thu 20 Jul 2006 08:25:18 PM UTC, comment #2:

I solved these problems (at least Dazuko compiles and loads and KlamAV looks like working):
1. Add the following line to linux_conf.c:
#include <linux/utsrelease.h>

2. Modify dazuko_linux.c and dazuko_linux26.c:
remove the first occurence of #include <linux/devfs_fs_kernel.h> (it is the one outside #ifdef DEVFS_SUPPORT; btw. it is strange that there are two occurences of this include)
place the devfs_* functions into #ifdef DEVFS_SUPPORT block

This should work also on previous versions of Linux, however I haven't tested it.

Anonymous
Wed 19 Jul 2006 10:46:07 AM UTC, comment #1:

Thanks for pointing this out. I'll look into these changes. Unfortunately this will not be so easy.

"Linux: King of breaking backwards compatibility."

John Ogness <ogman>
Project AdministratorIn charge of this item.
Wed 19 Jul 2006 10:07:43 AM UTC, original submission:

When conpiling on Linux-2.6.18-rc1-mm2, there are two problems:

1. Neither linux/version.h nor linux/autoconf.h nor linux/config.h does include linux/utsrelease.h any more, byt this can be fixed in linux_conf.c simply by inserting one new line.

2. Make failes even if devfs support is disabled (devfs was removed from kernel):

root@shawn:/usr/src/dazuko-2.3.0# ./configure --enable-syscalls --enable-event-unlink --enable-event-rmdir --enable-event-close-modified --kernelsrcdir=/usr/src/linux-2.6.17 --mapfile=/boot/System.map-2.6.18-rc1-mm2-sten-shawn-1 --with-example-python --without-example-c
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.18)
checking for System.map file... ok (/boot/System.map-2.6.18-rc1-mm2-sten-shawn-1)
locating sys_call_table... ok (0xc02d62a0)
checking sys_call_table status... read-only
locating do_execve... ok (0xc01754f0)
identifying device API... ok
inspecting class type... ok (class)
inspecting suspend function... ok (suspend1)
checking whether __d_path() is exported... no (using local copy)
inspecting task_struct structure... ok (using parent)
configure: creating Makefile
configure: creating library/Makefile
configure: creating example_python/Makefile

./configure successful

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

module events = ON_OPEN ON_CLOSE ON_EXEC ON_UNLINK ON_RMDIR ON_CLOSE_MODIFIED
devfs support = no
rsbac support = no
hooking via syscalls = yes
local __d_path() = yes
module debug = no
library 1.x compatibility = yes

root@shawn:/usr/src/dazuko-2.3.0# make
make -C /usr/src/linux-2.6.17 include/linux/version.h include/asm scripts
make[1]: Entering directory `/usr/src/linux-2.6.17'
CHK include/linux/version.h
make[1]: `include/asm' is up to date.
make[1]: Leaving directory `/usr/src/linux-2.6.17'
make -C /usr/src/linux-2.6.17 SUBDIRS="/usr/src/dazuko-2.3.0" modules
make[1]: Entering directory `/usr/src/linux-2.6.17'
CC [M] /usr/src/dazuko-2.3.0/dazuko_linux.o
/usr/src/dazuko-2.3.0/dazuko_linux.c:39:35: error: linux/devfs_fs_kernel.h: není souborem ani adresářem
/usr/src/dazuko-2.3.0/dazuko_linux.c: In function ‘xp_sys_hook’:
/usr/src/dazuko-2.3.0/dazuko_linux.c:2093: warning: implicit declaration of function ‘devfs_mk_cdev’
/usr/src/dazuko-2.3.0/dazuko_linux.c: In function ‘xp_sys_unhook’:
/usr/src/dazuko-2.3.0/dazuko_linux.c:2274: warning: implicit declaration of function ‘devfs_remove’
make[2]: *** [/usr/src/dazuko-2.3.0/dazuko_linux.o] Error 1
make[1]: *** [_module_/usr/src/dazuko-2.3.0] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.17'
make: *** [dummy_rule] Error 2

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sat 29 Jul 2006 09:43:03 AM UTCogmanOpen/ClosedOpen=>Closed
Wed 19 Jul 2006 10:46:07 AM UTCogmanAssigned toNone=>ogman

Back to the top


Powered by Savane 3.1-cleanup1