[ 
http://issues.apache.org/jira/browse/XERCESC-1510?page=comments#action_12358375 
] 

Jean-Yves Longueville commented on XERCESC-1510:
------------------------------------------------

Dear all

I had the same problem trying to compile xercesc 2.7 on cygwin on XP (which was 
quite recent but delivered with xerces 2.5). The last comment of Alex about 
remmoving deprecated of the target all.
Finally I succed to compile al the package as follow (g++ is 3.4.4):
1 - under cygwin, reaffect the XERCESCROOT variable by changing \ in / in the 
path (otherwise the symbolic link cretaion fails)
2 - run runConfigure with the good option under <XERCESCROOT>/src/xercesc
3 - run runConfigure with the same option under <XERCESCROOT>/samples 
(otherwise the make of sampe fails, no Makefile existing)
4 - remove as describe above the deprecated target in the all target
5 - run a first make (depdom are not generated)
6 - copy the dll generated in the Cygwin directory with the associated symbolic 
link files
7 - reactivate the deprecated target in the all target (reverse point 4)
8 - run the make a second time, this time *depdom* files are generated because 
it seems the make it able to link versus xerces 2.7 libraries already deployed 
in cygwin (thanks to point 6).
9 - copy again the dll in cywin directories.

In addition I have also generated the tarball because I though it could help to 
deploy in Cygwin, but it doesn't to be understood by Cygwin installation wizard.
I have a last problem, there is no clear documentation about which file to copy 
where in Cygwin, and so far Cygwin doesn't to recognize the files I have copied 
(it is still using xerces 2.5), I would appreciate if you could provide me some 
recommendations on this point.

I hope that this few information will be of some help for you.

Best regards

Jean-Yves


> not able to build on CYGWIN using g++ compiler
> ----------------------------------------------
>
>          Key: XERCESC-1510
>          URL: http://issues.apache.org/jira/browse/XERCESC-1510
>      Project: Xerces-C++
>         Type: Bug
>   Components: Build
>     Versions: 2.6.0
>  Environment: Cygwin
>     Reporter: Alex Tsorlinis
>     Priority: Blocker

>
> Followed the build notes
> ./runConfigure worked successfully
> make ran but eventually failed, see below
> Building /home/rwolf/xerces-c-src_2_6_0//lib/cygxerces-depdom26.dll
> g++ -shared   -o /home/rwolf/xerces-c-src_2_6_0//lib/cygxerces-depdom26.dll 
> CYGWIN/depdom/AttrImpl.o CYGWIN/depdom/AttrMapImpl.o 
> CYGWIN/depdom/AttrNSImpl.o CYGWIN/depdom/CDATASectionImpl.o 
> CYGWIN/depdom/CharacterDataImpl.o CYGWIN/depdom/ChildNode.o 
> CYGWIN/depdom/CommentImpl.o CYGWIN/depdom/DOMParser.o 
> CYGWIN/depdom/DOMString.o CYGWIN/depdom/DOM_Attr.o 
> CYGWIN/depdom/DOM_CDATASection.o CYGWIN/depdom/DOM_CharacterData.o 
> CYGWIN/depdom/DOM_Comment.o CYGWIN/depdom/DOM_DOMException.o 
> CYGWIN/depdom/DOM_DOMImplementation.o CYGWIN/depdom/DOM_Document.o 
> CYGWIN/depdom/DOM_DocumentFragment.o CYGWIN/depdom/DOM_DocumentType.o 
> CYGWIN/depdom/DOM_Element.o CYGWIN/depdom/DOM_Entity.o 
> CYGWIN/depdom/DOM_EntityReference.o CYGWIN/depdom/DOM_NamedNodeMap.o 
> CYGWIN/depdom/DOM_Node.o CYGWIN/depdom/DOM_NodeFilter.o 
> CYGWIN/depdom/DOM_NodeIterator.o CYGWIN/depdom/DOM_NodeList.o 
> CYGWIN/depdom/DOM_Notation.o CYGWIN/depdom/DOM_ProcessingInstruction.o 
> CYGWIN/depdom/DOM_Range.o CYGWIN/depdom/DOM_RangeException.o 
> CYGWIN/depdom/DOM_Text.o CYGWIN/depdom/DOM_TreeWalker.o 
> CYGWIN/depdom/DOM_XMLDecl.o CYGWIN/depdom/DStringPool.o 
> CYGWIN/depdom/DeepNodeListImpl.o CYGWIN/depdom/DocumentFragmentImpl.o 
> CYGWIN/depdom/DocumentImpl.o CYGWIN/depdom/DocumentTypeImpl.o 
> CYGWIN/depdom/DomMemDebug.o CYGWIN/depdom/ElementDefinitionImpl.o 
> CYGWIN/depdom/ElementImpl.o CYGWIN/depdom/ElementNSImpl.o 
> CYGWIN/depdom/EntityImpl.o CYGWIN/depdom/EntityReferenceImpl.o 
> CYGWIN/depdom/NamedNodeMapImpl.o CYGWIN/depdom/NodeIDMap.o 
> CYGWIN/depdom/NodeImpl.o CYGWIN/depdom/NodeIteratorImpl.o 
> CYGWIN/depdom/NodeListImpl.o CYGWIN/depdom/NodeVector.o 
> CYGWIN/depdom/NotationImpl.o CYGWIN/depdom/ParentNode.o 
> CYGWIN/depdom/ProcessingInstructionImpl.o CYGWIN/depdom/RangeImpl.o 
> CYGWIN/depdom/RefCountedImpl.o CYGWIN/depdom/TextImpl.o 
> CYGWIN/depdom/TreeWalkerImpl.o CYGWIN/depdom/XMLDeclImpl.o   -Xlinker 
> --warn-once -Xlinker -Map -Xlinker 
> /home/rwolf/xerces-c-src_2_6_0//lib/libxerces-depdom26.map -Xlinker 
> --output-def -Xlinker 
> /home/rwolf/xerces-c-src_2_6_0//lib/libxerces-depdom26.def -Xlinker 
> --out-implib -Xlinker 
> /home/rwolf/xerces-c-src_2_6_0//lib/libxerces-depdom26.dll.a -lpthread  
> -L/usr/lib -L/home/rwolf/xerces-c-src_2_6_0//lib -lxerces-c
> Creating library file: 
> /home/rwolf/xerces-c-src_2_6_0//lib/libxerces-depdom26.dll.a
> CYGWIN/depdom/AttrImpl.o(.text+0x4bb):AttrImpl.cpp: undefined reference to 
> `xercesc_2_6::XMemory::operator delete(void*)'
> CYGWIN/depdom/AttrImpl.o(.text+0x50d):AttrImpl.cpp: undefined reference to 
> `xercesc_2_6::XMemory::operator new(unsigned, xercesc_2_6::MemoryManager*)'
> CYGWIN/depdom/AttrImpl.o(.text+0x563):AttrImpl.cpp: undefined reference to 
> `xercesc_2_6::XMemory::operator delete(void*, xercesc_2_6::MemoryManager*)'
> CYGWIN/depdom/AttrImpl.o(.text$_ZN11xercesc_2_615BaseRefVectorOfINS_9RangeImplEE9elementAtEj[xercesc_2_6::BaseRefVectorOf<xercesc_2_6::RangeImpl>::elementAt(unsigned)]+0x87):AttrImpl.cpp:
>  undefined reference to 
> `xercesc_2_6::XMLException::XMLException[not-in-charge](char const*, 
> unsigned, xercesc_2_6::MemoryManager*)'
> CYGWIN/depdom/AttrImpl.o(.text$_ZN11xercesc_2_615BaseRefVectorOfINS_9RangeImplEE9elementAtEj[xercesc_2_6::BaseRefVectorOf<xercesc_2_6::RangeImpl>::elementAt(unsigned)]+0xa7):AttrImpl.cpp:
>  undefined reference to 
> `xercesc_2_6::XMLException::loadExceptText(xercesc_2_6::XMLExcepts::Codes)'
> CYGWIN/depdom/AttrImpl.o(.text$_ZN11xercesc_2_615BaseRefVectorOfINS_9RangeImplEE9elementAtEj[xercesc_2_6::BaseRefVectorOf<xercesc_2_6::RangeImpl>::elementAt(unsigned)]+0xca):AttrImpl.cpp:
>  undefined reference to `xercesc_2_6::XMLException::~XMLException [not-in-cha

-- 
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]

Reply via email to