I've committed the attached patch which should correct the problem of shCfg.cxx being compiled and linked twice. Dave Avinash Malik wrote: > On 11/28/06, Frank Ch. Eigler wrote: >> Hi - >> >> On Tue, Nov 28, 2006 at 12:31:01PM +1300, Avinash Malik wrote: >> > [...] >> > After a lot of work arounds I could get sid compiled and >> installed. >> > But I still cannot target the SHboard since that gives me a internal >> > compiler error: segmentation fault. >> >> These are the errors I'm seeing building today's cvs sid with FC5's >> gcc-4.1.1: >> >> make[1]: Entering directory `..../sid/main/dynamic' >> /bin/sh ./libtool --tag=CXX --mode=link c++ -DSIDTARGET_SH >> -DSIDTARGET_SH64 -g -O2 -o sid -export-dynamic -static >> -export-symbols-regex '[a-zA-Z0-9]*_library$' >> ../../component/cfgroot/libconfig.la mainDynamic.o baseCfg.o >> commonCfg.o shCfg.o shCfg.o -L../../../libiberty/pic >> -L../../../libiberty -liberty >> c++ -DSIDTARGET_SH -DSIDTARGET_SH64 -g -O2 -o sid mainDynamic.o >> baseCfg.o commonCfg.o shCfg.o shCfg.o -Wl,--export-dynamic >> ../../component/cfgroot/.libs/libconfig.a -ldl -L....libiberty/pic >> -L....libiberty -liberty >> shCfg.o: In function `~ShBoardCfg': >> ../../../../src/sid/main/dynamic/shCfg.cxx:13: multiple definition of >> `ShBoardCfg::ShBoardCfg(std::basic_string> std::char_traits, std::allocator > const&, >> std::basic_string, std::allocator >> > const&, SessionCfg*, std::basic_string> std::char_traits, std::allocator > const&)' >> shCfg.o:../../../../src/sid/main/dynamic/shCfg.cxx:13: first defined >> here >> shCfg.o: In function `mk_sh5_64media(std::basic_string> std::char_traits, std::allocator >, SessionCfg*)': >> ../../../../src/sid/main/dynamic/shCfg.cxx:219: multiple definition >> of `mk_sh5_64media(std::basic_string, >> std::allocator >, SessionCfg*)' >> shCfg.o:../../../../src/sid/main/dynamic/shCfg.cxx:219: first defined >> here >> shCfg.o: In function `mk_sh5_32media(std::basic_string> std::char_traits, std::allocator >, SessionCfg*)': >> >> So there is definitely a problem. And from the compiler command line, >> it's easy to see: shCfg.o is being listed and linked twice. Dave? >