Date: Sun, 27 Jun 2010 06:16:18 +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: <86hbkp5ifh.fsf@gmail.com> In-Reply-To: <4C26A19B.6070808@dougbarton.us> (Doug Barton's message of "Sat, 26 Jun 2010 17:55:55 -0700") References: <4C26A19B.6070808@dougbarton.us>
next in thread | previous in thread | raw e-mail | index | archive | help
Doug Barton <dougb@dougbarton.us> writes: > Howdy, > > I'm working on compiling the python bindings for > net-p2p/libtorrent-rasterbar-15 and compiled devel/boost-python-libs as > a dependency for that. When compiled with gcc 4.5.1 > (http://www.freebsd.org/doc/en_US.ISO8859-1/articles/custom-gcc/index.html) > the boost-python-libs give the following linker error when trying to > build the libtorrent python bindings: > > configure:18063: cc -o conftest -D_THREAD_SAFE -pthread -pipe -g -g > -I/usr/local/include -pthread -L/usr/local/lib -rpath > =/usr/lib:/usr/local/lib -L/usr/local/lib/python2.6/config -lpython2.6 > conftest.c -lboost_python >&5 > /usr/local/lib/libboost_python.so: undefined reference to > `_ZNSt15_List_node_base7_M_hookEPS_@GLIBCXX_3.4.14' > configure:18063: $? = 1 @@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. Another way is to adjust search path a little, place $LOCALBASE/lib/gcc45 before /usr/lib # sed -i '' "\|_LDC.*/usr/lib|s|\"|\"${LOCALBASE-/usr/local}/lib/gcc45 |" /etc/rc.d/ldconfig # /etc/rc.d/ldconfig restart > > The full log is available at > http://dougbarton.us/boost-python-gcc451-config.log > > When the boost-python-libs are compiled with gcc 4.2.1 (the default in > -current) I can compile the libtorrent bindings with either version of gcc. > > > Let me know if there is any other information you need. > > Doug
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86hbkp5ifh.fsf>