Ocaml3.11.1 on Mac OSX 10.5 でomakeがビルドできない

エラーはこんな感じ.

$ sudo make all
make[1]: `Makefile.dep' is up to date.
make[1]: `omake' is up to date.
touch .config
OMAKEFLAGS= OMAKEPATH=lib ./omake-boot --dotomake .omake --force-dotomake -j2 main

omake: reading OMakefiles
      • Checking for gcc... (found /usr/bin/gcc)
    • snip--
omake: finished reading OMakefiles (3.21 sec)
  • build src/clib clib.a
  1. ar cq clib.a lm_heap.o lm_channel.o lm_printf.o lm_ctype.o lm_uname_ext.o lm_unix_cutil.o lm_compat_win32.o readline.o omake_shell_sys.o fam_win32.o fam_kqueue.o fam_inotify.o lm_notify.o lm_termsize.o lm_terminfo.o lm_fs_case_sensitive.o

ranlib: file: clib.a(fam_win32.o) has no symbols
ranlib: file: clib.a(fam_inotify.o) has no symbols

  • build src/clib clib.a
  1. ranlib clib.a

/usr/bin/ranlib: file: clib.a(fam_win32.o) has no symbols
/usr/bin/ranlib: file: clib.a(fam_inotify.o) has no symbols

  • build src/main omake.opt
  1. ocamlopt.opt -warn-error A -w Aez -I . -I ../libmojave -I ../util -I ../magic -I ../ast -I ../ir -I ../env -I ../exec -I ../eval -I ../shell -I ../build -I ../builtin -o omake.opt unix.cmxa ../libmojave/lm.cmxa ../util/util.cmxa ../magic/magic.cmxa ../ast/ast.cmxa ../ir/ir.cmxa ../env/env.cmxa ../exec/exec.cmxa ../eval/eval.cmxa ../shell/shell.cmxa ../build/build.cmxa ../builtin/builtin.cmxa omake_shell.cmx omake_main.cmx ../clib/clib.a -cclib -lncurses -cclib -lreadline

Undefined symbols:
"_caml_sync", referenced from:
_camlOmake_exec__28 in exec.a(omake_exec.o)
ld: symbol(s) not found[========================================================================== ] 01149 / 01154
collect2: ld returned 1 exit status
File "caml_startup", line 1, characters 0-1:
Error: Error during linking

omake: 1149/1154 targets are up to date
omake: failed (31.45 sec, 229/229 scans, 337/496 rules, 774/2605 digests)
omake: targets were not rebuilt because of errors:

src/main/omake.opt
make: *** [all] Error 2

解決方法は,http://d.hatena.ne.jp/takashyx/20091024/p1を参考にしてください.パッチまだー(AA略