Use the pgf90 compiler (via the ftn wrapper) to link and provide the -Mnomain option.
If you are receiving the “multiple definition of main” error, you probably have a C program that calls Fortran, and you are linking with the Portland Group Fortran compiler. The Fortran compiler has its own default “main,” and now there is a second main from the C source. You may need to add the -Mnomain flag during link time...

