Menu

#4 2.4.19 macOS build failure httest.c:60:10: fatal error: 'pcre/pcre.h' file not found

1.0
open
nobody
None
2017-03-09
2017-03-09
ilovezfs
No

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

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.