Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Unable to build zsh with pcre on Mac Homebrew

On Mon, 2019-01-07 at 16:18 +0100, Jesper Nygårds wrote:
> On Mon, Jan 7, 2019 at 3:46 PM Peter Stephenson <p.stephenson@xxxxxxxxxxx>
> wrote:
> > 
> > You'll need to look in confg.log to see what it's actually compiling.
> > That should show the -I and -L options being applied to the tests (if
> > I've interpreted what goes to config.log correctly).
> > 
> I see the following, is that of any help?

That's for you to decide.  You say you've done something (you haven't
told us what) that you think will make it work.  Presumably that means
you think you've somewhere added in the library information for pcre?
It's not showing up in the output shown below, which suggests it's not
in the LIBS shell variable in configure at that point.

I would expect you to end up with something along the lines of

./configure --enable-libs="-L/path/to/libs -lpcre" --enable-cppflags="-I/path/to/headers"

plus whatever else you're specifying.  This is the stuff that
pcre-config would add for you if it was present, but I don't think the
lack of it should be a problem if you know the paths.

I'm answering this from the generic configuration point of view rather
than antything specific to MacOS, obviously.


> configure:8340: checking for pcre_compile
> configure:8340: clang -o conftest  -Wall -Wmissing-prototypes -O2  -Wl,-x
> conftest.c -lgdbm  -liconv -ldl -lncursesw -lm  -lc >&5
> Undefined symbols for architecture x86_64:
>   "_pcre_compile", referenced from:
>       _main in conftest-4c943a.o
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
> configure:8340: $? = 1
> configure: failed program was:
> <snip>

Messages sorted by: Reverse Date, Date, Thread, Author