On Wed, Feb 9, 2011 at 11:36 PM, Oliver Kullmann <O.Kullmann@swansea.ac.uk> wrote:
./ecl_min: error while loading shared libraries: libffi.so.4: cannot open shared object file: No such file or directory

The library is not in a standard location and it is shared, not static, which means that the OS has to find it. Do one of the following

1) Export LD_LIBRARY_PATH=location-to-the-library before building
2) Add some --rpath flags to LDFLAGS.

1) is just a temporary hack. 2) will hardcode the location of the library.
The libffi-built created libffi.so.5 --- why does it want an earlier version (there is no libffi-version
otherwise on that machine)?

I do not know. It seems like either a problem with your linker or that there is indeed another copy with that version installed.


Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)