failed to build against linux-unstable=5.18.0-1.1: error: 'struct kobj_type' has no member named 'default_attrs'

Bug #1971456 reported by You-Sheng Yang
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
zfs-linux (Ubuntu)
Fix Released
High
You-Sheng Yang
Jammy
Confirmed
Undecided
Unassigned
Kinetic
Fix Released
High
You-Sheng Yang

Bug Description

/var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/zfs_sysfs.c: In function 'zfs_kobj_init':
/var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/zfs_sysfs.c:188:29: error: 'struct kobj_type' has no member named 'default_attrs'
  188 | zkobj->zko_kobj_type.default_attrs = zkobj->zko_default_attrs;
      | ^
make[5]: *** [scripts/Makefile.build:296: /var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/zfs_sysfs.o] Error 1
make[5]: *** Waiting for unfinished jobs....
make[4]: *** [scripts/Makefile.build:558: /var/lib/dkms/zfs/2.1.4/build/module/zfs] Error 2
make[3]: *** [Makefile:1838: /var/lib/dkms/zfs/2.1.4/build/module] Error 2
make[3]: Leaving directory '/usr/src/linux-headers-5.18.0-1-generic'
make[2]: *** [Makefile:55: modules-Linux] Error 2
make[2]: Leaving directory '/var/lib/dkms/zfs/2.1.4/build/module'
make[1]: *** [Makefile:882: all-recursive] Error 1
make[1]: Leaving directory '/var/lib/dkms/zfs/2.1.4/build'
make: *** [Makefile:743: all] Error 2

Revision history for this message
You-Sheng Yang (vicamo) wrote :
Revision history for this message
You-Sheng Yang (vicamo) wrote (last edit ):

Prebuilt PPA: https://launchpad.net/~vicamo/+archive/ubuntu/ppa-1971456

Tested:
$ dkms status
zfs/2.1.4, 5.18.0-1-generic, x86_64: installed

Propose version `2.1.4-0ubuntu0.2` that backports commit [642426095ae1](https://github.com/openzfs/zfs/commit/642426095ae165ce64896c11ec52cab3ec3073ac) from upstream [zfs-2.1.5-staging](https://github.com/openzfs/zfs/commits/zfs-2.1.5-staging) branch.

Changed in zfs-linux (Ubuntu Kinetic):
status: New → In Progress
importance: Undecided → High
assignee: nobody → You-Sheng Yang (vicamo)
Revision history for this message
You-Sheng Yang (vicamo) wrote :

While Jammy is a LTS release and will certainly have kernel 5.18 or later ported, it will soon or later meet this problem ans is therefore nominated.

Revision history for this message
You-Sheng Yang (vicamo) wrote :

Need sponsors.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in zfs-linux (Ubuntu Jammy):
status: New → Confirmed
Revision history for this message
You-Sheng Yang (vicamo) wrote :

Fixed by 2.1.4-0ubuntu1/kinetic-proposed.

Changed in zfs-linux (Ubuntu Kinetic):
status: In Progress → Fix Committed
Revision history for this message
Brian Murray (brian-murray) wrote :

This might be a duplicate of bug 1969482.

Changed in zfs-linux (Ubuntu Kinetic):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.