I have been trying, unsuccessfully, to compile gromacs 4.0.7 with mopac7.<br>I have followed the following steps, which were adapted from dozens of sites with instructions on how to do this. <br>I have downloaded mopac7 from <a href="http://sourceforge.net/projects/mopac7/">http://sourceforge.net/projects/mopac7/</a>. Inside the fortran folder I have deleted deriv.f and moldat.f. Most of the instructions name a third file, mopac.f which is not there (at least from this tar.gz file I have downloaded). Instead there are two other files that don t seem to make a difference whether I compile them with fortran or not (I say that because I have tried creating libmopac.a with and without these files and the outcome was the same). <br>
Next I compiled all .f files with the command <br>f77 -O2 -c *.f<br>then created my libmopac.a with<br>ar rcv libmopac.a *.o<br>ranlib libmopac.a<br>Lots of warnings come on the screen when I type the f77 command line, such as:<br>
<br>&quot;Warning on line 409: inconsistent calling sequences for me08b,<br>    arg 1: here complex variable, previously real variable.<br>    arg 2: here complex variable, previously real variable.<br>    arg 3: here complex variable, previously real variable.&quot;<br>
<br>Well, after that I copy my libmopac.a to my recently created gromacs-4.0.7 folder<br>And then try compiling gromacs with<br>./configure CPPFLAGS=-DUSE_MOPAC LIBS=-lmopac LDFLAGS=-L$PWD --with-qmmm-mopac<br>No problems there, but then when I type<br>
make<br>Oh ho, there comes the problem<br>Lines and lines like this come out:<br>&quot;fort77-7183-148.c:(.text+0x4e): undefined reference to `i_indx&#39;<br>fort77-7183-148.c:(.text+0x66): undefined reference to `s_cmp&#39;<br>
fort77-7183-148.c:(.text+0x78): undefined reference to `s_wsfe&#39;<br>fort77-7183-148.c:(.text+0xa2): undefined reference to `do_fio&#39;<br>fort77-7183-148.c:(.text+0xa7): undefined reference to `e_wsfe&#39;<br>fort77-7183-148.c:(.text+0xf6): undefined reference to `s_wsfe&#39;<br>
fort77-7183-148.c:(.text+0x105): undefined reference to `do_fio&#39;<br>fort77-7183-148.c:(.text+0x119): undefined reference to `do_fio&#39;<br>fort77-7183-148.c:(.text+0x143): undefined reference to `do_fio&#39;<br>fort77-7183-148.c:(.text+0x157): undefined reference to `do_fio&#39;<br>
fort77-7183-148.c:(.text+0x17e): undefined reference to `do_fio&#39;<br>fort77-7183-148.c:(.text+0x183): undefined reference to `e_wsfe&#39; &quot;<br><br>And the make process ends up with error.<br><br>&quot;make[3]: ** [grompp] Error 1<br>
make[3]: Leaving directory `/home/stef/Download/gromacs-4.0.7/src/kernel&#39;<br>make[2]: ** [all-recursive] Error 1<br>make[2]: Leaving directory `/home/stef/Download/gromacs-4.0.7/src&#39;<br>make[1]: ** [all] Error 2<br>
make[1]: Leaving directory `/home/stef/Download/gromacs-4.0.7/src&#39;<br>make: ** [all-recursive] Error 1 &quot;<br><br>Has anyone successfully compiled gromacs 4.0.5 or 4.0.7 in 64bits architecture with mopac?<br>Has anyone had this kind of problem before?<br>
Has anyone solved it?<br>Thank you<br><br><br>