
페도라 37 워크스테이션 6.0.7-301.fc37.x86_64
나는 acpi_call
에서 다운로드했다여기, 그리고 rpm -qa | grep acpi_call
를 반환 acpi_call-1.1.0-1.noarch
하므로 설치되었습니다.
그리고 rpm -ql acpi_call
에 acpi_call 파일 목록을 반환하며 /usr/src/
파일이 존재합니다.
나 에게도 폴더가 /var/libs/dkms/
있다acpi_call
하지만,/proc/acpi/call
존재하지 않는다그리고 lsmod | grep -q acpi_call
반환아무것도 아님.
시도한 후에제거 acpi_call
나는 sudo dnf remove acpi_call
다음을 얻습니다:
Error! The module/version combo: %{module}-1.1.0 is not located in the DKMS tree.
error: %preun(acpi_call-1.1.0-1.noarch) scriptlet failed, exit status 3
error: acpi_call-1.1.0-1.noarch: erase failed
Error! The module/version combo: %{module}-1.1.0 is not located in the DKMS tree.
error: %preun(acpi_call-1.1.0-1.noarch) scriptlet failed, exit status 3
error: acpi_call-1.1.0-1.noarch: erase failed
와 같다 rpm -e
:
❯ rpm -qa | grep acpi_call !1622 zluka
acpi_call-1.1.0-1.noarch
acpi_call-1.1.0-1.noarch
❯ sudo rpm -e --allmatches acpi_call !1623 zluka
Error! The module/version combo: %{module}-1.1.0 is not located in the DKMS tree.
error: %preun(acpi_call-1.1.0-1.noarch) scriptlet failed, exit status 3
error: acpi_call-1.1.0-1.noarch: erase failed
Error! The module/version combo: %{module}-1.1.0 is not located in the DKMS tree.
error: %preun(acpi_call-1.1.0-1.noarch) scriptlet failed, exit status 3
error: acpi_call-1.1.0-1.noarch: erase failed
그러나 오류가 발생하지 않지만 sudo dnf --setopt=tsflags=noscripts remove acpi_call
(폴더가 /var/lib/dkms/acpi_call/
여전히 존재하므로 수동으로 삭제) 이후에는 rpm -qa | grep acpi_call
아무것도 반환하지 않습니다.
그러나 이후에설치 acpi_call
다시 한번 나는 이것을 가지고 있습니다 :
Creating symlink /var/lib/dkms/acpi_call/1.1.0/source -> /usr/src/acpi_call-1.1.0
Sign command: /lib/modules/6.0.7-301.fc37.x86_64/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Certificate or key are missing, generating self signed certificate for MOK...
Key file /var/lib/dkms/mok.key not found and can't be generated, modules won't be signed
Building module:
Cleaning build area...
make -j16 KERNELRELEASE=6.0.7-301.fc37.x86_64 -C /lib/modules/6.0.7-301.fc37.x86_64/build M=/var/lib/dkms/acpi_call/1.1.0/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.0.7-301.fc37.x86_64 (x86_64)
Consult /var/lib/dkms/acpi_call/1.1.0/build/make.log for more information.
Sign command: /lib/modules/6.0.7-301.fc37.x86_64/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Certificate or key are missing, generating self signed certificate for MOK...
Key file /var/lib/dkms/mok.key not found and can't be generated, modules won't be signed
Building module:
Cleaning build area...
make -j16 KERNELRELEASE=6.0.7-301.fc37.x86_64 -C /lib/modules/6.0.7-301.fc37.x86_64/build M=/var/lib/dkms/acpi_call/1.1.0/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.0.7-301.fc37.x86_64 (x86_64)
Consult /var/lib/dkms/acpi_call/1.1.0/build/make.log for more information.
warning: %post(acpi_call-1.1.0-1.noarch) scriptlet failed, exit status 10
/var/lib/dkms/acpi_call/1.1.0/build/make.log
:
DKMS make.log for acpi_call-1.1.0 for kernel 6.0.7-301.fc37.x86_64 (x86_64)
Thu Feb 9 03:37:07 PM EET 2023
make: Entering directory '/usr/src/kernels/6.0.7-301.fc37.x86_64'
CC [M] /var/lib/dkms/acpi_call/1.1.0/build/acpi_call.o
/var/lib/dkms/acpi_call/1.1.0/build/acpi_call.c: In function ‘init_acpi_call’:
/var/lib/dkms/acpi_call/1.1.0/build/acpi_call.c:355:53: error: passing argument 4 of ‘proc_create’ from incompatible pointer type [-Werror=incompatible-pointer-types]
355 | &proc_acpi_operations);
| ^~~~~~~~~~~~~~~~~~~~~
| |
| struct file_operations *
In file included from /var/lib/dkms/acpi_call/1.1.0/build/acpi_call.c:6:
./include/linux/proc_fs.h:110:122: note: expected ‘const struct proc_ops *’ but argument is of type ‘struct file_operations *’
110 | struct proc_dir_entry *proc_create(const char *name, umode_t mode, struct proc_dir_entry *parent, const struct proc_ops *proc_ops);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
cc1: some warnings being treated as errors
make[1]: *** [scripts/Makefile.build:249: /var/lib/dkms/acpi_call/1.1.0/build/acpi_call.o] Error 1
make: *** [Makefile:1856: /var/lib/dkms/acpi_call/1.1.0/build] Error 2
make: Leaving directory '/usr/src/kernels/6.0.7-301.fc37.x86_64'
답변1
5.6+ 커널에서는 acpi_call-1.1.0을 사용할 수 없습니다. 다음 버전을 사용하세요.이번 패치. 이상적으로는 1.2.2