Mephisto Posté(e) le 29 janvier 2007 Partager Posté(e) le 29 janvier 2007 salut tout le monde j'ai recemment reinstalle debian sur mon laptop (jsais pas, ubuntu, j'avais du mal a l'encadrer...) bref, mon probleme, c'est que je n'arrive pas a installer les ACPI... faust@deb-laptop:~/Ressources/ACPI/acer_acpi-0.3$ make gcc -I/lib/modules/`uname -r`/build/include -c -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -DMODVERSIONS -DMODULE -D__KERNEL__ -o acer_acpi.o acer_acpi.c In file included from /lib/modules/2.6.18-3-486/build/include/asm/thread_info.h:16, from /lib/modules/2.6.18-3-486/build/include/linux/thread_info.h:21, from /lib/modules/2.6.18-3-486/build/include/linux/preempt.h:9, from /lib/modules/2.6.18-3-486/build/include/linux/spinlock.h:49, from /lib/modules/2.6.18-3-486/build/include/linux/capability.h:45, from /lib/modules/2.6.18-3-486/build/include/linux/sched.h:44, from /lib/modules/2.6.18-3-486/build/include/linux/module.h:9, from acer_acpi.c:41: /lib/modules/2.6.18-3-486/build/include/asm/processor.h:80: error: ‘CONFIG_X86_L1_CACHE_SHIFT’ undeclared here (not in a function) /lib/modules/2.6.18-3-486/build/include/asm/processor.h:80: error: requested alignment is not a constant In file included from /lib/modules/2.6.18-3-486/build/include/linux/rwsem.h:24, from /lib/modules/2.6.18-3-486/build/include/asm/semaphore.h:42, from /lib/modules/2.6.18-3-486/build/include/linux/sched.h:57, from /lib/modules/2.6.18-3-486/build/include/linux/module.h:9, from acer_acpi.c:41: /lib/modules/2.6.18-3-486/build/include/asm/rwsem.h: In function ‘__down_read’: /lib/modules/2.6.18-3-486/build/include/asm/rwsem.h:104: error: expected ‘:’ or ‘)’ before ‘KBUILD_BASENAME’ /lib/modules/2.6.18-3-486/build/include/asm/rwsem.h: In function ‘__down_write_nested’: /lib/modules/2.6.18-3-486/build/include/asm/rwsem.h:156: error: expected ‘:’ or ‘)’ before ‘KBUILD_BASENAME’ /lib/modules/2.6.18-3-486/build/include/asm/rwsem.h: In function ‘__up_read’: /lib/modules/2.6.18-3-486/build/include/asm/rwsem.h:198: error: expected ‘:’ or ‘)’ before ‘KBUILD_BASENAME’ /lib/modules/2.6.18-3-486/build/include/asm/rwsem.h:192: warning: unused variable ‘tmp’ /lib/modules/2.6.18-3-486/build/include/asm/rwsem.h: In function ‘__up_write’: /lib/modules/2.6.18-3-486/build/include/asm/rwsem.h:224: error: expected ‘:’ or ‘)’ before ‘KBUILD_BASENAME’ /lib/modules/2.6.18-3-486/build/include/asm/rwsem.h: In function ‘__downgrade_write’: /lib/modules/2.6.18-3-486/build/include/asm/rwsem.h:249: error: expected ‘:’ or ‘)’ before ‘KBUILD_BASENAME’ In file included from /lib/modules/2.6.18-3-486/build/include/linux/sched.h:57, from /lib/modules/2.6.18-3-486/build/include/linux/module.h:9, from acer_acpi.c:41: /lib/modules/2.6.18-3-486/build/include/asm/semaphore.h: In function ‘down’: /lib/modules/2.6.18-3-486/build/include/asm/semaphore.h:105: error: expected ‘:’ or ‘)’ before ‘KBUILD_BASENAME’ /lib/modules/2.6.18-3-486/build/include/asm/semaphore.h: In function ‘down_interruptible’: /lib/modules/2.6.18-3-486/build/include/asm/semaphore.h:130: error: expected ‘:’ or ‘)’ before ‘KBUILD_BASENAME’ /lib/modules/2.6.18-3-486/build/include/asm/semaphore.h: In function ‘down_trylock’: /lib/modules/2.6.18-3-486/build/include/asm/semaphore.h:155: error: expected ‘:’ or ‘)’ before ‘KBUILD_BASENAME’ /lib/modules/2.6.18-3-486/build/include/asm/semaphore.h: In function ‘up’: /lib/modules/2.6.18-3-486/build/include/asm/semaphore.h:179: error: expected ‘:’ or ‘)’ before ‘KBUILD_BASENAME’ In file included from /lib/modules/2.6.18-3-486/build/include/linux/module.h:9, from acer_acpi.c:41: /lib/modules/2.6.18-3-486/build/include/linux/sched.h: In function ‘dequeue_signal_lock’: /lib/modules/2.6.18-3-486/build/include/linux/sched.h:1209: warning: implicit declaration of function ‘local_irq_save’ /lib/modules/2.6.18-3-486/build/include/linux/sched.h:1211: warning: implicit declaration of function ‘local_irq_restore’ In file included from /lib/modules/2.6.18-3-486/build/include/linux/kernel_stat.h:4, from /lib/modules/2.6.18-3-486/build/include/asm/i387.h:16, from /lib/modules/2.6.18-3-486/build/include/asm/suspend.h:7, from /lib/modules/2.6.18-3-486/build/include/linux/suspend.h:5, from acer_acpi.c:46: /lib/modules/2.6.18-3-486/build/include/asm/irq.h:15:25: error: irq_vectors.h: Aucun fichier ou répertoire de ce type In file included from /lib/modules/2.6.18-3-486/build/include/asm/i387.h:16, from /lib/modules/2.6.18-3-486/build/include/asm/suspend.h:7, from /lib/modules/2.6.18-3-486/build/include/linux/suspend.h:5, from acer_acpi.c:46: /lib/modules/2.6.18-3-486/build/include/linux/kernel_stat.h: At top level: /lib/modules/2.6.18-3-486/build/include/linux/kernel_stat.h:30: error: ‘NR_IRQS’ undeclared here (not in a function) In file included from /lib/modules/2.6.18-3-486/build/include/acpi/platform/acenv.h:140, from /lib/modules/2.6.18-3-486/build/include/acpi/acpi.h:54, from /lib/modules/2.6.18-3-486/build/include/linux/acpi.h:37, from /lib/modules/2.6.18-3-486/build/include/acpi/acpi_drivers.h:29, from acer_acpi.c:49: /lib/modules/2.6.18-3-486/build/include/acpi/platform/aclinux.h: In function ‘acpi_os_allocate’: /lib/modules/2.6.18-3-486/build/include/acpi/platform/aclinux.h:116: warning: implicit declaration of function ‘irqs_disabled’ make: *** [acer_acpi.o] Erreur 1 je ne vois absolument pas d'ou vient le probleme... y a-t-il d'autres versions des ACPI aue je pourrais tester (si je me souviens bien, la 0.3, je l'avais deja en 2.6.15). dois-je tenter une install avec les sources d'un kernel plus ancien (en remplacant dans le makefile ma detection automatique du kernel par l'adresse en dur de mes sources), est-ce que je ne risque pas de flinger ma distro en jouant au barbar ? je vais quand meme pas en venir a "dowgrader" mon kernel ? une solution autre que la pendaison ou le vaudou ? merci! Lien vers le commentaire Partager sur d’autres sites More sharing options...
tuXXX Posté(e) le 30 janvier 2007 Partager Posté(e) le 30 janvier 2007 acer_acpi ça ne sert que à gérer la carte WiFi, la carte BlueTooth et la led "mail". (ouin pas grand chose à voir avec l'économie d'énergie finalement) Moi la version 0.3 compile sur un noyau 2.6.19 sans aucun patch. Lien vers le commentaire Partager sur d’autres sites More sharing options...
Mephisto Posté(e) le 31 janvier 2007 Auteur Partager Posté(e) le 31 janvier 2007 mwe, enfin, pour l'instant, je cherche a faire marcher mon wifi, donc, faut bien passer par la Lien vers le commentaire Partager sur d’autres sites More sharing options...
tuXXX Posté(e) le 14 mars 2007 Partager Posté(e) le 14 mars 2007 En fait c'est le makefile qui n'est pas bon, en voici un qui fonctionne : obj-m := acer_acpi.o KDIR := /lib/modules/$(shell uname -r)/build PWD := $(shell pwd) KMAKE :=$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) default: $(KMAKE) modules clean: $(KMAKE) clean install: $(KMAKE) modules_install Pour éviter les désagréments produits par les modifications de forme du forum dans les codebox, j'ai mis le code ici ("Show as plain text" pour télécharger simplement) Sinon tu peux essayer acerhk qui marche un peu mieux (sauf en 64 bits à priori). Lien vers le commentaire Partager sur d’autres sites More sharing options...
Messages recommandés
Archivé
Ce sujet est désormais archivé et ne peut plus recevoir de nouvelles réponses.