undefined reference to `MPI::Win::Set_errhandler

Bug #386539 reported by Alfonso Cepeda
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libmesh (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: libmesh-dev

Examples in /usr/share/doc/libmesh-dev/examples/ do not compile:

$ make
g++ ex1.C -I/usr/include/mpi -I/usr/include/petsc -I/usr/include/libmesh -c -o ex1.o
g++ ex1.o -lmesh -o ex1
/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 devolvió el estado de salida 1
make: *** [ex1] Error 1

There was a previous error in libopenmpi package but seems to be resolved in this version.

Further information:
libmesh-dev: 0.6.3.dfsg~rc1-1
libmesh0.6.3: 0.6.3.dfsg~rc1-1
libopenmpi1: 1.3-2ubuntu1

$ lsb_release -rd
Description: Ubuntu 9.04
Release: 9.04

Revision history for this message
Ted Kord (teddy-kord) wrote :

This bug still affects me. My system is Ubuntu 9.04
libmesh-dev: 0.6.3.dfsg~rc1-1
libmesh0.6.3: 0.6.3.dfsg~rc1-1
libopenmpi1: 1.3-2ubuntu1

I keep getting:
/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&)'

Is there anyway to resolve this?

Ted

Revision history for this message
Alfonso Cepeda (cepeda) wrote :

It seems that it is a problem with a package version. You can override this by rebuilding libmesh in an updated ubuntu 9.04

just:

$ apt-get source libmesh-dev
$ cd libmesh-0.6.3.dfsg~rc1/
$ dpkg-buildpackage -rfakeroot -uc -b
$ cd ..
$ sudo dpkg -i libmesh0.6.3_0.6.3.dfsg~rc1-1_i386.deb
$ sudo dpkg -i libmesh-dev_0.6.3.dfsg~rc1-1_all.deb
$ rm -r libmesh-0.6.3.dfsg~rc1 libmesh0.6.3_0.6.3.dfsg~rc1-1_i386.deb libmesh_0.6.3.dfsg~rc1-1.diff.gz \
> libmesh_0.6.3.dfsg~rc1-1.dsc libmesh_0.6.3.dfsg~rc1-1_i386.changes libmesh_0.6.3.dfsg~rc1.orig.tar.gz \
> libmesh-dev_0.6.3.dfsg~rc1-1_all.deb

And now you can compile without any error:

$ cp -r /usr/share/doc/libmesh-dev/examples/ex1 .
$ cd ex1
$ make
g++ ex1.C -I/usr/include/mpi -I/usr/include/petsc -I/usr/include/libmesh -c -o ex1.o
g++ ex1.o -lmesh -o ex1

I think this error will be automatically resolved in karmic, but (at least in a debootstrap now) it cannot be installed. I'll wait to karmic to close this bug:

(karmic)root@mycomputer:/# apt-get install libmesh-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  libmesh-dev: Depends: libmesh0.6.3 (>= 0.6.3.dfsg~rc1-1) but it is not going to be installed
               Depends: libpetsc2.3.3-dev (>= 2.3.3-3) but it is not installable
E: Broken packages

Revision history for this message
Alfonso Cepeda (cepeda) wrote :

This bug is fixed in Karmic with package 0.6.3.dfsg~rc1-1ubuntu1

I close the bug (declare invalid) because it doesn't need to be fixed.

Changed in libmesh (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.