[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem building a statically linked Mzscheme



Hi

I've been trying to build a static linked mzscheme for use on a Solaris
5.8 (Generic_108529-10) both Intel and Sparc. I need to be able to use the
write-image-to-file functions and can read in the documentation that
mzscheme should be linked statically on UNIX. I have CFLAGS set to
-O2 C-static.

A nm mzscheme | grep image results in:
0805acd4 T scheme_image_main
0805aa74 T scheme_init_image

And I have a libmzscheme.a in plt/collects/mzscheme/lib/"platform". A
nm libmzscheme.a| grep image results in:
         U scheme_init_image
image.o:
00000260 T scheme_image_main
00000000 T scheme_init_image

Why can I not use the write-image-to-file function? I haven't loaded any
modules nor have I any subprocesses running or any filhandles open.

In mzscheme I try:

Welcome to MzScheme version 103, Copyright (c) 1995-2000 PLT (Matthew Flatt)
> (write-image-to-file "/tmp/mhansen")
write-image-to-file: not supported
>

Any suggestions? Any help would be greatly appreciated.

Best regards
	Mikael Hansen

"We are Microsoft. You will be assimilated.
	Resistance is Futile."