On Wed, 29 Jul 2009, Ted Kord wrote:

> I realise that this is probably trivial to most of you

Not trivial, just irrelevant - the people who are most likely to know
enough about linker problems to help you are also the people who are
least likely to use or know about pre-built packages.  Ondrej Certik
built that package and used to frequent the libmesh lists, but I guess
he's not following them at the moment.

> My systems Ubuntu 9.04.

Luckily for you, so is mine, as of very recently.  Thank the good
people at Red Hat for Fedora 11, aka "Leonidas", aka "Fedora 9 was not
just a horrible fluke".

> Installed libmesh, petsc, etc from the repository.
> Tried to compile the examples and this is what I get:
>
> /usr/lib/gcc/i486-linux-gnu/4.3.3/../../../../lib/libmesh.so: undefined
> reference to `MPI::Win::Set_errhandler(MPI::Errhandler const&)'
> /usr/lib/gcc/i486-linux-gnu/4.3.3/../../../../lib/libmesh.so: undefined
> reference to `MPI::Comm::Set_errhandler(MPI::Errhandler const&)'
> collect2: ld returned 1 exit status

I just tried this out, and I get the same.  It's a Debian libmesh
package; my guess is it was built with an openmpi library that's
slightly incompatible with whatUbuntu uses.

> I've tried compiling libmesh from source, I've also installed the latest
> openmpi build (1.3.3) but I still get the same result.

I get some scary warnings with libmesh 0.6.3 from source (presuming
that's what you want to use - if you've got to compile yourself I'd
just jump straight to the SVN head):

[mycroft:26521] mca: base: component_find: unable to open 
/usr/lib/openmpi/lib/openmpi/mca_osc_pt2pt: 
/usr/lib/openmpi/lib/openmpi/mca_osc_pt2pt.so: undefined symbol: ompi_mpi_abort 
(ignored)
[mycroft:26521] mca: base: component_find: unable to open 
/usr/lib/openmpi/lib/openmpi/mca_osc_rdma: 
/usr/lib/openmpi/lib/openmpi/mca_osc_rdma.so: undefined symbol: ompi_mpi_abort 
(ignored)

But after one pair of those per execution, the libMesh examples finish
running just fine.  I'm using 64-bit Ubuntu with openmpi 1.3-2ubuntu1
and libpetsc2.3.3-15ubuntu.
---
Roy

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to