Re: Cyrus IMAP 3.2.2 (Re: cyrus imap 2.5.5 build in Linux: problem with pcre)

2020-06-30 Thread ellie timoney
Hi Sergey,

Quoting out of order, because it's a bit easier to explain that way:

> And there is another problem that is not obvious. -lpcreposix is needed
> in perl/imap/Makefile.PL and in perl/sieve/managesieve/Makefile.PL I seems.

This bit sounds a lot like https://github.com/cyrusimap/cyrus-imapd/issues/2629

There's an experimental patch from me in that issue, which seems to have worked 
around the issue for Fedora package maintainers.  But I can't reproduce the 
problem on Debian, so I can't confirm myself that it fixes things correctly.  
More feedback would be great.

> I returned to this question. 3.2.2 still does not find 
> /usr/include/pcre/pcre.h
> 
> $ pkg-config --cflags libpcre
> -I/usr/include/pcre
> 
> Build is successful with CFLAGS="-I/usr/include/pcre" ./configure ...

Cyrus's configure script does not currently use pkg-config to locate libpcre.  
Instead it uses bespoke detection built from AC_CHECK_HEADER, which I guess 
doesn't know to look in /usr/include/pcre.  There might be a generic way for a 
sysadmin to add this path to the paths that AC_CHECK_HEADER checks, but I don't 
know it offhand.  Otherwise, specifying it in CFLAGS like you have done seems 
like the right thing to do.

The issue linked above also touches on the possibility of changing the libpcre 
detection to use pkg-config instead of bespoke detection, in which case this 
wouldn't be necessary, but it has its own complications.

> Except perl/imap: CFLAGS is not used by Makefile.PL.

Aaand this sounds like its own whole separate bug!  I'm not sure offhand what 
the right way to pass this down will be, but it clearly needs doing.  New issue 
here: https://github.com/cyrusimap/cyrus-imapd/issues/3087

Cheers,

ellie

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Cyrus IMAP 3.2.2 (Re: cyrus imap 2.5.5 build in Linux: problem with pcre)

2020-06-29 Thread Sergey
On Friday 16 October 2015, Sergey wrote:

> I wanted to build Cyrus-IMAP with libpcre but it did not success.
> System libpcre-devel package install headers to /usr/include/pcre.
 
I returned to this question. 3.2.2 still does not find /usr/include/pcre/pcre.h

$ pkg-config --cflags libpcre
-I/usr/include/pcre

Build is successful with CFLAGS="-I/usr/include/pcre" ./configure ...
Except perl/imap: CFLAGS is not used by Makefile.PL.

And there is another problem that is not obvious. -lpcreposix is needed
in perl/imap/Makefile.PL and in perl/sieve/managesieve/Makefile.PL I seems.

-- 
Regards,
Sergey

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Re: cyrus imap 2.5.5 build in Linux: problem with pcre

2015-10-19 Thread Sergey
On Monday 19 October 2015, ellie timoney wrote:

> Do you have pkg-config installed on your system? 

$ pkg-config --version
0.25

> Does your pcre library support utf8?

I think yes: configure call in pcre.spec contains "--enable-pcre8 
--enable-pcre16 --enable-utf" options. 

> Do you have a line in your configure output like
> "checking for utf8 enabled pcre..."?

No. I have not the sting "checking for utf8" in output of configure.
I look into "configure" and found what $ac_cv_header_pcreposix_h="".

If I to set ac_cv_header_pcreposix_h="yes" then package is configured
with pcre

checking pcre/pcreposix.h usability... yes
checking pcre/pcreposix.h presence... yes
checking for pcre/pcreposix.h... yes
checking for utf8 enabled pcre... yes

External dependencies:
   ldap:   yes
   openssl:yes
   pcre:   yes

-- 
Regards, Sergey

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Re: cyrus imap 2.5.5 build in Linux: problem with pcre

2015-10-18 Thread ellie timoney
Hi Sergey,

Do you have pkg-config installed on your system?  If not, does
installing it help?

Does your pcre library support utf8?  Cyrus depends on a utf8-enabled
pcre library.  If your pcre library does not appear to support utf-8,
then the configure script will find the headers but will decide to not
use the library.  Do you have a line in your configure output like
"checking for utf8 enabled pcre..."?  What does it say?

Cheers,

ellie

On Sat, Oct 17, 2015, at 05:49 AM, Sergey wrote:
> Hello.
> 
> I built and run version 2.5.5 but I have some questions about
> build process. I will ask this in some different messages.
> 
> I wanted to build Cyrus-IMAP with libpcre but it did not success.
> System libpcre-devel package install headers to /usr/include/pcre.
> I tried to replace pcreposix.h in configure.ac to pcre/pcreposix.h
> but it didn't yield results. "configure" found it:
> 
> checking pcre/pcreposix.h usability... yes
> checking pcre/pcreposix.h presence... yes
> checking for pcre/pcreposix.h... yes
> 
> but pcre missed in final configuration:
> 
> External dependencies:
>ldap:   yes
>openssl:yes
>pcre:   no
> 
> I'm not very familiar with autotools. What can I missed ?
> btw: "configure" contains "--with-bdb-incdir" option.
> I think what "--with-pcre-incdir" will be good.
> 
> -- 
> Regards,
> Sergey
> 
> Cyrus Home Page: http://www.cyrusimap.org/
> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
> To Unsubscribe:
> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


cyrus imap 2.5.5 build in Linux: problem with pcre

2015-10-16 Thread Sergey
Hello.

I built and run version 2.5.5 but I have some questions about
build process. I will ask this in some different messages.

I wanted to build Cyrus-IMAP with libpcre but it did not success.
System libpcre-devel package install headers to /usr/include/pcre.
I tried to replace pcreposix.h in configure.ac to pcre/pcreposix.h
but it didn't yield results. "configure" found it:

checking pcre/pcreposix.h usability... yes
checking pcre/pcreposix.h presence... yes
checking for pcre/pcreposix.h... yes

but pcre missed in final configuration:

External dependencies:
   ldap:   yes
   openssl:yes
   pcre:   no

I'm not very familiar with autotools. What can I missed ?
btw: "configure" contains "--with-bdb-incdir" option.
I think what "--with-pcre-incdir" will be good.

-- 
Regards,
Sergey

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus