xercesc 2.8 build fails on Snow Leopard
---------------------------------------

                 Key: XERCESC-1886
                 URL: https://issues.apache.org/jira/browse/XERCESC-1886
             Project: Xerces-C++
          Issue Type: Bug
          Components: Build
    Affects Versions: 2.8.0
         Environment: Mac OS 10.6 (Snow Leopard)
            Reporter: Byron Campen


Build fails with the following errors (was using deprecated stuff that got 
dropped in 10.6):

MacOSPlatformUtils.cpp: In static member function 'static long unsigned int 
xercesc_2_8::XMLPlatformUtils::getCurrentMillis()':
MacOSPlatformUtils.cpp:363: error: 'kUnresolvedCFragSymbolAddress' was not 
declared in this scope
MacOSPlatformUtils.cpp: In static member function 'static void* 
xercesc_2_8::XMLPlatformUtils::compareAndSwap(void**, const void*, const 
void*)':
MacOSPlatformUtils.cpp:466: error: cast from 'const void*' to 'UInt32' loses 
precision
MacOSPlatformUtils.cpp:467: error: cast from 'const void*' to 'UInt32' loses 
precision
MacOSPlatformUtils.cpp: In static member function 'static int 
xercesc_2_8::XMLPlatformUtils::atomicIncrement(int&)':
MacOSPlatformUtils.cpp:485: error: cannot convert 'long int*' to 'SInt32*' for 
argument '1' to 'SInt32 IncrementAtomic(SInt32*)'
MacOSPlatformUtils.cpp: In static member function 'static int 
xercesc_2_8::XMLPlatformUtils::atomicDecrement(int&)':
MacOSPlatformUtils.cpp:492: error: cannot convert 'long int*' to 'SInt32*' for 
argument '1' to 'SInt32 DecrementAtomic(SInt32*)'
MacOSPlatformUtils.cpp: In static member function 'static void 
xercesc_2_8::XMLPlatformUtils::platformInit()':
MacOSPlatformUtils.cpp:511: error: cannot convert 'long int*' to 'SInt32*' for 
argument '2' to 'OSErr Gestalt(OSType, SInt32*)'
MacOSPlatformUtils.cpp:516: error: cannot convert 'long int*' to 'SInt32*' for 
argument '2' to 'OSErr Gestalt(OSType, SInt32*)'
MacOSPlatformUtils.cpp:523: error: 'kUnresolvedCFragSymbolAddress' was not 
declared in this scope
MacOSPlatformUtils.cpp: In function 'bool 
xercesc_2_8::XMLParsePathToFSRef_X(const XMLCh*, FSRef&, 
xercesc_2_8::MemoryManager*)':
MacOSPlatformUtils.cpp:840: error: 'FSMakeFSSpec' was not declared in this scope
MacOSPlatformUtils.cpp:842: error: 'FSpMakeFSRef' was not declared in this scope
MacOSPlatformUtils.cpp: In function 'bool 
xercesc_2_8::XMLParsePathToFSRef_Classic(const XMLCh*, FSRef&, 
xercesc_2_8::MemoryManager*)':
MacOSPlatformUtils.cpp:930: error: 'FSMakeFSSpec' was not declared in this scope
MacOSPlatformUtils.cpp:932: error: 'FSpMakeFSRef' was not declared in this scope
MacOSPlatformUtils.cpp: In function 'bool 
xercesc_2_8::XMLParsePathToFSSpec_Classic(const XMLCh*, FSSpec&, 
xercesc_2_8::MemoryManager*)':
MacOSPlatformUtils.cpp:1065: error: 'XVolumeParam' was not declared in this 
scope
MacOSPlatformUtils.cpp:1065: error: expected `;' before 'xVolParam'
MacOSPlatformUtils.cpp:1067: error: 'xVolParam' was not declared in this scope
MacOSPlatformUtils.cpp:1071: error: 'PBXGetVolInfoSync' was not declared in 
this scope
MacOSPlatformUtils.cpp:1098: error: 'FSMakeFSSpec' was not declared in this 
scope
MacOSPlatformUtils.cpp:1109: error: 'FSMakeFSSpec' was not declared in this 
scope
MacOSPlatformUtils.cpp:1131: error: 'CInfoPBRec' was not declared in this scope
MacOSPlatformUtils.cpp:1131: error: expected `;' before 'catInfo'
MacOSPlatformUtils.cpp:1132: error: 'catInfo' was not declared in this scope
MacOSPlatformUtils.cpp:1133: error: 'struct FSSpec' has no member named 
'vRefNum'
MacOSPlatformUtils.cpp:1135: error: 'struct FSSpec' has no member named 'parID'
MacOSPlatformUtils.cpp:1136: error: 'PBGetCatInfoSync' was not declared in this 
scope
MacOSPlatformUtils.cpp:1144: error: 'struct FSSpec' has no member named 
'vRefNum'
MacOSPlatformUtils.cpp:1144: error: 'FSMakeFSSpec' was not declared in this 
scope
MacOSPlatformUtils.cpp:1165: error: 'struct FSSpec' has no member named 'name'
MacOSPlatformUtils.cpp:1184: error: 'struct FSSpec' has no member named 
'vRefNum'
MacOSPlatformUtils.cpp:1184: error: 'struct FSSpec' has no member named 'parID'
MacOSPlatformUtils.cpp:1184: error: 'FSMakeFSSpec' was not declared in this 
scope
MacOSPlatformUtils.cpp: In function 'XMLCh* 
xercesc_2_8::XMLCreateFullPathFromFSSpec(const FSSpec&, 
xercesc_2_8::MemoryManager*)':
MacOSPlatformUtils.cpp:1358: error: 'FSpMakeFSRef' was not declared in this 
scope
MacOSPlatformUtils.cpp: In function 'XMLCh* 
xercesc_2_8::XMLCreateFullPathFromFSSpec_Classic(const FSSpec&, 
xercesc_2_8::MemoryManager*)':
MacOSPlatformUtils.cpp:1395: error: 'CInfoPBRec' was not declared in this scope
MacOSPlatformUtils.cpp:1395: error: expected `;' before 'catInfo'
MacOSPlatformUtils.cpp:1396: error: 'catInfo' was not declared in this scope
MacOSPlatformUtils.cpp:1396: error: 'struct FSSpec' has no member named 'name'
MacOSPlatformUtils.cpp:1397: error: 'struct FSSpec' has no member named 
'vRefNum'
MacOSPlatformUtils.cpp:1399: error: 'struct FSSpec' has no member named 'parID'
MacOSPlatformUtils.cpp:1400: error: 'PBGetCatInfoSync' was not declared in this 
scope
MacOSPlatformUtils.cpp:1404: error: 'struct FSSpec' has no member named 'name'
MacOSPlatformUtils.cpp:1432: error: 'struct FSSpec' has no member named 'name'
MacOSPlatformUtils.cpp:1440: error: 'struct FSSpec' has no member named 'parID'
MacOSPlatformUtils.cpp:1443: error: 'struct FSSpec' has no member named 'parID'


MacCarbonFile.cpp: In member function 'virtual unsigned int 
xercesc_2_8::XMLMacCarbonFile::currPos()':
MacCarbonFile.cpp:64: error: 'GetFPos' was not declared in this scope
MacCarbonFile.cpp: In member function 'virtual void 
xercesc_2_8::XMLMacCarbonFile::close()':
MacCarbonFile.cpp:86: error: 'FSClose' was not declared in this scope
MacCarbonFile.cpp: In member function 'virtual unsigned int 
xercesc_2_8::XMLMacCarbonFile::size()':
MacCarbonFile.cpp:114: error: 'GetEOF' was not declared in this scope
MacCarbonFile.cpp: In member function 'bool 
xercesc_2_8::XMLMacCarbonFile::openWithPermission(const XMLCh*, int)':
MacCarbonFile.cpp:145: error: cannot convert 'short int*' to 'FSIORefNum*' for 
argument '5' to 'OSErr FSOpenFork(const FSRef*, UniCharCount, const UniChar*, 
SInt8, FSIORefNum*)'
MacCarbonFile.cpp:154: error: 'FSpOpenDF' was not declared in this scope
MacCarbonFile.cpp: In member function 'void 
xercesc_2_8::XMLMacCarbonFile::create(const XMLCh*)':
MacCarbonFile.cpp:212: error: 'FSpDelete' was not declared in this scope
MacCarbonFile.cpp:232: error: 'struct FSSpec' has no member named 'name'
MacCarbonFile.cpp:245: error: 'struct FSSpec' has no member named 'vRefNum'
MacCarbonFile.cpp:245: error: 'struct FSSpec' has no member named 'parID'
MacCarbonFile.cpp:245: error: 'FSMakeFSSpec' was not declared in this scope
MacCarbonFile.cpp:248: error: 'FSpCreate' was not declared in this scope
MacCarbonFile.cpp: In member function 'virtual unsigned int 
xercesc_2_8::XMLMacCarbonFile::read(unsigned int, XMLByte*)':
MacCarbonFile.cpp:311: error: 'FSRead' was not declared in this scope
MacCarbonFile.cpp: In member function 'virtual void 
xercesc_2_8::XMLMacCarbonFile::write(long int, const XMLByte*)':
MacCarbonFile.cpp:345: error: 'FSWrite' was not declared in this scope
MacCarbonFile.cpp: In member function 'virtual void 
xercesc_2_8::XMLMacCarbonFile::reset()':
MacCarbonFile.cpp:367: error: 'SetFPos' was not declared in this scope


Haven't yet determined whether 3.0.1 is affected, but at any rate, fixing the 
macport in short order is probably going to require modifications to 2.8

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to