After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 640261 - Minimum version for external pcre needs to be bumped
Minimum version for external pcre needs to be bumped
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gregex
2.27.x
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2011-01-22 15:36 UTC by Emilio Pozuelo Monfort
Modified: 2011-01-22 15:45 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Bump PCRE minimum required version (734 bytes, patch)
2011-01-22 15:39 UTC, Emilio Pozuelo Monfort
committed Details | Review

Description Emilio Pozuelo Monfort 2011-01-22 15:36:18 UTC
I'm building 2.27.92 with system pcre. The version I have is 8.02, which is way greater than what configure requires (7.2).

The build fails with:

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/tmp/buildd/glib2.0-2.27.92/./glib -I.. -I.. -I../glib -I/tmp/buildd/glib2.0-2.27.92/./glib -I/tmp/buildd/glib2.0-2.27.92/. -DG_LOG_DOMAIN=\"GLib\" -DG_ENABLE_DEBUG -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION -DPCRE_STATIC -DG_DISABLE_SINGLE_INCLUDES -pthread -g -O2 -g -O2 -Wall -c /tmp/buildd/glib2.0-2.27.92/./glib/gregex.c  -fPIC -DPIC -o .libs/gregex.o
/tmp/buildd/glib2.0-2.27.92/./glib/gregex.c: In function 'match_error':
/tmp/buildd/glib2.0-2.27.92/./glib/gregex.c:233: error: 'PCRE_ERROR_BADOFFSET' undeclared (first use in this function)
/tmp/buildd/glib2.0-2.27.92/./glib/gregex.c:233: error: (Each undeclared identifier is reported only once
/tmp/buildd/glib2.0-2.27.92/./glib/gregex.c:233: error: for each function it appears in.)
/tmp/buildd/glib2.0-2.27.92/./glib/gregex.c:235: error: 'PCRE_ERROR_SHORTUTF8' undeclared (first use in this function)
/tmp/buildd/glib2.0-2.27.92/./glib/gregex.c: In function 'g_regex_new':
/tmp/buildd/glib2.0-2.27.92/./glib/gregex.c:1212: error: 'PCRE_UCP' undeclared (first use in this function)
make[5]: *** [gregex.lo] Error 1


Looking at http://vcs.pcre.org/viewvc/code/trunk/NEWS?revision=589&view=markup, the version should be bumped to 8.11, where PCRE_ERROR_SHORTUTF8 was added.
Comment 1 Emilio Pozuelo Monfort 2011-01-22 15:39:07 UTC
Created attachment 179041 [details] [review]
Bump PCRE minimum required version

OK to push?
Comment 2 Emilio Pozuelo Monfort 2011-01-22 15:45:02 UTC
Comment on attachment 179041 [details] [review]
Bump PCRE minimum required version

Pushed as 9f0c592b9c5f9ac57d3454f02ffa92e98001ceaf
Comment 3 Emilio Pozuelo Monfort 2011-01-22 15:45:16 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.