Re: Compiling a module outside kernel

2008-05-01 Thread David Woodhouse
On Wed, 2008-04-30 at 09:00 -0700, Pete Zaitcev wrote:
> On Wed, 30 Apr 2008 17:28:15 +0200, "Robert M. Albrecht" <[EMAIL PROTECTED]> 
> wrote:
> 
> > [EMAIL PROTECTED] toshiba_acpi]# make
> > make: F?r das Ziel ?default? ist nichts zu tun.
> 
> Once again with LANG=C, please. This is just why l18n is a very
> bad idea.
> 
> > default:
> > $(MAKE) -C $(KDIR) M=$(PWD) modules
> 
> Yes I can see "default" in the make diagnostic above.
> Maybe tab is missing and replaced with spaces, and make
> TELLS YOU THAT, only IN GERMAN.

And Robert further corrupted it when mailing it out, by turning a bunch
of characters into question marks. How did that happen? 

I'm sure that cut and paste of tabs vs. spaces used to work properly. Is
there a bug filed for the fact that it doesn't?

-- 
dwmw2

___
Fedora-kernel-list mailing list
Fedora-kernel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-kernel-list


Re: Compiling a module outside kernel

2008-04-30 Thread Robert M. Albrecht

Hello,

argh. Yes, swapping the spaces with tabs helped.

This must happened while copy & pasting the makefile.

Thanks all for the help.

cu romal


Eric Sandeen schrieb:

Robert M. Albrecht wrote:

Hi Sam,

I have a problem in compiling a kernel module
(outside the kernel) in F9 (rawhide). Perhaps someone could enlighten me.

[EMAIL PROTECTED] toshiba_acpi]# ll
insgesamt 24
-rw-r--r-- 1 root root   145 29. Apr 17:49 Makefile
-rw-r--r-- 1 root root 19774 28. Apr 21:46 toshiba_acpi.c

[EMAIL PROTECTED] toshiba_acpi]# make
make: F?r das Ziel ?default? ist nichts zu tun.

[EMAIL PROTECTED] toshiba_acpi]# cat Makefile
obj-m := toshiba_acpi.o

KDIR  := /lib/modules/$(shell uname -r)/build
PWD   := $(shell pwd)

default:
$(MAKE) -C $(KDIR) M=$(PWD) modules


^^^ swap those spaces for a tab.

-eric

___
Fedora-kernel-list mailing list
Fedora-kernel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-kernel-list


___
Fedora-kernel-list mailing list
Fedora-kernel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-kernel-list


Re: Compiling a module outside kernel

2008-04-30 Thread Pete Zaitcev
On Wed, 30 Apr 2008 17:28:15 +0200, "Robert M. Albrecht" <[EMAIL PROTECTED]> 
wrote:

> [EMAIL PROTECTED] toshiba_acpi]# make
> make: F?r das Ziel ?default? ist nichts zu tun.

Once again with LANG=C, please. This is just why l18n is a very
bad idea.

> default:
> $(MAKE) -C $(KDIR) M=$(PWD) modules

Yes I can see "default" in the make diagnostic above.
Maybe tab is missing and replaced with spaces, and make
TELLS YOU THAT, only IN GERMAN.

-- Pete

___
Fedora-kernel-list mailing list
Fedora-kernel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-kernel-list


Re: Compiling a module outside kernel

2008-04-30 Thread Eric Sandeen
Robert M. Albrecht wrote:
> Hi Sam,
> 
> I have a problem in compiling a kernel module
> (outside the kernel) in F9 (rawhide). Perhaps someone could enlighten me.
> 
> [EMAIL PROTECTED] toshiba_acpi]# ll
> insgesamt 24
> -rw-r--r-- 1 root root   145 29. Apr 17:49 Makefile
> -rw-r--r-- 1 root root 19774 28. Apr 21:46 toshiba_acpi.c
> 
> [EMAIL PROTECTED] toshiba_acpi]# make
> make: F?r das Ziel ?default? ist nichts zu tun.
> 
> [EMAIL PROTECTED] toshiba_acpi]# cat Makefile
> obj-m := toshiba_acpi.o
> 
> KDIR  := /lib/modules/$(shell uname -r)/build
> PWD   := $(shell pwd)
> 
> default:
> $(MAKE) -C $(KDIR) M=$(PWD) modules

^^^ swap those spaces for a tab.

-eric

___
Fedora-kernel-list mailing list
Fedora-kernel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-kernel-list


Re: Compiling a module outside kernel

2008-04-30 Thread Robert M. Albrecht

Hi,

thanks for your fast reply.

Yes, kernel-devel is installed:

[EMAIL PROTECTED] ~]# rpm --query kernel-devel
kernel-devel-2.6.25-8.fc9.i686
[EMAIL PROTECTED] ~]# uname --all
Linux localhost.localdomain 2.6.25-8.fc9.i686 #1 SMP Wed Apr 23 03:56:19 
EDT 2008 i686 i686 i386 GNU/Linux

[EMAIL PROTECTED] ~]#

cu romal


Jarod Wilson schrieb:

On Wednesday 30 April 2008 11:28:15 am Robert M. Albrecht wrote:

Hi Sam,

I have a problem in compiling a kernel module
(outside the kernel) in F9 (rawhide). Perhaps someone could enlighten me.

[EMAIL PROTECTED] toshiba_acpi]# ll
insgesamt 24
-rw-r--r-- 1 root root   145 29. Apr 17:49 Makefile
-rw-r--r-- 1 root root 19774 28. Apr 21:46 toshiba_acpi.c

[EMAIL PROTECTED] toshiba_acpi]# make
make: F?r das Ziel ?default? ist nichts zu tun.

[EMAIL PROTECTED] toshiba_acpi]# cat Makefile
obj-m := toshiba_acpi.o

KDIR  := /lib/modules/$(shell uname -r)/build
PWD   := $(shell pwd)

default:
$(MAKE) -C $(KDIR) M=$(PWD) modules

[EMAIL PROTECTED] toshiba_acpi]#

Nothing happens. Has the Makefile to be changed for F9 or do I make a
stupid mistake ?


The Makefile looks correct at a glance... Do you kernel-devel installed? If 
not, build will be a dangling symlink...




___
Fedora-kernel-list mailing list
Fedora-kernel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-kernel-list


Re: Compiling a module outside kernel

2008-04-30 Thread Jarod Wilson
On Wednesday 30 April 2008 11:28:15 am Robert M. Albrecht wrote:
> Hi Sam,
>
> I have a problem in compiling a kernel module
> (outside the kernel) in F9 (rawhide). Perhaps someone could enlighten me.
>
> [EMAIL PROTECTED] toshiba_acpi]# ll
> insgesamt 24
> -rw-r--r-- 1 root root   145 29. Apr 17:49 Makefile
> -rw-r--r-- 1 root root 19774 28. Apr 21:46 toshiba_acpi.c
>
> [EMAIL PROTECTED] toshiba_acpi]# make
> make: F?r das Ziel ?default? ist nichts zu tun.
>
> [EMAIL PROTECTED] toshiba_acpi]# cat Makefile
> obj-m := toshiba_acpi.o
>
> KDIR  := /lib/modules/$(shell uname -r)/build
> PWD   := $(shell pwd)
>
> default:
> $(MAKE) -C $(KDIR) M=$(PWD) modules
>
> [EMAIL PROTECTED] toshiba_acpi]#
>
> Nothing happens. Has the Makefile to be changed for F9 or do I make a
> stupid mistake ?

The Makefile looks correct at a glance... Do you kernel-devel installed? If 
not, build will be a dangling symlink...

-- 
Jarod Wilson
[EMAIL PROTECTED]

___
Fedora-kernel-list mailing list
Fedora-kernel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-kernel-list


Compiling a module outside kernel

2008-04-30 Thread Robert M. Albrecht

Hi Sam,

I have a problem in compiling a kernel module
(outside the kernel) in F9 (rawhide). Perhaps someone could enlighten me.

[EMAIL PROTECTED] toshiba_acpi]# ll
insgesamt 24
-rw-r--r-- 1 root root   145 29. Apr 17:49 Makefile
-rw-r--r-- 1 root root 19774 28. Apr 21:46 toshiba_acpi.c

[EMAIL PROTECTED] toshiba_acpi]# make
make: F?r das Ziel ?default? ist nichts zu tun.

[EMAIL PROTECTED] toshiba_acpi]# cat Makefile
obj-m := toshiba_acpi.o

KDIR  := /lib/modules/$(shell uname -r)/build
PWD   := $(shell pwd)

default:
   $(MAKE) -C $(KDIR) M=$(PWD) modules

[EMAIL PROTECTED] toshiba_acpi]#

Nothing happens. Has the Makefile to be changed for F9 or do I make a
stupid mistake ?

cu romal


___
Fedora-kernel-list mailing list
Fedora-kernel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-kernel-list