<div dir="ltr"><div>Ciao Marco,</div><div>the three functions open_socket, readbuffer and writebuffer, which are used in ipi_driver.F, are declared in the file socket.c. For some reason you are non compiling/linking this file, that's why you are missing symbols. Could you check in the output of the compilation what it does with socket.c?</div><div>Another solution I can suggest you is to use:</div><div><br></div><div>D__NO_IPI_DRIVER</div><div><br></div><div>in your flags to avoid the ipi_driver compilation...</div><div><br></div><div>Cheers,</div><div><br></div><div>Alfio</div><div><br></div><br><br>Il giorno mercoledì 3 giugno 2015 17:02:24 UTC+2, Marco Caccin ha scritto:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr">Dear community,<div><br></div><div>I am trying to re-install cp2k on an iMac for preliminary toy models studies, but there seem to be some troubles in doing so since the last OS upgrade. </div><div><br></div><div>- First off, a small bug for which the fix is easy:</div><div>  in the Makefiles for Darwin architectures, change 'vecLib' with 'Accelerate' (The old library is no more present and has been included into Accelerate)</div><div><br></div><div>- Next, the standing issue: by the end of the compilation, the following error is raised:</div><div><div><br></div><div>gfortran -fopenmp -ffast-math -funroll-loops -ftree-vectorize -ffree-form -O2  -D__COMPILE_ARCH="\"Darwin-<wbr>IntelMacintosh-gfortran\"" -D__COMPILE_DATE="\"Wed  3 Jun 2015 15:47:31 BST\"" -D__COMPILE_HOST="\"<a href="http://phpc173.ph.kcl.ac.uk" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fphpc173.ph.kcl.ac.uk\46sa\75D\46sntz\0751\46usg\75AFQjCNEUbk2VzxUBd3TT0mRAaq4q6Z1NDQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fphpc173.ph.kcl.ac.uk\46sa\75D\46sntz\0751\46usg\75AFQjCNEUbk2VzxUBd3TT0mRAaq4q6Z1NDQ';return true;">phpc173.<wbr>ph.kcl.ac.uk</a>\"" -D__COMPILE_REVISION="\"-n svn: 15375\"" -D__DATA_DIR="\"$CP2K/cp2k/<wbr>data\""  -L/$CP2K/cp2k/lib/Darwin-<wbr>IntelMacintosh-gfortran/ssmp -o /$CP2K/cp2k/exe/Darwin-<wbr>IntelMacintosh-gfortran/cp2k.<wbr>ssmp cp2k.o  -lcp2kstart -lcp2kmc -lcp2kswarm -lcp2kmotion -lcp2kthermostat -lcp2ktmc -lcp2kmain -lcp2ksubsys -lcp2kxc -lcp2kao -lcp2kinput -lcp2kpw -lcp2kfft -lcp2kma -lcp2kmachine -lcp2kdbcsrwrap -ldbcsr -ldbcsrarnoldi -ldbcsrvec -ldbcsrmm -ldbcsrops -ldbcsrbblock -ldbcsrbdist -ldbcsrbase -ldbcsrdata -ldbcsrerr -lmicsmm -lclsmm -lcp2kacc -lcp2kaccmic -lcp2ksrc -lcp2kaccopencl -lcp2kfm -lcp2kcommon -lcp2kmpiwrap -lcp2kgrid -lcp2kbase -Wl,-framework -Wl,Accelerate -Wl,-Y -Wl,10 -lgcc_eh<br></div><div>Undefined symbols for architecture x86_64:</div><div>  "_open_socket", referenced from:</div><div>      ___ipi_driver_MOD_run_driver in libcp2kmain.a(ipi_driver.o)</div><div>  "_readbuffer", referenced from:</div><div>      ___ipi_driver_MOD_run_driver in libcp2kmain.a(ipi_driver.o)</div><div>  "_writebuffer", referenced from:</div><div>      ___ipi_driver_MOD_writebuffer_<wbr>s.constprop.1 in libcp2kmain.a(ipi_driver.o)</div><div>      ___ipi_driver_MOD_run_driver in libcp2kmain.a(ipi_driver.o)</div><div>ld: symbol(s) not found for architecture x86_64</div><div>collect2: error: ld returned 1 exit status</div></div><div><br></div><div>Did anybody incur in the same problem and hopefully fixed it?</div><div><br></div><div><br></div><div>Best,</div><div><br></div><div>Marco</div></div></blockquote></div>