<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>After fiddling with c_defs.h, I was able to get it to compile without errors.</div><div><br></div><div>For those interested, here it is:</div><div><br></div><div><div>/* include/c_defs.h.  Generated by configure.  */</div><div>/*</div><div>Copyright (C) 2006 Quantum-ESPRESSO group</div><div>This file is distributed under the terms of the</div><div>GNU General Public License. See the file `License'</div><div>in the root directory of the present distribution,</div><div>or <a href="http://www.gnu.org/copyleft/gpl.txt">http://www.gnu.org/copyleft/gpl.txt</a> .</div><div>*/</div><div><br></div><div>/* File c_defs.h.in is used by configure to generate c_defs.h</div><div>   Variables that configure defines should be #undef-ined in</div><div>   include/c_defs.h.in !!! */</div><div><br></div><div>/* fortran-to-C naming convention, for functions with and without</div><div>   underscores in the name (some compilers treat them differently) */</div><div><br></div><div>#define F77_FUNC(name,NAME) name</div><div>#define F77_FUNC_(name,NAME) name</div><div><br></div><div>/* do we have the mallinfo structure (see clib/memstat.c) ? */</div><div><br></div><div>#define HAVE_MALLINFO 1</div><div><br></div></div><div><br></div><div><br></div><div><br></div><br><div><div>On Dec 20, 2008, at 2:33 PM, Paolo Giannozzi wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On Saturday 20 December 2008 15:51, David Farrell wrote:<br><br><blockquote type="cite">berry_phase.f90:(.text+0xc4): undefined reference to `ln_ind'<br></blockquote><blockquote type="cite">berry_phase.f90:(.text+0x1334): undefined reference to `ln_alloc'<br></blockquote><blockquote type="cite">berry_phase.f90:(.text+0x1380): undefined reference to `ln_set'<br></blockquote><blockquote type="cite">berry_phase.f90:(.text+0x139c): undefined reference to `ln_activate'<br></blockquote><blockquote type="cite">berry_phase.f90:(.text+0x1400): undefined reference to `ln_dealloc'<br></blockquote><blockquote type="cite">check_stop.f90:(.text+0x120): undefined reference to `cclock'<br></blockquote><blockquote type="cite">electrons.f90:(.text+0x1f0): undefined reference to `memstat'<br></blockquote><blockquote type="cite">(.text+0xa508): undefined reference to `c_mkdir'<br></blockquote><blockquote type="cite">orthoatwfc.f90:(.text+0x80): undefined reference to `scnds'<br></blockquote><br><blockquote type="cite">Any ideas?<br></blockquote><br>hint:  what do they have in common?  they are all C functions. <br><br>Modify include/c_defs.h as needed: "configure" recognizes the <br>correct one, unfortunately for the front-end, not necessarily for<br>the BG itself<br><br>Paolo<br>-- <br>Paolo Giannozzi, Democritos and Udine University <br>_______________________________________________<br>Pw_forum mailing list<br><a href="mailto:Pw_forum@pwscf.org">Pw_forum@pwscf.org</a><br>http://www.democritos.it/mailman/listinfo/pw_forum<br></div></blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; font-size: 12px; ">David E. Farrell</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px; ">Post-Doctoral Fellow</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px; ">Department of Materials Science and Engineering</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; font-size: 12px; ">Northwestern University</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; font-size: 12px; ">email: <a href="mailto:d-farrell2@northwestern.edu">d-farrell2@northwestern.edu</a></font></div></div></div></span> </div><br></body></html>