You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.
I was able to compile SPL on two different Gentoo machines using different versions of gcc and the kernel.
Machine A: GCC-4.4.3 and 2.6.33
Machine B: GCC-4.5.0 and 2.6.34 (yeah i know but i like to live a bit dangerous and i know how to help myself i shoot myself in the foot ;) )
First of all I was waiting for someone to step up and think of a way to get ZFS into my beloved linux. Nothing against (Open-)Solaris but i still prefer linux and to be honest i'm not a big fan of fuse so i really hope that you are able to introduce at least a partial working NATIVE zfs into the linux world.
So now let's get back to business: I was able to compile seriv's fork and patched version of spl (commit d7d332c6fbefa2369ea2) without touching the code with Machine A; on Machine B on the other hand i had to touch the code myself to make it compile the same version with gcc-4.5.0. The kernel itself is not the problem the problem is the stricter error-checking of gcc-4.5.0. This is the unified diff of my changes to the source-code
Without these changes compilation failed with this error message:
cc1: warnings being treated as errors
/root/zfs/spl/module/splat/splat-rwlock.c: In function 'splat_rwlock_test4_func':
/root/zfs/spl/module/splat/splat-rwlock.c:432:6: error: case value '1' not in enumerated type 'krw_type_t'
After compiling the kernel-modules i tried to load them but i got the following error message on both machines:
Error: Unknown symbol get_zone_counts
SPL: Failed to Load Solaris Porting Layer v0.4.9, rc = -14
I tried to find out how/if i can force spl to export this symbol but i wasn't able to find the correct option to enable it.
Anyway keep up the good work!
The text was updated successfully, but these errors were encountered:
Hi!
I was able to compile SPL on two different Gentoo machines using different versions of gcc and the kernel.
Machine A: GCC-4.4.3 and 2.6.33
Machine B: GCC-4.5.0 and 2.6.34 (yeah i know but i like to live a bit dangerous and i know how to help myself i shoot myself in the foot ;) )
First of all I was waiting for someone to step up and think of a way to get ZFS into my beloved linux. Nothing against (Open-)Solaris but i still prefer linux and to be honest i'm not a big fan of fuse so i really hope that you are able to introduce at least a partial working NATIVE zfs into the linux world.
So now let's get back to business: I was able to compile seriv's fork and patched version of spl (commit d7d332c6fbefa2369ea2) without touching the code with Machine A; on Machine B on the other hand i had to touch the code myself to make it compile the same version with gcc-4.5.0. The kernel itself is not the problem the problem is the stricter error-checking of gcc-4.5.0. This is the unified diff of my changes to the source-code
Without these changes compilation failed with this error message:
cc1: warnings being treated as errors
/root/zfs/spl/module/splat/splat-rwlock.c: In function 'splat_rwlock_test4_func':
/root/zfs/spl/module/splat/splat-rwlock.c:432:6: error: case value '1' not in enumerated type 'krw_type_t'
After compiling the kernel-modules i tried to load them but i got the following error message on both machines:
Error: Unknown symbol get_zone_counts
SPL: Failed to Load Solaris Porting Layer v0.4.9, rc = -14
I tried to find out how/if i can force spl to export this symbol but i wasn't able to find the correct option to enable it.
Anyway keep up the good work!
The text was updated successfully, but these errors were encountered: