Compiling MLton on Red Hat Linux 7

José Romildo Malaquias romildo@urano.iceb.ufop.br
Tue, 17 Oct 2000 08:14:51 -0200


Hello.

When rebuilding the MLton 20000906 RPM package in a
Red Hat Linux 7 box I got a dramaticaly big
list of errors on mlton.c:

=========================================
[...]
cd /home/romildo/rpms/BUILD/mlton-20000906/src/mlton && make
make[1]: mlton: Command not found
make[1]: Entering directory `/home/romildo/rpms/BUILD/mlton-20000906/src/mlton'
time gcc -I../include -I ../runtime -O1                         \
        -DNODEBUG                                               \
        -fomit-frame-pointer -fno-strength-reduce -w -m486      \
        -malign-loops=2 -malign-jumps=2 -malign-functions=2     \
        -o mlton.o -c mlton.c
mlton.c:4623: parse error before `static'
mlton.c:38509: parse error before `static'
mlton.c:38513: initializer element is not computable at load time
mlton.c:38513: (near initialization for `frameLayouts[1312].numBytes')
mlton.c:38513: parse error before `)'
mlton.c:38513: parse error before `&'
mlton.c:38513: conflicting types for `GC_gc'
../runtime/gc.h:324: previous declaration of `GC_gc'
mlton.c:38513: initializer element is not constant
mlton.c:38513: parse error before `}'
mlton.c:38513: conflicting declarations of `nextFun'
mlton.c:34: `nextFun' previously declared here
mlton.c:38513: `stackTop' undeclared here (not in a function)
mlton.c:38513: parse error before `goto'
mlton.c:38513: parse error before `void'
mlton.c:38514: conflicting types for `globalpointer'
mlton.c:34: previous declaration of `globalpointer'
mlton.c:38514: invalid initializer
mlton.c:38514: parse error before `}
[...]
=========================================

Any clues?

Romildo
-- 
Prof. José Romildo Malaquias <romildo@iceb.ufop.br>
Departamento de Computação
Universidade Federal de Ouro Preto
Brasil