Xerces-C: two issues with gcc4/cygwin-1.7

Charles Wilson cygwin@cwilson.fastmail.fm
Tue May 5 04:38:00 GMT 2009


Charles Wilson wrote:
>> and it built right through without problems, including linking all the exes -
>> CreateDOMDocument.exe in particular.  (Testsuite run still in progress).
>>
>> Chuck, I suspect this is likely to be an already-fixed bug in binutils;
>> would you like to try your build again with homebrewed binutils from CVS?
> 
> I'll give that a shot when I get home.

No joy.  I get the same error:

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
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
make[2]: *** [CreateDOMDocument.exe] Error 1
make[2]: Leaving directory
`/usr/src/packages/xerces-c/xerces-c-3.0.1-10/build/samples'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/usr/src/packages/xerces-c/xerces-c-3.0.1-10/build'
make: *** [all] Error 2
*** ERROR: make failed

$ ld --version
GNU ld (GNU Binutils) 2.19.51.20090505

$ g++ --version
g++ (GCC) 4.3.2 20080827 (beta) 2


So, I've generated the output of

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/../../../../i686-pc-cygwin/lib
-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 -Wl,--enable-extra-pe-debug

but I'll send that privately (it's 180k compressed).

--
Chuck


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



More information about the Cygwin mailing list