void hello(void)
{
printf ("Hello\n");
}
<-*-*- This is not my real name, I am undercover -*-*->
- - - - - - - - - - - - - - - - - - - - - - - - - - advertisement - - - - - -
Limited Time Offer: FREE Products! Pay only shipping and handling.
Get FREE Software, CDR's,
Hi guys,
I always test new ideas or learn about things by writing a little module
that does what I want to explore. But today I discovered that on a Red Hat
6.9 system (running test10-pre3 with everything correctly upgraded) I can
no longer compile a trivial skeleton hello.c unless I use the late
On Mon, 16 Oct 2000 15:29:53 +0100 (BST),
Tigran Aivazian <[EMAIL PROTECTED]> wrote:
>static void __exit test_exit(void)
>{
>return;
>}
>
>module_init(test_init);
>module_exit(test_exit);
># kgcc -Wall -O2 -g -c -o hello.o hello.c
>hello.c:13: parse error before `test_exit'
Add -v -E -dM
hello.o
hello.c
/tmp/ccyGrYVt.s: Assembler messages:
/tmp/ccyGrYVt.s:69: Warning: Ignoring changed section attributes for
.modinfo
# insmod hello.o
# lsmod
Module Size Used by
hello192 0 (unused)
vmnet 18016 3
vmmon 19236 0
In article <[EMAIL PROTECTED]> you wrote:
> # kgcc -v -E -dM -Wall -O2 -g -c -o hello.o hello.c
The biggest problem with this is that you use the glibc headers (in
/usr/include) instead of the kernel headers (in /usr/src/linux/include)
kgcc -O2 -I/usr/src/linux/include -D__KERNEL__ -o hello.o h
On Mon, 16 Oct 2000, Arjan van de Ven wrote:
> In article <[EMAIL PROTECTED]> you wrote:
>
> > # kgcc -v -E -dM -Wall -O2 -g -c -o hello.o hello.c
>
> The biggest problem with this is that you use the glibc headers (in
> /usr/include) instead of the kernel headers (in /usr/src/linux/include)
>
You have been invited to check out this adult site
by one of your friends who visited us.
our URL is http://www.openxxx.net/
enjoy,
OpenXXX TEAM 2001
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at
7 matches
Mail list logo