[lammps-users] Compile Errors on a mac

Hello everyone,

I'm new to LAMMPS and am trying, unsuccessfully, to build it on an intel macintosh OS X 10.4.11. I am using the Makefile.fink makefile and the 22-Jan -08 build of LAMMPS.

Here's the error:

.o verlet.o write_restart.o -lfftw -lmpi -o ../lmp_fink
/usr/bin/ld: Undefined symbols:
MPI_Bcast(void*, int, int, int, int)
MPI_Allreduce(void*, void*, int, int, int, int)
MPI_Scan(void*, void*, int, int, int, int)
MPI_Waitall(int, int*, MPI_Status*)
MPI_Cart_get(int, int, int*, int*, int*)
MPI_Sendrecv(void*, int, int, int, int, void*, int, int, int, int, int, MPI_Status*)
MPI_Cart_rank(int, int*, int*)
MPI_Comm_rank(int, int*)
MPI_Comm_size(int, int*)
MPI_Cart_shift(int, int, int, int*, int*)
MPI_Cart_create(int, int, int*, int*, int, int*)
MPI_Reduce_scatter(void*, void*, int*, int, int, int)
MPI_Recv(void*, int, int, int, int, int, MPI_Status*)
MPI_Send(void*, int, int, int, int, int)
MPI_Wait(int*, MPI_Status*)
MPI_Irecv(void*, int, int, int, int, int, int*)
MPI_Get_count(MPI_Status*, int, int*)
MPI_Rsend(void*, int, int, int, int, int)
MPI_Abort(int, int)
MPI_Comm_split(int, int, int, int*)
MPI_Init(int*, char***)
MPI_Waitany(int, int*, int*, MPI_Status*)
MPI_Comm_dup(int, int*)
MPI_Allgather(void*, int, int, void*, int, int, int)
collect2: ld returned 1 exit status
make[1]: *** [../lmp_fink] Error 1
make: *** [fink] Error 2

I searched the archive and found someone with a similar error. The advice given in that case was to make the STUBS library. I did that and receive same errors when making LAMMPS.
libmpi.a is created when I compile STUBS, but I do receive this warning:

g++ -O -c mpi.cpp
mpi.cpp:35: warning: non-local variable '<anonymous struct> double_int' uses anonymous type
ar rs libmpi.a mpi.o
ar: creating archive libmpi.a

Thanks for any advice

All of these MPI functions are in libmpi.a. So if you're
including -L../STUBS in your link line, that lib should
be visible. I guess I would try building some simpler
2-line MPI program with that lib and see if you can
link it.