Opened 16 years ago

Closed 13 years ago

Last modified 13 years ago

#17855 closed defect (worksforme)

sshfs-2.2 build crashes

Reported by: martin.eisenhardt@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), drkp (Dan Ports)
Port: sshfs

Description

Hi,

when I try to install sshfs, the following happens:

mekkie:~ mneisen$ sudo port install sshfs
--->  Building sshfs
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_fuse_sshfs/work/sshfs-fuse-2.2" && nice -n 19 make all " returned error 2
Command output: sshfs.c:2493: error: dereferencing pointer to incomplete type
sshfs.c:2494: error: dereferencing pointer to incomplete type
sshfs.c:2495: error: dereferencing pointer to incomplete type
sshfs.c:2496: error: dereferencing pointer to incomplete type
sshfs.c:2498: error: dereferencing pointer to incomplete type
sshfs.c: In function 'search_read_chunk':
sshfs.c:2506: error: dereferencing pointer to incomplete type
sshfs.c:2506: error: dereferencing pointer to incomplete type
sshfs.c:2507: error: dereferencing pointer to incomplete type
sshfs.c: In function 'sshfs_async_read':
sshfs.c:2531: error: dereferencing pointer to incomplete type
sshfs.c:2533: error: dereferencing pointer to incomplete type
sshfs.c:2534: error: dereferencing pointer to incomplete type
sshfs.c:2541: error: dereferencing pointer to incomplete type
sshfs.c:2545: error: dereferencing pointer to incomplete type
sshfs.c: In function 'sshfs_write_begin':
sshfs.c:2580: error: dereferencing pointer to incomplete type
sshfs.c:2583: error: dereferencing pointer to incomplete type
sshfs.c: In function 'sshfs_write_end':
sshfs.c:2589: error: dereferencing pointer to incomplete type
sshfs.c:2591: error: dereferencing pointer to incomplete type
sshfs.c:2592: error: dereferencing pointer to incomplete type
sshfs.c:2593: error: dereferencing pointer to incomplete type
sshfs.c:2594: error: dereferencing pointer to incomplete type
sshfs.c:2596: error: dereferencing pointer to incomplete type
sshfs.c:2601: error: dereferencing pointer to incomplete type
sshfs.c: At top level:
sshfs.c:3287: warning: 'main' takes only zero or two arguments
make[1]: *** [sshfs-sshfs.o] Error 1
make: *** [all] Error 2

This problem is reproducible and pertaining.

Thanks for any help.

Attachments (1)

sshfs.diff (517 bytes) - added by ryandesign (Ryan Carsten Schmidt) 15 years ago.

Download all attachments as: .zip

Change History (14)

comment:1 Changed 16 years ago by martin.eisenhardt@…

Oddly enough, the installation worked after about 10 repetitions of:

$ sudo port clean sshfs
$ sudo port install sshfs

What kind of rubbish is cleaned out during the n-th invocation of port clean which was not cleaned out the first n-1 times?

Strangeness abounds.

comment:2 Changed 16 years ago by blb@…

Just to make sure, you are using MacPorts 1.7 right?

$ port version
Version: 1.700

comment:3 Changed 16 years ago by martin.eisenhardt@…

Yep, I am on 1.7 .

comment:4 Changed 16 years ago by jmroot (Joshua Root)

Cc: martin.eisenhardt@… removed
Owner: changed from macports-tickets@… to eridius@…

comment:5 Changed 16 years ago by mf2k (Frank Schima)

What Mac OS X version are you running? Xcode version?

It installed fine for me the first time on Mac OS X 10.5.6 Intel with Xcode 3.1.2.

comment:6 Changed 16 years ago by martin.eisenhardt@…

Hi,

sorry for the delay, I was afk for some days. I run Mac OS X 10.5.6 on a 2008 MacBook Pro (Intel), Xcode 3.0 . May the lower Xcode version be the source of the problem? I always thought that port was using GCC to compile sources?!

Regards Martin

comment:7 Changed 16 years ago by mf2k (Frank Schima)

Definitely install Xcode 3.1.2. Most ports compile with the gcc from Xcode.

comment:8 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:9 in reply to:  description ; Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

Replying to martin.eisenhardt@…:

Hi,

when I try to install sshfs, the following happens:

I see it too. I'm on Mac OS X 10.4.11 Intel. This is not the first error, of course; the first error is not shown because MacPorts only shows the last 30 or so lines of the error unless you use the debug switch. The first error is:

/usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -I.  -D_REENTRANT -DFUSE_USE_VERSION=26 -DLIBDIR=\"/mp/lib\" -I/mp/include -DDARWIN_SEMAPHORE_COMPAT -D__FreeBSD__=10 -D_FILE_OFFSET_BITS=64 -D_REENTRANT -I/usr/local/include/fuse -I/mp/include/glib-2.0 -I/mp/lib/glib-2.0/include -I/mp/include   -O2 -Wall -W -c -o sshfs-sshfs.o `test -f 'sshfs.c' || echo './'`sshfs.c
sshfs.c:26:25: error: fuse_darwin.h: No such file or directory

fuse_darwin.h is present on my system in ${prefix}/include/fuse/ but -I${prefix}/include/fuse does not appear in the above. Also, in sshfs.c, fuse_darwin.h is included as

#include "fuse_darwin.h"

This is strange because fuse_darwin.h is not part of the local header files of sshfs but is rather part of the "system headers" already installed using MacPorts, thus it should be referenced with <brackets> not "quotes". This include comes about as a result of the Mac OS X patch the port uses.

I have attached a portfile patch which fixes it for me.

Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: sshfs.diff added

comment:10 in reply to:  9 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to ryandesign@…:

-I${prefix}/include/fuse does not appear in the above.

but if I look closer I see -I/usr/local/include/fuse does, presumably because I have /usr/local/include/fuse on this system for some reason. If I remove it, then sshfs builds without any changes. So at least in my case it was the user error of having something in /usr/local.

comment:11 Changed 14 years ago by jmroot (Joshua Root)

Owner: changed from eridius@… to macports-tickets@…
Port: sshfs added; sshfs-2.2 removed

comment:12 Changed 13 years ago by drkp (Dan Ports)

Resolution: worksforme
Status: newclosed

Please reopen if this is still an issue with sshfs 2.3.

comment:13 Changed 13 years ago by drkp (Dan Ports)

Cc: dports@… added
Note: See TracTickets for help on using tickets.