truongdaohp / iphonedisk

Automatically exported from code.google.com/p/iphonedisk
0 stars 0 forks source link

Input / output error #41

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi, I'm going to go crazy I've installed all that is required to compile the 
source, this time I have not forgotten anything, when I launch the terminal 
mobile_fs_util with parameters
required in the terminal is equipped with card / Volumes my iPhone

returns the following output:

mobile_fs_util: Waiting for device connection
mobile_fs_util: AFC Connection established
mobile_fs_util: Device connected
mobile_fs_util: Mounted iPhone as mobile-fs

 but when I accessed to me this error:

cd: error retrieving current directory: getcwd: can not access parent 
directories: Input / output error

I compiled the sources with an old mac mini intel 32bit thinking that the 
problem was caused by an incompatibility with my 64-bit processor, but nothing 
I always get the same error.

If you unzip the file pkg compiled by the author and use the library 
mobile_fs_util libprotobuf.6.dylib of pkg (obviously) that everything works.

please help .... :-(

Uso la versione iPhoneDisk2 il mio sistema operativo è Mac os x leopard 10.6.4

Original issue reported on code.google.com by pietrona...@gmail.com on 4 Oct 2010 at 9:30

GoogleCodeExporter commented 8 years ago
I have exactly the same issue and I've tried the same as you did. In order to 
track down the issue, I've gone from r97 backwards to r88 (from 
branches/iphonedisk2), but all versions have this very same issue.

So far I've built all versions with:
scons mode=debug

and added this to the SConstruct in order to get i386 versions (because I 
anticipated the same x86_64 issue as you did):
env.Append(CCFLAGS = ' -arch i386 ')
env.Append(LINKFLAGS = ' -arch i386 ')

I guess it would help a lot here to find out which svn release the current 
iphonedisk release was based upon and which exact version of protobuf (I've 
used 2.3.0 according to BUILDING).

Original comment by znek...@gmail.com on 4 Oct 2010 at 10:01

GoogleCodeExporter commented 8 years ago
I did as you said I added the file SCostructor parameters to get a 32bit 
executable and tried to compile with the DEBUG option but I get this error:

Here is a final piece of code (I can not post it because everything is too long)

I'd love to know from which source is compiled pkg that is in the download 
section ....

      proto:: ReadDirResponse: ReadDirResponse (proto:: ReadDirResponse const &) in libfs_proto.a (fs.pb.o)
      proto:: ReadDirResponse: ReadDirResponse (proto:: ReadDirResponse const &) in libfs_proto.a (fs.pb.o)
  "Vtable for google:: protobuf:: internal:: FunctionClosure0", referenced from:
      __ZTVN6google8protobuf8internal16FunctionClosure0E $ Non_lazy_ptr in mobile_fs_util.o
      __ZTVN6google8protobuf8internal16FunctionClosure0E $ Non_lazy_ptr in libfs.a (fs_fuse.o)
     (Maybe You Meant: $ __ZTVN6google8protobuf8internal16FunctionClosure0E non_lazy_ptr)
  "Google:: protobuf: UnknownFieldSet: ClearFallback ()", referenced from:
      google:: protobuf: UnknownFieldSet:: Clear () in libfs_proto.a (mount_service.pb.o)
      google:: protobuf: UnknownFieldSet:: Clear () in libfs_proto.a (fs.pb.o)
ld: symbol (s) not found
collect2: ld returned 1 exit status
scons: *** [mobilefs / mobile_fs_util] Error 1
scons: building terminated Because of errors.

Original comment by pietrona...@gmail.com on 4 Oct 2010 at 10:35

GoogleCodeExporter commented 8 years ago
Znek666 know what I think the problem is the de facto library protobuf-2.3.0 on 
my system is compiled eg x86_64 iPhonedisk and if I try to compile for i386 
gives me the error that I posted in part in the previous comment, I do not have 
no idea how to compile the library only for i386 and still am not sure that 
this could solve the problem because in the afternoon I started to compile 
everything on a MacMini dual core 2006, only i386, at this point know if the 
problem is snow leopard ...

Original comment by pietrona...@gmail.com on 4 Oct 2010 at 10:46

GoogleCodeExporter commented 8 years ago
during a test "assembly" from the terminal I went out this output:

mobile_fs_util: Waiting for device connection
mobile_fs_util: AFC Connection established
mobile_fs_util: Device connected
mobile_fs_util: Mounted mobile-fs as iPhone
unique: 0, opcode: INIT (26), nodeid: 0, insize: 56
INIT: 7.8
flags=0x00000000
max_readahead=0x00100000
mobile_fs_util: fs_init: mobile-fs
   INIT: 7.8
   flags=0x00000000
   max_readahead=0x00100000
   max_write=0x00400000
   unique: 0, error: 0 (Unknown error: 0), outsize: 40
unique: 0, opcode: STATFS (17), nodeid: 1, insize: 40
   unique: 0, error: 0 (Unknown error: 0), outsize: 96
unique: 0, opcode: STATFS (17), nodeid: 1, insize: 40
   unique: 0, error: 0 (Unknown error: 0), outsize: 96
unique: 0, opcode: STATFS (17), nodeid: 1, insize: 40
   unique: 0, error: 0 (Unknown error: 0), outsize: 96
unique: 1, opcode: STATFS (17), nodeid: 1, insize: 40
   unique: 1, error: 0 (Unknown error: 0), outsize: 96
unique: 0, opcode: STATFS (17), nodeid: 1, insize: 40
   unique: 0, error: 0 (Unknown error: 0), outsize: 96
unique: 1, opcode: STATFS (17), nodeid: 1, insize: 40
   unique: 1, error: 0 (Unknown error: 0), outsize: 96
unique: 0, opcode: STATFS (17), nodeid: 1, insize: 40
   unique: 0, error: 0 (Unknown error: 0), outsize: 96
unique: 1, opcode: STATFS (17), nodeid: 1, insize: 40
   unique: 1, error: 0 (Unknown error: 0), outsize: 96
unique: 2, opcode: STATFS (17), nodeid: 1, insize: 40
   unique: 2, error: 0 (Unknown error: 0), outsize: 96
unique: 0, opcode: GETATTR (3), nodeid: 1, insize: 40
   unique: 0, error: 0 (Unknown error: 0), outsize: 128
unique: 1, opcode: GETATTR (3), nodeid: 1, insize: 40
   unique: 1, error: 0 (Unknown error: 0), outsize: 128
unique: 2, opcode: GETATTR (3), nodeid: 1, insize: 40
   unique: 2, error: 0 (Unknown error: 0), outsize: 128
unique: 3, opcode: STATFS (17), nodeid: 1, insize: 40
   unique: 3, error: 0 (Unknown error: 0), outsize: 96
unique: 4, opcode: GETATTR (3), nodeid: 1, insize: 40
   unique: 4, error: 0 (Unknown error: 0), outsize: 128
unique: 3, opcode: GETATTR (3), nodeid: 1, insize: 40
   unique: 3, error: 0 (Unknown error: 0), outsize: 128
unique: 5, opcode: LOOKUP (1), nodeid: 1, insize: 51
LOOKUP /.fseventsd
   NODEID: 2
   unique: 5, error: 0 (Unknown error: 0), outsize: 152
unique: 6, opcode: STATFS (17), nodeid: 1, insize: 40
   unique: 6, error: 0 (Unknown error: 0), outsize: 96
unique: 7, opcode: FORGET (2), nodeid: 2, insize: 48
FORGET 2/1
delete: 2
unique: 8, opcode: LOOKUP (1), nodeid: 1, insize: 51
LOOKUP /.fseventsd
   NODEID: 3
   unique: 8, error: 0 (Unknown error: 0), outsize: 152
unique: 7, opcode: FORGET (2), nodeid: 3, insize: 48
FORGET 3/1
delete: 3
unique: 6, opcode: LOOKUP (1), nodeid: 1, insize: 48
LOOKUP /private
   NODEID: 4
   unique: 6, error: 0 (Unknown error: 0), outsize: 152
unique: 7, opcode: FORGET (2), nodeid: 4, insize: 48
FORGET 4/1
delete: 4
unique: 9, opcode: LOOKUP (1), nodeid: 1, insize: 51
LOOKUP /.fseventsd
   NODEID: 5
   unique: 9, error: 0 (Unknown error: 0), outsize: 152
unique: 7, opcode: FORGET (2), nodeid: 5, insize: 48
FORGET 5/1
delete: 5
unique: 10, opcode: LOOKUP (1), nodeid: 1, insize: 51
LOOKUP /.fseventsd
   NODEID: 6
   unique: 10, error: 0 (Unknown error: 0), outsize: 152
unique: 7, opcode: FORGET (2), nodeid: 6, insize: 48
FORGET 6/1
delete: 6
unique: 11, opcode: LOOKUP (1), nodeid: 1, insize: 51
LOOKUP /.fseventsd
   NODEID: 7
   unique: 11, error: 0 (Unknown error: 0), outsize: 152
unique: 7, opcode: FORGET (2), nodeid: 7, insize: 48
FORGET 7/1
delete: 7
unique: 12, opcode: LOOKUP (1), nodeid: 1, insize: 51
LOOKUP /.fseventsd
   NODEID: 8
   unique: 12, error: 0 (Unknown error: 0), outsize: 152
unique: 7, opcode: FORGET (2), nodeid: 8, insize: 48
FORGET 8/1
delete: 8
unique: 7, opcode: GETATTR (3), nodeid: 1, insize: 40
   unique: 7, error: 0 (Unknown error: 0), outsize: 128
unique: 13, opcode: GETATTR (3), nodeid: 1, insize: 40
   unique: 13, error: 0 (Unknown error: 0), outsize: 128
unique: 14, opcode: GETATTR (3), nodeid: 1, insize: 40
   unique: 14, error: 0 (Unknown error: 0), outsize: 128
unique: 15, opcode: GETATTR (3), nodeid: 1, insize: 40
   unique: 15, error: 0 (Unknown error: 0), outsize: 128
unique: 16, opcode: OPENDIR (27), nodeid: 1, insize: 48
   unique: 16, error: 0 (Unknown error: 0), outsize: 32
unique: 16, opcode: GETATTR (3), nodeid: 1, insize: 40
   unique: 16, error: 0 (Unknown error: 0), outsize: 128
unique: 17, opcode: RELEASEDIR (29), nodeid: 1, insize: 64
   unique: 17, error: 0 (Unknown error: 0), outsize: 16
unique: 17, opcode: GETATTR (3), nodeid: 1, insize: 40
   unique: 17, error: 0 (Unknown error: 0), outsize: 128

Original comment by pietrona...@gmail.com on 4 Oct 2010 at 10:54

GoogleCodeExporter commented 8 years ago
protobuf uses autoconf. On OSX 10.6, the native architecture for the compiler 
is x86_64. You need to tell the compiler that it should use i386 instead. With 
an autoconf based project you do it like this (if you use bash as your login 
shell [which is the default thus chances are good]):

CFLAGS="-arch i386" CXXFLAFGS="-arch i386" LDFLAGS="-arch i386" ./configure

Original comment by znek...@gmail.com on 4 Oct 2010 at 10:56

GoogleCodeExporter commented 8 years ago
typo, should read:

CFLAGS="-arch i386" CXXFLAGS="-arch i386" LDFLAGS="-arch i386" ./configure

Original comment by znek...@gmail.com on 4 Oct 2010 at 10:58

GoogleCodeExporter commented 8 years ago
Nothing I have recompiled the library forcing the i386 compiler with the option 
to set, then ... nothing but compile with scons without errors but when I try 
to mount the device, this is the output I get:

mobile_fs_util: Waiting for device connection
mobile_fs_util: AFC Connection established
mobile_fs_util: Device connected
mobile_fs_util: Mounted mobile-fs as iPhone
unique: 0, opcode: INIT (26), nodeid: 0, insize: 56
INIT: 7.8
flags=0x00000000
max_readahead=0x00100000
mobile_fs_util: fs_init: mobile-fs
   INIT: 7.8
   flags=0x00000000
   max_readahead=0x00100000
   max_write=0x00400000
   unique: 0, error: 0 (Unknown error: 0), outsize: 40
unique: 0, opcode: STATFS (17), nodeid: 1, insize: 40
   unique: 0, error: 0 (Unknown error: 0), outsize: 96
unique: 0, opcode: STATFS (17), nodeid: 1, insize: 40
   unique: 0, error: 0 (Unknown error: 0), outsize: 96
unique: 0, opcode: STATFS (17), nodeid: 1, insize: 40
   unique: 0, error: 0 (Unknown error: 0), outsize: 96
unique: 1, opcode: STATFS (17), nodeid: 1, insize: 40
   unique: 1, error: 0 (Unknown error: 0), outsize: 96
unique: 0, opcode: STATFS (17), nodeid: 1, insize: 40
   unique: 0, error: 0 (Unknown error: 0), outsize: 96
unique: 1, opcode: STATFS (17), nodeid: 1, insize: 40
   unique: 1, error: 0 (Unknown error: 0), outsize: 96
unique: 0, opcode: STATFS (17), nodeid: 1, insize: 40
   unique: 0, error: 0 (Unknown error: 0), outsize: 96
unique: 1, opcode: STATFS (17), nodeid: 1, insize: 40
   unique: 1, error: 0 (Unknown error: 0), outsize: 96
unique: 2, opcode: STATFS (17), nodeid: 1, insize: 40
   unique: 2, error: 0 (Unknown error: 0), outsize: 96
unique: 0, opcode: GETATTR (3), nodeid: 1, insize: 40
   unique: 0, error: 0 (Unknown error: 0), outsize: 128
unique: 1, opcode: GETATTR (3), nodeid: 1, insize: 40
   unique: 1, error: 0 (Unknown error: 0), outsize: 128
unique: 2, opcode: GETATTR (3), nodeid: 1, insize: 40
   unique: 2, error: 0 (Unknown error: 0), outsize: 128
unique: 3, opcode: STATFS (17), nodeid: 1, insize: 40
   unique: 3, error: 0 (Unknown error: 0), outsize: 96
unique: 4, opcode: GETATTR (3), nodeid: 1, insize: 40
   unique: 4, error: 0 (Unknown error: 0), outsize: 128
unique: 3, opcode: GETATTR (3), nodeid: 1, insize: 40
   unique: 3, error: 0 (Unknown error: 0), outsize: 128
unique: 5, opcode: LOOKUP (1), nodeid: 1, insize: 51
LOOKUP /.fseventsd
   NODEID: 2
   unique: 5, error: 0 (Unknown error: 0), outsize: 152
unique: 6, opcode: STATFS (17), nodeid: 1, insize: 40
   unique: 6, error: 0 (Unknown error: 0), outsize: 96
unique: 7, opcode: FORGET (2), nodeid: 2, insize: 48
FORGET 2/1
delete: 2
unique: 8, opcode: LOOKUP (1), nodeid: 1, insize: 51
LOOKUP /.fseventsd
   NODEID: 3
   unique: 8, error: 0 (Unknown error: 0), outsize: 152
unique: 7, opcode: FORGET (2), nodeid: 3, insize: 48
FORGET 3/1
delete: 3
unique: 6, opcode: LOOKUP (1), nodeid: 1, insize: 48
LOOKUP /private
   NODEID: 4
   unique: 6, error: 0 (Unknown error: 0), outsize: 152
unique: 7, opcode: FORGET (2), nodeid: 4, insize: 48
FORGET 4/1
delete: 4
unique: 9, opcode: LOOKUP (1), nodeid: 1, insize: 51
LOOKUP /.fseventsd
   NODEID: 5
   unique: 9, error: 0 (Unknown error: 0), outsize: 152
unique: 7, opcode: FORGET (2), nodeid: 5, insize: 48
FORGET 5/1
delete: 5
unique: 10, opcode: LOOKUP (1), nodeid: 1, insize: 51
LOOKUP /.fseventsd
   NODEID: 6
   unique: 10, error: 0 (Unknown error: 0), outsize: 152
unique: 7, opcode: FORGET (2), nodeid: 6, insize: 48
FORGET 6/1
delete: 6
unique: 7, opcode: LOOKUP (1), nodeid: 1, insize: 51
LOOKUP /.fseventsd
   NODEID: 7
   unique: 7, error: 0 (Unknown error: 0), outsize: 152
unique: 11, opcode: FORGET (2), nodeid: 7, insize: 48
FORGET 7/1
delete: 7
unique: 12, opcode: LOOKUP (1), nodeid: 1, insize: 51
LOOKUP /.fseventsd
   NODEID: 8
   unique: 12, error: 0 (Unknown error: 0), outsize: 152
unique: 11, opcode: FORGET (2), nodeid: 8, insize: 48
FORGET 8/1
delete: 8
^Cmobile_fs_util: Abandoning proxy filesystem
unique: 11, opcode: DESTROY (38), nodeid: 1, insize: 40
mobile_fs_util: fs_destroy: mobile-fs
   unique: 11, error: 0 (Unknown error: 0), outsize: 16
mobile_fs_util: Filesystem unmounted
mobile_fs_util: Exiting

Original comment by pietrona...@gmail.com on 4 Oct 2010 at 11:17

GoogleCodeExporter commented 8 years ago
The last time I got this project working I think i was using 10.5.  Hmm, thanks 
for looking into this.  I'll try tolook as well, but i'm short on time lately.

Original comment by allen.po...@gmail.com on 5 Oct 2010 at 4:25

GoogleCodeExporter commented 8 years ago
I tested with the "loopback_fs_util" which is also broken (this doesn't involve 
the iphone at all).  This definitely makes me think that its with the fuse 
integration and not with the iphone specific code.

Original comment by allen.po...@gmail.com on 10 Oct 2010 at 4:12

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r98.

Original comment by allen.po...@gmail.com on 10 Oct 2010 at 4:42