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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-21-2009, 05:33 AM
|
#1
|
LQ Newbie
Registered: Jan 2009
Posts: 21
Rep:
|
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
|
|
|
04-21-2009, 05:42 AM
|
#2
|
LQ Newbie
Registered: Jan 2009
Posts: 21
Original Poster
Rep:
|
adore.c source file
<code removed>
Last edited by jtshaw; 05-10-2009 at 01:57 PM.
Reason: Adore LKM
|
|
|
04-21-2009, 06:27 AM
|
#3
|
Member
Registered: Apr 2008
Location: Toulon (France)
Distribution: FEDORA CORE
Posts: 493
Rep:
|
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.
|
|
|
04-21-2009, 07:16 AM
|
#4
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
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 ?
.....
|
|
|
04-21-2009, 10:32 PM
|
#5
|
LQ Newbie
Registered: Jan 2009
Posts: 21
Original Poster
Rep:
|
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
..................................................................
|
|
|
04-22-2009, 02:02 AM
|
#6
|
Member
Registered: Apr 2008
Location: Toulon (France)
Distribution: FEDORA CORE
Posts: 493
Rep:
|
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
|
|
|
04-30-2009, 12:40 PM
|
#7
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
I've merged two related threads.
|
|
|
05-10-2009, 01:57 PM
|
#8
|
Senior Member
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 12:25 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|