kfl / mosml

Moscow ML is a light-weight implementation of Standard ML (SML), a strict functional language widely used in teaching and research.
http://mosml.org
341 stars 42 forks source link

MosML fails to build on OpenBSD 5.6 #27

Closed athas closed 9 years ago

athas commented 9 years ago

I have downloaded the newest snapshot of MosML, but make world fails when trying to link camlrunm:

ld -o camlrunm prims.o interp.o expand.o misc.o stacks.o fix_code.o main.o fail.o signals.o freelist.o major_gc.o minor_gc.o memory.o alloc.o roots.o compare.o ints.o floats.o str.o io.o extern.o externcp.o intern.o interncp.o hash.o sys.o meta.o parsing.o lexing.o gc_ctrl.o mosml.o unix.o runtime.o md5sum.o callback.o dynlib.o -lm -ldl
ld: cannot find -ldl
nqpz commented 9 years ago

This affects me too.

athas commented 9 years ago

Removing -ldl from ADDRUNLIBS in src/Makefile.inc permits compilation to proceed to another error that I will investigate separately. Perhaps it is worth including a configuration comment block in src/Makefile.inc to match the ones for IRIX and OSF/1?