[MacPorts] #57852: monotone: error: const_cast from 'const real_pcre *' to 'pcre_t *'

MacPorts noreply at macports.org
Sat Jan 5 05:46:20 UTC 2019


#57852: monotone:  error: const_cast from 'const real_pcre *' to 'pcre_t *'
--------------------+----------------------
 Reporter:  mojca   |      Owner:  (none)
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:
 Keywords:          |       Port:  monotone
--------------------+----------------------
 See [https://build.macports.org/builders/ports-10.8_x86_64_legacy-
 builder/builds/84022/ logs from the buildbot]:

 {{{
 src/pcrewrap.cc:107:25: error: const_cast from 'const real_pcre *' to
 'pcre_t *' (aka 'real_pcre8_or_16 *') is not allowed
               pcre_free(const_cast<pcre_t *>(iter->second.first));
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 src/pcrewrap.cc:133:13: error: assigning to 'const struct real_pcre *'
 from incompatible type 'pcre_t *' (aka 'real_pcre8_or_16 *')
     basedat = pcre_compile2(pattern, flags_to_internal(options),
             ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 src/pcrewrap.cc:138:22: error: no matching function for call to
 'pcre_study'
     pcre_extra *ed = pcre_study(basedat, 0, &err);
                      ^~~~~~~~~~
 /opt/local/include/pcre.h:633:27: note: candidate function not viable:
 cannot convert argument of incomplete type 'const struct real_pcre *' to
 'const pcre_t *' (aka 'const real_pcre8_or_16 *')
 PCRE_EXP_DECL pcre_extra *pcre_study(const pcre *, int, const char **);
                           ^
 src/pcrewrap.cc:180:14: error: no matching function for call to
 'pcre_exec'
     int rc = pcre_exec(basedat, extradat,
              ^~~~~~~~~
 }}}

 There are two existing ancient tickets for this port: #38515, #40277.
 The problem surfaced while trying to build perl modules: #57848.

-- 
Ticket URL: <https://trac.macports.org/ticket/57852>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list