iriscouch / build-couchdb

Batteries-included CouchDB build system
227 stars 36 forks source link

OS X fixes #56

Open jhs opened 12 years ago

jhs commented 12 years ago

Reported by Hans Schroeder.

When build stops at erlang

  1. Edit erts/emulator/Makefile.in:

    $(OBJDIR)/%.o: beam/%.c

  2. $(CC) $(subst -O2, $(GEN_OPT_FLGS), $(CFLAGS)) $(INCLUDES) -c $< -o $@
  3. $(CC) $(INCLUDES) $(subst -O2, $(GEN_OPT_FLGS), $(CFLAGS)) -c $< -o $@

Error was:

beam/erl_bif_re.c:921: error: 'PCRE_EXTRA_LOOP_LIMIT' undeclared (first use in this function) beam/erl_bif_re.c:921: error: (Each undeclared identifier is reported only once beam/erl_bif_re.c:921: error: for each function it appears in.) beam/erl_bif_re.c:923: error: 'pcre_extra' has no member named 'loop_limit' beam/erl_bif_re.c:926: error: 'pcre_extra' has no member named 'loop_limit' beam/erl_bif_re.c:927: error: 'pcre_extra' has no member named 'loop_limit' beam/erl_bif_re.c:930: error: 'pcre_extra' has no member named 'restart_data' beam/erl_bif_re.c:931: error: 'pcre_extra' has no member named 'restart_flags'

When build stops at icu

  1. Edit configure:
    • _-archppc|_-archi386|_-arch_x86_64*) ac_cv_c_bigendian=universal;;
    • _-arch_ppc*) ac_cv_c_bigendian=yes;;

Error was:

header_size mismatch

When build stops at couched

  1. Edit Makefile.am

changing line 70 of ../dependencies/couchdb/src/couchdb/priv/Makefile.am from:

HELP2MAN_OPTION=--no-info --help-option="-h" --version-option="-V"

to:

HELP2MAN_OPTION=--no-info --help-option="-h" --version-option="-V" --no-discard-stderr

janl commented 11 years ago

This might be supposed to fix #66, but doesn’t work for me. My changes to Makefile.am are not picked up.