I'm getting this error when I compile the latest/tip trunk.
gcc -o lib/libzpool/build-user/dmu.o -c -pipe -Wall -Werror -std=c99 -
Wno-unused -Wno-missing-braces -Wno-parentheses -Wno-uninitialized -
fno-strict-aliasing -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -
DTEXT_DOMAIN=\"zfs-fuse\" -ggdb -O2 -Ilib/libavl/include -Ilib/
libnvpair/include -Ilib/libzfscommon/include -Ilib/libumem/include -
Ilib/libzpool/include -Ilib/libsolcompat/include lib/libzpool/dmu.c
cc1: warnings being treated as errors
lib/libzpool/dmu.c: In function 'dmu_write':
lib/libzpool/dmu.c:433: warning: passing argument 6 of
'dmu_buf_hold_array' discards qualifiers from pointer target type
scons: *** [lib/libzpool/build-user/dmu.o] Error 1
scons: building terminated because of errors.
Gcc 4.2.0 on Arch Linux. I also tried compiling this on another Arch
box, gcc 4.1.2 20070423 (prerelease), and had success.
Regards,
Ricardo Martins
Yeap, gcc 4.2 is not supported yet. I received a patch from Michał Kowalczuk
(which I have attached), but I haven't tested it. It seems it was made
against zfs-fuse 0.4.0 beta1, so some tweaking might be required.
Yeap, gcc 4.2 is not supported yet. I received a patch from Michał Kowalczuk
(which I have attached), but I haven't tested it. It seems it was made
against zfs-fuse 0.4.0 beta1, so some tweaking might be required.