delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/05/03/14:05:13

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-3.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <49FDDCA4.6050004@cwilson.fastmail.fm>
Date: Sun, 03 May 2009 14:04:20 -0400
From: Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.6.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Xerces-C: two issues with gcc4/cygwin-1.7
References: <49FDDA6E DOT 80607 AT cwilson DOT fastmail DOT fm>
In-Reply-To: <49FDDA6E.80607@cwilson.fastmail.fm>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

--------------080700060008020406010309
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Charles Wilson wrote:

> libtool: link: g++ -O2 -pipe -o .libs/CreateDOMDocument.exe
> src/CreateDOMDocument/CreateDOMDocument.o
> ../src/.libs/libxerces-c.dll.a -L/usr/lib
> /usr/lib/gcc/i686-pc-cygwin/4.3.2/libstdc++.dll.a /usr/lib/libcurl.dll.a
> /usr/lib/libssh2.dll.a -lssl -lcrypto -lz -licuuc -licudata
> -L/usr/lib/gcc/i686-pc-cygwin/4.3.2
> Info: resolving xercesc_3_0::XMLPlatformUtils::fgMemoryManager        by
> linking to __imp___ZN11xercesc_3_016XMLPlatformUtils15fgMemoryManagerE
> (auto-import)
> Info: resolving xercesc_3_0::XMLUni::fgXercescDefaultLocale       by
> linking to __imp___ZN11xercesc_3_06XMLUni22fgXercescDefaultLocaleE
> (auto-import)
> Info: resolving std::cout  by linking to __imp___ZSt4cout (auto-import)
> Info: resolving std::cerr  by linking to __imp___ZSt4cerr
> (auto-import/usr/lib/gcc/i686-pc-cygwin/4.3.2/../../../../i686-pc-cygwin/bin/ld:
> warning: auto-importing has been activated without --enable-auto-import
> specified on the command line.
> This should work unless it involves constant data structures referencing
> symbols from auto-imported DLLs.
> src/CreateDOMDocument/CreateDOMDocument.o:CreateDOMDocument.cpp:(.gcc_except_table+0xe8):
> undefined reference to `typeinfo for xercesc_3_0::XMLException'
> src/CreateDOMDocument/CreateDOMDocument.o:CreateDOMDocument.cpp:(.gcc_except_table+0xf0):
> undefined reference to `typeinfo for xercesc_3_0::DOMException'
> collect2: ld returned 1 exit status
> )
> 
> I checked the export list from the DLL, and there are NO typeinfo
> symbols exported at all.  Does this appear to be a gcc4 bug, or is there
> something specific I need to do to cause typeinfo stuff to be exported?

Just noticed something odd. libtool transforms the giant link command
for the DLL, with hundreds of .lo files, into the following:

g++ -shared -nostdlib /usr/lib/gcc/i686-pc-cygwin/4.3.2/crtbegin.o
.libs/libxerces-c.la.lnkscript  -L/usr/lib /usr/lib/libcurl.dll.a
/usr/lib/libssh2.dll.a -lssl -lcrypto -lz -licuuc -licudata
-L/usr/lib/gcc/i686-pc-cygwin/4.3.2
-L/usr/lib/gcc/i686-pc-cygwin/4.3.2/../../..
/usr/lib/gcc/i686-pc-cygwin/4.3.2/libstdc++.dll.a -lgcc_s -lgcc_s
-lcygwin -luser32 -lkernel32 -ladvapi32 -lshell32 -lgcc_s -lgcc_s
/usr/lib/gcc/i686-pc-cygwin/4.3.2/crtend.o    -o
.libs/cygxerces-c-3-0.dll -Wl,--enable-auto-image-base -Xlinker
--out-implib -Xlinker .libs/libxerces-c.dll.a
Creating library file: .libs/libxerces-c.dll.a

I've attached the link script. Could that make a difference, and cause
the typeinfo to not be exported?

--
Chuck


--------------080700060008020406010309
Content-Type: text/plain;
 name="libxerces-c.la.lnkscript"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="libxerces-c.la.lnkscript"

INPUT (
xercesc/util/.libs/Base64.o
xercesc/util/.libs/BinFileInputStream.o
xercesc/util/.libs/BinInputStream.o
xercesc/util/.libs/BinMemInputStream.o
xercesc/util/.libs/BitSet.o
xercesc/util/.libs/DefaultPanicHandler.o
xercesc/util/.libs/EncodingValidator.o
xercesc/util/.libs/HeaderDummy.o
xercesc/util/.libs/HexBin.o
xercesc/util/.libs/KVStringPair.o
xercesc/util/.libs/Mutexes.o
xercesc/util/.libs/PanicHandler.o
xercesc/util/.libs/PlatformUtils.o
xercesc/util/.libs/PSVIUni.o
xercesc/util/.libs/QName.o
xercesc/util/regx/.libs/ASCIIRangeFactory.o
xercesc/util/regx/.libs/BlockRangeFactory.o
xercesc/util/regx/.libs/BMPattern.o
xercesc/util/regx/.libs/CharToken.o
xercesc/util/regx/.libs/ClosureToken.o
xercesc/util/regx/.libs/ConcatToken.o
xercesc/util/regx/.libs/Match.o
xercesc/util/regx/.libs/Op.o
xercesc/util/regx/.libs/OpFactory.o
xercesc/util/regx/.libs/ParenToken.o
xercesc/util/regx/.libs/ParserForXMLSchema.o
xercesc/util/regx/.libs/RangeFactory.o
xercesc/util/regx/.libs/RangeToken.o
xercesc/util/regx/.libs/RangeTokenMap.o
xercesc/util/regx/.libs/RegularExpression.o
xercesc/util/regx/.libs/RegxParser.o
xercesc/util/regx/.libs/RegxUtil.o
xercesc/util/regx/.libs/StringToken.o
xercesc/util/regx/.libs/Token.o
xercesc/util/regx/.libs/TokenFactory.o
xercesc/util/regx/.libs/UnicodeRangeFactory.o
xercesc/util/regx/.libs/UnionToken.o
xercesc/util/regx/.libs/XMLRangeFactory.o
xercesc/util/regx/.libs/XMLUniCharacter.o
xercesc/util/.libs/StringPool.o
xercesc/util/.libs/SynchronizedStringPool.o
xercesc/util/.libs/TransService.o
xercesc/util/.libs/XMemory.o
xercesc/util/.libs/XML256TableTranscoder.o
xercesc/util/.libs/XML88591Transcoder.o
xercesc/util/.libs/XMLAbstractDoubleFloat.o
xercesc/util/.libs/XMLASCIITranscoder.o
xercesc/util/.libs/XMLBigDecimal.o
xercesc/util/.libs/XMLBigInteger.o
xercesc/util/.libs/XMLChar.o
xercesc/util/.libs/XMLChTranscoder.o
xercesc/util/.libs/XMLDateTime.o
xercesc/util/.libs/XMLDouble.o
xercesc/util/.libs/XMLEBCDICTranscoder.o
xercesc/util/.libs/XMLException.o
xercesc/util/.libs/XMLFloat.o
xercesc/util/.libs/XMLIBM1047Transcoder.o
xercesc/util/.libs/XMLIBM1140Transcoder.o
xercesc/util/.libs/XMLInitializer.o
xercesc/util/.libs/XMLMsgLoader.o
xercesc/util/.libs/XMLNumber.o
xercesc/util/.libs/XMLString.o
xercesc/util/.libs/XMLStringTokenizer.o
xercesc/util/.libs/XMLUCS4Transcoder.o
xercesc/util/.libs/XMLUni.o
xercesc/util/.libs/XMLUri.o
xercesc/util/.libs/XMLURL.o
xercesc/util/.libs/XMLUTF16Transcoder.o
xercesc/util/.libs/XMLUTF8Transcoder.o
xercesc/util/.libs/XMLWin1252Transcoder.o
xercesc/dom/.libs/DOMException.o
xercesc/dom/.libs/DOMLSException.o
xercesc/dom/.libs/DOMRangeException.o
xercesc/dom/.libs/DOMXPathException.o
xercesc/dom/impl/.libs/DOMAttrImpl.o
xercesc/dom/impl/.libs/DOMAttrMapImpl.o
xercesc/dom/impl/.libs/DOMAttrNSImpl.o
xercesc/dom/impl/.libs/DOMCDATASectionImpl.o
xercesc/dom/impl/.libs/DOMCharacterDataImpl.o
xercesc/dom/impl/.libs/DOMChildNode.o
xercesc/dom/impl/.libs/DOMCommentImpl.o
xercesc/dom/impl/.libs/DOMConfigurationImpl.o
xercesc/dom/impl/.libs/DOMDeepNodeListImpl.o
xercesc/dom/impl/.libs/DOMDocumentFragmentImpl.o
xercesc/dom/impl/.libs/DOMDocumentImpl.o
xercesc/dom/impl/.libs/DOMDocumentTypeImpl.o
xercesc/dom/impl/.libs/DOMElementImpl.o
xercesc/dom/impl/.libs/DOMElementNSImpl.o
xercesc/dom/impl/.libs/DOMEntityImpl.o
xercesc/dom/impl/.libs/DOMEntityReferenceImpl.o
xercesc/dom/impl/.libs/DOMErrorImpl.o
xercesc/dom/impl/.libs/DOMImplementationImpl.o
xercesc/dom/impl/.libs/DOMImplementationListImpl.o
xercesc/dom/impl/.libs/DOMImplementationRegistry.o
xercesc/dom/impl/.libs/DOMLocatorImpl.o
xercesc/dom/impl/.libs/DOMNamedNodeMapImpl.o
xercesc/dom/impl/.libs/DOMNodeIDMap.o
xercesc/dom/impl/.libs/DOMNodeImpl.o
xercesc/dom/impl/.libs/DOMNodeIteratorImpl.o
xercesc/dom/impl/.libs/DOMNodeListImpl.o
xercesc/dom/impl/.libs/DOMNodeVector.o
xercesc/dom/impl/.libs/DOMNormalizer.o
xercesc/dom/impl/.libs/DOMNotationImpl.o
xercesc/dom/impl/.libs/DOMParentNode.o
xercesc/dom/impl/.libs/DOMProcessingInstructionImpl.o
xercesc/dom/impl/.libs/DOMRangeImpl.o
xercesc/dom/impl/.libs/DOMStringListImpl.o
xercesc/dom/impl/.libs/DOMStringPool.o
xercesc/dom/impl/.libs/DOMTextImpl.o
xercesc/dom/impl/.libs/DOMTreeWalkerImpl.o
xercesc/dom/impl/.libs/DOMTypeInfoImpl.o
xercesc/dom/impl/.libs/DOMLSSerializerImpl.o
xercesc/dom/impl/.libs/DOMLSInputImpl.o
xercesc/dom/impl/.libs/DOMLSOutputImpl.o
xercesc/dom/impl/.libs/DOMXPathExpressionImpl.o
xercesc/dom/impl/.libs/DOMXPathNSResolverImpl.o
xercesc/dom/impl/.libs/DOMXPathResultImpl.o
xercesc/dom/impl/.libs/XSDElementNSImpl.o
xercesc/framework/.libs/BinOutputStream.o
xercesc/framework/.libs/LocalFileFormatTarget.o
xercesc/framework/.libs/LocalFileInputSource.o
xercesc/framework/.libs/MemBufFormatTarget.o
xercesc/framework/.libs/MemBufInputSource.o
xercesc/framework/psvi/.libs/PSVIAttribute.o
xercesc/framework/psvi/.libs/PSVIAttributeList.o
xercesc/framework/psvi/.libs/PSVIElement.o
xercesc/framework/psvi/.libs/PSVIItem.o
xercesc/framework/psvi/.libs/XSAnnotation.o
xercesc/framework/psvi/.libs/XSAttributeDeclaration.o
xercesc/framework/psvi/.libs/XSAttributeGroupDefinition.o
xercesc/framework/psvi/.libs/XSAttributeUse.o
xercesc/framework/psvi/.libs/XSComplexTypeDefinition.o
xercesc/framework/psvi/.libs/XSElementDeclaration.o
xercesc/framework/psvi/.libs/XSFacet.o
xercesc/framework/psvi/.libs/XSIDCDefinition.o
xercesc/framework/psvi/.libs/XSModel.o
xercesc/framework/psvi/.libs/XSModelGroup.o
xercesc/framework/psvi/.libs/XSModelGroupDefinition.o
xercesc/framework/psvi/.libs/XSMultiValueFacet.o
xercesc/framework/psvi/.libs/XSNamespaceItem.o
xercesc/framework/psvi/.libs/XSNotationDeclaration.o
xercesc/framework/psvi/.libs/XSObject.o
xercesc/framework/psvi/.libs/XSParticle.o
xercesc/framework/psvi/.libs/XSSimpleTypeDefinition.o
xercesc/framework/psvi/.libs/XSTypeDefinition.o
xercesc/framework/psvi/.libs/XSValue.o
xercesc/framework/psvi/.libs/XSWildcard.o
xercesc/framework/.libs/StdInInputSource.o
xercesc/framework/.libs/StdOutFormatTarget.o
xercesc/framework/.libs/URLInputSource.o
xercesc/framework/.libs/Wrapper4DOMLSInput.o
xercesc/framework/.libs/Wrapper4InputSource.o
xercesc/framework/.libs/XMLAttDef.o
xercesc/framework/.libs/XMLAttDefList.o
xercesc/framework/.libs/XMLAttr.o
xercesc/framework/.libs/XMLBuffer.o
xercesc/framework/.libs/XMLBufferMgr.o
xercesc/framework/.libs/XMLContentModel.o
xercesc/framework/.libs/XMLDTDDescription.o
xercesc/framework/.libs/XMLElementDecl.o
xercesc/framework/.libs/XMLEntityDecl.o
xercesc/framework/.libs/XMLFormatter.o
xercesc/framework/.libs/XMLGrammarDescription.o
xercesc/framework/.libs/XMLGrammarPoolImpl.o
xercesc/framework/.libs/XMLNotationDecl.o
xercesc/framework/.libs/XMLRecognizer.o
xercesc/framework/.libs/XMLRefInfo.o
xercesc/framework/.libs/XMLSchemaDescription.o
xercesc/framework/.libs/XMLValidator.o
xercesc/internal/.libs/BinFileOutputStream.o
xercesc/internal/.libs/BinMemOutputStream.o
xercesc/internal/.libs/DGXMLScanner.o
xercesc/internal/.libs/ElemStack.o
xercesc/internal/.libs/IGXMLScanner.o
xercesc/internal/.libs/IGXMLScanner2.o
xercesc/internal/.libs/MemoryManagerImpl.o
xercesc/internal/.libs/ReaderMgr.o
xercesc/internal/.libs/SGXMLScanner.o
xercesc/internal/.libs/ValidationContextImpl.o
xercesc/internal/.libs/VecAttributesImpl.o
xercesc/internal/.libs/VecAttrListImpl.o
xercesc/internal/.libs/WFXMLScanner.o
xercesc/internal/.libs/XMLReader.o
xercesc/internal/.libs/XMLScanner.o
xercesc/internal/.libs/XMLScannerResolver.o
xercesc/internal/.libs/XProtoType.o
xercesc/internal/.libs/XSAXMLScanner.o
xercesc/internal/.libs/XSerializeEngine.o
xercesc/internal/.libs/XSObjectFactory.o
xercesc/internal/.libs/XTemplateSerializer.o
xercesc/parsers/.libs/AbstractDOMParser.o
xercesc/parsers/.libs/DOMLSParserImpl.o
xercesc/parsers/.libs/SAX2XMLFilterImpl.o
xercesc/parsers/.libs/SAX2XMLReaderImpl.o
xercesc/parsers/.libs/SAXParser.o
xercesc/parsers/.libs/XercesDOMParser.o
xercesc/sax/.libs/Dummy.o
xercesc/sax/.libs/InputSource.o
xercesc/sax/.libs/SAXException.o
xercesc/sax/.libs/SAXParseException.o
xercesc/sax2/.libs/sax2Dummy.o
xercesc/validators/common/.libs/AllContentModel.o
xercesc/validators/common/.libs/CMAny.o
xercesc/validators/common/.libs/CMBinaryOp.o
xercesc/validators/common/.libs/CMUnaryOp.o
xercesc/validators/common/.libs/ContentLeafNameTypeVector.o
xercesc/validators/common/.libs/ContentSpecNode.o
xercesc/validators/common/.libs/DFAContentModel.o
xercesc/validators/common/.libs/Grammar.o
xercesc/validators/common/.libs/GrammarResolver.o
xercesc/validators/common/.libs/MixedContentModel.o
xercesc/validators/common/.libs/SimpleContentModel.o
xercesc/validators/datatype/.libs/AbstractNumericFacetValidator.o
xercesc/validators/datatype/.libs/AbstractNumericValidator.o
xercesc/validators/datatype/.libs/AbstractStringValidator.o
xercesc/validators/datatype/.libs/AnySimpleTypeDatatypeValidator.o
xercesc/validators/datatype/.libs/AnyURIDatatypeValidator.o
xercesc/validators/datatype/.libs/Base64BinaryDatatypeValidator.o
xercesc/validators/datatype/.libs/BooleanDatatypeValidator.o
xercesc/validators/datatype/.libs/DatatypeValidator.o
xercesc/validators/datatype/.libs/DatatypeValidatorFactory.o
xercesc/validators/datatype/.libs/DateDatatypeValidator.o
xercesc/validators/datatype/.libs/DateTimeDatatypeValidator.o
xercesc/validators/datatype/.libs/DateTimeValidator.o
xercesc/validators/datatype/.libs/DayDatatypeValidator.o
xercesc/validators/datatype/.libs/DecimalDatatypeValidator.o
xercesc/validators/datatype/.libs/DoubleDatatypeValidator.o
xercesc/validators/datatype/.libs/DurationDatatypeValidator.o
xercesc/validators/datatype/.libs/ENTITYDatatypeValidator.o
xercesc/validators/datatype/.libs/FloatDatatypeValidator.o
xercesc/validators/datatype/.libs/HexBinaryDatatypeValidator.o
xercesc/validators/datatype/.libs/IDDatatypeValidator.o
xercesc/validators/datatype/.libs/IDREFDatatypeValidator.o
xercesc/validators/datatype/.libs/ListDatatypeValidator.o
xercesc/validators/datatype/.libs/MonthDatatypeValidator.o
xercesc/validators/datatype/.libs/MonthDayDatatypeValidator.o
xercesc/validators/datatype/.libs/NameDatatypeValidator.o
xercesc/validators/datatype/.libs/NCNameDatatypeValidator.o
xercesc/validators/datatype/.libs/NOTATIONDatatypeValidator.o
xercesc/validators/datatype/.libs/QNameDatatypeValidator.o
xercesc/validators/datatype/.libs/StringDatatypeValidator.o
xercesc/validators/datatype/.libs/TimeDatatypeValidator.o
xercesc/validators/datatype/.libs/UnionDatatypeValidator.o
xercesc/validators/datatype/.libs/XMLCanRepGroup.o
xercesc/validators/datatype/.libs/YearDatatypeValidator.o
xercesc/validators/datatype/.libs/YearMonthDatatypeValidator.o
xercesc/validators/DTD/.libs/DTDAttDef.o
xercesc/validators/DTD/.libs/DTDAttDefList.o
xercesc/validators/DTD/.libs/DTDElementDecl.o
xercesc/validators/DTD/.libs/DTDEntityDecl.o
xercesc/validators/DTD/.libs/DTDGrammar.o
xercesc/validators/DTD/.libs/DTDScanner.o
xercesc/validators/DTD/.libs/DTDValidator.o
xercesc/validators/DTD/.libs/XMLDTDDescriptionImpl.o
xercesc/validators/schema/.libs/ComplexTypeInfo.o
xercesc/validators/schema/.libs/GeneralAttributeCheck.o
xercesc/validators/schema/identity/.libs/FieldActivator.o
xercesc/validators/schema/identity/.libs/FieldValueMap.o
xercesc/validators/schema/identity/.libs/IC_Field.o
xercesc/validators/schema/identity/.libs/IC_Key.o
xercesc/validators/schema/identity/.libs/IC_KeyRef.o
xercesc/validators/schema/identity/.libs/IC_Selector.o
xercesc/validators/schema/identity/.libs/IC_Unique.o
xercesc/validators/schema/identity/.libs/IdentityConstraint.o
xercesc/validators/schema/identity/.libs/IdentityConstraintHandler.o
xercesc/validators/schema/identity/.libs/ValueStore.o
xercesc/validators/schema/identity/.libs/ValueStoreCache.o
xercesc/validators/schema/identity/.libs/XercesXPath.o
xercesc/validators/schema/identity/.libs/XPathMatcher.o
xercesc/validators/schema/identity/.libs/XPathMatcherStack.o
xercesc/validators/schema/identity/.libs/XPathSymbols.o
xercesc/validators/schema/.libs/NamespaceScope.o
xercesc/validators/schema/.libs/SchemaAttDef.o
xercesc/validators/schema/.libs/SchemaAttDefList.o
xercesc/validators/schema/.libs/SchemaElementDecl.o
xercesc/validators/schema/.libs/SchemaGrammar.o
xercesc/validators/schema/.libs/SchemaInfo.o
xercesc/validators/schema/.libs/SchemaSymbols.o
xercesc/validators/schema/.libs/SchemaValidator.o
xercesc/validators/schema/.libs/SubstitutionGroupComparator.o
xercesc/validators/schema/.libs/TraverseSchema.o
xercesc/validators/schema/.libs/XercesAttGroupInfo.o
xercesc/validators/schema/.libs/XercesElementWildcard.o
xercesc/validators/schema/.libs/XercesGroupInfo.o
xercesc/validators/schema/.libs/XMLSchemaDescriptionImpl.o
xercesc/validators/schema/.libs/XSDDOMParser.o
xercesc/validators/schema/.libs/XSDErrorReporter.o
xercesc/validators/schema/.libs/XSDLocator.o
xercesc/validators/schema/.libs/XUtil.o
xercesc/xinclude/.libs/XIncludeDOMDocumentProcessor.o
xercesc/xinclude/.libs/XIncludeLocation.o
xercesc/xinclude/.libs/XIncludeUtils.o
xercesc/util/NetAccessors/Curl/.libs/CurlNetAccessor.o
xercesc/util/NetAccessors/Curl/.libs/CurlURLInputStream.o
xercesc/util/Transcoders/ICU/.libs/ICUTransService.o
xercesc/util/MsgLoaders/InMemory/.libs/InMemMsgLoader.o
xercesc/util/MutexManagers/.libs/PosixMutexMgr.o
xercesc/util/FileManagers/.libs/PosixFileMgr.o
.libs/stricmp.o
.libs/strnicmp.o
)


--------------080700060008020406010309
Content-Type: text/plain; charset=us-ascii

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/
--------------080700060008020406010309--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019