[plt-scheme] Problem building and running on Solaris 10

From: Mike VanHorn (michael.vanhorn at wright.edu)
Date: Wed Mar 17 14:50:42 EDT 2010

On 3/17/10 1:45 PM, "Matthew Flatt" <mflatt at cs.utah.edu> wrote:

> Johan Coppieters recently supplied a patch to make the build work for
> Solaris 10 (thanks, Johan!), and we have applied the patch for our next
> version. Meanwhile, I'm enclosing a variant of Johan's patch; the patch
> should be applied in "plt/src/foreign", and it should work on the
> v4.2.4 sources so that you don't need `--disable-foreign'. Please let me
> know if I got something wrong and it doesn't work.

Well, I applied the patch to a fresh copy of the source, and here's what I

 "../configure --prefix=/usr/local/plt-4.2.4" seemed to go okay, but I noted
the following errors:

config.status: WARNING:  ../../../../foreign/gcc/libffi/include/Makefile.in
seems to ignore the --datarootdir setting
config.status: creating include/ffi.h
config.status: creating Makefile
config.status: WARNING:  ../../../../foreign/gcc/libffi/Makefile.in seems to
ignore the --datarootdir setting
config.status: creating fficonfig.h
config.status: linking ../../../../foreign/gcc/libffi/src/x86/ffitarget.h to

These may have actually been there before, and I just didn't notice.

>From there, I did a make, which aborted with the following:

/bin/bash ./libtool --tag=CC --mode=link gcc -Wall -g -fexceptions -g -O2
-o libffi.la -rpath /usr/local/plt-4.2.4/lib -version-info `grep -v '^#'
../../../../foreign/gcc/libffi/libtool-version` src/debug.lo src/prep_cif.lo
src/types.lo src/raw_api.lo src/java_raw_api.lo src/closures.lo
src/x86/ffi64.lo src/x86/unix64.lo src/x86/ffi.lo src/x86/sysv.lo
libtool: link: gcc -shared -Wl,-z -Wl,text -Wl,-h -Wl,libffi.so.4 -o
.libs/libffi.so.4.0.1  src/.libs/debug.o src/.libs/prep_cif.o
src/.libs/types.o src/.libs/raw_api.o src/.libs/java_raw_api.o
src/.libs/closures.o src/x86/.libs/ffi64.o src/x86/.libs/unix64.o
src/x86/.libs/ffi.o src/x86/.libs/sysv.o   -lc
Text relocation remains                         referenced
    against symbol                  offset      in file
ffi_closure_SYSV_inner              0xd2        src/x86/.libs/sysv.o
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
make[8]: *** [libffi.la] Error 1
make[8]: Leaving directory
make[7]: *** [gcc/libffi/libffi.la] Error 2
make[7]: Leaving directory `/usr/local/src/plt-4.2.4/src/build/foreign'
make[6]: *** [all] Error 2
make[6]: Leaving directory `/usr/local/src/plt-4.2.4/src/build/foreign'
make[5]: *** [foreign-stuff] Error 2
make[5]: Leaving directory `/usr/local/src/plt-4.2.4/src/build/mzscheme'
make[4]: *** [common] Error 2
make[4]: Leaving directory `/usr/local/src/plt-4.2.4/src/build/mzscheme'
make[3]: *** [cgc] Error 2
make[3]: Leaving directory `/usr/local/src/plt-4.2.4/src/build/mzscheme'
make[2]: *** [3m] Error 2
make[2]: Leaving directory `/usr/local/src/plt-4.2.4/src/build/mzscheme'
make[1]: *** [3m] Error 2
make[1]: Leaving directory `/usr/local/src/plt-4.2.4/src/build'
make: *** [all] Error 2


Mike VanHorn
Senior Computer Systems Administrator 
College of Engineering and Computer Science
Wright State University
265 Russ Engineering Center
michael.vanhorn at wright.edu
RSS: http://www.engineering.wright.edu/~mvanhorn/MikeVanHorn'sNewsFeed.xml

Posted on the users mailing list.