LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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


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

Rep: Reputation: 15
knark tool errors


Respected team,
I am testing the knark file for practical purpose in internal lan, While i am executing the file knark.c in RHEL4 using make command i am getting soo many errors. The knark.c_errors file with the errors is attached to this thread. Please help me with solution.

With Thanks and Regards,
 
Old 04-06-2009, 07:58 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
As far as solutions are concerned maybe you could first look at your own posting behaviour: you left your own posts here, here, here and
here hanging without giving feedback or closure yourself. BTW, I don't see anything attached...
 
Old 04-06-2009, 09:15 AM   #3
soni_silver17
LQ Newbie
 
Registered: Jan 2009
Posts: 21

Original Poster
Rep: Reputation: 15
[root@boss knark-2.4.3-release]# make
cc -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 src/knark.c -o knark.o -D__KERNEL__ -DMODULE -DLINUX
src/knark.c:1: warning: -malign-loops is obsolete, use -falign-loops
src/knark.c:1: warning: -malign-jumps is obsolete, use -falign-jumps
src/knark.c:1: warning: -malign-functions is obsolete, use -falign-functions
cc1: /usr/src/linux/include/linux/modversions.h: No such file or directory
In file included from /usr/include/linux/module.h:10,
from src/knark.c:20:
/usr/include/linux/config.h:5:2: #error Incorrectly using glibc headers for a kernel module
In file included from /usr/include/linux/sched.h:13,
from src/knark.c:22:
/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 src/knark.c:22:
/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 src/knark.c:22:
/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 src/knark.c:22:
/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 src/knark.c:22:
/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 src/knark.c:22:
/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
In file included from src/knark.c:29:
/usr/include/linux/modversions.h:1:2: #error Modules should never use kernel-headers system headers,
/usr/include/linux/modversions.h:2:2: #error but rather headers from the appropriate kernel package.
/usr/include/linux/modversions.h:3:2: #error Change -I/usr/src/linux/include (or similar) to
/usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname -r)/build/include
/usr/include/linux/modversions.h:5:2: #error to build against the currently-running kernel.
src/knark.c:30:26: linux/malloc.h: No such file or directory
src/knark.c:32:26: linux/string.h: No such file or directory
src/knark.c:33:26: linux/skbuff.h: No such file or directory
In file included from src/knark.c:34:
/usr/include/linux/ip.h:97: error: syntax error before "uint8_t"
/usr/include/linux/ip.h:104: error: syntax error before "tot_len"
/usr/include/linux/ip.h:105: error: syntax error before "id"
/usr/include/linux/ip.h:106: error: syntax error before "frag_off"
/usr/include/linux/ip.h:107: error: syntax error before "ttl"
/usr/include/linux/ip.h:108: error: syntax error before "protocol"
/usr/include/linux/ip.h:109: error: syntax error before "check"
/usr/include/linux/ip.h:110: error: syntax error before "saddr"
/usr/include/linux/ip.h:111: error: syntax error before "daddr"
src/knark.c:36:26: net/protocol.h: No such file or directory
src/knark.c:37:21: net/udp.h: No such file or directory
src/knark.c:38:22: net/icmp.h: No such file or directory
src/knark.c:41:25: asm/uaccess.h: No such file or directory
src/knark.c:58: error: syntax error before "u64"
src/knark.c:58: warning: no semicolon at end of struct or union
src/knark.c:59: warning: type defaults to `int' in declaration of `d_off'
src/knark.c:59: warning: data definition has no type or storage class
src/knark.c:63: error: syntax error before '}' token
src/knark.c:67: error: syntax error before "fd"
src/knark.c:67: warning: function declaration isn't a prototype
src/knark.c: In function `getdents':
src/knark.c:67: error: `fd' undeclared (first use in this function)
src/knark.c:67: error: (Each undeclared identifier is reported only once
src/knark.c:67: error: for each function it appears in.)
src/knark.c:67: error: `dirp' undeclared (first use in this function)
src/knark.c:67: error: `count' undeclared (first use in this function)
src/knark.c: At top level:
src/knark.c:68: error: syntax error before "fd"
src/knark.c:68: warning: function declaration isn't a prototype
src/knark.c: In function `getdents64':
src/knark.c:68: error: `fd' undeclared (first use in this function)
src/knark.c:68: error: `dirp' undeclared (first use in this function)
src/knark.c:68: error: `count' undeclared (first use in this function)
src/knark.c: At top level:
src/knark.c:71: error: conflicting types for 'fork'
/usr/include/unistd.h:695: error: previous declaration of 'fork' was here
src/knark.c:71: error: conflicting types for 'fork'
/usr/include/unistd.h:695: error: previous declaration of 'fork' was here
src/knark.c:89: error: syntax error before "int"
src/knark.c:89: warning: function declaration isn't a prototype
src/knark.c:98: warning: parameter names (without types) in function declarationsrc/knark.c:99: warning: parameter names (without types) in function declarationsrc/knark.c:100: warning: parameter names (without types) in function declaration
src/knark.c:101: warning: "struct dentry" declared inside parameter list
src/knark.c:101: warning: its scope is only this definition or declaration, which is probably not what you want
src/knark.c:101: warning: "struct inode" declared inside parameter list
src/knark.c:102: warning: "struct inode" declared inside parameter list
src/knark.c:103: warning: parameter names (without types) in function declaration
src/knark.c:104: warning: parameter names (without types) in function declaration
src/knark.c:105: warning: parameter names (without types) in function declaration
src/knark.c:112: error: syntax error before "off_t"
src/knark.c:112: warning: function declaration isn't a prototype
src/knark.c:113: error: syntax error before "off_t"
src/knark.c:113: warning: function declaration isn't a prototype
src/knark.c:114: error: syntax error before "off_t"
src/knark.c:114: warning: function declaration isn't a prototype
src/knark.c:115: error: syntax error before "off_t"
src/knark.c:115: warning: function declaration isn't a prototype
src/knark.c:116: error: syntax error before "off_t"
src/knark.c:116: warning: function declaration isn't a prototype
src/knark.c:125: warning: "struct sk_buff" declared inside parameter list
src/knark.c:128: error: syntax error before "knark_ino"
src/knark.c:128: warning: type defaults to `int' in declaration of `knark_ino'
src/knark.c:128: warning: data definition has no type or storage class
src/knark.c:157: error: syntax error before "kdev_t"
src/knark.c:157: warning: no semicolon at end of struct or union
src/knark.c:159: error: syntax error before "d_inode"
src/knark.c:159: warning: type defaults to `int' in declaration of `d_inode'
src/knark.c:159: warning: data definition has no type or storage class
src/knark.c:160: error: conflicting types for 'd_name'
src/knark.c:62: error: previous declaration of 'd_name' was here
src/knark.c:161: error: syntax error before '}' token
src/knark.c:188: error: variable `knark_udp_protocol' has initializer but incomplete type
src/knark.c:190: warning: excess elements in struct initializer
src/knark.c:190: warning: (near initialization for `knark_udp_protocol')
src/knark.c:191: warning: excess elements in struct initializer
src/knark.c:191: warning: (near initialization for `knark_udp_protocol')
src/knark.c:192: warning: excess elements in struct initializer
src/knark.c:192: warning: (near initialization for `knark_udp_protocol')
src/knark.c:193: error: `IPPROTO_ICMP' undeclared here (not in a function)
src/knark.c:193: warning: excess elements in struct initializer
src/knark.c:193: warning: (near initialization for `knark_udp_protocol')
src/knark.c:194: warning: excess elements in struct initializer
src/knark.c:194: warning: (near initialization for `knark_udp_protocol')
src/knark.c:195: warning: excess elements in struct initializer
src/knark.c:195: warning: (near initialization for `knark_udp_protocol')
src/knark.c:197: warning: excess elements in struct initializer
src/knark.c:197: warning: (near initialization for `knark_udp_protocol')
src/knark.c:236: error: syntax error before "pid"
src/knark.c:237: warning: function declaration isn't a prototype
src/knark.c: In function `knark_find_task':
src/knark.c:238: error: `current' undeclared (first use in this function)
src/knark.c:241: error: dereferencing pointer to incomplete type
src/knark.c:241: error: `pid' undeclared (first use in this function)
src/knark.c:243: error: dereferencing pointer to incomplete type
src/knark.c: At top level:
src/knark.c:250: error: syntax error before "pid"
src/knark.c:251: warning: function declaration isn't a prototype
src/knark.c: In function `knark_is_invisible':
src/knark.c:254: error: `pid' undeclared (first use in this function)
src/knark.c:261: error: dereferencing pointer to incomplete type
src/knark.c: At top level:
src/knark.c:268: error: syntax error before "pid"
src/knark.c:269: warning: function declaration isn't a prototype
src/knark.c: In function `knark_hide_process':
src/knark.c:272: error: `pid' undeclared (first use in this function)
src/knark.c:275: error: dereferencing pointer to incomplete type
src/knark.c: At top level:
src/knark.c:281: error: syntax error before "dev"
src/knark.c:282: warning: function declaration isn't a prototype
src/knark.c: In function `knark_add_secret_dev':
src/knark.c:290: warning: implicit declaration of function `kmalloc'
src/knark.c:290: error: invalid application of `sizeof' to incomplete type `knark_dev_struct'
src/knark.c:290: error: `GFP_KERNEL' undeclared (first use in this function)
src/knark.c:294: error: dereferencing pointer to incomplete type
src/knark.c:294: error: `dev' undeclared (first use in this function)
src/knark.c:295: error: dereferencing pointer to incomplete type
src/knark.c:296: warning: implicit declaration of function `memset'
src/knark.c:296: error: dereferencing pointer to incomplete type
src/knark.c:296: error: `ino_t' undeclared (first use in this function)
src/knark.c:297: error: dereferencing pointer to incomplete type
src/knark.c: At top level:
src/knark.c:304: error: syntax error before "dev"
src/knark.c:305: warning: function declaration isn't a prototype
src/knark.c: In function `knark_get_secret_dev':
src/knark.c:311: error: dereferencing pointer to incomplete type
src/knark.c:311: error: `dev' undeclared (first use in this function)
src/knark.c: At top level:
src/knark.c:318: error: syntax error before "inode"
src/knark.c:319: warning: function declaration isn't a prototype
src/knark.c: In function `knark_secret_file':
src/knark.c:324: error: `dev' undeclared (first use in this function)
src/knark.c:328: error: dereferencing pointer to incomplete type
src/knark.c:330: error: dereferencing pointer to incomplete type
src/knark.c:330: error: `inode' undeclared (first use in this function)
src/knark.c: At top level:
src/knark.c:336: warning: "struct dentry" declared inside parameter list
src/knark.c:336: warning: "struct inode" declared inside parameter list
src/knark.c:337: error: conflicting types for 'knark_hide_file'
src/knark.c:101: error: previous declaration of 'knark_hide_file' was here
src/knark.c:337: error: conflicting types for 'knark_hide_file'
src/knark.c:101: error: previous declaration of 'knark_hide_file' was here
src/knark.c: In function `knark_hide_file':
src/knark.c:341: error: `ino_t' undeclared (first use in this function)
src/knark.c:341: error: syntax error before "ino"
src/knark.c:342: error: `kdev_t' undeclared (first use in this function)
src/knark.c:344: error: `ino' undeclared (first use in this function)
src/knark.c:344: error: `dev' undeclared (first use in this function)
src/knark.c:354: error: dereferencing pointer to incomplete type
src/knark.c:356: error: dereferencing pointer to incomplete type
src/knark.c:356: error: dereferencing pointer to incomplete type
src/knark.c:360: error: dereferencing pointer to incomplete type
src/knark.c:360: error: dereferencing pointer to incomplete type
src/knark.c:362: error: dereferencing pointer to incomplete type
src/knark.c:363: error: dereferencing pointer to incomplete type
src/knark.c:364: error: dereferencing pointer to incomplete type
src/knark.c:367: error: dereferencing pointer to incomplete type
src/knark.c:367: error: dereferencing pointer to incomplete type
src/knark.c:367: error: `GFP_KERNEL' undeclared (first use in this function)
src/knark.c:368: error: dereferencing pointer to incomplete type
src/knark.c:368: error: dereferencing pointer to incomplete type
src/knark.c:374: warning: implicit declaration of function `strlen'
src/knark.c:376: warning: implicit declaration of function `strcpy'
src/knark.c:381: error: dereferencing pointer to incomplete type
src/knark.c:381: error: dereferencing pointer to incomplete type
src/knark.c:383: error: dereferencing pointer to incomplete type
src/knark.c: At top level:
src/knark.c:387: warning: "struct inode" declared inside parameter list
src/knark.c:388: error: conflicting types for 'knark_unhide_file'
src/knark.c:102: error: previous declaration of 'knark_unhide_file' was here
src/knark.c:388: error: conflicting types for 'knark_unhide_file'
src/knark.c:102: error: previous declaration of 'knark_unhide_file' was here
src/knark.c: In function `knark_unhide_file':
src/knark.c:392: error: `ino_t' undeclared (first use in this function)
src/knark.c:392: error: syntax error before "ino"
src/knark.c:393: error: `kdev_t' undeclared (first use in this function)
src/knark.c:395: error: `ino' undeclared (first use in this function)
src/knark.c:395: error: `dev' undeclared (first use in this function)
src/knark.c:402: error: dereferencing pointer to incomplete type
src/knark.c:404: error: dereferencing pointer to incomplete type
src/knark.c:406: error: dereferencing pointer to incomplete type
src/knark.c:406: error: dereferencing pointer to incomplete type
src/knark.c:407: error: dereferencing pointer to incomplete type
src/knark.c:408: error: dereferencing pointer to incomplete type
src/knark.c:409: warning: implicit declaration of function `kfree'
src/knark.c:409: error: dereferencing pointer to incomplete type
src/knark.c:410: error: dereferencing pointer to incomplete type
src/knark.c: In function `knark_getdents':
src/knark.c:424: error: `kdev_t' undeclared (first use in this function)
src/knark.c:424: error: syntax error before "dev"
src/knark.c:430: error: `current' undeclared (first use in this function)
src/knark.c:431: error: `dev' undeclared (first use in this function)
src/knark.c:431: error: dereferencing pointer to incomplete type
src/knark.c:433: error: dereferencing pointer to incomplete type
src/knark.c:433: warning: implicit declaration of function `MAJOR'
src/knark.c:433: error: dereferencing pointer to incomplete type
src/knark.c:434: warning: implicit declaration of function `MINOR'
src/knark.c:434: error: dereferencing pointer to incomplete type
src/knark.c: In function `knark_getdents64':
src/knark.c:471: error: `kdev_t' undeclared (first use in this function)
src/knark.c:471: error: syntax error before "dev"
src/knark.c:477: error: `current' undeclared (first use in this function)
src/knark.c:478: error: `dev' undeclared (first use in this function)
src/knark.c:478: error: dereferencing pointer to incomplete type
src/knark.c:480: error: dereferencing pointer to incomplete type
src/knark.c:480: error: dereferencing pointer to incomplete type
src/knark.c:481: error: dereferencing pointer to incomplete type
src/knark.c:487: error: dereferencing pointer to incomplete type
src/knark.c:488: error: dereferencing pointer to incomplete type
src/knark.c:489: error: dereferencing pointer to incomplete type
src/knark.c:493: error: dereferencing pointer to incomplete type
src/knark.c:494: error: dereferencing pointer to incomplete type
src/knark.c:498: error: dereferencing pointer to incomplete type
src/knark.c:498: error: dereferencing pointer to incomplete type
src/knark.c:503: error: dereferencing pointer to incomplete type
src/knark.c: In function `knark_fork':
src/knark.c:511: error: `pid_t' undeclared (first use in this function)
src/knark.c:511: error: syntax error before "pid"
src/knark.c:514: error: `current' undeclared (first use in this function)
src/knark.c:517: error: `pid' undeclared (first use in this function)
src/knark.c: In function `knark_clone':
src/knark.c:527: error: `pid_t' undeclared (first use in this function)
src/knark.c:527: error: syntax error before "pid"
src/knark.c:530: error: `current' undeclared (first use in this function)
src/knark.c:533: error: `pid' undeclared (first use in this function)
src/knark.c: At top level:
src/knark.c:541: error: syntax error before "pid"
src/knark.c:542: warning: function declaration isn't a prototype
src/knark.c: In function `knark_kill':
src/knark.c:545: error: `sig' undeclared (first use in this function)
src/knark.c:546: error: `pid' undeclared (first use in this function)
src/knark.c:550: error: `current' undeclared (first use in this function)
src/knark.c:553: error: dereferencing pointer to incomplete type
src/knark.c:554: error: dereferencing pointer to incomplete type
src/knark.c: In function `knark_ioctl':
src/knark.c:572: warning: implicit declaration of function `copy_from_user'
src/knark.c:574: warning: implicit declaration of function `copy_to_user'
src/knark.c:579: error: `current' undeclared (first use in this function)
src/knark.c:583: error: dereferencing pointer to incomplete type
src/knark.c: In function `knark_add_nethide':
src/knark.c:610: error: `GFP_KERNEL' undeclared (first use in this function)
src/knark.c:610: warning: assignment makes pointer from integer without a cast
src/knark.c: In function `knark_clear_nethides':
src/knark.c:629: warning: implicit declaration of function `putname'
src/knark.c: In function `knark_read':
src/knark.c:660: error: `current' undeclared (first use in this function)
src/knark.c:669: error: dereferencing pointer to incomplete type
src/knark.c:669: error: dereferencing pointer to incomplete type
src/knark.c:672: warning: implicit declaration of function `strncmp'
src/knark.c:672: error: dereferencing pointer to incomplete type
src/knark.c:673: error: dereferencing pointer to incomplete type
src/knark.c:676: warning: implicit declaration of function `strstr'
src/knark.c: In function `knark_add_redirect':
src/knark.c:748: error: `GFP_KERNEL' undeclared (first use in this function)
src/knark.c:748: warning: assignment makes pointer from integer without a cast
src/knark.c: In function `knark_settimeofday':
src/knark.c:784: error: `current' undeclared (first use in this function)
src/knark.c:790: warning: implicit declaration of function `getname'
src/knark.c:790: warning: assignment makes pointer from integer without a cast
src/knark.c:791: warning: assignment makes pointer from integer without a cast
src/knark.c:792: warning: implicit declaration of function `IS_ERR'
src/knark.c:802: warning: assignment makes pointer from integer without a cast
src/knark.c: In function `knark_execve':
src/knark.c:825: warning: assignment makes pointer from integer without a cast
src/knark.c:826: warning: implicit declaration of function `PTR_ERR'
src/knark.c:830: warning: implicit declaration of function `do_execve'
src/knark.c:835: error: `current' undeclared (first use in this function)
src/knark.c:835: error: `PT_DTRACE' undeclared (first use in this function)
src/knark.c: At top level:
src/knark.c:844: error: syntax error before "off_t"
src/knark.c:846: warning: function declaration isn't a prototype
src/knark.c: In function `knark_read_pids':
src/knark.c:848: error: `offset' undeclared (first use in this function)
src/knark.c:853: error: `len' undeclared (first use in this function)
src/knark.c:853: warning: implicit declaration of function `sprintf'
src/knark.c:853: error: `buf' undeclared (first use in this function)
src/knark.c:856: error: dereferencing pointer to incomplete type
src/knark.c:858: error: dereferencing pointer to incomplete type
src/knark.c:858: error: dereferencing pointer to incomplete type
src/knark.c:858: error: dereferencing pointer to incomplete type
src/knark.c:859: error: dereferencing pointer to incomplete type
src/knark.c:860: error: dereferencing pointer to incomplete type
src/knark.c:861: error: `eof' undeclared (first use in this function)
src/knark.c:862: error: `start' undeclared (first use in this function)
src/knark.c: At top level:
src/knark.c:867: error: syntax error before "off_t"
src/knark.c:869: warning: function declaration isn't a prototype
src/knark.c: In function `knark_read_files':
src/knark.c:871: error: `offset' undeclared (first use in this function)
src/knark.c:873: error: `len' undeclared (first use in this function)
src/knark.c:873: error: `buf' undeclared (first use in this function)
src/knark.c:876: error: dereferencing pointer to incomplete type
src/knark.c:877: error: dereferencing pointer to incomplete type
src/knark.c:878: error: `eof' undeclared (first use in this function)
src/knark.c:879: error: `start' undeclared (first use in this function)
src/knark.c: At top level:
src/knark.c:884: error: syntax error before "off_t"
src/knark.c:886: warning: function declaration isn't a prototype
src/knark.c: In function `knark_read_redirects':
src/knark.c:889: error: `offset' undeclared (first use in this function)
src/knark.c:891: error: `len' undeclared (first use in this function)
src/knark.c:891: error: `buf' undeclared (first use in this function)
src/knark.c:906: error: `eof' undeclared (first use in this function)
src/knark.c:907: error: `start' undeclared (first use in this function)
src/knark.c: At top level:
src/knark.c:912: error: syntax error before "off_t"
src/knark.c:914: warning: function declaration isn't a prototype
src/knark.c: In function `knark_read_nethides':
src/knark.c:916: error: `offset' undeclared (first use in this function)
src/knark.c:918: error: `len' undeclared (first use in this function)
src/knark.c:918: error: `buf' undeclared (first use in this function)
src/knark.c:924: error: `eof' undeclared (first use in this function)
src/knark.c:925: error: `start' undeclared (first use in this function)
src/knark.c: At top level:
src/knark.c:930: error: syntax error before "off_t"
src/knark.c:932: warning: function declaration isn't a prototype
src/knark.c: In function `knark_read_author':
src/knark.c:933: error: `offset' undeclared (first use in this function)
src/knark.c:934: error: `len' undeclared (first use in this function)
src/knark.c:934: error: `buf' undeclared (first use in this function)
src/knark.c:943: error: `eof' undeclared (first use in this function)
src/knark.c:944: error: `start' undeclared (first use in this function)
 
Old 04-06-2009, 09:16 AM   #4
soni_silver17
LQ Newbie
 
Registered: Jan 2009
Posts: 21

Original Poster
Rep: Reputation: 15
src/knark.c: In function `knark_execve_userprogram':
src/knark.c:1026: error: `pid_t' undeclared (first use in this function)
src/knark.c:1026: error: syntax error before "pid"
src/knark.c:1040: error: `pid' undeclared (first use in this function)
src/knark.c:1040: warning: implicit declaration of function `kernel_thread'
src/knark.c: In function `knark_do_exec_userprogram':
src/knark.c:1057: warning: implicit declaration of function `exit_fs'
src/knark.c:1057: error: `current' undeclared (first use in this function)
src/knark.c:1058: error: `init_task' undeclared (first use in this function)
src/knark.c:1060: warning: implicit declaration of function `atomic_inc'
src/knark.c:1060: error: dereferencing pointer to incomplete type
src/knark.c:1068: warning: implicit declaration of function `cap_set_full'
src/knark.c:1071: warning: implicit declaration of function `set_fs'
src/knark.c:1071: error: `KERNEL_DS' undeclared (first use in this function)
src/knark.c: At top level:
src/knark.c:1080: warning: "struct sk_buff" declared inside parameter list
src/knark.c:1081: error: conflicting types for 'knark_udp_rcv'
src/knark.c:125: error: previous declaration of 'knark_udp_rcv' was here
src/knark.c:1081: error: conflicting types for 'knark_udp_rcv'
src/knark.c:125: error: previous declaration of 'knark_udp_rcv' was here
src/knark.c: In function `knark_udp_rcv':
src/knark.c:1083: error: dereferencing pointer to incomplete type
src/knark.c:1084: error: dereferencing pointer to incomplete type
src/knark.c:1088: error: dereferencing pointer to incomplete type
src/knark.c:1088: warning: implicit declaration of function `ntohs'
src/knark.c:1089: error: dereferencing pointer to incomplete type
src/knark.c:1090: error: `u_long' undeclared (first use in this function)
src/knark.c:1090: error: syntax error before ')' token
src/knark.c:1093: error: dereferencing pointer to incomplete type
src/knark.c:1093: error: invalid application of `sizeof' to incomplete type `udphdr'
src/knark.c:1095: error: `GFP_KERNEL' undeclared (first use in this function)
src/knark.c:1095: warning: assignment makes pointer from integer without a cast
src/knark.c:1104: warning: implicit declaration of function `strtok'
src/knark.c:1104: warning: assignment makes pointer from integer without a cast
src/knark.c:1117: error: dereferencing pointer to incomplete type
src/knark.c: In function `init_module':
src/knark.c:1126: warning: implicit declaration of function `inet_add_protocol'
src/knark.c:1127: error: invalid use of undefined type `struct inet_protocol'
src/knark.c:1128: warning: implicit declaration of function `inet_del_protocol'
src/knark.c:1130: error: `GFP_KERNEL' undeclared (first use in this function)
 
Old 04-06-2009, 11:05 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
Dumping code without using BB code tags is bad. Don't do that again. Install your kernel-devel package, in Makefile replace -malign-loops for -falign and check if the directory and filenames in MODCFLAGS have a different name or path.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Make errors in compiling Firewall tool kit keysorsoze Solaris / OpenSolaris 3 08-17-2007 09:03 AM
LXer: Linux as a Tool for Windows Hardware Errors LXer Syndicated Linux News 0 08-08-2007 03:16 PM
Errors, Errors, and more Errors (KDE 3.4.x GUI Errors) Dralnu Linux - Software 2 05-13-2006 08:30 AM
QMAIL errors errors.. YourForum Linux - Software 0 11-27-2003 12:30 PM
URLSCAN tool MS = Linux tool ? OB1 Linux - Security 3 10-05-2002 12:58 AM

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

All times are GMT -5. The time now is 08:30 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