LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Closed Thread
  Search this Thread
Old 04-21-2009, 05:33 AM   #1
soni_silver17
LQ Newbie
 
Registered: Jan 2009
Posts: 21

Rep: Reputation: 15
adore.c output errors


Respected Team , I am executing the adore.c file i am getting the following errors

[root@boss adore]# gcc adore.c -o adore.o
In file included from adore.c:42:
/usr/include/linux/config.h:5:2: #error Incorrectly using glibc headers for a kernel module
adore.c:47:26: linux/tqueue.h: No such file or directory
In file included from /usr/include/linux/sched.h:13,
from adore.c:50:
/usr/include/linux/times.h:7: error: syntax error before "clock_t"
/usr/include/linux/times.h:9: error: syntax error before "tms_cutime"
/usr/include/linux/times.h:10: error: syntax error before "tms_cstime"
In file included from /usr/include/linux/sched.h:14,
from adore.c:50:
/usr/include/linux/timex.h:148: error: field `time' has incomplete type
In file included from /usr/include/linux/signal.h:4,
from /usr/include/linux/sched.h:25,
from adore.c:50:
/usr/include/asm/signal.h:107: error: syntax error before "sigset_t"
/usr/include/asm/signal.h:110: error: syntax error before '}' token
In file included from /usr/include/linux/signal.h:5,
from /usr/include/linux/sched.h:25,
from adore.c:50:
/usr/include/asm/siginfo.h:26: error: syntax error before "pid_t"
/usr/include/asm/siginfo.h:38: error: syntax error before "pid_t"
/usr/include/asm/siginfo.h:41: error: syntax error before '}' token
/usr/include/asm/siginfo.h:45: error: syntax error before "pid_t"
/usr/include/asm/siginfo.h:48: error: syntax error before "_utime"
/usr/include/asm/siginfo.h:49: error: syntax error before "_stime"
/usr/include/asm/siginfo.h:62: error: syntax error before '}' token
/usr/include/asm/siginfo.h:63: error: syntax error before '}' token
In file included from /usr/include/linux/sched.h:65,
from adore.c:50:
/usr/include/linux/time.h:10: error: syntax error before "time_t"
/usr/include/linux/time.h:12: error: syntax error before '}' token
/usr/include/linux/time.h:18: error: syntax error before "time_t"
/usr/include/linux/time.h:44: error: field `it_interval' has incomplete type
/usr/include/linux/time.h:45: error: field `it_value' has incomplete type
/usr/include/linux/time.h:49: error: field `it_interval' has incomplete type
/usr/include/linux/time.h:50: error: field `it_value' has incomplete type
In file included from /usr/include/linux/sched.h:67,
from adore.c:50:
/usr/include/linux/resource.h:22: error: field `ru_utime' has incomplete type
/usr/include/linux/resource.h:23: error: field `ru_stime' has incomplete type
adore.c:56:26: linux/malloc.h: No such file or directory
adore.c:58:26: linux/string.h: No such file or directory
adore.c:60:26: linux/dcache.h: No such file or directory
adore.c:63:25: asm/uaccess.h: No such file or directory
adore.c:106: warning: parameter names (without types) in function declaration
adore.c: In function `my_atoi':
adore.c:125: error: `EINVAL' undeclared (first use in this function)
adore.c:125: error: (Each undeclared identifier is reported only once
adore.c:125: error: for each function it appears in.)
adore.c: At top level:
adore.c:135: error: syntax error before "pid"
adore.c: In function `my_find_task':
adore.c:137: error: `current' undeclared (first use in this function)
adore.c:142: error: `pid' undeclared (first use in this function)
adore.c:146: error: dereferencing pointer to incomplete type
adore.c:148: error: dereferencing pointer to incomplete type
adore.c: At top level:
adore.c:156: error: syntax error before "pid"
adore.c: In function `is_invisible':
adore.c:160: error: `pid' undeclared (first use in this function)
adore.c:166: error: dereferencing pointer to incomplete type
adore.c: At top level:
adore.c:173: warning: "struct super_block" declared inside parameter list
adore.c:173: warning: its scope is only this definition or declaration, which is probably not what you want
adore.c: In function `is_secret':
adore.c:181: warning: assignment makes pointer from integer without a cast
adore.c:185: error: dereferencing pointer to incomplete type
adore.c: At top level:
adore.c:197: error: syntax error before "pid"
adore.c: In function `hide_process':
adore.c:201: error: `pid' undeclared (first use in this function)
adore.c:203: error: dereferencing pointer to incomplete type
adore.c: At top level:
adore.c:210: warning: "struct inode" declared inside parameter list
adore.c: In function `hide_file':
adore.c:214: error: dereferencing pointer to incomplete type
adore.c: At top level:
adore.c:219: warning: "struct inode" declared inside parameter list
adore.c: In function `unhide_file':
adore.c:224: error: dereferencing pointer to incomplete type
adore.c: In function `n_getdents':
adore.c:252: error: `current' undeclared (first use in this function)
adore.c:258: error: dereferencing pointer to incomplete type
adore.c:258: error: dereferencing pointer to incomplete type
adore.c:259: error: dereferencing pointer to incomplete type
adore.c: In function `n_fork':
adore.c:331: error: `pid_t' undeclared (first use in this function)
adore.c:331: error: syntax error before "pid"
adore.c:335: error: `current' undeclared (first use in this function)
adore.c:338: error: `pid' undeclared (first use in this function)
adore.c: In function `n_clone':
adore.c:350: error: `pid_t' undeclared (first use in this function)
adore.c:350: error: syntax error before "pid"
adore.c:354: error: `current' undeclared (first use in this function)
adore.c:357: error: `pid' undeclared (first use in this function)
adore.c: At top level:
adore.c:366: error: syntax error before "pid"
adore.c: In function `n_kill':
adore.c:371: error: `sig' undeclared (first use in this function)
adore.c:372: error: `pid' undeclared (first use in this function)
adore.c:376: error: `ESRCH' undeclared (first use in this function)
adore.c:379: error: `current' undeclared (first use in this function)
adore.c:381: error: `EPERM' undeclared (first use in this function)
adore.c:385: error: dereferencing pointer to incomplete type
adore.c:387: error: dereferencing pointer to incomplete type
adore.c: In function `n_ioctl':
adore.c:408: error: `current' undeclared (first use in this function)
adore.c:416: warning: assignment makes pointer from integer without a cast
adore.c:423: error: dereferencing pointer to incomplete type
adore.c:424: error: dereferencing pointer to incomplete type
adore.c:432: error: dereferencing pointer to incomplete type
adore.c:438: error: dereferencing pointer to incomplete type
adore.c:445: error: dereferencing pointer to incomplete type
adore.c:465: error: dereferencing pointer to incomplete type
adore.c:485: error: dereferencing pointer to incomplete type
adore.c:489: error: dereferencing pointer to incomplete type
adore.c:494: error: `EINVAL' undeclared (first use in this function)
adore.c: In function `n_write':
adore.c:514: error: `current' undeclared (first use in this function)
adore.c: At top level:
adore.c:537: error: syntax error before "uid"
adore.c: In function `n_setuid':
adore.c:540: error: `uid' undeclared (first use in this function)
adore.c:541: error: `current' undeclared (first use in this function)
adore.c: In function `init_module':
adore.c:564: error: `__this_module' undeclared (first use in this function)
[root@boss adore]#

Anyone please help me with solution..........With Thanks and Regards
 
Old 04-21-2009, 05:42 AM   #2
soni_silver17
LQ Newbie
 
Registered: Jan 2009
Posts: 21

Original Poster
Rep: Reputation: 15
adore.c source file

<code removed>

Last edited by jtshaw; 05-10-2009 at 01:57 PM. Reason: Adore LKM
 
Old 04-21-2009, 06:27 AM   #3
jf.argentino
Member
 
Registered: Apr 2008
Location: Toulon (France)
Distribution: FEDORA CORE
Posts: 493

Rep: Reputation: 50
It looks like it's a driver that you're trying to compile! Is there any README or Makefile with it? If not search for a driver Makefile and adapt it to your needs.
 
Old 04-21-2009, 07:16 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
/usr/include/linux/config.h:5:2: #error Incorrectly
using glibc headers for a kernel module

adore.c:47:26: linux/tqueue.h: No such file or directory
And where did you get this adore.c ,
requiring headers ( linux/tqueue.h )
from kernel version 2.2.x or 2.4.x ?
.....
 
Old 04-21-2009, 10:32 PM   #5
soni_silver17
LQ Newbie
 
Registered: Jan 2009
Posts: 21

Original Poster
Rep: Reputation: 15
README file of adore.c is given below

Since adore got public, there are might some notes necessary:

Everyone should choose a own ELITE_CMD to make it impossible to scan for installed adore. Also HIDDEN_PORT should be changed.
When commenting in the MODVERSIONS-switch, adore will be compiled
for modversioned kernels. Modversioned kernels have a /proc/ksyms file that looks like
...
foo_barR12345678
...
where normal kernelswould look like
...
foo_bar
...
Hidden ports go decimal, f.e. ":22" would hide ssh-service, but also every other service that begins with 22, f.e. port 2278. Choose a unique one, f.e.28912.
...................................................................

Makefile of adore.c is given below

CC=cc
CFLAGS=-O2 -Wall -I/usr/src/linux/include -DBEHAVE_STEALTH -DHIDDEN_SERVICE="\":31337\"" -DELITE_CMD=50000 #-DMODVERSIONS

all: adore.c ava.c
$(CC) -c $(CFLAGS) adore.c -o adore.o
$(CC) $(CFLAGS) -O2 -Wall ava.c -o ava
clean:
rm -f core ava adore.o
..................................................................
 
Old 04-22-2009, 02:02 AM   #6
jf.argentino
Member
 
Registered: Apr 2008
Location: Toulon (France)
Distribution: FEDORA CORE
Posts: 493

Rep: Reputation: 50
You have a Makefile, use it!
But as point "knudfl" it looks like a really old driver, which won't compile at all on a recent kerenl
 
Old 04-30-2009, 12:40 PM   #7
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
I've merged two related threads.
 
Old 05-10-2009, 01:57 PM   #8
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
I've shut this down, while I know it is available many places, I don't think we need root kit code on our site.
 
  


Closed Thread



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Input/output errors at start-up fof3 Linux - Newbie 3 02-13-2006 08:52 PM
I'm a huge Bryan Adams fan, who do you adore?? coolamit78 General 19 02-06-2004 09:33 AM
Input/Output errors on files Poetics Slackware 4 08-25-2003 05:57 PM
overcoming input/output errors heiseltc Linux - General 0 02-26-2003 12:29 PM
CHMOD and Input/Output errors lachlan Linux - General 3 12-30-2002 04:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:16 PM.

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