[leafnode-list] Re: leafnode-2 configure.ac not finding PCRE (was: Malformed Message-ID?)

Matthias Andree matthias.andree at gmx.de
Sat Mar 4 12:04:53 CET 2023


Am 04.03.23 um 11:06 schrieb Matěj Cepl via leafnode-list:
> Dne 04. 03. 23 v 10:47 Matěj Cepl napsal(a):
>> The previous package of leafnode included `BuildRequires:
>> pcre-devel`, which pulled-in pcre-devel 8.45. When I try to build
>> current master (902321b) with the same configuration as before I
>> get error in ./configure (config.log from that run has been
>> attached):
>>
>>      [ 21s] + ./configure --host=x86_64-suse-linux-gnu
>>      --build=x86_64-suse-linux-gnu --program-prefix=
>>      --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr
>>      --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc
>>      --datadir=/usr/share --includedir=/usr/include
>>      --libdir=/usr/lib64 --libexecdir=/usr/libexec
>>      --localstatedir=/var --sharedstatedir=/var/lib
>>      --mandir=/usr/share/man --infodir=/usr/share/info
>>      --disable-silent-rules --enable-spooldir=/var/spool/news
>>      --enable-runas-user=abuild --sysconfdir=/etc/leafnode --with-pam
>>
>>      [ ... plenty of successful lines omitted ... ]
>>
>>      [   23s] checking for pcre-config... /usr/bin/pcre-config
>>      [   23s] configure: adding -lpcre to LDFLAGS
>>      [   23s] checking for pcre.h... yes
>>      [   23s] checking for pcre_compile() in PCRE library... no
>>      [   23s] *** I cannot find PCRE. leafnode depends on it.
>>      [   23s] ***
>>      [   23s] *** If you have PCRE installed, pcre-config was not found.
>>      [   23s] *** You can work around this by adding the header location to
>>      [   23s] *** the environment variables CPPFLAGS, i. e. CPPFLAGS=-I/opt/pcre/include
>>      [   23s] *** and the library location to the environment variables LDFLAGS,
>>      [   23s] *** e. g. LDFLAGS=-L/opt/pcre/lib, assuming your PCRE resides in /opt/pcre.
>>      [   23s] ***
>>      [   23s] *** If not you don't have PCRE installed, please download and install PCRE 3.7
>>      [   23s] *** or a newer version from http://www.pcre.org/, it's easy:
>>      [   23s] *** Just download, unpack, then cd to pcre-3.7, then
>>      [   23s] *** ./configure && make, then as root: make install
>>      [   23s] *** Then, reconfigure leafnode.
>>      [   23s] configure: error: PCRE library not found
> When I reverted changes to configure.ac with the attached patch, I was
> able to build again. Now, testing of the new build remains.
>
I fired up podman with debian:testing, and reproduced the problem. Bug
found & fixed:

configure.ac was adding the output of pcre-config --libs to LDCONFIG,
not to LIBS. That isn't sound, but happened to work on Fedora 37. Now
fixed in Git.

https://gitlab.com/leafnode-2/leafnode-2/-/commit/44d278361adb3c1ac313ccdfd30e71b001fbe012
pushed.




More information about the leafnode-list mailing list