Hi Benjamin:
thank you for your clear instructions and willingness to help. There appears
to be a new problem—perhaps not related to your code—maybe you or someone
else can help. You were right, -arch ppc was indeed in my old Makefile, and
after I deleted it I did eventually manage to compile sshfs and install it
in /usr/local/bin. However, when I tried to run it I got the following
error:

[ 03:15:54 /usr/local/bin ] > sshfs
dyld: Library not loaded: /usr/local/lib/libintl.8.dylib
  Referenced from: /usr/local/lib/libgthread-2.0.0.dylib
  Reason: image not found
Trace/BPT trap

So I followed your most recent suggestion by downloading your latest build
and reinstalling sshfs. However, I got the exact same result as above. By
the way, the Makefile still had -arch ppc references in it which I had to
delete. I wouldn't be surprised if I screwed something up along the way, but
here are some of my observations anyway.

I eventually installed the precompiled binary (from here:
http://code.google.com/p/macfuse/source/browse/#svn/trunk/filesystems/sshfs/binary)
and got it working without a hitch, so sshfs can definitely run on my
system. Interestingly, the binary I downloaded is significantly bigger than
the one I compiled myself, have a look.

-rwxr-xr-x  1 root     staff    82K 24 May 15:10 sshfs
-rw-r--r--@ 1 jplew  staff   716K 24 May 15:14 sshfs-static-leopard

Not sure if this helps either, but here is the contents of my lib/ folder:

audacity                   libfuse.dylib              libgio-2.0.dylib
    libgobject-2.0.a
gettext                    libfuse.la                 libgio-2.0.la
     libgobject-2.0.dylib
gio                        libfuse_ino64.2.7.3.dylib  libglib-2.0.0.dylib
     libgobject-2.0.la
glib-2.0                   libfuse_ino64.2.dylib      libglib-2.0.a
     libgthread-2.0.0.dylib
libKLF_OGL.dylib           libfuse_ino64.dylib        libglib-2.0.dylib
     libgthread-2.0.a
libasprintf.a              libfuse_ino64.la           libglib-2.0.la
    libgthread-2.0.dylib
libffi-3.0.0               libgettextlib-0.18.1.dylib libgmodule-2.0.0.dylib
    libgthread-2.0.la
libffi-3.0.9               libgettextpo.a             libgmodule-2.0.a
    libintl.a
libfuse.0.dylib            libgettextsrc-0.18.1.dylib libgmodule-2.0.dylib
    libwinOGL.dylib
libfuse.2.7.3.dylib        libgio-2.0.0.dylib         libgmodule-2.0.la
     pkgconfig
libfuse.2.dylib            libgio-2.0.a               libgobject-2.0.0.dylib

Gratefully yours,
-JP




On Tue, May 24, 2011 at 5:59 AM, Benjamin Fleischer <[email protected]>wrote:

> Hi JP,
>
> I took a closer look and found the "bug" causing your problem. The
> swconfigure target of the macfuse_buildtool.sh configures external software
> like sshfs to include PPC code. If linked against a libfuse, that does not
> contain PPC code, as in your case, you get an error.
>
> To fix this, please download MacFUSE 2.1.11 from my repository
> https://github.com/bfleischer/macfuse/tree/macfuse-2.1 again and redo step
> 3 (Install sshfs) of the HOWTO http://code.google.com/p/macfuse/wiki/HOWTO. 
> You
> don't need to recompile MacFUSE for this to work.
>
>
> Just to give a complete answer, here is what I was writing about in my
> previous mail. If you followed the steps described above you should be fine
> and don't need to edit the Makefile!
>
> I must have made a significant mistake; I'm not using a Power PC at all, I
> have a brand new Intel Macbook Pro.
>
>
> You didn't make a mistake!  It doesn't think you are compiling on a PPC
> Mac.  The macfuse_buildtool.sh configures sshfs for a universal build. The
> resulting binary will contain code for Intel and PPC architecture. Of cause,
> if run on your Mac there is no need for the PPC part, but if you planed to
> redistribute the sshfs binary, including PPC code makes perfectly sense.
>
> Moreover, I could not find a single instance of '-arch ppc' in the make
> file.
>
>
> The Makefile is created during the "swconfigure" step
> (/path/to/macfuse/source/core/macfuse_buildtool.sh -t swconfigure). In the
> file "Makefile" in your sshfs source directory will most certainly be a line
> like this.
>
> CFLAGS = -O0 -g -arch i386 -arch ppc -isysroot
> /Developer/SDKs/MacOSX10.6.sdk -I/usr/local/include  
> -D__FreeBSD__=10-DDARWIN_SEMAPHORE_COMPAT -DSSH_NODELAY_WORKAROUND -Wall -W
>
> Regards,
> Benjamin
>
>  --
> 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.
>

-- 
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