osxfuse / filesystems

Example file systems
379 stars 94 forks source link

Can't build unixfs on macOS Catalina 10.15 #38

Closed giovariot closed 3 days ago

giovariot commented 4 years ago

When I try to build unixfs on macOS 10.15.4 with make this is what I get:

cc -I/usr/local/include/osxfuse -I../common/unixfs -I../common/linux -DFUSE_USE_VERSION=27 -D_FILE_OFFSET_BITS=64 -D_DARWIN_USE_64_BIT_INODE -Wall -Werror -g   sysvfs.c -c -o sysvfs.o
sysvfs.c:50:27: error: taking address of packed member 's_tfree' of class or
      structure 'xenix_super_block' may result in an unaligned pointer value
      [-Werror,-Waddress-of-packed-member]
    sbi->s_free_blocks = &sbd2->s_tfree;
                          ^~~~~~~~~~~~~
sysvfs.c:51:23: error: taking address of packed member 's_time' of class or
      structure 'xenix_super_block' may result in an unaligned pointer value
      [-Werror,-Waddress-of-packed-member]
    sbi->s_sb_time = &sbd2->s_time;
                      ^~~~~~~~~~~~
sysvfs.c:107:27: error: taking address of packed member 's_tfree' of class or
      structure 'sysv2_super_block' may result in an unaligned pointer value
      [-Werror,-Waddress-of-packed-member]
    sbi->s_free_blocks = &sbd->s_tfree;
                          ^~~~~~~~~~~~
sysvfs.c:108:23: error: taking address of packed member 's_time' of class or
      structure 'sysv2_super_block' may result in an unaligned pointer value
      [-Werror,-Waddress-of-packed-member]
    sbi->s_sb_time = &sbd->s_time;
                      ^~~~~~~~~~~
sysvfs.c:132:27: error: taking address of packed member 's_tfree' of class or
      structure 'coh_super_block' may result in an unaligned pointer value
      [-Werror,-Waddress-of-packed-member]
    sbi->s_free_blocks = &sbd->s_tfree;
                          ^~~~~~~~~~~~
sysvfs.c:133:23: error: taking address of packed member 's_time' of class or
      structure 'coh_super_block' may result in an unaligned pointer value
      [-Werror,-Waddress-of-packed-member]
    sbi->s_sb_time = &sbd->s_time;
                      ^~~~~~~~~~~
6 errors generated.
make[1]: *** [sysvfs.o] Error 1
cc -I/usr/local/include/osxfuse -D_FILE_OFFSET_BITS=64 -D_DARWIN_USE_64_BIT_INODE -DFUSE_USE_VERSION=27 -I. -I../common/linux -I../common/linux/kernel/include -I../common/linux/kernel/fs -I../common/unixfs -Wall -Werror -g  unixfs_ufs.c -c -o unixfs_ufs.o

How can I fix it? Thanks in advance

bfleischer commented 3 days ago

This repository contains legacy demo file systems that are unmaintained. Therefore I'm closing the issue. Please refer to https://github.com/macfuse/demo for maintained demo file systems.