You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Foreman, Tyler V" <ty...@intel.com> on 2001/03/30 03:12:47 UTC
Xalan-C Port to BSDI 4.1
Hello all,
I have been working on a port of Xalan-C to BSDI 4.1. Thanks to some help I
have recieved from this list I have managed to get both Xalan and Xerces
compiled and linked. However, I am experiencing some run-time errors as I
try out the sample applications. I have run testXPath, testXSLT and
SimpleTransform and all of them return the following error before aborting
and dumping core:
assertion "length(theFunctionName) != 0" failed: file
"XPath/XPathFunctionTable.cpp", line 119
Abort (core dumped)
I have a hunch that the error is due to a modification I had to make in
order to get Xalan to compile. On BSDI 4.1, there is no <wctype.h> and
therefore no declaration of the functions towupper() and towlower() which
are both used in the file PlatformSupport/DOMStirngHelper.cpp. To work
around this, I wrote my own wctype.h file which declared the functions, then
I included into my compile a file that contained the above functions, having
them simply call their corresponding non-widechar functions in <ctype.h>
(toupper() and tolower() respectively).
So, if anybody has any input on the error I am recieving or on the validity
of the work-around described above, it would be welcome.
Thanks,
Tyler Foreman
Re: Xalan-C Port to BSDI 4.1
Posted by Brian Edginton <ed...@edginton.net>.
On Thu, Mar 29, 2001 at 05:12:47PM -0800, Foreman, Tyler V wrote:
> Hello all,
>
> assertion "length(theFunctionName) != 0" failed: file
> "XPath/XPathFunctionTable.cpp", line 119
> Abort (core dumped)
>
>
> I have a hunch that the error is due to a modification I had to make in
> order to get Xalan to compile. On BSDI 4.1, there is no <wctype.h> and
> therefore no declaration of the functions towupper() and towlower() which
> are both used in the file PlatformSupport/DOMStirngHelper.cpp. To work
> around this, I wrote my own wctype.h file which declared the functions, then
> I included into my compile a file that contained the above functions, having
> them simply call their corresponding non-widechar functions in <ctype.h>
> (toupper() and tolower() respectively).
Tyler,
Check out [n]curses.h for the wchar_t that you need from/for wctype.h.
The towupper() and towlower() functions need to be inline functions. I'll
send you what I did for OpenBSD tonight since I can't get to that machine
from here. ISTR there needed to be an additional function added to
support wchar_t.
edge
>
> So, if anybody has any input on the error I am recieving or on the validity
> of the work-around described above, it would be welcome.
>
> Thanks,
> Tyler Foreman
--
Brian Edginton
edge@edginton.net