Thanks. Indeed, I'd rather not guess.

If what you're saying is true, then why doesn't the MacFUSE installer put
"-D__DARWIN_64_BIT_INO_T=1" in the "Cflags" line of fuse.pc? The "-lfuse"
and the lack of "-D__DARWIN_64_BIT_INO_T=1" in fuse.pc is inconsistent, at
least on Snow Leopard. On 10.4, it could use different settings of course...
maybe the installer is just not currently capable of customizing fuse.pc?
Seems like that wouldn't be hard.

In any case, what I would like is a set of simple instructions for
developers, e.g. "do this and MacFUSE will work". I admit I have not done
the necessary research to find these magic instructions, and that as the
developer it's my job to figure this stuff out.

So I'm not complaining, just sighing :-)

I have a documented workaround that I'm including with the software so Mac
users have a set of instructions that they can follow even if it's not
pretty (they have to hack fuse.pc). That's good enough for now.

-Archie

On Tue, Oct 20, 2009 at 9:48 AM, Erik Larsson <[email protected]> wrote:

>
> Archie Cobbs wrote 2009-10-20 15.58:
> > #3. If stuff doesn't work, edit /usr/local/lib/pkgconfig/fuse.pc and
> > change "-lfuse" to "-lfuse_ino64", then repeat step #2 and rebuild
> >
>
> Instead of guessing between '-lfuse' and '-lfuse_ino64' you could of
> course explicitly define which version of struct stat you want to use in
> the program, and then simply link to the corresponding fuse library.
>
> If you open sys/stat.h, you'll see that if you define
> __DARWIN_64_BIT_INO_T to 1 before including the header, you'll get the
> 64-bit inode version of struct stat (and so you can link with
> -lfuse_ino64), and when you define __DARWIN_64_BIT_INO_T to 0, you will
> get the old stat structure with 32-bit inode numbers (and so you can
> link with -lfuse).
>
> For compatibility with Mac OS X 10.4 you would need to use the 32-bit
> inodes version.
>
> Regards,
>
> - Erik
>
> >
>


-- 
Archie L. Cobbs

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MacFUSE" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/macfuse?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to