X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Message-ID: <49FEFFEB.2050504@gmail.com> Date: Mon, 04 May 2009 15:47:07 +0100 From: Dave Korn User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) 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> <49FDDCA4 DOT 6050004 AT cwilson DOT fastmail DOT fm> <49FEE690 DOT 6020208 AT gmail DOT com> <49FEEB55 DOT 60509 AT cwilson DOT fastmail DOT fm> In-Reply-To: <49FEEB55.60509@cwilson.fastmail.fm> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Charles Wilson wrote: > [39037](sec 3)(fl 0x00)(ty 0)(scl 2) (nx 0) 0x0005f780 typeinfo > name for xercesc_3_0::XMLException > [39038](sec 3)(fl 0x00)(ty 0)(scl 2) (nx 0) 0x0005c7f0 typeinfo for > xercesc_3_0::XMLException > 00000000 R typeinfo for xercesc_3_0::XMLException So, from that: the typeinfo is clearly in the original .o file, and it's a public symbol in .rdata that really ought to be exported - if auto-export is in operation. The next step is to manually re-run the final link command that you posted earlier: 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 adding "-Wl,--enable-extra-pe-debug", which should show us a bit more about what ld thinks it is doing when it decides whether or not to export all the symbols. cheers, DaveK -- 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/