Bug 229834

Summary: sysutils/pefs-kmod: linker_load_file: /boot/modules/pefs.ko - unsupported file type
Product: Ports & Packages Reporter: Ali Abdallah <ali.abdallah>
Component: Individual Port(s)Assignee: Gleb Kurtsou <gleb>
Status: Closed Overcome By Events    
Severity: Affects Some People CC: mikael
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Ali Abdallah 2018-07-17 14:23:35 UTC
With FreeBSD 12-CURRENT, the pefs.ko kernel module fails to load. I've compiled it from source. kldload perfs.ko gives 

link_elf_obj: symbol bzero undefined
linker_load_file: /boot/modules/pefs.ko - unsupported file type
Comment 2 Ali Abdallah 2018-07-18 07:29:06 UTC
I just did now, but no lock, kldload fails to load the module with 

KLD pefs.ko: depends on kernel - not available or version mismatch
linker_load_file: /boot/modules/pefs.ko - unsupported file type

I'm on FreeBSD 12.0-CURRENT #15 r336200M
Comment 3 Ali Abdallah 2018-07-18 07:35:24 UTC
The two patches solve the problem for me. Actually it was failing with:

KLD pefs.ko: depends on kernel - not available or version mismatch

Because I had more recent revision in my /usr/src than the kernel I'm currently running. 

I think it is a good idea to includes those patches in the port. 

Thanks