Unix iTOps Tube

Monday, April 30, 2012

Trouble with deprecated files

I apologize if I am "over-posting" in this forum; I know little about this stuff and I have several software programs that I must install. I have found this forum to be extremely helpful. Anyways, I am trying to install ZThreads on my computer (Mac OS X 10.7.3). When I run "make" it returns with:




Code:


macos/../macos/FastLock.h: In constructor 'ZThread::FastLock::FastLock()':

macos/../macos/FastLock.h:61: warning: 'MPCreateCriticalRegion' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:767)

macos/../macos/FastLock.h:61: warning: 'MPCreateCriticalRegion' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:767)

macos/../macos/FastLock.h: In destructor 'ZThread::FastLock::~FastLock()':

macos/../macos/FastLock.h:73: warning: 'MPDeleteCriticalRegion' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:784)

macos/../macos/FastLock.h:73: warning: 'MPDeleteCriticalRegion' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:784)

macos/../macos/FastLock.h: In member function 'void ZThread::FastLock::acquire()':

macos/../macos/FastLock.h:86: warning: 'MPEnterCriticalRegion' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:803)

macos/../macos/FastLock.h:86: warning: 'MPEnterCriticalRegion' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:803)

macos/../macos/FastLock.h: In member function 'bool ZThread::FastLock::tryAcquire(long unsigned int)':

macos/../macos/FastLock.h:102: warning: 'MPEnterCriticalRegion' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:803)

macos/../macos/FastLock.h:102: warning: 'MPEnterCriticalRegion' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:803)

macos/../macos/FastLock.h: In member function 'void ZThread::FastLock::release()':

macos/../macos/FastLock.h:127: warning: 'MPExitCriticalRegion' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:820)

macos/../macos/FastLock.h:127: warning: 'MPExitCriticalRegion' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:820)

In file included from TSS.h:46,

                from ThreadImpl.h:31,

                from AbstractThreadLocal.cxx:26:

macos/TSS.h: In constructor 'ZThread::TSS<T>::TSS()':

macos/TSS.h:61: warning: 'MPAllocateTaskStorageIndex' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:511)

macos/TSS.h: In destructor 'ZThread::TSS<T>::~TSS()':

macos/TSS.h:74: warning: 'MPDeallocateTaskStorageIndex' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:528)

macos/TSS.h: In member function 'T ZThread::TSS<T>::get() const':

macos/TSS.h:88: warning: 'MPGetTaskStorageValue' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:564)

macos/TSS.h: In member function 'T ZThread::TSS<T>::set(T) const':

macos/TSS.h:105: warning: 'MPSetTaskStorageValue' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:547)

In file included from ThreadOps.h:58,

                from ThreadImpl.h:32,

                from AbstractThreadLocal.cxx:26:

macos/ThreadOps.h: In static member function 'static ZThread::ThreadOps ZThread::ThreadOps::self()':

macos/ThreadOps.h:86: warning: 'MPCurrentTaskID' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:466)

macos/ThreadOps.h:86: warning: 'MPCurrentTaskID' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:466)

macos/ThreadOps.h: In static member function 'static void ZThread::ThreadOps::activate(ZThread::ThreadOps*)':

macos/ThreadOps.h:98: warning: 'MPCurrentTaskID' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:466)

macos/ThreadOps.h:98: warning: 'MPCurrentTaskID' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:466)

macos/ThreadOps.h: In static member function 'static bool ZThread::ThreadOps::isCurrent(ZThread::ThreadOps*)':

macos/ThreadOps.h:113: warning: 'MPCurrentTaskID' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:466)

macos/ThreadOps.h:113: warning: 'MPCurrentTaskID' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:466)

make[3]: *** [AbstractThreadLocal.lo] Error 1

make[2]: *** [all-recursive] Error 1

make[1]: *** [all] Error 2

make: *** [all-recursive] Error 1


What does it mean "MPCurrentTaskID" is deprecated? I googled the error and found on the Apple Developer website that this and many other multiprocessing files were deprecated as of Mac v 10.7. Is there a way around this, or what does this mean?

Thanks for any help

Tyler




No comments:

Post a Comment