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 520599 - Check for ggz is wrong
Check for ggz is wrong
Status: RESOLVED FIXED
Product: gnome-games-superseded
Classification: Deprecated
Component: general
unspecified
Other Linux
: High normal
: ---
Assigned To: GGZ Gaming Zone bugtracker gateway
GGZ Gaming Zone bugtracker gateway
: 510917 521191 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-03-05 21:32 UTC by Vincent Untz
Modified: 2012-01-31 23:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Preliminary ggz.m4 patch (12.62 KB, patch)
2008-03-08 10:47 UTC, Roger Light
committed Details | Review

Description Vincent Untz 2008-03-05 21:32:54 UTC
checking for GGZ library version: 0.0.14... no
configure: error: The GGZ version is too old. Version 0.0.14 is required.

But I do have version 0.0.14 installed.

configure:26679: result: yes (libraries /gnome/usr/lib, headers /gnome/usr/include)
configure:26717: checking for GGZ library version: 0.0.14
configure:26747: gcc -o conftest -g -O1   -L/gnome/usr/lib -L/usr/local/lib conftest.c  >&5
conftest.c:40:17: error: ggz.h: No such file or directory
conftest.c: In function 'main':
conftest.c:44: error: 'LIBGGZ_VERSION_MAJOR' undeclared (first use in this function)
conftest.c:44: error: (Each undeclared identifier is reported only once
conftest.c:44: error: for each function it appears in.)
conftest.c:44: error: 'LIBGGZ_VERSION_MINOR' undeclared (first use in this function)
conftest.c:44: error: 'LIBGGZ_VERSION_MICRO' undeclared (first use in this function)

It looks like it doesn't try to include files from /gnome/usr/include
Comment 1 Andreas Røsdal 2008-03-07 21:35:10 UTC
Josef, do you know why this probblem occurs?
Comment 2 Roger Light 2008-03-08 01:17:28 UTC
This is a known problem that has been fixed in a more recent ggz.m4 than gnome-games includes.

I think we've made more updates to ggz.m4 than gnome-games have, so the easiest solution is probably to get the latest ggz.m4 and copy the gnome modifications over to it. As far as I can tell, this essentially means adding the following to the new ggz.m4:

# AC_GGZ_CHECK_SERVER_DEFINES

AC_DEFUN([AC_GGZ_CHECK_SERVER_DEFINES],[
  AM_CONDITIONAL([GGZ_SERVER],[test "$ggz_server" = "yes"])
])

I verified the problem on an ubuntu feisty install and then made this change (and updated the other m4 files that gnome-games uses from ggz for good measure) and it detected libggz correctly.
Comment 3 Roger Light 2008-03-08 10:47:32 UTC
Created attachment 106837 [details] [review]
Preliminary ggz.m4 patch

This patch is a result of taking ggz.m4 from ggz trunk (revision 9724) and merging the gnome-games changes with it. I'm reasonably certain I've got everything correct, but it could do with some good testing.
Comment 4 Andreas Røsdal 2008-03-09 07:20:35 UTC
The patch looks good. We'll need releaseteam approval to commit it now though.
Comment 5 Roger Light 2008-03-10 00:13:39 UTC
I've tested the patch with gcc 4.3 (on opensuse-factory) with libggz and ggz-client-libs installed to /home/roger/local and gnome-games also installing to the same location. It worked fine (I verified that I had the same problem as Vincent before applying the patch).

I also tried installing gnome-games to /home/roger/local2 (where ggz did not exist) but only selecting aisleriot to be compiled to check that ggz was not required in that case. That also worked fine.
Comment 6 Vincent Untz 2008-03-11 12:39:09 UTC
Wouldn't it be much simpler to have pkg-config files for ggz?
Comment 7 Jason Dorje Short 2008-03-12 00:12:55 UTC
(In reply to comment #6)
> Wouldn't it be much simpler to have pkg-config files for ggz?

Yes.  Yes it would.

The original GGZ bootstrapping code predates the widespread adoption of pkg-config, so using it was never considered.  However I see no reason why converting to pkg-config would not make everything far, far easier.

-jason
Comment 8 Josef Spillner 2008-03-12 06:20:12 UTC
We can introduce pkg-config files but would still need the current checks in cases of pkg-config not being found.
For a comparison, we regularly notice compilation issues from people who don't have gettext installed. I doubt that pkg-config is present on more systems than gettext is. So while it may be widespread, I don't think it's omnipresent, especially outside of the Linux world.
Comment 9 Andreas Røsdal 2008-03-24 13:26:53 UTC
Patch applied to SVN trunk, so now the ggz.m4 in gnome-games is in sync with the one in GGZ trunk.

Using pkg-config in GGZ still seems like a good idea, though...

http://svn.gnome.org/viewvc/gnome-games?view=revision&revision=7546
Comment 10 Andreas Røsdal 2008-03-24 13:27:46 UTC
*** Bug 510917 has been marked as a duplicate of this bug. ***
Comment 11 Andreas Røsdal 2008-04-09 17:37:15 UTC
*** Bug 521191 has been marked as a duplicate of this bug. ***
Comment 12 Robert Ancell 2012-01-31 23:29:34 UTC
This bug is being reassigned to the "general" component so we can close the ggz bugzilla component.  Apologies for the mass email!