You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xerces.apache.org by "Raju, Prabhakar (P.)" <pr...@ford.com> on 2007/02/06 00:51:31 UTC

Using gcc version 3.3.2 on solaris 2.8...

Hi,

After building libs using gcc on solaris, I'm trying to build the
samples. Configure script seems to have run ok. When I do gmake, I'm
getting this error. Please help on this issue as it is important for us
to have a solaris build with gcc.

Has anyone build xerces on solaris with gcc? If so, please share your
experience.

Regards



c++ -DSOLARIS -fpic  -L/usr/lib -L/usr/local/lib
/export/daps/xerces-c-src_2_7_0/bin/obj/SAXPrint/SAXPrint.o
/export/daps/xerces-c-src_2_7_0/bin/obj/SAXPrint/SAXPrintHandlers.o -o
/export/daps/xerces-c-src_2_7_0/bin/SAXPrint
-L/export/daps/xerces-c-src_2_7_0/lib -lxerces-c -lc 
gmake[1]: Leaving directory
`/export/daps/xerces-c-solaris_28-cc_62/samples/SAXPrint'



Undefined                       first referenced
 symbol                             in file
__1cG__CrunKpure_error6F_v_
/export/daps/xerces-c-src_2_7_0/lib/libxerce
s-c.so
xercesc_2_7::XMLUni::fgNoString
/export/daps/xerces-c-src_2_7_0/lib/libxerc
es-c.so
xercesc_2_7::XMLUni::fgIDString
/export/daps/xerces-c-src_2_7_0/lib/libxerc
es-c.so
xercesc_2_7::VecAttributesImpl::VecAttributesImpl[in-charge]()/export/da
ps/xerce
s-c-src_2_7_0/lib/libxerces-c.so
xercesc_2_7::VecAttributesImpl::~VecAttributesImpl
[in-charge]()/export/daps/xer
ces-c-src_2_7_0/lib/libxerces-c.so
xercesc_2_7::XMLPlatformUtils::Initialize(char const*, char const*,
xercesc_2_7:
:PanicHandler*, xercesc_2_7::MemoryManager*,
bool)/export/daps/xerces-c-src_2_7_
0/bin/obj/SAXPrint/SAXPrint.o
__1cLxercesc_2_7RAbstra

...etc

Prabhakar Raju

Re: Using gcc version 3.3.2 on solaris 2.8...

Posted by Boris Kolpackov <bo...@codesynthesis.com>.
Hi Prabhakar,

"Raju, Prabhakar \(P.\)" <pr...@ford.com> writes:

> After building libs using gcc on solaris, I'm trying to build the
> samples. Configure script seems to have run ok. When I do gmake, I'm
> getting this error. Please help on this issue as it is important for us
> to have a solaris build with gcc.
>
> Has anyone build xerces on solaris with gcc? If so, please share your
> experience.

I've built Xerces-C++ on Solaris with GCC on multiple occasions. I
haven't built samples though. I am also pretty sure from the error
messages that you are building the Xerces-C++ library and examples
with different C++ compilers (one is GCC the other one is most
likely Sun CC). Can you verify that you used the -c and -x options
to runConfigure to specify gcc and g++ as C/C++ compilers?


hth,
-boris


-- 
Boris Kolpackov
Code Synthesis Tools CC
http://www.codesynthesis.com
Open-Source, Cross-Platform C++ XML Data Binding