From: "Logic" <logic@ionstorm.com>
Newsgroups: comp.parallel.mpi
Subject: Re: mpich, gcc-2.7.2.3, linux-2.0.35 uncompilable...
Date: Sun, 11 Oct 1998 18:06:00 -0500
Organization: OnRamp, http://www.onramp.net/
Message-Id: <6vrdkn$bb0$1@news.onramp.net>
References: <361DF876.788A3B31@rrzn-user.uni-hannover.de>


Looks like it's not linking your MPI libs. Being an MPI moron myself, I
can't be more helpfull, but try looking for -L or -l options in the make
file. Also see if your newly compiled MPI libs are in /lib, /usr/lib,
/usr/local/lib or some other directory that is listed in /etc/ld.conf then
run ldconfig just to be sure.

I hope that helps, Good luck! :)

Frank Mahler wrote in message
<361DF876.788A3B31@rrzn-user.uni-hannover.de>...
>Hi *.mpi :-)
>
>I desperately tried to compile mpich-1.1.1 with gcc-2.7.2.3 on my
>linux-2.0.35 box. At home I successfully completed using gcc-2.7.0 and
>linux-2.1.115, but at work all went wrong:
>
>I did ./configure -f90nag ; make and all gets well, until it comes to
>"make linktest":
>
>Testing that MPI applications can be linked...
>make --no-print-directory linktest
>( cd examples/test/pt2pt; make --no-print-directory linktest )
>/home/mahler/tmp/mpich/lib/LINUX/ch_p4/mpicc -DHAVE_PROTOTYPES
>-DHAVE_STDLIB_H=1 -DUSE_STDARG   -c overtake.c
>/home/mahler/tmp/mpich/lib/LINUX/ch_p4/mpicc -DHAVE_PROTOTYPES
>-DHAVE_STDLIB_H=1 -DUSE_STDARG   -c test.c
>/home/mahler/tmp/mpich/lib/LINUX/ch_p4/mpicc  -o overtake overtake.o
>test.o
>overtake.o: In function `main':
>overtake.o(.text+0x6bc): undefined reference to `MPI_Init'
>overtake.o(.text+0x775): undefined reference to `MPI_Abort'
>overtake.o(.text+0xad7): undefined reference to `MPI_Finalize'
>overtake.o(.text+0xb21): undefined reference to `MPI_Finalize'
>test.o: In function `Test_Init':
>test.o(.text+0x61): undefined reference to `MPI_Errhandler_create'
>test.o: In function `Test_Errors_warn':
>test.o(.text+0x3c0): undefined reference to `MPI_Error_string'
>/home/mahler/tmp/mpich/lib/LINUX/ch_p4/libmpi.a(isend.o): In function
>`MPI_Isend':
>isend.o(.text+0x5c): undefined reference to `MPIR_errargcnt'
>isend.o(.text+0x66): undefined reference to `MPIR_errargs'
>isend.o(.text+0x6c): undefined reference to `MPIR_errargcnt'
>isend.o(.text+0xed): undefined reference to `MPIR_errargcnt'
>[...]
>
>What went wrong?
>
>TIA,
>
>                    Frank

