This is the mail archive of the
libffi-discuss@sourceware.cygnus.com
mailing list for the libffi project.
Re: Error building libffi
- To: David Scott Urban <urban at ast dot lmco dot com>
- Subject: Re: Error building libffi
- From: Joerg Brunsmann <joerg dot brunsmann at FernUni-Hagen dot de>
- Date: Thu, 23 Dec 1999 19:04:30 +0100
- CC: libffi-discuss at sourceware dot cygnus dot com, java-discuss at sourceware dot cygnus dot com
- Organization: Fernuniversitaet Hagen - Software Engineering (Praktische Informatik III)
- References: <38625F6B.8F475AB2@ast.lmco.com>
David Scott Urban wrote:
> ../configure --prefix=/home/urban/local/sun26 --enable-threads=posix
> --enable-java-gc=boehm --with-as=/home/urban/local/sun26/bin/gas
> --with-ld=/home/uban/local/sun26/bin/gld
>
> Iam am getting the following error when compiling libffi:
>
> /bin/sh ./libtool --mode=link gcc -fexceptions -g -O2 -o libffi.la -rpath
> /home/urban/local/sun26/lib -release 2.00-beta debug.lo prep_cif.lo types.lo
> raw_api.lo ffi.lo v8.lo
> rm -fr .libs/libffi.la .libs/libffi.* .libs/libffi-2.00-beta.*
> gcc -shared debug.lo prep_cif.lo types.lo raw_api.lo ffi.lo v8.lo -lc
> -Wl,-soname -Wl,libffi-2.00-beta.so -o .libs/libffi-2.00-beta.so
> ld: warning: option -o appears more than once, first setting taken
> ld: fatal: file libffi-2.00-beta.so: cannot open file: No such file or directory
I don't know if compiling libffi is currently broken on Solaris, but given
the above error message it seems to me, that the solaris native linker is
complaining there. The question is why the solaris linker is used and not
the gnu linker.
1. Make sure that /home/uban/local/sun26/bin is the first element in your path.
2. Does
$ /home/uban/local/sun26/bin/gld -v
say something like
GNU ld version 2.9.1 (with BFD 2.9.1)
Good luck,
Jörg