I was able to successfully build on OSX using pcre 8.36.  When I did an upgrade in brew it said pcre 8.36 was up-to-date.


[bcall@mac-bryan-wire trafficserver-6.0.0]$ ./configure CC=clang CXX=clang++ --with-openssl=/usr/local/Cellar/openssl/1.0.2/ --with-libxml2=/usr/local/Cellar/libxml2/2.9.2/ --with-pcre=/usr/local/Cellar/pcre/8.36/

[bcall@mac-bryan-wire trafficserver-6.0.0]$ make -j 8

...

[bcall@mac-bryan-wire trafficserver-6.0.0]$ echo $?

0

[bcall@mac-bryan-wire trafficserver-6.0.0]$ clang --version

Apple LLVM version 7.0.0 (clang-700.0.72)

Target: x86_64-apple-darwin15.0.0

Thread model: posix

[bcall@mac-bryan-wire trafficserver-6.0.0]$ sudo brew upgrade pcre

Error: pcre 8.36 already installed


On Mon, Oct 19, 2015 at 4:22 PM, Huaping Gu <humphrey.gu@gmail.com> wrote:
Hi all,
Any one met the same issue to build 6.0 (latest code) on OS X

Make sure I have the pure installed, and configure as bellow:

./configure --prefix=/opt/ats6 --enable-experimental-plugins --with-pcre=/usr/local/Cellar/pcre/8.37 CC=clang CXX=clang++


But always get error on CompileParseRules. From log seems like related to pare regex, but not sure how to fix it?  

./CompileParseRules

  CXX      ParseRules.lo

  CXX      Regex.lo

  CXX      Regression.lo

  CXX      TextBuffer.lo

  CXX      Tokenizer.lo

  CXX      Vec.lo

  CXX      Version.lo

  CXX      hugepages.lo

  CXX      ink_args.lo

  CXX      ink_assert.lo

  CXX      ink_auth_api.lo

  CXX      ink_base64.lo

  CXX      ink_cap.lo

  CXX      ink_code.lo

  CXX      ink_defs.lo

  CXX      ink_error.lo

  CXX      ink_file.lo

  CXX      ink_hash_table.lo

  CXX      ink_hrtime.lo

  CXX      ink_inet.lo

  CXX      ink_memory.lo

  CXX      ink_mutex.lo

  CXX      ink_queue.lo

  CXX      ink_queue_utils.lo

  CXX      ink_rand.lo

  CXX      ink_res_init.lo

  CXX      ink_res_mkquery.lo

  CXX      ink_resource.lo

  CXX      ink_rwlock.lo

  CXX      ink_sock.lo

  CXX      ink_sprintf.lo

  CXX      ink_stack_trace.lo

  CXX      ink_string++.lo

  CXX      ink_string.lo

  CXX      ink_sys_control.lo

  CXX      ink_syslog.lo

  CXX      ink_thread.lo

  CXX      ink_time.lo

  CXX      llqueue.lo

  CXX      lockfile.lo

  CXX      signals.lo

  CXX      X509HostnameValidator.lo

  CXXLD    libtsutil.la

Undefined symbols for architecture x86_64:

  "_pcre_assign_jit_stack", referenced from:

      Regex::compile(char const*, unsigned int) in Regex.o

      DFA::build(char const*, unsigned int) in Regex.o

  "_pcre_free_study", referenced from:

      Regex::~Regex() in Regex.o

      Regex::~Regex() in Regex.o

      DFA::~DFA() in Regex.o

  "_pcre_jit_stack_alloc", referenced from:

      get_jit_stack(void*) in Regex.o

  "_pcre_jit_stack_free", referenced from:

      __GLOBAL__sub_I_Regex.cc in Regex.o

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

make[3]: *** [libtsutil.la] Error 1

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

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

make: *** [all-recursive] Error 1