Date: Sun, 27 Jun 2010 06:54:48 +0400 From: Anonymous <swell.k@gmail.com> To: Doug Barton <dougb@dougbarton.us> Cc: churanov.port.maintainer@gmail.com, freebsd-ports@FreeBSD.org Subject: Re: devel/boost-python-libs compiled with gcc 4.5.1 causes link error Message-ID: <86pqzd2nif.fsf@gmail.com> In-Reply-To: <4C26B704.2000601@dougbarton.us> (Doug Barton's message of "Sat, 26 Jun 2010 19:27:16 -0700") References: <4C26A19B.6070808@dougbarton.us> <86hbkp5ifh.fsf@gmail.com> <4C26B704.2000601@dougbarton.us>
next in thread | previous in thread | raw e-mail | index | archive | help
Doug Barton <dougb@dougbarton.us> writes: > On 06/26/10 19:16, Anonymous wrote: >> @@GLIBCXX_3.4.14 symbols are in gcc45/libstdc++.so. Try to add -lstdc++ >> or use CXX otherwise it picks up libstdc++.so from /usr/lib. > > I have the following in /etc/libmap.conf: > > libgcc_s.so.1 gcc45/libgcc_s.so.1 > libgomp.so.1 gcc45/libgomp.so.1 > libobjc.so.3 gcc45/libobjc.so.2 > libssp.so.0 gcc45/libssp.so.0 > libstdc++.so.6 gcc45/libstdc++.so.6 > > Which should theoretically solve that issue. I guess ld(1) only uses ld-elf.so.hints and ignores libmap.conf $ gcc45 test.c -lboost_python -lpython2.6 -Wl,--verbose |& fgrep stdc libstdc++.so.6 needed by $LOCALBASE/lib/libboost_python.so found libstdc++.so.6 at /usr/lib/libstdc++.so.6 # try with -rpath-link $ gcc45 test.c -lboost_python -lpython2.6 -Wl,--verbose -Wl,-rpath-link,$LOCALBASE/lib/gcc45 |& fgrep stdc++ libstdc++.so.6 needed by $LOCALBASE/lib/libboost_python.so found libstdc++.so.6 at $LOCALBASE/lib/gcc45/libstdc++.so.6 # try with $LOCALBASE/lib/gcc45 before /usr/lib in `ldconfig -r' $ gcc45 test.c -lboost_python -lpython2.6 -Wl,--verbose -Wl,-rpath-link,$LOCALBASE/lib/gcc45 |& fgrep stdc++ libstdc++.so.6 needed by $LOCALBASE/lib/libboost_python.so found libstdc++.so.6 at $LOCALBASE/lib/gcc45/libstdc++.so.6 > > > Doug
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86pqzd2nif.fsf>