From owner-freebsd-ports@FreeBSD.ORG Wed Feb 2 21:52:11 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 9E7DB106566C for ; Wed, 2 Feb 2011 21:52:11 +0000 (UTC) (envelope-from thierry@pompo.net) Received: from smtpfb2-g21.free.fr (smtpfb2-g21.free.fr [212.27.42.10]) by mx1.freebsd.org (Postfix) with ESMTP id 1F1548FC1B for ; Wed, 2 Feb 2011 21:52:09 +0000 (UTC) Received: from smtp5-g21.free.fr (smtp5-g21.free.fr [212.27.42.5]) by smtpfb2-g21.free.fr (Postfix) with ESMTP id 73189CA89B7 for ; Wed, 2 Feb 2011 22:34:32 +0100 (CET) Received: from graf.pompo.net (unknown [78.225.128.39]) by smtp5-g21.free.fr (Postfix) with ESMTP id BE716D481B6; Wed, 2 Feb 2011 22:34:23 +0100 (CET) Received: by graf.pompo.net (Postfix, from userid 1001) id 342821148E; Wed, 2 Feb 2011 22:29:07 +0100 (CET) Date: Wed, 2 Feb 2011 22:29:07 +0100 From: Thierry Thomas To: freebsd-ports@freebsd.org Message-ID: <20110202212907.GC29365@graf.pompo.net> Mail-Followup-To: freebsd-ports@freebsd.org, Rainer Hurling References: <4D49C48A.7080604@gwdg.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3lcZGd9BuhuYXNfi" Content-Disposition: inline In-Reply-To: <4D49C48A.7080604@gwdg.de> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 8.1-STABLE i386 Organization: Kabbale Eros X-Face: (hRbQnK~Pt7$ct`!fupO(`y_WL4^-Iwn4@ly-.,[4xC4xc; y=\ipKMNm<1J>lv@PP~7Z<.t KjAnXLs: X-PGP: 0xC71405A2 Cc: Rainer Hurling Subject: Re: net/mpich2: libraries with many 'undefined symbols' X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-ports@freebsd.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Feb 2011 21:52:11 -0000 --3lcZGd9BuhuYXNfi Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Le mer 2 f=E9v 11 =E0 21:54:34 +0100, Rainer Hurling =E9crivait=A0: > Dear list, Hello, > since there is no maintainer for net/mpich2 I am writing directly to the= =20 > list. Hope this is ok. >=20 > I need MPICH2 for math/R (package Rmpi) and others (e.g. upcoming new=20 > package math/sprng, PR 154249). Software using MPICH2 complains about=20 > 'undefined symbols' like 'MPL_trfree'. >=20 > Looking into libmpich.so.2.0 (after building net/mpich2), it shows many= =20 > undefined symbols (symbol names are stripped in installed version?): >=20 > nm work/mpich2-1.3/lib/libmpich.so.2.0 | grep " U " > U MPL_TrSetMaxMem > U MPL_env2bool > U MPL_env2int > U MPL_env2range > U MPL_env2str > U MPL_trDebugLevel > U MPL_trcalloc > U MPL_trdump > U MPL_trfree > U MPL_trid > ... These symbols belong to libmpl: nm -A /usr/local/lib/libmpl.a | grep MPL_ So you have to link with -lmpl (and maybe with -lopa too). Another solution could be to link with mpicc and friends instead of gcc/g++/gfortran, as these wrappers set the correct flags and link to the correct libraries as required. Yet another solution could be to configure mpich2 with --enable-lib-depend, but this is experimental... BTW, a new version has been released, and I have plan to upgrade it after the ports thaw. Regards, --=20 Th. Thomas. --3lcZGd9BuhuYXNfi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEARECAAYFAk1JzKMACgkQc95pjMcUBaIP7QCgiKCR/+XFnnXCuRR6bR1P0rfu OUgAnRFeZ6WNgllaMkDLwAvslskrM5KF =CZFh -----END PGP SIGNATURE----- --3lcZGd9BuhuYXNfi--