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
there is also a bug which prevents compiling of ezbounce and psybnc, I wonder how much testing went into the new gcc compiler or was it just bundled into the release, considering this is the reccommended release for production server's now this is a bad oversight, I think the gcc should be changed in the next patch level back to 3.3.6. Chris On Wed, 26 Jan 2005 02:48:01 -0800 (PST), Rob <spamrefuse@yahoo.com> wrote:> > 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 > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >
Kris Kennaway
2005-Jan-26 11:52 UTC
Linking problems with gcc 3.4.2 and glibc on 5.3-stable
On Wed, Jan 26, 2005 at 02:48:01AM -0800, Rob wrote:> > 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_PEDANTICWhat are those? FreeBSD doesn't use GLIBC, so how do you know it's a FreeBSD bug? Kris -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20050126/80bd568b/attachment.bin