Re: [PATCH] building test cases with glib2.0 past 2.25.11



On Mon, 2010-08-09 at 23:48 -0400, Mathieu Trudel wrote:
> Hi,
> 
> I just checked, it seems at least that Fedora 14 development is still
> at glib2-2_25_11-1_fc14 if I understand the CVS repo correctly...
> 
> In any case, I just hit this issue while building NM master on Ubuntu
> maverick. It seems that somewhere past glib2 version 2.25.11, and
> definitely at version 2.25.13, src/tests/test-policy-hosts.c refuses
> to build:
> 
> test-policy-hosts.c: In function ‘main’:
> test-policy-hosts.c:686: error: passing argument 5 of
> ‘g_test_create_case’ from incompatible pointer type
> /usr/include/glib-2.0/glib/gtestutils.h:167: note: expected
> ‘GTestFixtureFunc’ but argument is of type ‘void (*)(void)’
> 
> The fix is pretty obvious but here's a patch anyway :)

It's actually an API break in glib and I filed a bug for it, but it's
likely that upstream might not care since it's not somethign production
code uses.  I've fixed it in a slightly different way though that's
backwards compatible.  I think that's all of them; I applied a patch
from vuntz yesterday to fix nm-applet.

Dan




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