RE: XML::Xerces Installation on Solaris9
"Stuart Denning" <[email protected]> Fri, 10 Dec 2004 10:49:32 -0000
| Newsgroups | gmane.text.xml.xerces-p.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, Thanks for your prompt reply previously. I have reverted to using the source as suggested, and have built icu and xerces-c using the SUN Studio 8 compiler. The resulting files I put into /usr/local/include (xercesc sub dir) and /usr/local/lib I set : $XERCES_INCLUDE=/usr/local/include and $XERCES_LIB=/usr/local/lib and $XERCESROOT is not set and $XERCES_CONFIG=/live/stuart/xerces-c-src_2_5_0/src/xercesc/config.status I run : Perl Makefile.PL Which tells me this : Using XERCES_LIB = /usr/local/lib Using XERCES_INCLUDE = /usr/local/include Using Xerces-C version info from /usr/local/include/xercesc/util/XercesVersion.h pp Checking to see if libxerces is in your library path...Success!! Using Xerces-C version: 2.5.0 Processing hints file hints/solaris_2.pl Writing Makefile for Handler Writing Makefile for XML::Xerces And then : Make Which outputs this : make -C Handler static make[1]: Entering directory `/live/stuart/XML-Xerces-2.5.0-0/Handler' cc -c -I. -IHandler -I/usr/local/include -D_LARGEFILE_SOURCE - D_FILE_OFFSET_BITS =64 -xO3 -xdepend -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -KPIC - I/usr/perl5/ 5.6.1/lib/sun4-solaris-64int/CORE PerlCallbackHandler.cpp cc: No input file specified, no output generated make[1]: *** [PerlCallbackHandler.o] Error 1 make[1]: Leaving directory `/live/stuart/XML-Xerces-2.5.0-0/Handler' make: *** [blib/arch/auto/Handler/Handler.a] Error 2 which is the same as before Do you have any further suggestions? Thanks Stuart Denning -----Original Message----- From: Jason E. Stewart [mailto:[email protected]] Sent: 07 December 2004 17:54 To: Stuart Denning Cc: [email protected] Subject: Re: XML::Xerces Installation on Solaris9 "Stuart Denning" <[email protected]> writes: > I hope you can help, or advise where I can go for help. Will do the best we can. > I am running on Solaris 9. I have Sun studio 8 compiler and gcc > compiler. Perl v5.6.1. Solaris and gnu make's. > > I have installed xerces-c v2.5.0 using the ready built distribution > files from apache.org. That's your problem. C++ is very finicky - there is no standard ABI as there is for C, so each compiler makes radically different output. You *must* use the same compiler for all libraries that you use. The pre-built binaries for Solaris are *not* built with gcc (I believe). So you are going to have to build Xerces-C from source using gcc. > # make > make -C Handler static > make[1]: Entering directory `/live/stuart/XML-Xerces-2.5.0-0/Handler' > cc -c -I. -IHandler -I/usr/local/include -D_LARGEFILE_SOURCE > -D_FILE_OFFSET_BITS > =64 -xO3 -xdepend -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -KPIC > -I/usr/perl5/ > 5.6.1/lib/sun4-solaris-64int/CORE PerlCallbackHandler.cpp > cc: No input file specified, no output generated Yup, that's the error. Use the source luke ;-) Cheers, jas. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Although this message and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted for any loss or damage in any way arising from its use.