[MLton] bug: Posix.ProcEnv.setpgid

Tom 7 tom7@cs.cmu.edu
Tue, 16 Nov 2004 14:31:09 -0500 (EST)


I can't compile (on linux) the following program with yesterday's CVS
version of mlton:

val _ = Posix.ProcEnv.setpgid {pid=NONE,pgid=NONE};

It fails at link time with:

/tmp> mlton cleanup.sml
/tmp/filePNnqen.o: In function `L_202':
/tmp/filePNnqen.o(.text+0x1bcd): undefined reference to
`Posix_ProcEnv_setpgid'
collect2: ld returned 1 exit status
call to system failed with exit status 1:
gcc -o cleanup /tmp/fileSKzaXG.o /tmp/filePNnqen.o -L/usr/lib/mlton/self
-lmlton /usr/lib/libgmp.a -lgdtoa -lm


I think there is supposed to be an implementation of this symbol in:
mlton/runtime/Posix/ProcEnv/ProcEnv.c
(maybe some other ones are missing too?)


By the way, congratulations on the new version; it is very nice.

 Tom

[ NEW! : http://tom7.org/       ]
[ OLD! : http://fonts.tom7.com/ ]