[ http://issues.apache.org/jira/browse/XERCESP-47?page=comments#action_12456306 ] Boris Kolpackov commented on XERCESP-47: ----------------------------------------
Seems like you are using Sun make instead of GNU make (usually called gmake on non-GNU systems). The makefile appears to have been written for GNU make. > Problem compiling xerces-p 2.6.0 on solaris 8 > --------------------------------------------- > > Key: XERCESP-47 > URL: http://issues.apache.org/jira/browse/XERCESP-47 > Project: Xerces-P > Issue Type: Bug > Components: Build System > Affects Versions: 2.5.0 > Environment: - solaris 8 (SunOS cs65 5.8 Generic_117350-36 sun4u > sparc SUNW,Sun-Blade-2500) > - Sun Studio 11 (CC: Sun C++ 5.8 2005/10/13) or (CC: Sun C++ 5.5 Patch > 113817-08 2004/04/13) > - Xerces-C 2.6.0 > - XML-Xerces-2.6.0 > Reporter: james hermez > Assigned To: Jason E. Stewart > Priority: Blocker > > Trying to compile XML-Xerces-2.6.0 on a solaris 8 system but we are getting > the following errors: > # env | grep XERCES > XERCESCROOT=/tmp/PDxercesc26_src-2.6.0 > XERCES_LIB=/opt/tools/lib > XERCES_INCLUDE=/opt/tools/include/xerces-2.6 > # cd XML-Xerces-2.6.0-2 > # perl Makefile.PL > Using XERCES_LIB = /opt/tools/lib > Using XERCES_INCLUDE = /opt/tools/include/xerces-2.6 > using XERCES_CONFIG: /tmp/PDxercesc26_src-2.6.0/src/xercesc/config.status > Found CXX = CC > Found CXXFLAGS = -w -DXML_USE_NATIVE_TRANSCODER > -DXML_USE_INMEM_MESSAGELOADER - > DXML_USE_PTHREADS -DXML_USE_NETACCESSOR_SOCKET > Found LDFLAGS = > Using Xerces-C version info from /opt/tools/include/xerces- > 2.6/xercesc/util/XercesVersion.hpp > Checking to see if libxerces is in your library path...Success!! > Using Xerces-C version: 2.6.0 > Checking if your kit is complete... > Looks good > Processing hints file hints/solaris_2.pl > Writing Makefile for Handler > Writing Makefile for XML::Xerces > # make > cp Xerces.pm blib/lib/XML/Xerces.pm > make -C Handler static > Usage : make [ -f makefile ][ -K statefile ]... [ -d ][ -dd ][ -D ][ -DD ] > [ -e ][ -i ][ -k ][ -n ][ -p ][ -P ][ -q ][ -r ][ -s ][ -S ][ -t > ] > [ -u ][ -w ][ -V ][ target... ][ macro=value... ][ "macro > +=value"... ] > make: Fatal error: Unknown option `-C' > *** Error code 1 > make: Fatal error: Command failed for target > `blib/arch/auto/Handler/Handler.a' > We had to manually edit the Makefile and change the line > $(MAKE) -C Handler static > to > cd Handler ; $(MAKE) static > After the change run make again: > # make > ## make -C Handler static > cd Handler ; make static > CC -c -I. -IHandler -I/opt/tools/include/xerces-2.6 -D_LARGEFILE_SOURCE - > D_FILE_OFFSET_BITS=64 -O -DVERSION=\"\" -DXS_VERSION=\"\" -KPIC "- > I/opt/tools/lib/perl5/5.8.5/sun4-solaris-ld/CORE" PerlCallbackHandler.cpp > CC -c -I. -IHandler -I/opt/tools/include/xerces-2.6 -D_LARGEFILE_SOURCE - > D_FILE_OFFSET_BITS=64 -O -DVERSION=\"\" -DXS_VERSION=\"\" -KPIC "- > I/opt/tools/lib/perl5/5.8.5/sun4-solaris-ld/CORE" > PerlContentCallbackHandler.cpp > "PerlContentCallbackHandler.cpp", line 82: Warning: String literal converted > to > char* in initialization. > "PerlContentCallbackHandler.cpp", line 337: Warning: String literal converted > to char* in initialization. > 2 Warning(s) detected. > CC -c -I. -IHandler -I/opt/tools/include/xerces-2.6 -D_LARGEFILE_SOURCE - > D_FILE_OFFSET_BITS=64 -O -DVERSION=\"\" -DXS_VERSION=\"\" -KPIC "- > I/opt/tools/lib/perl5/5.8.5/sun4-solaris-ld/CORE" > PerlDocumentCallbackHandler.cpp > "PerlDocumentCallbackHandler.cpp", line 73: Warning: String literal converted > to char* in initialization. > "PerlDocumentCallbackHandler.cpp", line 311: Warning: String literal > converted > to char* in initialization. > 2 Warning(s) detected. > CC -c -I. -IHandler -I/opt/tools/include/xerces-2.6 -D_LARGEFILE_SOURCE - > D_FILE_OFFSET_BITS=64 -O -DVERSION=\"\" -DXS_VERSION=\"\" -KPIC "- > I/opt/tools/lib/perl5/5.8.5/sun4-solaris-ld/CORE" > PerlErrorCallbackHandler.cpp > "PerlErrorCallbackHandler.cpp", line 69: Warning: String literal converted to > char* in initialization. > "PerlErrorCallbackHandler.cpp", line 98: Warning: String literal converted to > char* in initialization. > "PerlErrorCallbackHandler.cpp", line 130: Warning: String literal converted > to > char* in initialization. > 3 Warning(s) detected. > rm -rf ../blib/arch/auto/Handler/Handler.a > /usr/ccs/bin/ar cr ../blib/arch/auto/Handler/Handler.a PerlCallbackHandler.o > PerlContentCallbackHandler.o PerlDocumentCallbackHandler.o > PerlErrorCallbackHandler.o && : ../blib/arch/auto/Handler/Handler.a > chmod 755 ../blib/arch/auto/Handler/Handler.a > make: Fatal error: Don't know how to make target `dynamic' > Current working directory /home/engineer/ydiamant/WORK/evaluations/xerces/XML- > Xerces-2.6.0-2/Handler > *** Error code 1 > make: Fatal error: Command failed for target `subdirs' > We do not know how to proceed from this point on. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]