Duplicate symbol lz4_init, lz4_fini in ZFS module?

dl8dtl

Developer
When building a new kernel, I get:
Code:
ld: error: duplicate symbol: lz4_init
>>> defined at lz4.c:1029 (/usr/src/sys/cddl/contrib/opensolaris/common/lz4/lz4.c:1029)
>>>            lz4.o:lz4_init)
>>> defined at lz4_zfs.c:917 (/usr/src/sys/contrib/openzfs/module/zfs/lz4_zfs.c:917)
>>>            lz4_zfs.o:.text+0x930)

ld: error: duplicate symbol: lz4_fini
>>> defined at lz4.c:1039 (/usr/src/sys/cddl/contrib/opensolaris/common/lz4/lz4.c:1039)
>>>            lz4.o:lz4_fini)
>>> defined at lz4_zfs.c:922 (/usr/src/sys/contrib/openzfs/module/zfs/lz4_zfs.c:922)
>>>            lz4_zfs.o:.text+0x940)
*** [zfs.ko.full] Error code 1

I remember I've once already stumbled across that … why are there two versions of lz4 included? Anyone with a quick idea?
 
Build went fine on 15.0-BETA3 GENERIC, and I don't see any modification to lz4_zfs.c in the latest zfs merge.
Well, yes, sure – but that doesn't solve *my* problem. I still wonder why it fails *here*.
Nothing special, except I'm using my own kernel config file – basically, stripped down from GENERIC, only NETLINK added (for Linux compat).
So, still wondering why there are two version of lz4 for ZFS included.
 
Back
Top