Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Feb 2011 22:29:07 +0100
From:      Thierry Thomas <thierry@FreeBSD.org>
To:        freebsd-ports@freebsd.org
Cc:        Rainer Hurling <rhurlin@gwdg.de>
Subject:   Re: net/mpich2: libraries with many 'undefined symbols'
Message-ID:  <20110202212907.GC29365@graf.pompo.net>
In-Reply-To: <4D49C48A.7080604@gwdg.de>
References:  <4D49C48A.7080604@gwdg.de>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <rhurlin@gwdg.de>
 =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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110202212907.GC29365>