* TCP/IP stack related prob.
@ 2003-04-11 7:38 Alisha Nigam
2003-04-11 7:52 ` Arjan van de Ven
0 siblings, 1 reply; 5+ messages in thread
From: Alisha Nigam @ 2003-04-11 7:38 UTC (permalink / raw)
To: linux-kernel
hi all,
i was trying to write a module for printing
the destination header of packets comming to my
machine.
#include<linux/module.h>
#include<linux/skbuff.h>
#define MODULE
#define __KERNEL__
int init_module(struct sk_buff *skb)
{printk("Destination Addr:%s.\n",skb->nh.iph->daddr);
kfree_skb(skb);
return 0;
}
void cleanup_module(void)
{ printk(" Module is removed succesfully\n");
}
then compile it
gcc -c -O -W -Wall -Wstrict-prototypes
-Wmissing-prototypes -DMODULE -D__KERNEL__ -mymodule.o
mymodule.c
i am getting a bundle of errors ......
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 /usr/include/linux/skbuff.h:19,
from p10.c:2:
/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 /usr/include/linux/skbuff.h:19,
from p10.c:2:
/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 /usr/include/linux/skbuff.h:19,
from p10.c:2:
/usr/include/asm/bitops.h:333:2: warning: #warning
This includefile is not available on all
architectures.
/usr/include/asm/bitops.h:334:2: warning: #warning
Using kernel headers in userspace.
In file included from /usr/include/linux/signal.h:4,
from /usr/include/linux/sched.h:25,
from /usr/include/linux/skbuff.h:19,
from p10.c:2:
/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 /usr/include/linux/skbuff.h:19,
from p10.c:2:
/usr/include/linux/timer.h:45: parse error before
"spinlock_t"
/usr/include/linux/timer.h:53: parse error before '}'
token
/usr/include/linux/timer.h:67: parse error before
"tvec_base_t"
/usr/include/linux/timer.h:101: parse error before
"tvec_bases"
/usr/include/linux/timer.h: In function `init_timer':
/usr/include/linux/timer.h:105: dereferencing pointer
to incomplete type
/usr/include/linux/timer.h:105: dereferencing pointer
to incomplete type
/usr/include/linux/timer.h:106: dereferencing pointer
to incomplete type
/usr/include/linux/timer.h: In function
`timer_pending':
/usr/include/linux/timer.h:121: dereferencing pointer
to incomplete type
In file included from /usr/include/linux/highmem.h:5,
from /usr/include/linux/skbuff.h:26,
from p10.c:2:
/usr/include/asm/pgalloc.h:6:24: asm/fixmap.h: No such
file or directory
In file included from /usr/include/linux/highmem.h:5,
from /usr/include/linux/skbuff.h:26,
from p10.c:2:
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:57: parse error before '*'
token
/usr/include/asm/pgalloc.h: In function
`get_pgd_slow':
/usr/include/asm/pgalloc.h:59: `pgd_t' undeclared
(first use in this function)
/usr/include/asm/pgalloc.h:59: (Each undeclared
identifier is reported only once
/usr/include/asm/pgalloc.h:59: for each function it
appears in.)
/usr/include/asm/pgalloc.h:59: `pgd' undeclared (first
use in this function)
/usr/include/asm/pgalloc.h:59: parse error before ')'
token
/usr/include/asm/pgalloc.h:62: `USER_PTRS_PER_PGD'
undeclared (first use in this function)
/usr/include/asm/pgalloc.h:63: `swapper_pg_dir'
undeclared (first use in this function)
/usr/include/asm/pgalloc.h:63: `PTRS_PER_PGD'
undeclared (first use in this function)
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:70: parse error before '*'
token
/usr/include/asm/pgalloc.h: In function
`get_pgd_fast':
/usr/include/asm/pgalloc.h:80: `pgd_t' undeclared
(first use in this function)
/usr/include/asm/pgalloc.h:80: parse error before ')'
token
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:83: parse error before '*'
token
/usr/include/asm/pgalloc.h: In function
`free_pgd_fast':
/usr/include/asm/pgalloc.h:85: `pgd' undeclared (first
use in this function)
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:90: parse error before '*'
token
/usr/include/asm/pgalloc.h: In function
`free_pgd_slow':
/usr/include/asm/pgalloc.h:99: `pgd' undeclared (first
use in this function)
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:103: parse error before '*'
token
/usr/include/asm/pgalloc.h: In function
`pte_alloc_one':
/usr/include/asm/pgalloc.h:105: `pte_t' undeclared
(first use in this function)
/usr/include/asm/pgalloc.h:105: `pte' undeclared
(first use in this function)
/usr/include/asm/pgalloc.h:109: parse error before ')'
token
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:118: parse error before '*'
token
/usr/include/asm/pgalloc.h: In function
`pte_alloc_one_fast':
/usr/include/asm/pgalloc.h:127: `pte_t' undeclared
(first use in this function)
/usr/include/asm/pgalloc.h:127: parse error before ')'
token
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:130: parse error before '*'
token
/usr/include/asm/pgalloc.h: In function
`pte_free_fast':
/usr/include/asm/pgalloc.h:132: `pte' undeclared
(first use in this function)
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:137: parse error before '*'
token
/usr/include/asm/pgalloc.h: In function
`pte_free_slow':
/usr/include/asm/pgalloc.h:139: `pte' undeclared
(first use in this function)
/usr/include/asm/pgalloc.h: In function
`flush_tlb_mm':
/usr/include/asm/pgalloc.h:183: `current' undeclared
(first use in this function)
/usr/include/asm/pgalloc.h: In function
`flush_tlb_page':
/usr/include/asm/pgalloc.h:190: dereferencing pointer
to incomplete type
/usr/include/asm/pgalloc.h:190: `current' undeclared
(first use in this function)
/usr/include/asm/pgalloc.h: In function
`flush_tlb_range':
/usr/include/asm/pgalloc.h:197: `current' undeclared
(first use in this function)
In file included from p10.c:2:
/usr/include/linux/skbuff.h: At top level:
/usr/include/linux/skbuff.h:100: parse error before
"spinlock_t"
/usr/include/linux/skbuff.h:120: parse error before
"atomic_t"
/usr/include/linux/skbuff.h:124: parse error before
'}' token
/usr/include/linux/skbuff.h:183: parse error before
"atomic_t"
/usr/include/linux/skbuff.h:215: parse error before
'}' token
p10.c:3:1: warning: "MODULE" redefined
p10.c:1:1: warning: this is the location of the
previous definition
p10.c:4:1: warning: "__KERNEL__" redefined
p10.c:1:1: warning: this is the location of the
previous definition
p10.c:7: warning: no previous prototype for
`init_module'
p10.c: In function `init_module':
p10.c:7: warning: implicit declaration of function
`printk'
p10.c:7: dereferencing pointer to incomplete type
p10.c:8: warning: implicit declaration of function
`kfree_skb'
p10.c: At top level:
p10.c:12: warning: no previous prototype for
`cleanup_module'
/usr/include/linux/prefetch.h: In function `prefetch':
/usr/include/linux/prefetch.h:43: warning: unused
parameter `x'
/usr/include/linux/prefetch.h: In function
`prefetchw':
/usr/include/linux/prefetch.h:48: warning: unused
parameter `x'
/usr/include/asm/pgalloc.h: In function
`flush_tlb_range':
/usr/include/asm/pgalloc.h:195: warning: unused
parameter `start'
/usr/include/asm/pgalloc.h:195: warning: unused
parameter `end'
/usr/include/asm/pgalloc.h: In function
`flush_tlb_pgtables':
/usr/include/asm/pgalloc.h:233: warning: unused
parameter `mm'
/usr/include/asm/pgalloc.h:234: warning: unused
parameter `start'
/usr/include/asm/pgalloc.h:234: warning: unused
parameter `end'
CAN ANY ONE HELP ME ???????????
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: TCP/IP stack related prob.
2003-04-11 7:38 TCP/IP stack related prob Alisha Nigam
@ 2003-04-11 7:52 ` Arjan van de Ven
2003-04-11 8:06 ` Alisha Nigam
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Arjan van de Ven @ 2003-04-11 7:52 UTC (permalink / raw)
To: Alisha Nigam; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 867 bytes --]
On Fri, 2003-04-11 at 09:38, Alisha Nigam wrote:
> then compile it
> gcc -c -O -W -Wall -Wstrict-prototypes
> -Wmissing-prototypes -DMODULE -D__KERNEL__ -mymodule.o
> mymodule.c
>
>
> i am getting a bundle of errors ......
>
>
> 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 /usr/include/linux/skbuff.h:19,
> from p10.c:2:
> /usr/include/linux/string.h:8:2: warning: #warning
> Using kernel header in userland!
you are using glibc headers to compile a kernel.... that's not going to
work. Add -I/lib/modules/`uname -r`/build/include to the gcc commandline
to use the headers of the currently running kernel..
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: TCP/IP stack related prob.
2003-04-11 7:52 ` Arjan van de Ven
@ 2003-04-11 8:06 ` Alisha Nigam
2003-04-11 8:08 ` Francis Galiegue
2003-04-11 8:34 ` Alisha Nigam
2 siblings, 0 replies; 5+ messages in thread
From: Alisha Nigam @ 2003-04-11 8:06 UTC (permalink / raw)
To: arjanv; +Cc: linux-kernel
hi
thanks a lot it compiled. but while inserting
module
with insmod i am getting errors..
mymodule.o was compiler for kernel version 2.4.9-9
while this kernel is version 2.4.18-14.
i am running RedHat-8.0 and i compile it
including the headers of current running kernel as
mentioned by you only.
WHAT COULD BE THE PROBLEM ??????
--- Arjan van de Ven <arjanv@redhat.com> wrote:
> On Fri, 2003-04-11 at 09:38, Alisha Nigam wrote:
>
> > then compile it
> > gcc -c -O -W -Wall -Wstrict-prototypes
> > -Wmissing-prototypes -DMODULE -D__KERNEL__
> -mymodule.o
> > mymodule.c
> >
> >
> > i am getting a bundle of errors ......
> >
> >
> > 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
> /usr/include/linux/skbuff.h:19,
> > from p10.c:2:
> > /usr/include/linux/string.h:8:2: warning: #warning
> > Using kernel header in userland!
>
> you are using glibc headers to compile a kernel....
> that's not going to
> work. Add -I/lib/modules/`uname -r`/build/include to
> the gcc commandline
> to use the headers of the currently running kernel..
>
>
> ATTACHMENT part 2 application/pgp-signature
name=signature.asc
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: TCP/IP stack related prob.
2003-04-11 7:52 ` Arjan van de Ven
2003-04-11 8:06 ` Alisha Nigam
@ 2003-04-11 8:08 ` Francis Galiegue
2003-04-11 8:34 ` Alisha Nigam
2 siblings, 0 replies; 5+ messages in thread
From: Francis Galiegue @ 2003-04-11 8:08 UTC (permalink / raw)
To: linux-kernel
On Friday 11 April 2003 09:52, Arjan van de Ven wrote:
> On Fri, 2003-04-11 at 09:38, Alisha Nigam wrote:
> > then compile it
> > gcc -c -O -W -Wall -Wstrict-prototypes
> > -Wmissing-prototypes -DMODULE -D__KERNEL__ -mymodule.o
> > mymodule.c
> >
> >
> > i am getting a bundle of errors ......
> >
> >
> > 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 /usr/include/linux/skbuff.h:19,
> > from p10.c:2:
> > /usr/include/linux/string.h:8:2: warning: #warning
> > Using kernel header in userland!
>
> you are using glibc headers to compile a kernel.... that's not going to
> work. Add -I/lib/modules/`uname -r`/build/include to the gcc commandline
> to use the headers of the currently running kernel..
Not only that but aren't modules supposed to be compiled with -O2?
--
Francis Galiegue <fgaliegue@tbs-internet.com>
"98% of DNS Queries at the Root Level are Unnecessary" - Slashdot headline
"Scientists at the Vatican Praying Center found that 98% of the prayer queries
at the God level are unnecessary." - Anonymous Coward
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: TCP/IP stack related prob.
2003-04-11 7:52 ` Arjan van de Ven
2003-04-11 8:06 ` Alisha Nigam
2003-04-11 8:08 ` Francis Galiegue
@ 2003-04-11 8:34 ` Alisha Nigam
2 siblings, 0 replies; 5+ messages in thread
From: Alisha Nigam @ 2003-04-11 8:34 UTC (permalink / raw)
To: arjanv; +Cc: linux-kernel
its not working againg giving a bundle of errors
so any suggession ????????????????
p10.c:1:1: warning: "MODULE" redefined
p10.c:1:1: warning: this is the location of the
previous definition
p10.c:2:1: warning: "__KERNEL__" redefined
p10.c:1:1: warning: this is the location of the
previous definition
In file included from
/lib/modules/2.4.18-14/build/include/linux/prefetch.h:13,
from
/lib/modules/2.4.18-14/build/include/linux/list.h:6,
from
/lib/modules/2.4.18-14/build/include/linux/module.h:12,
from p10.c:3:
/lib/modules/2.4.18-14/build/include/asm/processor.h:490:
warning: no previous prototype for `prefetch'
In file included from
/lib/modules/2.4.18-14/build/include/asm/system.h:8,
from
/lib/modules/2.4.18-14/build/include/asm/semaphore.h:39,
from
/lib/modules/2.4.18-14/build/include/linux/fs.h:200,
from
/lib/modules/2.4.18-14/build/include/linux/capability.h:17,
from
/lib/modules/2.4.18-14/build/include/linux/binfmts.h:5,
from
/lib/modules/2.4.18-14/build/include/linux/sched.h:9,
from
/lib/modules/2.4.18-14/build/include/linux/skbuff.h:19,
from p10.c:4:
/lib/modules/2.4.18-14/build/include/linux/bitops.h:45:
warning: no previous prototype for `generic_fls'
/lib/modules/2.4.18-14/build/include/linux/bitops.h:74:
warning: no previous prototype for `get_bitmask_order'
In file included from
/lib/modules/2.4.18-14/build/include/linux/fs.h:201,
from
/lib/modules/2.4.18-14/build/include/linux/capability.h:17,
from
/lib/modules/2.4.18-14/build/include/linux/binfmts.h:5,
from
/lib/modules/2.4.18-14/build/include/linux/sched.h:9,
from
/lib/modules/2.4.18-14/build/include/linux/skbuff.h:19,
from p10.c:4:
/lib/modules/2.4.18-14/build/include/asm/byteorder.h:14:
warning: type qualifiers ignored on function return
type
/lib/modules/2.4.18-14/build/include/asm/byteorder.h:28:
warning: type qualifiers ignored on function return
type
In file included from
/lib/modules/2.4.18-14/build/include/linux/byteorder/little_endian.h:11,
from
/lib/modules/2.4.18-14/build/include/asm/byteorder.h:45,
from
/lib/modules/2.4.18-14/build/include/linux/fs.h:201,
from
/lib/modules/2.4.18-14/build/include/linux/capability.h:17,
from
/lib/modules/2.4.18-14/build/include/linux/binfmts.h:5,
from
/lib/modules/2.4.18-14/build/include/linux/sched.h:9,
from
/lib/modules/2.4.18-14/build/include/linux/skbuff.h:19,
from p10.c:4:
/lib/modules/2.4.18-14/build/include/linux/byteorder/swab.h:132:
warning: type qualifiers ignored on function return
type
/lib/modules/2.4.18-14/build/include/linux/byteorder/swab.h:145:
warning: type qualifiers ignored on function return
type
/lib/modules/2.4.18-14/build/include/linux/byteorder/swab.h:159:
warning: type qualifiers ignored on function return
type
In file included from
/lib/modules/2.4.18-14/build/include/linux/fs.h:375,
from
/lib/modules/2.4.18-14/build/include/linux/capability.h:17,
from
/lib/modules/2.4.18-14/build/include/linux/binfmts.h:5,
from
/lib/modules/2.4.18-14/build/include/linux/sched.h:9,
from
/lib/modules/2.4.18-14/build/include/linux/skbuff.h:19,
from p10.c:4:
/lib/modules/2.4.18-14/build/include/linux/quota.h:176:
warning: no previous prototype for `mark_info_dirty'
In file included from
/lib/modules/2.4.18-14/build/include/linux/sched.h:26,
from
/lib/modules/2.4.18-14/build/include/linux/skbuff.h:19,
from p10.c:4:
/lib/modules/2.4.18-14/build/include/linux/signal.h:
In function `sigorsets':
/lib/modules/2.4.18-14/build/include/linux/signal.h:108:
warning: comparison of unsigned expression < 0 is
always false
/lib/modules/2.4.18-14/build/include/linux/signal.h:
In function `sigandsets':
/lib/modules/2.4.18-14/build/include/linux/signal.h:111:
warning: comparison of unsigned expression < 0 is
always false
/lib/modules/2.4.18-14/build/include/linux/signal.h:
In function `signandsets':
/lib/modules/2.4.18-14/build/include/linux/signal.h:114:
warning: comparison of unsigned expression < 0 is
always false
/lib/modules/2.4.18-14/build/include/linux/signal.h:
In function `signotset':
/lib/modules/2.4.18-14/build/include/linux/signal.h:140:
warning: comparison of unsigned expression < 0 is
always false
In file included from p10.c:4:
/lib/modules/2.4.18-14/build/include/linux/skbuff.h:
In function `__pskb_pull':
/lib/modules/2.4.18-14/build/include/linux/skbuff.h:855:
warning: comparison between signed and unsigned
/lib/modules/2.4.18-14/build/include/linux/skbuff.h:
In function `pskb_may_pull':
/lib/modules/2.4.18-14/build/include/linux/skbuff.h:871:
warning: comparison between signed and unsigned
p10.c: At top level:
p10.c:7: warning: no previous prototype for
`init_module'
p10.c: In function `init_module':
p10.c:7: dereferencing pointer to incomplete type
p10.c: At top level:
p10.c:12: warning: no previous prototype for
`cleanup_module'
/lib/modules/2.4.18-14/build/include/linux/prefetch.h:
In function `prefetchw':
/lib/modules/2.4.18-14/build/include/linux/prefetch.h:48:
warning: unused parameter `x'
/lib/modules/2.4.18-14/build/include/linux/wait.h: In
function `__remove_wait_queue':
/lib/modules/2.4.18-14/build/include/linux/wait.h:225:
warning: unused parameter `head'
/lib/modules/2.4.18-14/build/include/linux/pm.h: In
function `pm_access':
/lib/modules/2.4.18-14/build/include/linux/pm.h:150:
warning: unused parameter `dev'
/lib/modules/2.4.18-14/build/include/linux/pm.h: In
function `pm_dev_idle':
/lib/modules/2.4.18-14/build/include/linux/pm.h:151:
warning: unused parameter `dev'
/lib/modules/2.4.18-14/build/include/asm/pgtable-2level.h:
In function `pgd_none':
/lib/modules/2.4.18-14/build/include/asm/pgtable-2level.h:32:
warning: unused parameter `pgd'
/lib/modules/2.4.18-14/build/include/asm/pgtable-2level.h:
In function `pgd_bad':
/lib/modules/2.4.18-14/build/include/asm/pgtable-2level.h:33:
warning: unused parameter `pgd'
/lib/modules/2.4.18-14/build/include/asm/pgtable-2level.h:
In function `pgd_present':
/lib/modules/2.4.18-14/build/include/asm/pgtable-2level.h:34:
warning: unused parameter `pgd'
/lib/modules/2.4.18-14/build/include/asm/pgtable-2level.h:
In function `pmd_offset':
/lib/modules/2.4.18-14/build/include/asm/pgtable-2level.h:55:
warning: unused parameter `address'
/lib/modules/2.4.18-14/build/include/linux/mm.h: In
function `arch_validate':
/lib/modules/2.4.18-14/build/include/linux/mm.h:491:
warning: unused parameter `gfp_mask'
/lib/modules/2.4.18-14/build/include/linux/mm.h:491:
warning: unused parameter `order'
/lib/modules/2.4.18-14/build/include/asm/pgalloc.h: In
function `pte_alloc_one':
/lib/modules/2.4.18-14/build/include/asm/pgalloc.h:107:
warning: unused parameter `mm'
/lib/modules/2.4.18-14/build/include/asm/pgalloc.h:107:
warning: unused parameter `address'
/lib/modules/2.4.18-14/build/include/asm/pgalloc.h: In
function `pte_alloc_one_fast':
/lib/modules/2.4.18-14/build/include/asm/pgalloc.h:122:
warning: unused parameter `mm'
/lib/modules/2.4.18-14/build/include/asm/pgalloc.h:123:
warning: unused parameter `address'
/lib/modules/2.4.18-14/build/include/asm/pgalloc.h: In
function `flush_tlb_range':
/lib/modules/2.4.18-14/build/include/asm/pgalloc.h:220:
warning: unused parameter `start'
/lib/modules/2.4.18-14/build/include/asm/pgalloc.h:220:
warning: unused parameter `end'
/lib/modules/2.4.18-14/build/include/asm/pgalloc.h: In
function `flush_tlb_pgtables':
/lib/modules/2.4.18-14/build/include/asm/pgalloc.h:238:
warning: unused parameter `start'
/lib/modules/2.4.18-14/build/include/asm/pgalloc.h:238:
warning: unused parameter `end'
/lib/modules/2.4.18-14/build/include/linux/highmem.h:
In function `clear_user_highpage':
/lib/modules/2.4.18-14/build/include/linux/highmem.h:83:
warning: unused parameter `vaddr'
/lib/modules/2.4.18-14/build/include/linux/highmem.h:
In function `copy_user_highpage':
/lib/modules/2.4.18-14/build/include/linux/highmem.h:112:
warning: unused parameter `vaddr'
/lib/modules/2.4.18-14/build/include/linux/skbuff.h:
In function `kunmap_skb_frag':
/lib/modules/2.4.18-14/build/include/linux/skbuff.h:1104:
warning: unused parameter `vaddr'
--- Arjan van de Ven <arjanv@redhat.com> wrote:
> On Fri, 2003-04-11 at 09:38, Alisha Nigam wrote:
>
> > then compile it
> > gcc -c -O -W -Wall -Wstrict-prototypes
> > -Wmissing-prototypes -DMODULE -D__KERNEL__
> -mymodule.o
> > mymodule.c
> >
> >
> > i am getting a bundle of errors ......
> >
> >
> > 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
> /usr/include/linux/skbuff.h:19,
> > from p10.c:2:
> > /usr/include/linux/string.h:8:2: warning: #warning
> > Using kernel header in userland!
>
> you are using glibc headers to compile a kernel....
> that's not going to
> work. Add -I/lib/modules/`uname -r`/build/include to
> the gcc commandline
> to use the headers of the currently running kernel..
>
>
> ATTACHMENT part 2 application/pgp-signature
name=signature.asc
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-04-11 8:22 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-11 7:38 TCP/IP stack related prob Alisha Nigam
2003-04-11 7:52 ` Arjan van de Ven
2003-04-11 8:06 ` Alisha Nigam
2003-04-11 8:08 ` Francis Galiegue
2003-04-11 8:34 ` Alisha Nigam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®