RPM Community Forums

Mailing List Message of <rpm-devel>

Re: [CVS] RPM: rpm/ configure.ac

From: Ralf S. Engelschall <rse+rpm-devel@rpm5.org>
Date: Thu 01 Nov 2007 - 23:01:12 CET
Message-ID: <20071101220112.GA99535@engelschall.com>
On Thu, Nov 01, 2007, Arkadiusz Miskiewicz wrote:

> On Thursday 01 of November 2007, Ralf S. Engelschall wrote:
>
> > I understand what you are trying to do, but instead of separating
> > libpcre from libpcreposix, the better solution IMHO is to add the
> > missing AC_CHECK_LIB(pcreposix) check to the old RPM_CHECK_LIB()
> > of PCRE! Because RPM currently cannot use PCRE alone anyway and
> > libpcreposix cannot be used without libpcre, too.
> >
> > So, what the Autoconf glue for PCRE _REALLY HAS TO_ check for is
> > whether _both_ <pcreposix.h> _and_ -lpcreposix are available and if
> > available also really link against -lpcreposix or not try to use PCRE's
> > POSIX API at all. AFAIK the segfault just occurred because RPM thought
> > <pcreposix.h> is available but forgot to link against the corresponding
> > -lpcreposix library and this way picked up the POSIX API from glibc.
>
> There is still symbol clash between glibc and pcreposix.
>
> regcomp configure checking won't work for those who avoid symbol clash by
> using recently posted patch:
>
> http://cvsweb.openwall.com/cgi/cvsweb.cgi/~checkout~/Owl/packages/pcre/pcre-7.4-deb-pcreposix.diff
>
> You will probably need to actually try to compile + link some test code like:
> #include <pcreposix.h>
> int main() { regcomp(....); }
> to get properly working detection in this case.

Hmmm... ok, I see. I'll improve the check even further.

                                       Ralf S. Engelschall
                                       rse@engelschall.com
                                       www.engelschall.com
Received on Thu Nov 1 23:12:07 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.