This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

DWARF broken?


Can someone tell me what I am doing wrong?

On linux, using -g for everything, 'it' works and links
without problems.

However when I compile the final file with -gdwarf,
I get a lot of unresolved symbols.

Here is the output of the last step where -gdwarf
was used and the linking:

~/c++/libcw/src/libcwd/testsuite>g++-3.0.2 -DHAVE_CONFIG_H -DCWDEBUG -Ilibcwd.tst -I../include -I./../include  -gdwarf -O -pipe -c libcwd.tst/marker.cc -o tst_marker.o
~/c++/libcw/src/libcwd/testsuite>g++-3.0.2 tst_marker.o -o tst_marker_shared -L../.libs -lcwd -ldl -Wl,--rpath,../.libs
tst_marker.o(.debug+0x125b3): undefined reference to `L_E808'
tst_marker.o(.debug+0x1261a): undefined reference to `L_E21239'
tst_marker.o(.debug+0x12638): undefined reference to `L_E41738'
tst_marker.o(.debug+0x1264e): undefined reference to `L_E20927'
...
in total 829(!) undefined 'L_E[0-9]*'.
...
tst_marker.o(.debug+0x245ea): undefined reference to `L_E20821'
tst_marker.o(.debug+0x24608): undefined reference to `L_E42990'
tst_marker.o(.debug+0x246c0): undefined reference to `L_E8874'
tst_marker.o(.debug+0x24725): undefined reference to `L_E8876'
tst_marker.o(.debug+0x24888): undefined reference to `libcw::debug::builtin_return_address_offset'
tst_marker.o(.debug+0x248ec): undefined reference to `libcw::debug::config_signature_header_c'
tst_marker.o(.debug+0x2491a): undefined reference to `libcw::debug::max_label_len_c'
tst_marker.o(.debug+0x24966): undefined reference to `libcw::debug::nonewline_cf'
tst_marker.o(.debug+0x24990): undefined reference to `libcw::debug::noprefix_cf'
tst_marker.o(.debug+0x249b9): undefined reference to `libcw::debug::nolabel_cf'
tst_marker.o(.debug+0x249e7): undefined reference to `libcw::debug::blank_margin_cf'
tst_marker.o(.debug+0x24a14): undefined reference to `libcw::debug::blank_label_cf'
tst_marker.o(.debug+0x24a42): undefined reference to `libcw::debug::blank_marker_cf'
tst_marker.o(.debug+0x24a68): undefined reference to `libcw::debug::cerr_cf'
tst_marker.o(.debug+0x24a8f): undefined reference to `libcw::debug::flush_cf'
tst_marker.o(.debug+0x24ab5): undefined reference to `libcw::debug::wait_cf'
tst_marker.o(.debug+0x24adc): undefined reference to `libcw::debug::error_cf'
tst_marker.o(.debug+0x24b0f): undefined reference to `libcw::debug::continued_cf_maskbit'
tst_marker.o(.debug+0x24b48): undefined reference to `libcw::debug::continued_expected_maskbit'
tst_marker.o(.debug+0x24b74): undefined reference to `libcw::debug::fatal_maskbit'
tst_marker.o(.debug+0x24ba3): undefined reference to `libcw::debug::coredump_maskbit'
tst_marker.o(.debug+0x24bd3): undefined reference to `libcw::debug::continued_maskbit'
tst_marker.o(.debug+0x24c00): undefined reference to `libcw::debug::finish_maskbit'
tst_marker.o(.debug+0x2503f): undefined reference to `libcw::debug::_private_::random_salt'
tst_marker.o(.debug+0x25080): undefined reference to `libcw::debug::_private_::single_threaded_userspace_instance'
tst_marker.o(.debug+0x250c0): undefined reference to `libcw::debug::_private_::single_threaded_internal_instance'
tst_marker.o(.debug+0x250ff): undefined reference to `libcw::debug::_private_::multi_threaded_usrspace_instance'
tst_marker.o(.debug+0x2513e): undefined reference to `libcw::debug::_private_::multi_threaded_internal_instance'
tst_marker.o(.debug+0x2dd3a): undefined reference to `std::__stl_threshold'
tst_marker.o(.debug+0x2dd69): undefined reference to `std::__stl_chunk_size'
tst_marker.o(.debug+0x2dd92): undefined reference to `std::__WORD_BIT'
collect2: ld returned 1 exit status

The 'libcw::debug' are globals in the -lcwd shared library.
When I compile libcwd with -gdwarf too, nothing changes here; but I then
ALSO get a lot of undefined references in libcwd.so.

Can anyone tell me if this is probably a bug in g++, or am I doing
something wrong?

Thanks,

-- 
Carlo Wood <carlo@alinoe.com>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]