[Users] linking error Wave Toy Demo

Tijmen tpcollig at gmail.com
Thu Jan 4 08:52:28 CST 2007


Hello,

I am trying to compile the MPI Wave Toy Demo from
http://www.cactuscode.org/WaveToyDemo/ on a cluster of workstations
that has MPI/LAM installed. Everything compiles perfectly, but when
its linked, I get the following error:

Creating cactus_WaveDemo in /home/nw/tpcollig/Work/Cactus/exe from
CactusBase/Boundary CactusBase/CartGrid3D CactusBase/CoordBase
CactusConnect/HTTPD CactusConnect/HTTPDExtra CactusWave/IDScalarWaveC
CactusBase/IOASCII CactusBase/IOBasic CactusIO/IOJpeg
CactusBase/IOUtil CactusPUGHIO/IsoSurfacer CactusBase/LocalReduce
CactusPUGH/PUGH CactusPUGH/PUGHReduce CactusPUGH/PUGHSlab
CactusConnect/Socket CactusBase/SymBase CactusBase/Time
CactusWave/WaveBinarySource CactusWave/WaveToyC CactusExternal/jpeg6b
/opt/lam-mpibase/lib/liblam.a(ltdl.o)(.text+0x3b5): In function `sys_dl_open':
: undefined reference to `dlopen'
/opt/lam-mpibase/lib/liblam.a(ltdl.o)(.text+0x3d5): In function `sys_dl_open':
: undefined reference to `dlerror'

<snipped some more similar errors>

collect2: ld returned 1 exit status

My ~/.cactus/config file contains:

MPI = LAM
LAM_DIR = /opt/lam-mpibase

During configuration, I get the messages

Configuring with MPI
  LAM selected
  Using "/opt/lam-mpibase/include" as LAM include path
  Using "/opt/lam-mpibase/lib" as LAM library path

which are the correct paths.

I use gcc version 3.3.6. A google search suggests that is has
something to do with libdl, but I have no idea why this does not work.
If I don't use MPI the applications compiles/links/runs perfectly.
Also, I can compile and run normal MPI programs without a hitch.

Any ideas anyone?

Kind regards,


More information about the Users mailing list