[ http://issues.apache.org/jira/browse/XERCESC-1405?page=history ]
Alberto Massari reopened XERCESC-1405:
--------------------------------------
It looks the IRIX compiler has issues with forward declarations of
MemoryManager, and with class enums used without the class identifier. But a
modifed version of Base64.cpp didn't fix those ("Same errors. Unfortunately, I
don't have the time to help investigate the issue right now. When I get the
chance I will attempt to figure this out."), so let's just keep this bug open.
Alberto
> IRIX 6.5.19m compile/configure issues with Base64.cpp
> -----------------------------------------------------
>
> Key: XERCESC-1405
> URL: http://issues.apache.org/jira/browse/XERCESC-1405
> Project: Xerces-C++
> Type: Bug
> Components: Build
> Versions: 2.6.0
> Environment: SGI Irix 6.5.19m
> C++ Compiler vers 7.4.1m
> gcc version 2.8.1
> 8 500 MHZ IP35 Processors
> CPU: MIPS R14000 Processor Chip Revision: 2.4
> FPU: MIPS R14010 Floating Point Chip Revision: 2.4
> Reporter: Gesner Herard, Jr.
>
> Even after finding closest existing bugs to problem 1256/1252 and employing
> the listed changes, still yielding the same errors.
> Also tried runConfigure combos:
> ./runConfigure -p irix -c cc -x CC
> ./runConfigure -p irix -c cc -x CC -b 64
> ./runConfigure -p irix -c cc -x CC -b 64 -z -64 -l -64
> ------------------------------------------
> "Base64.cpp": creating precompiled header file "Base64.pch".
> cc-1299 CC: ERROR File = Base64.cpp, Line = 137
> An "inline" specifier is only allowed on function declarations.
> static inline void* getExternalMemory(MemoryManager* const allocator
> ^
> cc-1020 CC: ERROR File = Base64.cpp, Line = 137
> The identifier "MemoryManager" is undefined.
> static inline void* getExternalMemory(MemoryManager* const allocator
> ^
> cc-1029 CC: ERROR File = Base64.cpp, Line = 137
> An expression is expected at this point.
> static inline void* getExternalMemory(MemoryManager* const allocator
> ^
> cc-1018 CC: ERROR File = Base64.cpp, Line = 138
> An unmatched left parentheses "(" appears in an expression.
> , unsigned int const sizeToAllocate)
> ^
> cc-1065 CC: ERROR File = Base64.cpp, Line = 139
> A semicolon is expected at this point.
> {
> ^
> cc-3193 CC: ERROR File = Base64.cpp, Line = 190
> The "MemoryManager" is not a type name.
> , MemoryManager* const memMgr)
> ^
> cc-1143 CC: ERROR File = Base64.cpp, Line = 187
> Declaration is incompatible with "XMLByte *Base64::encode(const XMLByte *,
> unsigned int, unsigned int *)" (declared at line 98 of
> "/usr/local/include/xercesc/util/Base64.hpp").
> XMLByte* Base64::encode(const XMLByte* const inputData
> ^
> cc-1108 CC: ERROR File = Base64.cpp, Line = 212
> The indicated expression must have pointer-to-function type.
> XMLByte *encodedData = (XMLByte*) getExternalMemory(memMgr,
> (quadrupletCount*FOURBYTE+lineCount+1) * sizeof(XMLByte));
> ^
> cc-3193 CC: ERROR File = Base64.cpp, Line = 297
> The "MemoryManager" is not a type name.
> , MemoryManager* const manager
> ^
> cc-1020 CC: ERROR File = Base64.cpp, Line = 298
> The identifier "Conformance" is undefined.
> , Conformance conform )
> ^
> cc-1143 CC: ERROR File = Base64.cpp, Line = 296
> Declaration is incompatible with "int Base64::getDataLength(const XMLCh *)"
> (declared at line 144 of
> "/usr/local/include/xercesc/util/Base64.hpp").
> int Base64::getDataLength(const XMLCh* const inputData
> ^
> cc-1278 CC: ERROR File = Base64.cpp, Line = 302
> No instance of overloaded function "Base64::decode" matches the argument
> list.
> The argument types are: (const XMLCh *const, unsigned int *,
> <error-type> *const, <error-type>).
> XMLCh* decodedData = decode(inputData, &retLen, manager, conform);
> ^
> cc-1020 CC: ERROR File = Base64.cpp, Line = 308
> The identifier "returnExternalMemory" is undefined.
> returnExternalMemory(manager, decodedData);
> ^
> cc-3193 CC: ERROR File = Base64.cpp, Line = 315
> The "MemoryManager" is not a type name.
> , MemoryManager* const memMgr
> ^
> cc-1020 CC: ERROR File = Base64.cpp, Line = 316
> The identifier "Conformance" is undefined.
> , Conformance conform )
> ^
> cc-1474 CC: ERROR File = Base64.cpp, Line = 313
> No instance of overloaded function "Base64::decode" matches the specified
> type.
> XMLByte* Base64::decode(const XMLByte* const inputData
> ^
> cc-1278 CC: ERROR File = Base64.cpp, Line = 319
> No instance of overloaded function "Base64::decode" matches the argument
> list.
> The argument types are: (const XMLByte *const, unsigned int *,
> XMLByte *, <error-type> *const, <error-type>).
> XMLByte* retStr = decode(
> ^
> cc-1020 CC: ERROR File = Base64.cpp, Line = 330
> The identifier "returnExternalMemory" is undefined.
> returnExternalMemory(memMgr, canRepInByte);
> ^
> cc-3193 CC: ERROR File = Base64.cpp, Line = 337
> The "MemoryManager" is not a type name.
> , MemoryManager* const memMgr
> ^
> cc-1020 CC: ERROR File = Base64.cpp, Line = 338
> The identifier "Conformance" is undefined.
> , Conformance conform )
> ^
> cc-1474 CC: ERROR File = Base64.cpp, Line = 335
> No instance of overloaded function "Base64::decode" matches the specified
> type.
> XMLCh* Base64::decode(const XMLCh* const inputData
> ^
> cc-1108 CC: ERROR File = Base64.cpp, Line = 347
> The indicated expression must have pointer-to-function type.
> XMLByte *dataInByte = (XMLByte*) getExternalMemory(memMgr, (srcLen+1) *
> sizeof(XMLByte));
> ^
> cc-1070 CC: ERROR File = Base64.cpp, Line = 348
> The indicated type is incomplete.
> ArrayJanitor<XMLByte> janFill(dataInByte, memMgr ? memMgr :
> XMLPlatformUtils::fgMemoryManager);
> ^
> cc-1262 CC: ERROR File = Base64.cpp, Line = 348
> No instance of constructor "ArrayJanitor<XMLByte>::ArrayJanitor" matches the
> argument list.
> The argument types are: (XMLByte *, <error-type>).
> ArrayJanitor<XMLByte> janFill(dataInByte, memMgr ? memMgr :
> XMLPlatformUtils::fgMemoryManager);
> ^
> cc-1278 CC: ERROR File = Base64.cpp, Line = 359
> No instance of overloaded function "Base64::decode" matches the argument
> list.
> The argument types are: (XMLByte *, unsigned int *, <error-type>
> *const, <error-type>).
> XMLByte *DecodedBuf = decode(dataInByte, decodedLen, memMgr, conform);
> ^
> cc-1108 CC: ERROR File = Base64.cpp, Line = 367
> The indicated expression must have pointer-to-function type.
> XMLCh *toRet = (XMLCh*) getExternalMemory(memMgr, (*decodedLen+1) *
> sizeof(XMLCh));
> ^
> cc-1020 CC: ERROR File = Base64.cpp, Line = 377
> The identifier "returnExternalMemory" is undefined.
> returnExternalMemory(memMgr, DecodedBuf);
> ^
> cc-1132 CC: ERROR File = Base64.cpp, Line = 391
> The class "Base64" has no member "getCanonicalRepresentation".
> XMLCh* Base64::getCanonicalRepresentation(const XMLCh* const
> inputData
> ^
> cc-3193 CC: ERROR File = Base64.cpp, Line = 392
> The "MemoryManager" is not a type name.
> , MemoryManager* const
> memMgr
> ^
> cc-1020 CC: ERROR File = Base64.cpp, Line = 393
> The identifier "Conformance" is undefined.
> , Conformance
> conform)
> ^
> cc-1108 CC: ERROR File = Base64.cpp, Line = 403
> The indicated expression must have pointer-to-function type.
> XMLByte *dataInByte = (XMLByte*) getExternalMemory(memMgr, (srcLen+1) *
> sizeof(XMLByte));
> ^
> cc-1070 CC: ERROR File = Base64.cpp, Line = 404
> The indicated type is incomplete.
> ArrayJanitor<XMLByte> janFill(dataInByte, memMgr ? memMgr :
> XMLPlatformUtils::fgMemoryManager);
> ^
> cc-1262 CC: ERROR File = Base64.cpp, Line = 404
> No instance of constructor "ArrayJanitor<XMLByte>::ArrayJanitor" matches the
> argument list.
> The argument types are: (XMLByte *, <error-type>).
> ArrayJanitor<XMLByte> janFill(dataInByte, memMgr ? memMgr :
> XMLPlatformUtils::fgMemoryManager);
> ^
> cc-1020 CC: ERROR File = Base64.cpp, Line = 416
> The identifier "decode" is undefined.
> XMLByte* retStr = decode(
> ^
> cc-1108 CC: ERROR File = Base64.cpp, Line = 430
> The indicated expression must have pointer-to-function type.
> XMLCh *canRepData = (XMLCh*) getExternalMemory(memMgr, (canRepLen + 1)
> * sizeof(XMLCh));
> ^
> cc-1020 CC: ERROR File = Base64.cpp, Line = 440
> The identifier "returnExternalMemory" is undefined.
> returnExternalMemory(memMgr, retStr);
> ^
> cc-3193 CC: ERROR File = Base64.cpp, Line = 505
> The "MemoryManager" is not a type name.
> , MemoryManager* const memMgr
> ^
> cc-1020 CC: ERROR File = Base64.cpp, Line = 506
> The identifier "Conformance" is undefined.
> , Conformance conform
> ^
> cc-1474 CC: ERROR File = Base64.cpp, Line = 502
> No instance of overloaded function "Base64::decode" matches the specified
> type.
> XMLByte* Base64::decode ( const XMLByte* const inputData
> ^
> cc-1108 CC: ERROR File = Base64.cpp, Line = 519
> The indicated expression must have pointer-to-function type.
> XMLByte* rawInputData = (XMLByte*) getExternalMemory(memMgr,
> (inputLength+1) * sizeof(XMLByte));
> ^
> cc-1070 CC: ERROR File = Base64.cpp, Line = 520
> The indicated type is incomplete.
> ArrayJanitor<XMLByte> jan(rawInputData, memMgr ? memMgr :
> XMLPlatformUtils::fgMemoryManager);
> ^
> cc-1262 CC: ERROR File = Base64.cpp, Line = 520
> No instance of constructor "ArrayJanitor<XMLByte>::ArrayJanitor" matches the
> argument list.
> The argument types are: (XMLByte *, <error-type>).
> ArrayJanitor<XMLByte> jan(rawInputData, memMgr ? memMgr :
> XMLPlatformUtils::fgMemoryManager);
> ^
> cc-1020 CC: ERROR File = Base64.cpp, Line = 528
> The identifier "Conf_RFC2045" is undefined.
> case Conf_RFC2045:
> ^
> cc-1020 CC: ERROR File = Base64.cpp, Line = 545
> The identifier "Conf_Schema" is undefined.
> case Conf_Schema:
> ^
> cc-1108 CC: ERROR File = Base64.cpp, Line = 598
> The indicated expression must have pointer-to-function type.
> XMLByte *decodedData = (XMLByte*) getExternalMemory(memMgr,
> (quadrupletCount*3+1) * sizeof(XMLByte));
> ^
> cc-1020 CC: ERROR File = Base64.cpp, Line = 613
> The identifier "returnExternalMemory" is undefined.
> returnExternalMemory(memMgr, decodedData);
> ^
> cc-1020 CC: ERROR File = Base64.cpp, Line = 636
> The identifier "returnExternalMemory" is undefined.
> returnExternalMemory(memMgr, decodedData);
> ^
> cc-1020 CC: ERROR File = Base64.cpp, Line = 655
> The identifier "returnExternalMemory" is undefined.
> returnExternalMemory(memMgr, decodedData);
> ^
> cc-1020 CC: ERROR File = Base64.cpp, Line = 667
> The identifier "returnExternalMemory" is undefined.
> returnExternalMemory(memMgr, decodedData);
> ^
> cc-1020 CC: ERROR File = Base64.cpp, Line = 677
> The identifier "returnExternalMemory" is undefined.
> returnExternalMemory(memMgr, decodedData);
> ^
> 50 errors detected in the compilation of "Base64.cpp".
> gmake[1]: *** [Base64.o] Error 2
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]