You are viewing a plain text version of this content. The canonical link for it is here.
Posted to p-dev@xerces.apache.org by "Harmon S. Nine" <hn...@ns1.netarx.com> on 2000/04/17 21:37:54 UTC

Curiosity

The following message just appeared on the xerces-c-dev mailing list.  
The thing that is curious about it is that the two functions mentioned
(towupper and iswspce) gave me great difficulty when I was getting
xerces-perl together.  That is, from a perl program, whenever I called a
routine in xerces which used either of these functions, my perl program
seg-faulted.  I could not find the reason for this, and I don't know if
the problem persists now (it was encountered a few months ago).  The only
way I could fix it was to mung-in my own versions of these functions into
the xerces-C source code.

Has anyone else had a problem with these functions, or does anyone know
why they were a problem during xerces-perl development?

TIA


-- Harmon

---------------------------
Dr. Harmon S. Nine
Netarx, Inc.

30910 Telegraph Road
Bingham Farms, MI 48025

PH.  (248)647-9800
FX.  (248)647-9840

On Mon, 17 Apr 2000, Benjamin Geer wrote:

> I'm trying to build Xerces-C 1.1.0.  I promise I followed the
> instructions on http://xml.apache.org/xerces-c/build.html to the
> letter.  I'm using Linux kernel 2.2.5-15, glibc 2.1.3-15, and gcc
> 2.95.1.  (It's a RedHat 6.0 system with numerous upgrades.)
> 
> In the `src' directory, I used:
> 
> ./runConfigure -plinux -cgcc -xg++ -minmem -nfileonly -tnative
> 
> This seemed to work fine.
> 
> However, `gmake' produced the following error:
> 
> IconvTransService.cpp: In method `int
> IconvTransService::compareIString(const XMLCh *, const XMLCh *)':
> IconvTransService.cpp:187: implicit declaration of function `int towupper(...)'
> IconvTransService.cpp: In method `bool IconvTransService::isSpace(__wchar_t) const':
> IconvTransService.cpp:230: implicit declaration of function `int iswspace(...)'
> gmake[2]: *** [IconvTransService.o] Error 1
> 
> Am I missing a library?  (If so, it would probably be a good idea to
> have `configure' to check for it.)
> 
> Also, it might be helpful if the build process stopped when an error
> occurred, so you wouldn't have to capture the output of `gmake' to a
> file and then search through it to find the error.
> 
> Benjamin Geer
> benjamin.geer@btinternet.com
> 
> 


Re: Curiosity

Posted by Mike Pogue <mp...@apache.org>.
I think the solution was just posted:

Benjamin Geer wrote:
> 
> I found the problem: it's a small bug in IconvTransService.cpp.  It reads:
> 
> #if defined (XML_GNUG)
> #include <wctype.h>
> #endif
> 
> It should read:
> 
> #if defined (XML_GCC)
> #include <wctype.h>
> #endif
> 
> With that change, everything compiles.
> 
> Ben



"Jason E. Stewart" wrote:
> 
> >>>>> "Harmon" == Harmon S Nine <hn...@ns1.netarx.com> writes:
> 
> Harmon> Has anyone else had a problem with these functions, or does
> Harmon> anyone know why they were a problem during xerces-perl
> Harmon> development?
> 
> I remember you mentioning this, but I've had no trouble with the
> debian distribution, glibc 2.1.2. they are all declared in
> /usr/include/wtype.h (Sep 29 1999), and defined in /usr/lib/libc.a
> 
> Maybe something is messed up in the RedHat distribution?
> 
> jas.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-p-dev-help@xml.apache.org

Re: Curiosity

Posted by "Jason E. Stewart" <je...@ncgr.org>.
>>>>> "Harmon" == Harmon S Nine <hn...@ns1.netarx.com> writes:

Harmon> Has anyone else had a problem with these functions, or does
Harmon> anyone know why they were a problem during xerces-perl
Harmon> development?

I remember you mentioning this, but I've had no trouble with the
debian distribution, glibc 2.1.2. they are all declared in
/usr/include/wtype.h (Sep 29 1999), and defined in /usr/lib/libc.a 

Maybe something is messed up in the RedHat distribution?

jas.