monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-devel] Monotone fails to build with PCRE 8.42


From: Petr Pisar
Subject: [Monotone-devel] Monotone fails to build with PCRE 8.42
Date: Mon, 7 May 2018 14:24:39 +0200
User-agent: Mutt/1.9.2 (2017-12-15)

Hello,

monotone-1.1 fails to build with PCRE 8.42:

g++  -I.    -I/usr/include/botan-1.10           -O2 -g -pipe -Wall 
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS 
-fexceptions -fstack-protector-strong -grecord-gcc-switches 
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables 
-fstack-clash-protection -Wall -W -Wno-unused -c -o src/pcrewrap.o 
src/pcrewrap.cc
src/pcrewrap.cc: In destructor 
'pcre::regex_cache_manager::~regex_cache_manager()':
src/pcrewrap.cc:107:64: error: invalid const_cast from type 'const real_pcre*' 
to type 'pcre_t*' {aka 'real_pcre8_or_16*'}
               pcre_free(const_cast<pcre_t *>(iter->second.first));
                                                                ^

Attached patch adapts monotone.

By the way, PCRE is obsoleted by PCRE2. If monotone want to use a supported
regular expression engine, it should migrate to PCRE2.

-- Petr

Attachment: monotone-1.1-Adapt-to-changes-in-pcre-8.42.patch
Description: Text document

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]