LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-13-2006, 03:48 AM   #1
live_dont_exist
Member
 
Registered: Aug 2004
Location: India
Distribution: Redhat 9.0,FC3,FC5,FC10
Posts: 257

Rep: Reputation: 30
Library problems??


Hi all,
Im a security consultant and have been trying to test a rootkit called KIS.I have a RedHat 9.0 system.

The client gets insatlled OK but the server throws a lot of errors like

Code:
gcc -Wall -O2 -Wstrict-prototypes -fomit-frame-pointer -pipe -fno-strength-reduce -malign-loops=2 -malign-jumps=2 -malign-functions=2 -include /usr/src/linux/include/linux/modversions.h -I/usr/src/linux/include -c kis.c -o kis.o -D__KERNEL__ -DMODULE -DMODVERSIONS -D__KERNEL_SYSCALLS__
cc1: warning: -malign-loops is obsolete, use -falign-loops
cc1: warning: -malign-jumps is obsolete, use -falign-jumps
cc1: warning: -malign-functions is obsolete, use -falign-functions
<command line>:137890663:2928: /usr/src/linux/include/linux/modversions.h: No such file or directory
In file included from /usr/include/linux/fs.h:23,
                 from /usr/include/linux/capability.h:17,
                 from /usr/include/linux/binfmts.h:5,
                 from /usr/include/linux/sched.h:9,
                 from kis.c:13:
/usr/include/linux/string.h:8:2: warning: #warning Using kernel header in userland!
In file included from /usr/include/linux/sched.h:14,
                 from kis.c:13:
/usr/include/linux/timex.h:173: field `time' has incomplete type
In file included from /usr/include/linux/bitops.h:69,
                 from /usr/include/asm/system.h:7,
                 from /usr/include/linux/sched.h:16,
                 from kis.c:13:
/usr/include/asm/bitops.h:327:2: warning: #warning This includefile is not available on all architectures.
/usr/include/asm/bitops.h:328:2: warning: #warning Using kernel headers in userspace: atomicity not guaranteed
In file included from /usr/include/linux/signal.h:4,
                 from /usr/include/linux/sched.h:25,
                 from kis.c:13:
/usr/include/asm/signal.h:107: parse error before "sigset_t"
/usr/include/asm/signal.h:110: parse error before '}' token
In file included from /usr/include/linux/sched.h:81,
                 from kis.c:13:
/usr/include/linux/timer.h:45: parse error before "spinlock_t"
Now Im not asking for help on KIS ; I know this is not the place...I only want to kow what these errors are.Do they mean that all my header files are outdated and I need to upgrade?

Ive seen this error in other packages as well at times but I dont remember what the hell I did to fix it.

If any1 can point me in the right direction I would be greatly obliged.

Thnx
Arvind
 
Old 02-13-2006, 03:33 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Perhaps this was written for a 2.4.x kernel and you are running a 2.6.x kernel?
Do you have kernel source installed in /usr/src/linux?
In any event, GCC doesn't like the code of this KIS rootkit.
You may have to fix the parse errors (ie: syntactic errors) by hand...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problems with gd-library anttu Linux - Newbie 8 09-14-2004 03:28 AM
More library problems Outabux Debian 4 04-07-2004 08:33 PM
SERIOUS library problems... help! BroX Linux - Software 4 01-14-2004 03:14 AM
library problems Ismark Linux - Newbie 1 01-04-2002 05:50 PM
Library problems Ismark Linux - Software 3 01-04-2002 05:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration