You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2003/06/02 14:31:36 UTC
DO NOT REPLY [Bug 20413] New: -
NetBSD does not compile
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20413>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20413
NetBSD does not compile
Summary: NetBSD does not compile
Product: Xerces-C++
Version: 2.3.0
Platform: PC
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Build
AssignedTo: xerces-c-dev@xml.apache.org
ReportedBy: berin@ozemail.com.au
Xerces 2.3 does not compile under NetBSD 1.6.
In addition to the gcc 2.95.3 compiler errors (see Bug #20092), the NetBSD
Platform Utilities file has not been updated to encompass the new memory
manager code.
CVS diff for NetBSDPlatformUtils.cpp attached below that gives a correct
compile.
Index: NetBSDPlatformUtils.cpp
===================================================================
RCS file:
/home/cvs/xml-xerces/c/src/xercesc/util/Platforms/NetBSD/NetBSDPlatformUtils.cpp,v
retrieving revision 1.3
diff -C2 -r1.3 NetBSDPlatformUtils.cpp
*** NetBSDPlatformUtils.cpp 19 May 2003 11:11:16 -0000 1.3
--- NetBSDPlatformUtils.cpp 2 Jun 2003 12:21:47 -0000
***************
*** 422,426 ****
}
! XMLCh* XMLPlatformUtils::getFullPath(const XMLCh* const srcPath)
{
--- 422,427 ----
}
! XMLCh* XMLPlatformUtils::getFullPath(const XMLCh* const srcPath,
! MemoryManager* const manager)
{
***************
*** 430,435 ****
// in native format, and goes out as Unicode always
//
! char* newSrc = XMLString::transcode(srcPath);
! ArrayJanitor<char> janText(newSrc);
// Use a local buffer that is big enough for the largest legal path
--- 431,436 ----
// in native format, and goes out as Unicode always
//
! char* newSrc = XMLString::transcode(srcPath, fgMemoryManager);
! ArrayJanitor<char> janText(newSrc, fgMemoryManager);
// Use a local buffer that is big enough for the largest legal path
***************
*** 443,447 ****
ThrowXML(XMLPlatformUtilsException,
XMLExcepts::File_CouldNotGetBasePathName);
}
! return XMLString::transcode(absPath);
}
--- 444,448 ----
ThrowXML(XMLPlatformUtilsException,
XMLExcepts::File_CouldNotGetBasePathName);
}
! return XMLString::transcode(absPath, manager);
}
***************
*** 464,468 ****
}
! XMLCh* XMLPlatformUtils::getCurrentDirectory()
{
char dirBuf[PATH_MAX + 1];
--- 465,469 ----
}
! XMLCh* XMLPlatformUtils::getCurrentDirectory(MemoryManager * const manager)
{
char dirBuf[PATH_MAX + 1];
***************
*** 475,479 ****
}
! return XMLString::transcode(curDir);
}
--- 476,480 ----
}
! return XMLString::transcode(curDir, manager);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org