[plt-scheme] Errors building 4.2.5 on Linux

From: Todd O'Bryan (toddobryan at gmail.com)
Date: Thu Apr 8 17:47:22 EDT 2010

I've downloaded the source code of 4.2.5, unzipped it into my /opt
directory and renamed it to plt-4.2.5-src.

I then created a src/build directory and ran ../configure
--enable-shared --prefix=/opt/plt-4.2.5

configure runs fine, but when I try to make, I get these errors:

make[7]: Entering directory `/opt/plt-4.2.5-src/src/build/foreign'
/opt/plt-4.2.5-src/src/build/lt/libtool --mode=compile --tag=CC gcc -g
-O2  -Wall  -pthread    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DMZ_USES_SHARED_LIB -I./../mzscheme
-I../../foreign/../mzscheme/include -I../../foreign/../mzscheme/src
-Igcc/libffi/include -c ../../foreign/foreign.c -o foreign.lo
mkdir .libs
 gcc -g -O2 -Wall -pthread -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DMZ_USES_SHARED_LIB -I./../mzscheme
-I../../foreign/../mzscheme/include -I../../foreign/../mzscheme/src
-Igcc/libffi/include -c ../../foreign/foreign.c  -fPIC -DPIC -o
In file included from ../../foreign/../mzscheme/include/scheme.h:1098,
                 from ../../foreign/../mzscheme/src/schpriv.h:21,
                 from ../../foreign/foreign.c:9:
../../foreign/../mzscheme/include/schthread.h:321:6: error: #error
scheme_get_thread_local_variables no defined on this platform
make[7]: *** [foreign.lo] Error 1
make[7]: Leaving directory `/opt/plt-4.2.5-src/src/build/foreign'
make[6]: *** [all] Error 2
make[6]: Leaving directory `/opt/plt-4.2.5-src/src/build/foreign'
make[5]: *** [foreign-stuff] Error 2
make[5]: Leaving directory `/opt/plt-4.2.5-src/src/build/mzscheme'
make[4]: *** [common] Error 2
make[4]: Leaving directory `/opt/plt-4.2.5-src/src/build/mzscheme'
make[3]: *** [cgc] Error 2
make[3]: Leaving directory `/opt/plt-4.2.5-src/src/build/mzscheme'
make[2]: *** [3m] Error 2
make[2]: Leaving directory `/opt/plt-4.2.5-src/src/build/mzscheme'
make[1]: *** [3m] Error 2
make[1]: Leaving directory `/opt/plt-4.2.5-src/src/build'
make: *** [all] Error 2

Are there build new build dependencies I'm missing or something else
I'm doing wrong?


Posted on the users mailing list.