Linking problems with gcc 3.4.2 and glibc on 5.3-stable

Rob spamrefuse at yahoo.com
Wed Jan 26 02:48:03 PST 2005


Hi,

There seems to be a bug with the gcc version of 5.3
STABLE (gcc 3.4.2), when using:

  #define _GLIBCXX_DEBUG
  #define _GLIBCXX_DEBUG_PEDANTIC

I discovered this when compiling the LyX sources, and
the LyX mailing list pointed out that this is gcc/OS
FreeBSD issue.

The linking ends with errors that complain about
"__gnu_norm::....", for example:

BranchList.o(.gnu.linkonce.t._ZN10__gnu_norm4listI6BranchSaIS1_EE9_M_insertENS_14_List_iteratorIS1_EERKS1_+0x19):
In function `__gnu_norm::list<Branch,
std::allocator<Branch>>>::_M_insert(__gnu_norm::_List_iterator<Branch>,
Branch const&)':

/usr/include/c++/3.4/bits/locale_facets.tcc:2443:
undefined reference to
`__gnu_norm::_List_node_base::hook(__gnu_norm::_List_node_base*)'
BranchList.o(.gnu.linkonce.t._ZN10__gnu_norm4listI6BranchSaIS1_EE8_M_eraseENS_14_List_iteratorIS1_EE+0xd):
In function `__gnu_norm::list<Branch,
std::allocator<Branch>>>::_M_erase(__gnu_norm::_List_iterator<Branch>)':

/usr/include/c++/3.4/debug/list:122: undefined
reference to
`__gnu_norm::_List_node_base::unhook()'

[...cut...]

/usr/include/c++/3.4/bits/stl_algobase.h:155:
undefined reference to
`__gnu_norm::_List_node_base::transfer(__gnu_norm::_List_node_base*,
__gnu_norm::_List_node_base*)'
../boost/libs/signals/src/.libs/libboost_signals.a(trackable.o)(.gnu.linkonce.t._ZN10__gnu_norm4listIN5boost7signals10connectionESaIS3_EE9_M_insertENS_14_List_iteratorIS3_EERKS3_+0x28):


In function
`__gnu_norm::list<boost::signals::connection,
std::allocator<boost::signals::connection>>>::_M_insert(__gnu_norm::_List_iterator<boost::signals::connection>,

boost::signals::connection const&)':

/usr/include/c++/3.4/debug/formatter.h:359: undefined
reference to
`__gnu_norm::_List_node_base::hook(__gnu_norm::_List_node_base*)'



Is this a known issue?

Rob.


		
__________________________________ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 



More information about the freebsd-stable mailing list