Hello everyone,

I'm compiling Freeswitch (both 1.6 and git HEAD as of this email timestamp) and I require a JavaScript interpreter. When the build process hits mod_v8 I get the following error[1]. System info: OS X 10.11.1 (El Capitan), homebrew updated as of this morning, current stable Xcode, all default ./configure options. One thing I noticed is the build system ignores my environment if I export CFLAGS="-Wno-errors" and CXXFLAGS="-Wno-errors". Warnings are always handled as errors because -Werror is always appended to the compiler flags.

Thanks,
Lee

[1]
making all mod_v8

cd /Users/lazzarello/src/freeswitch/libs/v8-3.24.14 && (test -f .stamp-patch || patch -t -p0 < /Users/lazzarello/src/freeswitch/src/mod/languages/mod_v8/v8-build.patch)

patching file Makefile

touch /Users/lazzarello/src/freeswitch/libs/v8-3.24.14/.stamp-patch

mkdir -p /Users/lazzarello/src/freeswitch/libs/v8-3.24.14

if test "x86_64" = "x86_64"; then \

  defines="v8_target_arch=x64 target_arch=x64"; \

else \

  if test "x86_64" = "arm"; then \

      defines="v8_target_arch=arm target_arch=arm"; \

  else \

      if test "x36_64" = "i386"; then \

        defines="v8_target_arch=ia32 target_arch=ia32"; \

      fi; \

  fi; \

fi; \

cd /Users/lazzarello/src/freeswitch/libs/v8-3.24.14 && CFLAGS="" CXXFLAGS="" \

LINK=g++ CXX=g++ GYPFLAGS="" GYP_DEFINES="$defines" \

OUTDIR=/Users/lazzarello/src/freeswitch/libs/v8-3.24.14/out \

PYTHONPATH="/Users/lazzarello/src/freeswitch/libs/v8-3.24.14/build/gyp/pylib:" /Applications/Xcode.app/Contents/Developer/usr/bin/make -C /Users/lazzarello/src/freeswitch/libs/v8-3.24.14 snapshot=off i18nsupport=off library=shared native

PYTHONPATH="/Users/lazzarello/src/freeswitch/libs/v8-3.24.14/tools/generate_shim_headers:/Users/lazzarello/src/freeswitch/libs/v8-3.24.14/build/gyp/pylib:" \

GYP_GENERATORS=make \

build/gyp/gyp --generator-output="/Users/lazzarello/src/freeswitch/libs/v8-3.24.14/out" build/all.gyp \

              -Ibuild/standalone.gypi --depth=. -S.native  -Dcomponent=shared_library -Dv8_enable_backtrace=1 -Dv8_use_snapshot='false' -Dv8_enable_i18n_support=0 -Darm_fpu=default -Darm_float_abi=default

  CXX(target) /Users/lazzarello/src/freeswitch/libs/v8-3.24.14/out/native/obj.target/v8_base.x64/src/accessors.o

In file included from ../src/accessors.cc:28:

In file included from ../src/v8.h:62:

In file included from ../src/objects-inl.h:38:

In file included from ../src/elements.h:33:

In file included from ../src/heap.h:36:

In file included from ../src/incremental-marking.h:33:

In file included from ../src/mark-compact.h:32:

../src/spaces.h:925:26: error: 'this' pointer cannot be null in well-defined C++ code; comparison may be

      assumed to always evaluate to true [-Werror,-Wtautological-undefined-compare]

  bool exists() { return this != NULL && code_range_ != NULL; }

                         ^~~~    ~~~~

../src/spaces.h:927:9: error: 'this' pointer cannot be null in well-defined C++ code; comparison may be

      assumed to always evaluate to false [-Werror,-Wtautological-undefined-compare]

    if (this == NULL || code_range_ == NULL) return NULL;

        ^~~~    ~~~~

../src/spaces.h:931:9: error: 'this' pointer cannot be null in well-defined C++ code; comparison may be

      assumed to always evaluate to false [-Werror,-Wtautological-undefined-compare]

    if (this == NULL || code_range_ == NULL) return false;

        ^~~~    ~~~~

3 errors generated.

make[5]: *** [/Users/lazzarello/src/freeswitch/libs/v8-3.24.14/out/native/obj.target/v8_base.x64/src/accessors.o] Error 1

make[4]: *** [native] Error 2

make[3]: *** [/Users/lazzarello/src/freeswitch/libs/v8-3.24.14/out/native/libv8.dylib] Error 2

make[2]: *** [mod_v8-all] Error 1

make[1]: *** [mod_v8] Error 2

make: *** [mod_v8] Error 2