Bug 30041 - ck-log-event.c:687: error: 'GRegex' undeclared (first use in this function)
Summary: ck-log-event.c:687: error: 'GRegex' undeclared (first use in this function)
Status: RESOLVED FIXED
Alias: None
Product: ConsoleKit
Classification: Unclassified
Component: Daemon (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium blocker
Assignee: william.jon.mccann
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-06 03:45 UTC by saurabh
Modified: 2010-09-19 15:24 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
The o/p of configure and make on my setup. (16.92 KB, text/plain)
2010-09-06 03:45 UTC, saurabh
Details
Bump GLIB_REQUIRED_VERSION to 2.14 for GRegex (662 bytes, patch)
2010-09-06 13:55 UTC, Michael Biebl
Details | Splinter Review

Description saurabh 2010-09-06 03:45:30 UTC
Created attachment 38472 [details]
The o/p of configure and make on my setup. 

I am trying to compile on Linux:
$ uname -a
Linux <my hostname> 2.6.18-128.el5 #1 SMP Wed Dec 17 11:41:38 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
I am getting the error "ck-log-event.c:687: error: 'GRegex' undeclared (first use in this function)". I tried this with ConsoleKit-0.2.10 and ConsoleKit-0.4.1 with same result. I have attached the o/p of configure and make on my setup.
Comment 1 Michael Biebl 2010-09-06 12:49:04 UTC
(In reply to comment #0)
> Created an attachment (id=38472) [details]
> The o/p of configure and make on my setup. 
> 
> I am trying to compile on Linux:
> $ uname -a
> Linux <my hostname> 2.6.18-128.el5 #1 SMP Wed Dec 17 11:41:38 EST 2008 x86_64
> x86_64 x86_64 GNU/Linux
> I am getting the error "ck-log-event.c:687: error: 'GRegex' undeclared (first
> use in this function)". I tried this with ConsoleKit-0.2.10 and
> ConsoleKit-0.4.1 with same result. I have attached the o/p of configure and
> make on my setup.

Which version of glib do you have?
Comment 2 Michael Biebl 2010-09-06 12:50:30 UTC
(In reply to comment #1)
> (In reply to comment #0)
> > I am getting the error "ck-log-event.c:687: error: 'GRegex' undeclared (first
> > use in this function)". I tried this with ConsoleKit-0.2.10 and

> 
> Which version of glib do you have?

That said, GRegex requires at least 2.14, so 
GLIB_REQUIRED_VERSION=2.7.0 needs to be updated to at least this version.
Comment 3 Michael Biebl 2010-09-06 13:54:31 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > (In reply to comment #0)
> > > I am getting the error "ck-log-event.c:687: error: 'GRegex' undeclared (first
> > > use in this function)". I tried this with ConsoleKit-0.2.10 and
> 
> > 
> > Which version of glib do you have?
> 
> That said, GRegex requires at least 2.14, so 
> GLIB_REQUIRED_VERSION=2.7.0 needs to be updated to at least this version.

If tested with 2.16.6 (Debian lenny) and 0.4.2 compiles fine. So I'm bumping GLIB_REQUIRED_VERSION to 2.14.

See attached patch
Comment 4 Michael Biebl 2010-09-06 13:55:01 UTC
Created attachment 38487 [details] [review]
Bump GLIB_REQUIRED_VERSION to 2.14 for GRegex
Comment 5 saurabh 2010-09-07 01:10:54 UTC
Should I download the 0.4.2 tarball and try to compile it now? This is the first time I have opened a bug on this forum. I don't know how frequently the changes are pushed to the source code repository. Hence the question.
Comment 6 Lennart Poettering 2010-09-19 15:24:23 UTC
Fixed in git.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.