[physfs] Mac OS X 10.7 build problems

Christoph Ender physfs-1 at christoph-ender.de
Thu Aug 4 04:46:17 EDT 2011



Hi,

trying to build physfs-2.02 on the new Lion release of Mac OS X results in the
following output:

[ 14%] Building C object CMakeFiles/physfs.dir/platform/macosx.o
cc1: warnings being treated as errors
/Users/chrender/Downloads/swp/physfs-2.0.2/platform/macosx.c: In function ‘__PHYSFS_platformGetThreadID’:
/Users/chrender/Downloads/swp/physfs-2.0.2/platform/macosx.c:358: warning: ‘MPCurrentTaskID’ is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:466)
/Users/chrender/Downloads/swp/physfs-2.0.2/platform/macosx.c: In function ‘__PHYSFS_platformCreateMutex’:
/Users/chrender/Downloads/swp/physfs-2.0.2/platform/macosx.c:365: warning: ‘MPCreateCriticalRegion’ is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:767)
/Users/chrender/Downloads/swp/physfs-2.0.2/platform/macosx.c: In function ‘__PHYSFS_platformDestroyMutex’:
/Users/chrender/Downloads/swp/physfs-2.0.2/platform/macosx.c:374: warning: ‘MPDeleteCriticalRegion’ is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:784)
/Users/chrender/Downloads/swp/physfs-2.0.2/platform/macosx.c: In function ‘__PHYSFS_platformGrabMutex’:
/Users/chrender/Downloads/swp/physfs-2.0.2/platform/macosx.c:381: warning: ‘MPEnterCriticalRegion’ is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:803)
/Users/chrender/Downloads/swp/physfs-2.0.2/platform/macosx.c: In function ‘__PHYSFS_platformReleaseMutex’:
/Users/chrender/Downloads/swp/physfs-2.0.2/platform/macosx.c:390: warning: ‘MPExitCriticalRegion’ is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:820)
make[2]: *** [CMakeFiles/physfs.dir/platform/macosx.o] Error 1
make[1]: *** [CMakeFiles/physfs.dir/all] Error 2
make: *** [all] Error 2


It seems like removing the "-Werror" flag from "CMakeLists.txt" in line
ADD_DEFINITIONS(-g -pipe -Werror -fsigned-char) apparently makes the code
compile successfully (not tested thoroughly in any way, but libsdl-sound
which builds on top of physfs seems to work).


Regards,
Christoph.



More information about the physfs mailing list