From owner-freebsd-ports@FreeBSD.ORG Sun Jun 27 02:16:35 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 57D98106566B for ; Sun, 27 Jun 2010 02:16:35 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 084838FC17 for ; Sun, 27 Jun 2010 02:16:34 +0000 (UTC) Received: by vws13 with SMTP id 13so5844950vws.13 for ; Sat, 26 Jun 2010 19:16:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=uQZtn1tvxumfndAeh+p5LhUzwcE2F4kayjb0F5+/+j0=; b=aKtlPJp/Hy9y2/EeEr7crWIT5BfxHer9nppVMuyWeH3JK61ea1m4mhBGHJUknI6AhP zak5lO+SnafWPxyzBXRvqsVgADWN9JpyKOC7JGKP9H6qQv6xaElTK+ZpqatViaFw4D5u Rb/A677PqxoBqAPqh8dGrLdkN3TfCk3QXUGBg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=VkfHYwb3FmX6PRtsE7dK7z1bjfzMVWdq20R97FpzHnfZUUvZvFGLlWP9kwuzcyg1bq uZFzD+HlPfcZFy+SZzz3bHHebSngib2LGgbkGXJsxcxHkzvzH01Vvebi90abRpsGp/iH OT7Dvp9P+n4T3t7TsRPBoYf4gi76wn23yxIjM= Received: by 10.220.63.203 with SMTP id c11mr1717182vci.234.1277604985104; Sat, 26 Jun 2010 19:16:25 -0700 (PDT) Received: from localhost (gpftor6.privacyfoundation.de [62.212.67.209]) by mx.google.com with ESMTPS id g8sm3134446vcz.21.2010.06.26.19.16.22 (version=SSLv3 cipher=RC4-MD5); Sat, 26 Jun 2010 19:16:24 -0700 (PDT) From: Anonymous To: Doug Barton References: <4C26A19B.6070808@dougbarton.us> Date: Sun, 27 Jun 2010 06:16:18 +0400 In-Reply-To: <4C26A19B.6070808@dougbarton.us> (Doug Barton's message of "Sat, 26 Jun 2010 17:55:55 -0700") Message-ID: <86hbkp5ifh.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jun 2010 02:16:35 -0000 Doug Barton 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