#2 Doesn't compile on Mactel

open
nobody
None
5
2008-03-24
2008-03-24
Linus Gasser
No

Hi,

I just compiled ext2fuse on Mactel, but I had to patch both ext2fuse and fuse. Perhaps not so good a sign? Anyway, here are the patches. Any comments?

Linus

PS:
MacOS 10.5.2
XCode 3.0
MacFUSE-Core-10.5-1.3.1

Discussion

  • Linus Gasser
    Linus Gasser
    2008-03-24

    Patch to compile ext2fuse on Mactel

     
    Attachments
  • Linus Gasser
    Linus Gasser
    2008-03-24

    Diff for fuse

     
    Attachments
  • Linus Gasser
    Linus Gasser
    2008-03-24

    Logged In: YES
    user_id=40052
    Originator: YES

    File Added: fuse.diff

     
  • Tom Scholl
    Tom Scholl
    2008-05-06

    Logged In: YES
    user_id=636768
    Originator: NO

    I got a helpful email on the same topic - he provided a simpler patch just for ext2fuse which gets the thing running on MacOS.
    his code changes read:
    -------------
    imager.c line 39:
    #ifndef HAVE_TYPE_SSIZE_T
    #ifndef __FreeBSD__
    typedef int ssize_t;
    #endif
    #endif

    for ext2fs.c line 52:

    #ifndef __FreeBSD__
    st->st_atim.tv_nsec = 0;
    st->st_mtim.tv_nsec = 0;
    st->st_ctim.tv_nsec = 0;
    #else
    st->st_atimespec.tv_nsec=0;
    st->st_mtimespec.tv_nsec=0;
    st->st_ctimespec.tv_nsec=0;
    #endif

    I chose the FreeBSD def because MacFUSE FAQ states that you need to pass CFLAGS="-D__FreeBSD__=10" to configure.

    Greetings
    martin