# libpcre 8.37 requires extra flags (at least on AIX)

- Thread: https://externals.io/message/86322
- Original archive: https://news-web.php.net/php.internals/86322
- Started by Lior Kaplan on 2015-05-20T12:03:31+00:00
- Messages: 4
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #86322 — Lior Kaplan — 2015-05-20T12:03:31+00:00

URL: https://externals.io/message/86322#86322

Hi,

While building the PHP 5.6.9 (which has libpcre 8.37) it seems we're
missing -lpthreads build flag (for cli SAPI), as this library upgrade added
this requirement.

The files requiring is pcrelib/sljit/sljitUtils.c

5.5.25, which doesn't have this file, works fine without the flag.

I think this requirement should be reflected in ext/pcre/config0.m4 (or is
there something more relevant?)


Thanks,

Kaplan

---

## #86327 — Stanislav Malyshev — 2015-05-20T18:28:09+00:00

URL: https://externals.io/message/86322#86327 · In reply to: #86322

Hi!

> While building the PHP 5.6.9 (which has libpcre 8.37) it seems we're
> missing -lpthreads build flag (for cli SAPI), as this library upgrade added
> this requirement.
> 
> The files requiring is pcrelib/sljit/sljitUtils.c
> 
> 5.5.25, which doesn't have this file, works fine without the flag.
> 
> I think this requirement should be reflected in ext/pcre/config0.m4 (or is
> there something more relevant?)

Hmm... I wonder why it needs pthreads or does it depend on some config.
Is it on AIX only? Because for me it builds fine on both Linux and Darwin.
I think if it's 8.37 missing sljitUtils.c is a bug.

-- 
Stas Malyshev
smalyshev@gmail.com

---

## #86372 — Lior Kaplan — 2015-05-25T08:10:17+00:00

URL: https://externals.io/message/86322#86372 · In reply to: #86327

Hi,

It seems to be AIX only thing, as it builds fine for me for Linux/Darwin.

Any hints ?

Kaplan

On Wed, May 20, 2015 at 9:28 PM, Stanislav Malyshev <smalyshev@gmail.com>
wrote:

> Hi!
>
> > […]
> added
> > […]
> is
> > […]
>
> Hmm... I wonder why it needs pthreads or does it depend on some config.
> Is it on AIX only? Because for me it builds fine on both Linux and Darwin.
> I think if it's 8.37 missing sljitUtils.c is a bug.
>
> --
> Stas Malyshev
> smalyshev@gmail.com

---

## #86398 — Stanislav Malyshev — 2015-05-27T00:49:51+00:00

URL: https://externals.io/message/86322#86398 · In reply to: #86372

Hi!

> It seems to be AIX only thing, as it builds fine for me for Linux/Darwin.

The I would probably add a special case for AIX in config.m4.

-- 
Stas Malyshev
smalyshev@gmail.com
