[Ecls-list] is there --with-libffi-prefix ?

Matthew Mondor mm_lists at pulsar-zone.net
Wed Feb 9 23:41:42 UTC 2011


On Wed, 9 Feb 2011 22:36:00 +0000
Oliver Kullmann <O.Kullmann at swansea.ac.uk> wrote:

> Doing so I get the error:
> 
> if [ -f CROSS-COMPILER ]; then \
>                 ./CROSS-COMPILER compile; \
>         else \
>                 ECLDIR=`pwd`/ ./ecl_min compile; \
>         fi
> ./ecl_min: error while loading shared libraries: libffi.so.4: cannot open shared object file: No such file or directory
> 
> The libffi-built created libffi.so.5 --- why does it want an earlier version (there is no libffi-version
> otherwise on that machine)?
> 
> Oliver
> 
> On Wed, Feb 09, 2011 at 09:16:42PM +0100, Juan Jose Garcia-Ripoll wrote:
> > On Wed, Feb 9, 2011 at 8:39 PM, Oliver Kullmann <O.Kullmann at swansea.ac.uk>wrote:
> > 
> > > I need to install Ecl with a locally installed libffi: With gmp
> > > this works via --with-gmp-prefix, however such a build-option seems
> > > not to exist for libffi? How then can we use a local libffi?
> > >
> > 
> > --with-gmp-prefix is just a convenience, but the canonical way to add C/C++
> > libraries is via autoconf's variables
> > 
> > CPPFLAGS=-I/path/to/location/of/headers
> > LDFLAGS=-L/path/to/location/of/libraries
> > 
> > you can use them as arguments to "configure". Note however that if the path
> > of GMP and of libffi is the same, as with usual *nix installations, then
> > --with-gmp-prefix=... will suffice

If you also enable RPATH using the configure script's option
--enable-rpath, a recent enough ECL will link ecl_min while providing
an RPATH, and it should work, this was fixed quite recently, after the
latest release.
-- 
Matt




More information about the ecl-devel mailing list