Re: mpicc and mpif77 under LAM
Hmm, I've never had trouble like this myself, but maybe I've just been lucky. PelicanHPC gets its packages from Debian stable (Lenny). LAM/MPI, gfortran, etc. are all pre-compiled binaries. The details of how they were compiled in Debian, I don't know, and I've never had to worry about that. This is the first report of this type of problem.
You could try to compile a statically-linked version of your app on another machine where things are working properly, and just put the binary into /home/user on Pelican to run it on a cluster.
I'm a little skeptical that the Debian packages have some problem that prevents successful compilation. I believe that it should be a matter of getting the Makefile set up correctly. Sorry, but I don't have any other ideas.