2.4.19 macOS build failure httest.c:60:10: fatal error: 'pcre/pcre.h' file...
Brought to you by:
ia97lies
Build fails on macOS because pcre.h cannot be found. This is with pcre 8.39 installed. The header file pcre.h is not in a subdirectory named pcre so including pcre/pcre.h does not work.
The build failure looks like this:
libtool: link: ranlib .libs/libhello.a libtool: link: ( cd ".libs" && rm -f "libhello.la" && ln -s "../libhello.la" "libhello.la" ) /usr/bin/clang -DHAVE_CONFIG_H -I. -I../config -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10 -I/usr/local/opt/openssl/include -F/usr/local/Frameworks -I../include -g -O2 -I/usr/local/Cellar/pcre/8.39/include -Os -w -pipe -march=core2 -mmacosx-version-min=10.12 -I/usr/local/opt/apr/libexec/include/apr-1 -I/usr/local/opt/apr-util/libexec/include/apr-1 -I/usr/local/opt/openssl/include -c -o httest.o httest.c httest.c:60:10: fatal error: 'pcre/pcre.h' file not found #include <pcre/pcre.h> ^ 1 error generated. make[1]: *** [httest.o] Error 1 make: *** [install-recursive] Error 1
Build log here:
https://gist.github.com/ilovezfs/91ab3014be61ce2a941eeed326237ce3#file-gistfile1-txt-L552-L560
https://bot.brew.sh/job/Homebrew%20Core/17822/version=sierra/consoleText
https://bot.brew.sh/job/Homebrew%20Core/17822/
Note
iMac-TMP:~ joe$ ls -1 /usr/local/include/pcre* /usr/local/include/pcre.h /usr/local/include/pcre_scanner.h /usr/local/include/pcre_stringpiece.h /usr/local/include/pcrecpp.h /usr/local/include/pcrecpparg.h /usr/local/include/pcreposix.h