Unresolved symbols

The molpro configure scripts should add all the necessary libraries in order to link correctly. If a library is missed then you will receive an error message for unresolved symbols. The general form is:
somefile.f:(.text+0xab): undefined reference to `some_symbol_'

You can add them in the LIBS="..." entry in CONFIG or alternatively at the start of the LAPACKLIB_*="..." entry. Common unresolved symbols are:
  • s_copy
    You need to link in the gnu compability library. On SuSE add
    -lg2c
    and on RedHat add
    -L /usr/lib/gcc-lib/i386-redhat-linux/3.2.2 -lg2c
    where the directory is given by
    gcc -print-libgcc-file-name
    (without the libgcc.a on the end)
  • __kmpc_*
    With the intel compiler you can add
    -openmp
    to the LINKFC="..." line in CONFIG. If you are using the mkl libraries then as an alternate solution you can add (in all places in CONFIG)
    -lguide
    just before
    -lmkl_lapack
  • __pthread*
    requires
    -lpthread

Other linking errors

  • ld: cannot find -lglobal
    means that the LIBDIR_*="..." entries in CONFIG do not point to the location of a set of Global Arrays libraries.