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 "Rajah, PushpamX" <Pu...@dialogic.com> on 2001/05/11 22:50:21 UTC

Help : Compiling in Solaris Sparc 2.6

I tried building Xercesc 1.2 in Solaris 2.6 sparc.  it has been compiled and
.so file has created successfully.  But when I tried to use library in my
project it is giving the following error while linking

/usr/syamala/Xerces/xerces-c-src_1_2_0/lib/libxerces-c1_2.so: undefined
reference to `towupper@SUNW_0.7'
/usr/syamala/Xerces/xerces-c-src_1_2_0/lib/libxerces-c1_2.so: undefined
reference to `iswspace@SUNW_0.7'

Should I need to give some other option in the makefile?

Can anyone help?

Pushpa

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


Re: Help : Compiling in Solaris Sparc 2.6

Posted by Martin Kalen <ma...@todaysystems.com.au>.
Try finding the right header files and link options by looking at the
man pages for these calls ("man -s3C towupper", "man -s3C iswspace").
On Solaris 8 this will tell you that you need to "#include <wchar.h>".

The source file using these functions is
$XERCESCROOT/src/util/Transcoders/IconvTransService.cpp. This file
currently includes <wchar.h>, but you might need to add an additional
include file for Solaris 2.6. Read the man-pages and look for warnings
when you run gmake.

To find out if you need to add another library when linking, first see
if the man pages gives you any info. Otherwise, search for these
symbols in /usr/lib with the following command:
nm -A /usr/lib/lib*.so | egrep "towupper|iswspace" | grep -v "UNDEF"
(You want the last grep to filter out libraries _using_ the functions,
just as your libxerces-c1_2.so does.)

This might give a bit of noise, but on Solaris 2.8 it is pretty
obvious that these functions live in /usr/lib/libc.so, which gets
picked up at link time with the "-lc" option. If you find the symbols
in libfoo.so, just add "-lfoo" to your platform/compiler specific
ALLLIBS= in $XERCESCROOT/src/Makefile.incl.

Hope this helps,
 Martin.

----- Original Message -----
From: "Rajah, PushpamX" <Pu...@dialogic.com>
To: <xe...@xml.apache.org>
Sent: Saturday, May 12, 2001 6:50 AM
Subject: Help : Compiling in Solaris Sparc 2.6


> I tried building Xercesc 1.2 in Solaris 2.6 sparc.  it has been
compiled and
> .so file has created successfully.  But when I tried to use library
in my
> project it is giving the following error while linking
>
> /usr/syamala/Xerces/xerces-c-src_1_2_0/lib/libxerces-c1_2.so:
undefined
> reference to `towupper@SUNW_0.7'
> /usr/syamala/Xerces/xerces-c-src_1_2_0/lib/libxerces-c1_2.so:
undefined
> reference to `iswspace@SUNW_0.7'



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org