Hello all

I am trying to compile samhain on a woody/testing machine. The machine is a woody machine with testing lines in sources.list. The kernel installed is

Linux agni 2.4.18-k6 #1 Sun Apr 14 12:43:22 EST 2002 i586 GNU/Linux

dpkg -l | grep kernel
ii kernel-headers-2.4.18-1-k7 2.4.18-12 ii kernel-headers-2.4.18-bf2.4 2.4.18-5woody5 ii kernel-image-2.4.18-k6 2.4.18-5 ii linux-kernel-headers 2.5.999-test7-bk-9



now when I compile samhain I get this error..


./encode 0 sh_unix.c --> x_sh_unix.c
gcc -DHAVE_CONFIG_H -I. -I. -O2 -Wall -W -fno-strength-reduce -fno-omit-fram
e-pointer -DSH_WITH_CLIENT -o sh_unix.o -c x_sh_unix.c
In file included from /usr/include/asm/sigcontext.h:4,
from /usr/include/bits/sigcontext.h:28,
from /usr/include/signal.h:326,
from x_sh_unix.c:39:
/usr/include/linux/compiler.h:17: warning: `__attribute_used__' redefined
/usr/include/sys/cdefs.h:195: warning: this is the location of the previous defi
nition
In file included from /usr/include/asm/smp.h:18,
from /usr/include/linux/smp.h:17,
from /usr/include/linux/percpu_counter.h:9,
from /usr/include/linux/ext2_fs_sb.h:20,
from /usr/include/linux/ext2_fs.h:20,
from x_sh_unix.c:2486:
/usr/include/asm/mpspec.h:6: mach_mpspec.h: No such file or directory
In file included from /usr/include/linux/smp.h:17,
from /usr/include/linux/percpu_counter.h:9,
from /usr/include/linux/ext2_fs_sb.h:20,
from /usr/include/linux/ext2_fs.h:20,
from x_sh_unix.c:2486:
/usr/include/asm/smp.h:73: mach_apicdef.h: No such file or directory
gcc -O -o samhain samhain.o sh_unix.o sh_utils.o sh_error.o sh_files.o sh_get
opt.o sh_readconf.o sh_tiger0.o sh_tiger1.o sh_tiger2.o sh_tiger1_64.o sh_tiger2
_64.o sh_hash.o sh_mail.o sh_mem.o sh_entropy.o sh_forward.o sh_modules.o sh_utm
p.o sh_kern.o sh_suidchk.o sh_srp.o sh_fifo.o sh_tools.o sh_html.o sh_gpg.o sh_c
at.o sh_calls.o sh_extern.o sh_database.o sh_err_log.o sh_err_console.o sh_err_s
yslog.o sh_schedule.o bignum.o trustfile.o rijndael-alg-fst.o rijndael-api-fst.o
slib.o zAVLTree.o sh_socket.o sh_ignore.o sh_mounts.o sh_userfiles.o -lnsl -ln
sl -lresolv
gcc: sh_unix.o: No such file or directory
make: *** [samhain] Error 1


I searched the net for any clues, but found none, any help to resolve this will be much appriciated.

I have also attached the full errorlog.

tia,
raj
cc -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -s -I. -fno-strict-aliasing 
-fno-common -fomit-frame-pointer -mpreferred-stack-boundary=2 -march=i386 -D__KERNEL__ 
-DMODULE -fno-builtin -nostdlib -I/usr/src/linux/include -DMODVERSIONS -include 
/usr/src/linux/include/linux/modversions.h -D__SMP__ compressed_loop.c -c -o 
compressed_loop.o
In file included from compressed_loop.c:122:
/usr/src/linux/lib/inflate.c: In function `huft_build':
/usr/src/linux/lib/inflate.c:311: warning: implicit declaration of function `memzero'
/usr/src/linux/lib/inflate.c:314: warning: implicit declaration of function `Tracecv'
/usr/src/linux/lib/inflate.c:314: `stderr' undeclared (first use in this function)
/usr/src/linux/lib/inflate.c:314: (Each undeclared identifier is reported only once
/usr/src/linux/lib/inflate.c:314: for each function it appears in.)
/usr/src/linux/lib/inflate.c:315: warning: left-hand operand of comma expression has 
no effect
/usr/src/linux/lib/inflate.c:315: warning: left-hand operand of comma expression has 
no effect
/usr/src/linux/lib/inflate.c:315: warning: left-hand operand of comma expression has 
no effect
/usr/src/linux/lib/inflate.c:418: warning: implicit declaration of function `malloc'
/usr/src/linux/lib/inflate.c: In function `huft_free':
/usr/src/linux/lib/inflate.c:506: warning: implicit declaration of function `free'
/usr/src/linux/lib/inflate.c: In function `inflate_codes':
/usr/src/linux/lib/inflate.c:531: `outcnt' undeclared (first use in this function)
/usr/src/linux/lib/inflate.c:538: warning: implicit declaration of function `get_byte'
/usr/src/linux/lib/inflate.c:550: `window' undeclared (first use in this function)
/usr/src/linux/lib/inflate.c:551: warning: implicit declaration of function `Tracevv'
/usr/src/linux/lib/inflate.c:551: `stderr' undeclared (first use in this function)
/usr/src/linux/lib/inflate.c:551: warning: left-hand operand of comma expression has 
no effect
/usr/src/linux/lib/inflate.c:551: warning: left-hand operand of comma expression has 
no effect
/usr/src/linux/lib/inflate.c:552: `WSIZE' undeclared (first use in this function)
/usr/src/linux/lib/inflate.c:554: warning: implicit declaration of function 
`flush_window'
/usr/src/linux/lib/inflate.c:554: warning: left-hand operand of comma expression has 
no effect
/usr/src/linux/lib/inflate.c:583: warning: left-hand operand of comma expression has 
no effect
/usr/src/linux/lib/inflate.c:583: warning: left-hand operand of comma expression has 
no effect
/usr/src/linux/lib/inflate.c:583: warning: left-hand operand of comma expression has 
no effect
/usr/src/linux/lib/inflate.c:599: warning: left-hand operand of comma expression has 
no effect
/usr/src/linux/lib/inflate.c:599: warning: left-hand operand of comma expression has 
no effect
/usr/src/linux/lib/inflate.c:603: warning: left-hand operand of comma expression has 
no effect
In file included from compressed_loop.c:122:
/usr/src/linux/lib/inflate.c: In function `inflate_stored':
/usr/src/linux/lib/inflate.c:635: `outcnt' undeclared (first use in this function)
/usr/src/linux/lib/inflate.c:657: `window' undeclared (first use in this function)
/usr/src/linux/lib/inflate.c:658: `WSIZE' undeclared (first use in this function)
/usr/src/linux/lib/inflate.c:660: warning: left-hand operand of comma expression has 
no effect
/usr/src/linux/lib/inflate.c: In function `inflate_dynamic':
/usr/src/linux/lib/inflate.c:869: warning: implicit declaration of function `error'
/usr/src/linux/lib/inflate.c: In function `inflate':
/usr/src/linux/lib/inflate.c:966: `outcnt' undeclared (first use in this function)
/usr/src/linux/lib/inflate.c:975: warning: implicit declaration of function `gzip_mark'
/usr/src/linux/lib/inflate.c:977: warning: implicit declaration of function 
`gzip_release'
/usr/src/linux/lib/inflate.c:990: `inptr' undeclared (first use in this function)
/usr/src/linux/lib/inflate.c:994: warning: left-hand operand of comma expression has 
no effect
/usr/src/linux/lib/inflate.c: In function `gunzip':
/usr/src/linux/lib/inflate.c:1169: `bytes_out' undeclared (first use in this function)
compressed_loop.c: In function `make_clo_request':
compressed_loop.c:274: warning: implicit declaration of function `blk_queue_bounce'
compressed_loop.c:274: warning: assignment makes pointer from integer without a cast
/usr/src/linux/include/linux/blk.h: At top level:
/usr/src/linux/lib/inflate.c:1021: warning: `makecrc' defined but not used
/usr/src/linux/lib/inflate.c:1068: warning: `gunzip' defined but not used
make: *** [compressed_loop.o] Error 1

Reply via email to