[plt-scheme] Compiling PLT scheme on Solaris

From: Martin Preen (preen at informatik.uni-freiburg.de)
Date: Tue Oct 20 07:21:36 EDT 2009

Hi,
we have a problem compiling PLT scheme 4.2.2 on Solaris 10.
Compiler ist gcc 4.2.2. It looks like a problem with large file
support and/or the procfs interface:

...
gcc  -I./include -DNO_SIGNALS -g -O2  -Wall  -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64    -DNO_EXECUTE_PERMISSION -DSILENT -DNO_GETENV 
-DLARGE_CONFIG -DATOMIC_UNCOLLECTABLE -DINITIAL_MARK_STACK_SIZE=8192 -c ./os_dep.c
In file included from /usr/include/sys/procfs.h:29,
                  from ./os_dep.c:3078:
/usr/include/sys/old_procfs.h:39:2: error: #error "Cannot use procfs in the 
large file compilation environment"
./os_dep.c: In function 'GC_dirty_init':
./os_dep.c:3129: warning: format '%d' expects type 'int', but argument 3 has 
type 'pid_t'
./os_dep.c: In function 'GC_read_dirty':
./os_dep.c:3176: warning: unused variable 'dummy'
./os_dep.c: In function 'GC_is_fresh':
./os_dep.c:3294: warning: unused variable 'index'
...

Is there some workaround for this ?

Thanks.
Martin

---------------------------------------------------------------
Martin Preen, Universität Freiburg, Institut für Informatik
Georges-Koehler-Allee 52, Raum EG-006, 79110 Freiburg, Germany

phone: ++49 761 203-8250      preen at informatik.uni-freiburg.de
fax: ++49 761 203-8242        www.informatik.uni-freiburg.de


Posted on the users mailing list.