It seems that the below got me further; however, I am not investigating
the following errors:
gcc -c -g -O6 -DMODULE -D__KERNEL__
-I/lib/modules/2.4.7-timer-SMP/build/include
-I/usr/src/linux-2.4.7-timer-SMP/include -I/usr/src/linux/include
-I/usr/src/linux-2.4.7/include auditmodule.c
auditmodule.c: In function `init_module':
auditmodule.c:152: `boot_cpu_data' undeclared (first use in this function)
auditmodule.c:152: (Each undeclared identifier is reported only once
auditmodule.c:152: for each function it appears in.)
auditmodule.c: In function `audit_execve':
auditmodule.c:1333: structure has no member named `ebx'
auditmodule.c:1339: structure has no member named `ecx'
auditmodule.c:1390: structure has no member named `ecx'
auditmodule.c:1390: structure has no member named `edx'
auditmodule.c:1409: structure has no member named `ecx'
auditmodule.c:1409: structure has no member named `edx'
make: *** [auditmodule] Error 1
Thanks!
Eric Sammons
(804)697-3925
FRIT - Infrastructure Engineering
"Post, Mark K" <[EMAIL PROTECTED]>
Sent by: Linux on 390 Port <[EMAIL PROTECTED]>
07/02/2003 12:07 PM
Please respond to Linux on 390 Port
To: [EMAIL PROTECTED]
cc:
Subject: Re: SNARE install on SuSE 2.4.7-timer-SMP
Eric,
If you have the kernel-source RPM installed, you'll need to run a "make
dep"
command to create the include/linux/version.h file. To do this, you'll
probably have to do:
cd /usr/src/linux
cp /boot/kernel/.config ./
make dep
Mark Post
-----Original Message-----
From: Eric Sammons [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 02, 2003 9:12 AM
To: [EMAIL PROTECTED]
Subject: SNARE install on SuSE 2.4.7-timer-SMP
As many of you may or may not know there is a handy utility available for
Intrusion detection, SNARE. The SNARE software, rpm and source, are
available at http://www.intersectalliance.com/projects/Snare/index.html.
I am running into issues compiling this software on my Z/VM guest running
SuSE Linux. I receive the following output:
gcc -c -g -O6 -DMODULE -D__KERNEL__
-I/lib/modules/2.4.7-timer-SMP/build/include
-I/usr/src/linux-2.4.7-timer-SMP/include -I/usr/src/linux/include
-I/usr/src/linux-2.4.7/include auditmodule.c
In file included from
/lib/modules/2.4.7-timer-SMP/build/include/linux/module.h:261,
from auditmodule.c:29:
/usr/include/linux/version.h:2: #error
"======================================================="
/usr/include/linux/version.h:3: #error "You should not include
/usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4: #error "files directly for the compilation
of kernel modules."
/usr/include/linux/version.h:5: #error ""
/usr/include/linux/version.h:6: #error "glibc now uses kernel header files
from a well-defined"
/usr/include/linux/version.h:7: #error "working kernel version (as
recommended by Linus Torvalds)"
/usr/include/linux/version.h:8: #error "These files are glibc internal and
may not match the"
/usr/include/linux/version.h:9: #error "currently running kernel. They
should only be"
/usr/include/linux/version.h:10: #error "included via other system header
files - user space"
/usr/include/linux/version.h:11: #error "programs should not directly
include <linux/*.h> or"
/usr/include/linux/version.h:12: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13: #error ""
/usr/include/linux/version.h:14: #error "To build kernel modules please do
the following:"
/usr/include/linux/version.h:15: #error ""
/usr/include/linux/version.h:16: #error " o Have the kernel sources
installed"
/usr/include/linux/version.h:17: #error ""
/usr/include/linux/version.h:18: #error " o Make sure that the symbolic
link"
/usr/include/linux/version.h:19: #error " /lib/modules/`uname -r`/build
exists and points to"
/usr/include/linux/version.h:20: #error " the matching kernel source
directory"
/usr/include/linux/version.h:21: #error ""
/usr/include/linux/version.h:22: #error " o Now copy
/boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23: #error " /lib/modules/`uname
-r`/build/include/linux/version.h"
/usr/include/linux/version.h:24: #error ""
/usr/include/linux/version.h:25: #error " o When compiling, make sure to
use the following"
/usr/include/linux/version.h:26: #error " compiler option to use the
correct include files:"
/usr/include/linux/version.h:27: #error ""
/usr/include/linux/version.h:28: #error " -I/lib/modules/`uname
-r`/build/include"
/usr/include/linux/version.h:29: #error ""
/usr/include/linux/version.h:30: #error " instead of"
/usr/include/linux/version.h:31: #error ""
/usr/include/linux/version.h:32: #error " -I/usr/include/linux"
/usr/include/linux/version.h:33: #error ""
/usr/include/linux/version.h:34: #error " Please adjust the Makefile
accordingly."
/usr/include/linux/version.h:35: #error
"======================================================="
In file included from
/lib/modules/2.4.7-timer-SMP/build/include/linux/udf_fs_sb.h:22,
from
/lib/modules/2.4.7-timer-SMP/build/include/linux/fs.h:680,
from
/lib/modules/2.4.7-timer-SMP/build/include/linux/capability.h:17,
from
/lib/modules/2.4.7-timer-SMP/build/include/linux/binfmts.h:5,
from
/lib/modules/2.4.7-timer-SMP/build/include/linux/sched.h:9,
from
/lib/modules/2.4.7-timer-SMP/build/include/linux/mm.h:4,
from
/lib/modules/2.4.7-timer-SMP/build/include/linux/slab.h:14,
from
/lib/modules/2.4.7-timer-SMP/build/include/linux/proc_fs.h:5,
from auditmodule.c:31:
/usr/include/linux/version.h:2: #error
"======================================================="
/usr/include/linux/version.h:3: #error "You should not include
/usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4: #error "files directly for the compilation
of kernel modules."
/usr/include/linux/version.h:5: #error ""
/usr/include/linux/version.h:6: #error "glibc now uses kernel header files
from a well-defined"
/usr/include/linux/version.h:7: #error "working kernel version (as
recommended by Linus Torvalds)"
/usr/include/linux/version.h:8: #error "These files are glibc internal and
may not match the"
/usr/include/linux/version.h:9: #error "currently running kernel. They
should only be"
/usr/include/linux/version.h:10: #error "included via other system header
files - user space"
/usr/include/linux/version.h:11: #error "programs should not directly
include <linux/*.h> or"
/usr/include/linux/version.h:12: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13: #error ""
/usr/include/linux/version.h:14: #error "To build kernel modules please do
the following:"
/usr/include/linux/version.h:15: #error ""
/usr/include/linux/version.h:16: #error " o Have the kernel sources
installed"
/usr/include/linux/version.h:17: #error ""
/usr/include/linux/version.h:18: #error " o Make sure that the symbolic
link"
/usr/include/linux/version.h:19: #error " /lib/modules/`uname -r`/build
exists and points to"
/usr/include/linux/version.h:20: #error " the matching kernel source
directory"
/usr/include/linux/version.h:21: #error ""
/usr/include/linux/version.h:22: #error " o Now copy
/boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23: #error " /lib/modules/`uname
-r`/build/include/linux/version.h"
/usr/include/linux/version.h:24: #error ""
/usr/include/linux/version.h:25: #error " o When compiling, make sure to
use the following"
/usr/include/linux/version.h:26: #error " compiler option to use the
correct include files:"
/usr/include/linux/version.h:27: #error ""
/usr/include/linux/version.h:28: #error " -I/lib/modules/`uname
-r`/build/include"
/usr/include/linux/version.h:29: #error ""
/usr/include/linux/version.h:30: #error " instead of"
/usr/include/linux/version.h:31: #error ""
/usr/include/linux/version.h:32: #error " -I/usr/include/linux"
/usr/include/linux/version.h:33: #error ""
/usr/include/linux/version.h:34: #error " Please adjust the Makefile
accordingly."
/usr/include/linux/version.h:35: #error
"======================================================="
auditmodule.c:51: parse error
auditmodule.c:107: parse error
make: *** [auditmodule] Error 1
Having searched the /boot and /usr/src directories for a version.h file I
cam up with only two; pcmcia and i386. Has anyone worked with SNARE
before in the "zLinux" space and if so any success?
Thank you!
Eric Sammons
(804)697-3925
FRIT - Infrastructure Engineering