[Pkg-scicomp-devel] Bug#487969: libmesh0.6.2-dev: building the examples as described in README.Debian fails

Daniel Schwen bugs at schwen.de
Wed Jun 25 13:31:25 UTC 2008


Package: libmesh0.6.2-dev
Version: 0.6.2.dfsg-1
Severity: important

building the examples as described in README.Debian fails with
a linking error

> g++ -I/usr/include/libmesh -I/usr/include/mpi -I/usr/include/petsc -c -o
ex2.o ex2.C

produces the object file but

> g++ -o ex2 ex2.o -lmesh -lscotchmetis -lscotch -lscotcherr
returns:

ex2.o: In function `main':
ex2.C:(.text+0x97): undefined reference to `libMesh::init(int&, char**&,
int)'
collect2: ld returned 1 exit status

> g++ -v
gcc version 4.3.1 (Debian 4.3.1-2)

README.Debian of libmesh0.6.2-dev says "It should just work (if not,
please file a bug report using the reportbug)."
Well, here we go :-)

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-2-686-bigmem (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libmesh0.6.2-dev depends on:
ii  libmesh0.6.2                0.6.2.dfsg-1 libMesh - A C++ Finite Element Lib
ii  libpetsc2.3.3-dev           2.3.3-12     Static libraries, shared links, he
ii  libscotchmetis-dev          5.0.1.dfsg-1 programs and libraries for graph, 

libmesh0.6.2-dev recommends no packages.

-- no debconf information





More information about the Pkg-scicomp-devel mailing list