From: Anuj Tripathi <anujt@it.iitb.ac.in>
To: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Problems in compiling the module "/net/ieee80211"
Date: Tue, 19 Sep 2006 02:14:05 +0530 [thread overview]
Message-ID: <450F0515.3040002@it.iitb.ac.in> (raw)
Hi
I am trying to compile the kernel source code of .c files in
/linux-2.6.17.11/net/ieee80211 in a standalone manner. My aim is to
profile these files, especially the security functions, and to find the
bottlenecks in the implementation and then to fine tune it.
While compiling them as
gcc -D__KERNEL__ -I ../../kernel2/linux-2.6.17.11/include ieee80211_crypt.c
I initially got error with KBUILD but was able to remove it. Now
following are the errors I am getting.
In file included from ../../kernel2/linux-2.6.17.11/include/asm/smp.h:18,
from ../../kernel2/linux-2.6.17.11/include/linux/smp.h:19,
from
../../kernel2/linux-2.6.17.11/include/linux/sched.h:26,
from
../../kernel2/linux-2.6.17.11/include/linux/module.h:12,
from ieee80211_crypt.c:15:
../../kernel2/linux-2.6.17.11/include/asm/mpspec.h:6:25: error:
mach_mpspec.h: No such file or directory
In file included from ../../kernel2/linux-2.6.17.11/include/asm/smp.h:18,
from ../../kernel2/linux-2.6.17.11/include/linux/smp.h:19,
from
../../kernel2/linux-2.6.17.11/include/linux/sched.h:26,
from
../../kernel2/linux-2.6.17.11/include/linux/module.h:12,
from ieee80211_crypt.c:15:
../../kernel2/linux-2.6.17.11/include/asm/mpspec.h:8: error:
'MAX_MP_BUSSES' undeclared here (not in a function)
../../kernel2/linux-2.6.17.11/include/asm/mpspec.h:22: error:
'MAX_IRQ_SOURCES' undeclared here (not in a function)
In file included from ../../kernel2/linux-2.6.17.11/include/linux/smp.h:19,
from
../../kernel2/linux-2.6.17.11/include/linux/sched.h:26,
from
../../kernel2/linux-2.6.17.11/include/linux/module.h:12,
from ieee80211_crypt.c:15:
../../kernel2/linux-2.6.17.11/include/asm/smp.h:77:26: error:
mach_apicdef.h: No such file or directory
In file included from ../../kernel2/linux-2.6.17.11/include/linux/irq.h:22,
from ../../kernel2/linux-2.6.17.11/include/asm/hardirq.h:6,
from
../../kernel2/linux-2.6.17.11/include/linux/hardirq.h:7,
from
../../kernel2/linux-2.6.17.11/include/linux/interrupt.h:11,
from
../../kernel2/linux-2.6.17.11/include/asm/highmem.h:24,
from
../../kernel2/linux-2.6.17.11/include/linux/highmem.h:24,
from
../../kernel2/linux-2.6.17.11/include/linux/skbuff.h:27,
from
../../kernel2/linux-2.6.17.11/include/linux/if_ether.h:111,
from
../../kernel2/linux-2.6.17.11/include/net/ieee80211.h:28,
from ieee80211_crypt.c:19:
../../kernel2/linux-2.6.17.11/include/asm/irq.h:16:25: error:
irq_vectors.h: No such file or directory
In file included from ../../kernel2/linux-2.6.17.11/include/asm/hardirq.h:6,
from
../../kernel2/linux-2.6.17.11/include/linux/hardirq.h:7,
from
../../kernel2/linux-2.6.17.11/include/linux/interrupt.h:11,
from
../../kernel2/linux-2.6.17.11/include/asm/highmem.h:24,
from
../../kernel2/linux-2.6.17.11/include/linux/highmem.h:24,
from
../../kernel2/linux-2.6.17.11/include/linux/skbuff.h:27,
from
../../kernel2/linux-2.6.17.11/include/linux/if_ether.h:111,
from
../../kernel2/linux-2.6.17.11/include/net/ieee80211.h:28,
from ieee80211_crypt.c:19:
../../kernel2/linux-2.6.17.11/include/linux/irq.h:85: error: 'NR_IRQS'
undeclared here (not in a function)
In file included from ../../kernel2/linux-2.6.17.11/include/linux/irq.h:94,
from ../../kernel2/linux-2.6.17.11/include/asm/hardirq.h:6,
from
../../kernel2/linux-2.6.17.11/include/linux/hardirq.h:7,
from
../../kernel2/linux-2.6.17.11/include/linux/interrupt.h:11,
from
../../kernel2/linux-2.6.17.11/include/asm/highmem.h:24,
from
../../kernel2/linux-2.6.17.11/include/linux/highmem.h:24,
from
../../kernel2/linux-2.6.17.11/include/linux/skbuff.h:27,
from
../../kernel2/linux-2.6.17.11/include/linux/if_ether.h:111,
from
../../kernel2/linux-2.6.17.11/include/net/ieee80211.h:28,
from ieee80211_crypt.c:19:
../../kernel2/linux-2.6.17.11/include/asm/hw_irq.h:30: error:
'NR_IRQ_VECTORS' undeclared here (not in a function)
In file included from
../../kernel2/linux-2.6.17.11/include/linux/if_ether.h:111,
from
../../kernel2/linux-2.6.17.11/include/net/ieee80211.h:28,
from ieee80211_crypt.c:19:
../../kernel2/linux-2.6.17.11/include/linux/skbuff.h: In function
'skb_add_data':
../../kernel2/linux-2.6.17.11/include/linux/skbuff.h:1140: warning:
pointer targets in passing argument 1 of 'csum_and_copy_from_user'
differ in signedness
can someone tell me how can i get over with these errors ? Moreover is
there any other way of profiling the specific module (/net/ieee802.11)
through which i can find out the bottleneck ???
ThanX
-Anuj Tripathi
Mtech 05, IIT Bombay
next reply other threads:[~2006-09-18 20:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-18 20:44 Anuj Tripathi [this message]
2006-09-18 21:41 ` Jesper Juhl
2006-09-19 10:30 ` linux-os (Dick Johnson)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=450F0515.3040002@it.iitb.ac.in \
--to=anujt@it.iitb.ac.in \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®