[Pw_forum] Re: Linux ia32 build error - MAIL_ not defined (Paolo Giannozzi)

Vivian McPhail haskell.vivian.mcphail at gmail.com
Fri Apr 13 06:53:53 CEST 2007


>
> From: Paolo Giannozzi <giannozz at nest.sns.it>
> Subject: Re: [Pw_forum] Linux ia32 build error - MAIL_ not defined
> Date: Tue, 10 Apr 2007 22:11:17 +0200
> To: pw_forum at pwscf.org
> Reply-To: pw_forum at pwscf.org
>
> On Apr 9, 2007, at 16:27 , Alexander McPhail wrote:
>
> > (.text+0x29): undefined reference to `MAIN_'
> > [...]
> > Is this a problem with "dist.x" or with my fortran95 compiler?
>
> the latter. Try to change the program name from "dist" to
> something else (but it shouldn't be a reserved word) or to
> add "end program dist" at the end.
>
> Paolo
> ---
> Paolo Giannozzi, Democritos and University of Udine, Italy


I tried (1) changing the program name (to foobar), (2) adding "program dist"
after the last "end", and (3) adding "end program dist" after the last end.

(1) and (2) result in the same error message as above.
(3) produces:

dist.f: In program `MAIN__':
dist.f:336:
    end program dist
         1           2
Program name at (2) superfluous, no PROGRAM statement specified at (1)
make[1]: *** [dist.o] Error 1
make[1]: Leaving directory `/usr/local/src/espresso-3.2/pwtools'
make: *** [tools] Error 2


Note that there are two underscores in MAIN__ of the error message.  whereas
in the other error message the linker was looking for a definition of MAIN_
with one underscore.  Is there a compiler flag which governs the number of
underscores?

Thanks,

Vivian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quantum-espresso.org/pipermail/users/attachments/20070413/ba75e771/attachment.html>


More information about the users mailing list