zsh-users
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.stephenson@samsung.com>
To: <zsh-users@zsh.org>
Subject: Re: Unable to build zsh with pcre on Mac Homebrew
Date: Mon, 7 Jan 2019 15:41:54 +0000	[thread overview]
Message-ID: <1546875714.4214.10.camel@samsung.com> (raw)
In-Reply-To: <CABZhJg-+x6P1VRO5VZEX48NSRO18V6u_Damx_YXHxiv3p66A=g@mail.gmail.com>

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@samsung.com>
> 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.

pws

> 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>



  reply	other threads:[~2019-01-07 15:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20190107135447epcas1p1ef8a8e73868d1d86f95e75acc64f7a4b@epcas1p1.samsung.com>
2019-01-07 13:52 ` Jesper Nygårds
2019-01-07 14:45   ` Peter Stephenson
2019-01-07 15:18     ` Jesper Nygårds
2019-01-07 15:41       ` Peter Stephenson [this message]
2019-01-07 19:37         ` Jesper Nygårds

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1546875714.4214.10.camel@samsung.com \
    --to=p.stephenson@samsung.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).