FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Alt

 
 
LinkBack Thread Tools
 
Old 12-12-2007, 02:40 PM
Johan Hattne
 
Default C++ linking issues

Dear all;

Using prefix gcc-apple-4.0.1_p5465 and odcctools-20071104, I run into
this when linking a some C++ code:


ld: duplicate symbol Inkscape::XML::SimpleNode::name() constin
xml/libspxml.a(simple-node.o) and
libinkpre.a(conn-avoid-ref.o)

For the offending objects, I have:

$ nm xml/simple-node.o| grep 'SimpleNode.*name'
00000182 T __ZNK8Inkscape3XML10SimpleNode4nameEv
00000000 A __ZNK8Inkscape3XML10SimpleNode4nameEv.eh
00004124 S __ZTv0_n24_NK8Inkscape3XML10SimpleNode4nameEv

$ nm conn-avoid-ref.o | grep 'SimpleNode.*name'
00000182 T __ZNK8Inkscape3XML10SimpleNode4nameEv
00000000 A __ZNK8Inkscape3XML10SimpleNode4nameEv.eh
00004da0 S __ZTv0_n24_NK8Inkscape3XML10SimpleNode4nameEv

Absolutes? Rebuilding these two objects with gcc-4.2.2, I have:

$ nm xml/simple-node.o| grep 'SimpleNode.*name'
00000480 T __ZNK8Inkscape3XML10SimpleNode4nameEv
0000574c S __ZNK8Inkscape3XML10SimpleNode4nameEv.eh
0000046e T __ZTv0_n24_NK8Inkscape3XML10SimpleNode4nameEv

$ nm conn-avoid-ref.o | grep 'SimpleNode.*name'
00000838 T __ZNK8Inkscape3XML10SimpleNode4nameEv
00006d54 S __ZNK8Inkscape3XML10SimpleNode4nameEv.eh
00000826 T __ZTv0_n24_NK8Inkscape3XML10SimpleNode4nameEv

I've been compiling the same code before with gcc-4.0.1, but using an
older version of odcctools (can't seem to downgrade right now,
emerging odcctools-20070629-r1 gives a bunch of linker warnings and
dies).


Anybody know what's going on, or what I am doing wrong.

// Thanks; Johan

--
gentoo-alt@gentoo.org mailing list
 

Thread Tools




All times are GMT. The time now is 04:34 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org