[plt-scheme] building 4.2.3 on Solaris 10

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Fri Dec 11 07:54:18 EST 2009

I recently changed `configure' to enable large-file support by default,
but apparently that doesn't work with the Boehm collector under
Solaris. (This problem has been reported before, I think, but I have
been very slow to look into it.)

I've changed the `configure' script in a way that should fix the
problem for future releases.

As a workaround for 4.2.3, after running `configure', edit the Makefile
in <builddir>/mzscheme/gc to remove the large-file flags from the
BASEFLAGS declaration.

At Thu, 10 Dec 2009 17:15:35 -0500, Prabhakar Ragde wrote:
>  From one of our sysadmins. Anyone recognize the source of the 
> difficulty? Thanks. --PR
> 
> -----
> 
> I tried to compile on a few of our Solaris 20 machines but
> keep getting the following errors:
> 
> ../../../mzscheme/gc/os_dep.c: In function `GC_unix_mmap_get_mem':
> ../../../mzscheme/gc/os_dep.c:1773: warning: initialization from 
> incompatible
> pointer type
> In file included from /usr/include/sys/procfs.h:29,
>                   from ../../../mzscheme/gc/os_dep.c:3250:
> /usr/include/sys/old_procfs.h:39:2: #error "Cannot use procfs in the 
> large file
> compilation environment"
> ../../../mzscheme/gc/os_dep.c: In function `GC_dirty_init':
> ../../../mzscheme/gc/os_dep.c:3275: warning: int format, pid_t arg (arg 3)
> *** Error code 1
> make: Fatal error: Command failed for target `os_dep.o'
> Current working directory
> /fsys1/usr/source/TEMP-CACHE/drscheme/plt-4.2.3/src/build/mzscheme/gc
> *** Error code 1
> make: Fatal error: Command failed for target `g-c'
> Current working directory
> /fsys1/usr/source/TEMP-CACHE/drscheme/plt-4.2.3/src/build/mzscheme
> *** Error code 1
> make: Fatal error: Command failed for target `common'
> Current working directory
> /fsys1/usr/source/TEMP-CACHE/drscheme/plt-4.2.3/src/build/mzscheme
> *** Error code 1
> make: Fatal error: Command failed for target `cgc'
> Current working directory
> /fsys1/usr/source/TEMP-CACHE/drscheme/plt-4.2.3/src/build/mzscheme
> *** Error code 1
> make: Fatal error: Command failed for target `3m'
> Current working directory
> /fsys1/usr/source/TEMP-CACHE/drscheme/plt-4.2.3/src/build/mzscheme
> *** Error code 1
> 
> 
> You did know that drsceheme-4.2.1 was the last time they built
> for solaris.  I think this problem is related to drscheme trying to 
> build for 64bit.  I checked for this online and only found a few 
> references. Can you pass this along to the pltscheme group.
> _________________________________________________
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme


Posted on the users mailing list.