truongdaohp / iphonedisk

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

Unable to build r47 on Snow Leopard #28

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Attempted to build r47 on OSX 10.6.1:

~/iphonedisk-read-only$ uname -a
Darwin office205-63.xyz.com 10.0.0 Darwin Kernel Version 10.0.0: Fri Jul 31
22:47:34 PDT 2009; root:xnu-1456.1.25~1/RELEASE_I386 i386
==================
~/iphonedisk-read-only$ make
g++ -Wall -Werror -D_FILE_OFFSET_BITS=64 -D__FreeBSD__=10
-DFUSE_USE_VERSION=26 -c iphonediskd.cpp
g++ -Wall -Werror -D_FILE_OFFSET_BITS=64 -D__FreeBSD__=10
-DFUSE_USE_VERSION=26 -c iphonedisk.cpp
g++ -Wall -Werror -D_FILE_OFFSET_BITS=64 -D__FreeBSD__=10
-DFUSE_USE_VERSION=26 -c connection.cpp
g++ -Wall -Werror -D_FILE_OFFSET_BITS=64 -D__FreeBSD__=10
-DFUSE_USE_VERSION=26 -c manager.cpp
g++ -Wall -Werror -D_FILE_OFFSET_BITS=64 -D__FreeBSD__=10
-DFUSE_USE_VERSION=26 -c mounter.cpp
mounter.cpp: In member function ‘virtual void
iphonedisk::MounterImpl::Start(afc_connection*, const std::string&, const
std::string&, ythread::Callback*)’:
mounter.cpp:40: error: ‘assert’ was not declared in this scope
make: *** [mounter.o] Error 1

Original issue reported on code.google.com by mar...@gmail.com on 15 Oct 2009 at 2:27

GoogleCodeExporter commented 8 years ago
I don't have snow leopard installed, but I can see how that could be a problem. 
 I added an include for assert.h in 
revision 48.  This should now be fixed, but if it is not, then please re-open 
the issue.

Original comment by allen.po...@gmail.com on 15 Oct 2009 at 7:27

GoogleCodeExporter commented 8 years ago
Wow!  Lighting fast fix!

Build completes now, without any errors. 

Thanks!

Jon

=========

~/iphonedisk-read-only$ svn update
U    mounter.cpp
U    mount.sh
Updated to revision 49.

~/iphonedisk-read-only$ make clean
cd ythread && make clean
rm -f core *.o test libythread.a
rm -f *.o *.a *.core core iphonediskd iphonedisk_mount

~/iphonedisk-read-only$ make
g++ -Wall -Werror -D_FILE_OFFSET_BITS=64 -D__FreeBSD__=10 -DFUSE_USE_VERSION=26 
-c
iphonediskd.cpp
g++ -Wall -Werror -D_FILE_OFFSET_BITS=64 -D__FreeBSD__=10 -DFUSE_USE_VERSION=26 
-c
iphonedisk.cpp
g++ -Wall -Werror -D_FILE_OFFSET_BITS=64 -D__FreeBSD__=10 -DFUSE_USE_VERSION=26 
-c
connection.cpp
g++ -Wall -Werror -D_FILE_OFFSET_BITS=64 -D__FreeBSD__=10 -DFUSE_USE_VERSION=26 
-c
manager.cpp
g++ -Wall -Werror -D_FILE_OFFSET_BITS=64 -D__FreeBSD__=10 -DFUSE_USE_VERSION=26 
-c
mounter.cpp
ar -r libiphonedisk.a iphonedisk.o connection.o manager.o mounter.o
ar: creating archive libiphonedisk.a
ranlib libiphonedisk.a
cd ythread && make
g++  -O -Wall -c thread.cpp
g++  -O -Wall -c mutex.cpp
g++  -O -Wall -c condvar.cpp
g++  -O -Wall -c threadpool.cpp
g++  -O -Wall -c callback.cpp
ar rc libythread.a thread.o mutex.o condvar.o threadpool.o callback.o
ranlib libythread.a
g++ -o iphonediskd iphonediskd.o -lfuse -framework CoreFoundation
-F/System/Library/PrivateFrameworks -framework MobileDevice -Lythread -lythread 
-L.
-liphonedisk
g++ -Wall -Werror -D_FILE_OFFSET_BITS=64 -D__FreeBSD__=10 -DFUSE_USE_VERSION=26 
-c
iphonedisk_mount.cpp
g++ -o iphonedisk_mount iphonedisk_mount.o -lfuse -framework CoreFoundation
-F/System/Library/PrivateFrameworks -framework MobileDevice -Lythread -lythread 
-L.
-liphonedisk

Original comment by mar...@gmail.com on 15 Oct 2009 at 8:20