From owner-freebsd-ports@FreeBSD.ORG Thu Feb 3 14:17:21 2011 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 1EED1106564A for ; Thu, 3 Feb 2011 14:17:21 +0000 (UTC) (envelope-from thierry@FreeBSD.org) Received: from smtp5-g21.free.fr (smtp5-g21.free.fr [212.27.42.5]) by mx1.freebsd.org (Postfix) with ESMTP id 97FA58FC0C for ; Thu, 3 Feb 2011 14:17:18 +0000 (UTC) Received: from graf.pompo.net (unknown [78.225.128.39]) by smtp5-g21.free.fr (Postfix) with ESMTP id CE06AD481A9; Thu, 3 Feb 2011 15:17:12 +0100 (CET) Received: by graf.pompo.net (Postfix, from userid 80) id 195DA11490; Thu, 3 Feb 2011 15:11:56 +0100 (CET) Received: from 192.54.193.27 ([192.54.193.27]) by graf.pompo.net (Horde Framework) with HTTP; Thu, 03 Feb 2011 15:11:56 +0100 Message-ID: <20110203151156.24668evn6vl9o434@graf.pompo.net> X-Priority: 3 (Normal) Date: Thu, 03 Feb 2011 15:11:56 +0100 From: thierry@FreeBSD.org To: Rainer Hurling References: <4D49C48A.7080604@gwdg.de> <20110202212907.GC29365@graf.pompo.net> <4D4A9559.2010502@gwdg.de> <20110203133557.33003e7j1xacsls0@graf.pompo.net> <4D4AAB54.9030001@gwdg.de> In-Reply-To: <4D4AAB54.9030001@gwdg.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.3.9) / FreeBSD-8.1 X-Originating-IP: 192.54.193.27 X-Remote-Browser: Mozilla/5.0 (Windows; U; Windows NT 5.0; fr; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 Cc: freebsd-ports@freebsd.org Subject: Re: net/mpich2: libraries with many 'undefined symbols' 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: Thu, 03 Feb 2011 14:17:21 -0000 Selon Rainer Hurling le jeu 3 f=E9v 14:19:16 2011 : > Ok, so I usually have to take care to link libraries like libmpl, =20 > libopa etc. in addition to libmpich (or using the wrappers if =20 > possible). Yes, this is the idea. Note: libopa is rarely needed. >>>> Yet another solution could be to configure mpich2 with >>>> --enable-lib-depend, but this is experimental... > > What would be the consequence of configuring mpich2 with =20 > --enable-lib-depend? Would dependencies like libmpl be more =20 > integrated in libmpich? This is based on inter-library dependencies. This is experimental and only for shared library builds at this time. It causes libmpich.so to depend on libmpl.so and libopa.so. Once you do that, you can just link to libmpich.so, and it'll automatically pick the remaining libraries as needed. Remark: these explanations come from the authors. --=20 Th. Thomas.