Hi ,
I am trying to build XALAN-C 1.12 on Solaris 10. Configuration with CMAKE
got succeeded but I am getting following error while building xalan .
-bash-3.2$ make
Scanning dependencies of target MsgCreator
[  0%] Building CXX object
src/xalanc/Utils/MsgCreator/CMakeFiles/MsgCreator.dir/ICUResHandler.cpp.o
[  0%] Building CXX object
src/xalanc/Utils/MsgCreator/CMakeFiles/MsgCreator.dir/InMemHandler.cpp.o
[  0%] Building CXX object
src/xalanc/Utils/MsgCreator/CMakeFiles/MsgCreator.dir/MsgCreator.cpp.o
[  1%] Building CXX object
src/xalanc/Utils/MsgCreator/CMakeFiles/MsgCreator.dir/MsgFileOutputStream.cpp.o
[  1%] Building CXX object
src/xalanc/Utils/MsgCreator/CMakeFiles/MsgCreator.dir/NLSHandler.cpp.o
[  1%] Building CXX object
src/xalanc/Utils/MsgCreator/CMakeFiles/MsgCreator.dir/SAX2Handler.cpp.o
Linking CXX executable MsgCreator
Undefined                    first referenced
 symbol                             in file
unsigned long long xercesc_3_2::SAXParseException::getColumnNumber()const
CMakeFiles/MsgCreator.dir/SAX2Handler.cpp.o
int xercesc_3_2::XMLString::compareString(const unsigned short*const,const
unsigned short*const) CMakeFiles/MsgCreator.dir/ICUResHandler.cpp.o
const unsigned short*xercesc_3_2::SAXParseException::getSystemId()const
CMakeFiles/MsgCreator.dir/SAX2Handler.cpp.o
void xercesc_3_2::XMLString::release(unsigned
short**,xercesc_3_2::MemoryManager*const)
CMakeFiles/MsgCreator.dir/MsgFileOutputStream.cpp.o
xercesc_3_2::XMLUni::fgXercesDynamic
CMakeFiles/MsgCreator.dir/MsgCreator.cpp.o
[Hint: static member xercesc_3_2::XMLUni::fgXercesDynamic must be defined
in the program]

char*xercesc_3_2::XMLString::transcode(const unsigned
short*const,xercesc_3_2::MemoryManager*const)
CMakeFiles/MsgCreator.dir/MsgCreator.cpp.o
xercesc_3_2::XMLUni::fgXercesSchemaFullChecking
CMakeFiles/MsgCreator.dir/MsgCreator.cpp.o
[Hint: static member xercesc_3_2::XMLUni::fgXercesSchemaFullChecking must
be defined in the program]

void xercesc_3_2::XMLPlatformUtils::Initialize(const char*const,const
char*const,xercesc_3_2::PanicHandler*const,xercesc_3_2::MemoryManager*const)
CMakeFiles/MsgCreator.dir/MsgCreator.cpp.o
void
xercesc_3_2::XMLString::release(char**,xercesc_3_2::MemoryManager*const)
CMakeFiles/MsgCreator.dir/MsgCreator.cpp.o
void xercesc_3_2::XMLPlatformUtils::Terminate()
CMakeFiles/MsgCreator.dir/MsgCreator.cpp.o
unsigned long long xercesc_3_2::SAXParseException::getLineNumber()const
CMakeFiles/MsgCreator.dir/SAX2Handler.cpp.o
xercesc_3_2::__RTTI__1nLxercesc_3_2RSAXParseException_
CMakeFiles/MsgCreator.dir/SAX2Handler.cpp.o
[Hint: static member xercesc_3_2::__RTTI__1nLxercesc_3_2RSAXParseException_
must be defined in the program]

xercesc_3_2::XMLUni::fgXercescDefaultLocale
CMakeFiles/MsgCreator.dir/MsgCreator.cpp.o
[Hint: static member xercesc_3_2::XMLUni::fgXercescDefaultLocale must be
defined in the program]

xercesc_3_2::XMLPlatformUtils::fgMemoryManager
CMakeFiles/MsgCreator.dir/MsgCreator.cpp.o
[Hint: static member xercesc_3_2::XMLPlatformUtils::fgMemoryManager must be
defined in the program]

xercesc_3_2::SAXParseException::SAXParseException(const
xercesc_3_2::SAXParseException&) CMakeFiles/MsgCreator.dir/SAX2Handler.cpp.o
xercesc_3_2::SAX2XMLReader*xercesc_3_2::XMLReaderFactory::createXMLReader(xercesc_3_2::MemoryManager*const,xercesc_3_2::XMLGrammarPool*const)
CMakeFiles/MsgCreator.dir/MsgCreator.cpp.o
xercesc_3_2::XMLUni::fgSAX2CoreNameSpacePrefixes
CMakeFiles/MsgCreator.dir/MsgCreator.cpp.o
[Hint: static member xercesc_3_2::XMLUni::fgSAX2CoreNameSpacePrefixes must
be defined in the program]

unsigned short*xercesc_3_2::XMLString::transcode(const
char*const,xercesc_3_2::MemoryManager*const)
CMakeFiles/MsgCreator.dir/MsgFileOutputStream.cpp.o
xercesc_3_2::__RTTI__1nLxercesc_3_2MXMLException_
CMakeFiles/MsgCreator.dir/MsgCreator.cpp.o
[Hint: static member xercesc_3_2::__RTTI__1nLxercesc_3_2MXMLException_ must
be defined in the program]

xercesc_3_2::XMLUni::fgSAX2CoreValidation
CMakeFiles/MsgCreator.dir/MsgCreator.cpp.o
[Hint: static member xercesc_3_2::XMLUni::fgSAX2CoreValidation must be
defined in the program]

xercesc_3_2::XMLUni::fgSAX2CoreNameSpaces
CMakeFiles/MsgCreator.dir/MsgCreator.cpp.o
[Hint: static member xercesc_3_2::XMLUni::fgSAX2CoreNameSpaces must be
defined in the program]

xercesc_3_2::XMLUni::fgXercesSchema
CMakeFiles/MsgCreator.dir/MsgCreator.cpp.o
[Hint: static member xercesc_3_2::XMLUni::fgXercesSchema must be defined in
the program]

unsigned xercesc_3_2::XMLString::stringLen(const char*const)
CMakeFiles/MsgCreator.dir/ICUResHandler.cpp.o
xercesc_3_2::SAXParseException::~SAXParseException()
CMakeFiles/MsgCreator.dir/SAX2Handler.cpp.o
ld: fatal: symbol referencing errors. No output written to MsgCreator
*** Error code 1
The following command caused the error:
cd /scratch/amamsing/xalan_c-1.12/build/src/xalanc/Utils/MsgCreator &&
/scratch/amamsing/cmake-install/bin/cmake -E cmake_link_script
CMakeFiles/MsgCreator.dir/link.txt --verbose=
make: Fatal error: Command failed for target
`src/xalanc/Utils/MsgCreator/MsgCreator'
Current working directory /scratch/amamsing/xalan_c-1.12/build
*** Error code 1
The following command caused the error:
make -f src/xalanc/Utils/MsgCreator/CMakeFiles/MsgCreator.dir/build.make
src/xalanc/Utils/MsgCreator/CMakeFiles/MsgCreator.dir/build
make: Fatal error: Command failed for target
`src/xalanc/Utils/MsgCreator/CMakeFiles/MsgCreator.dir/all'
Current working directory /scratch/amamsing/xalan_c-1.12/build
*** Error code 1
The following command caused the error:
make -f CMakeFiles/Makefile2 all
make: Fatal error: Command failed for target `all'


Following are my environment settings:export
PATH=/scratch/amit/cmake-install/bin:/usr/ccs/bin/:/net/slcnas521/export/toolsvol/engapps/SunOS/SUNWspro12u1/opt/sunstudio12.1/bin:$PATH
export XERCESCROOT=/scratch/amit/xerces_324_xalan_112_install
export XALANCROOT=/scratch/amit/xalan_c-1.12
export CFLAGS="-I/scratch/amit/xerces_324_xalan_112_install/include"
export CXXFLAGS="-I/scratch/amit/xerces_324_xalan_112_install/include"
export LD_LIBRARY_PATH=/scratch/amit/xerces_324_xalan_112_install/lib
export LDFLAGS="-L/scratch/amit/xerces_324_xalan_112_install/lib -lxerces-c"

xerces_324_xalan_112_install is the directory where xerces headers and libs
are present

-bash-3.2$ ls /scratch/amit/xerces_324_xalan_112_install
bin      include  lib

cmake command used by me :

cmake -G "Unix Makefiles"
-DCMAKE_INSTALL_PREFIX=/scratch/amit/xerces_324_xalan_112_install
-DCMAKE_BUILD_TYPE=Release /scratch/amit/xalan_c-1.12

Please help me to resolve this issue.

Thanks
Amit

Reply via email to