Linux - SoftwareThis 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.
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.
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
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.
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.
...................................................................
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.