Skip Menu |

This queue is for tickets about the Gtk2 CPAN distribution.

Report information
The Basics
Id: 69927
Status: resolved
Priority: 0/
Queue: Gtk2

People
Owner: Nobody in particular
Requestors: JAWNSY [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 1.223
Fixed in: (no value)

Attachments


Subject: Minor warning about const gchar pointer (GtkRecentManager)
I'm getting this warning during build: [ CC xs/GtkRecentManager.c ] xs/GtkRecentManager.xs: In function 'XS_Gtk2__RecentInfo_get_application_info': xs/GtkRecentManager.xs:367:11: warning: passing argument 3 of 'gtk_recent_info_get_application_info' from incompatible pointer type [enabled by default] /usr/include/gtk-2.0/gtk/gtkrecentmanager.h:187:23: note: expected 'const gchar **' but argument is of type 'gchar **' [ XS xs/GtkStatusIcon.xs ] I could submit a patch, I guess, but presumably this is a really easy fix...
On Sun Jul 31 22:18:09 2011, JAWNSY wrote: Show quoted text
> [ CC xs/GtkRecentManager.c ] > xs/GtkRecentManager.xs: In function > 'XS_Gtk2__RecentInfo_get_application_info': > xs/GtkRecentManager.xs:367:11: warning: passing argument 3 of > 'gtk_recent_info_get_application_info' from incompatible pointer type > [enabled by default] > /usr/include/gtk-2.0/gtk/gtkrecentmanager.h:187:23: note: expected > 'const gchar **' but argument is of type 'gchar **'
Weird, I cannot reproduce this. Does the XS code not look like this for you? void gtk_recent_info_get_application_info (info, app_name) GtkRecentInfo *info const gchar *app_name PREINIT: const gchar *app_exec; guint count; time_t timestamp; gboolean res; PPCODE: res = gtk_recent_info_get_application_info (info, app_name, &app_exec, &count, &timestamp); [...] In particular, it should have "const gchar *app_exec", matching the prototype of gtk_recent_info_get_application_info. Why is "&app_exec" a "gchar**" in your case?
Subject: Re: [rt.cpan.org #69927] Minor warning about const gchar pointer (GtkRecentManager)
Date: Sun, 8 Jan 2012 08:57:30 -0500
To: bug-Gtk2 [...] rt.cpan.org
From: Jonathan Yu <jawnsy [...] cpan.org>
Hi there, I'm not sure whether this bug applies to the current verison of Gtk2, and it has been quite awhile since I initially filed the bug (July 31st 2011) -- I actually don't remember having filed this :-) Please give me a day or two to take a look at this; it is possible that the issue has been resolved now, or is due to an old version of xspp, or something like that. Thank you for your interest :-) Regards, Jonathan On Sun, Jan 8, 2012 at 8:54 AM, Torsten Schoenfeld via RT < bug-Gtk2@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=69927 > > > On Sun Jul 31 22:18:09 2011, JAWNSY wrote:
> > [ CC xs/GtkRecentManager.c ] > > xs/GtkRecentManager.xs: In function > > 'XS_Gtk2__RecentInfo_get_application_info': > > xs/GtkRecentManager.xs:367:11: warning: passing argument 3 of > > 'gtk_recent_info_get_application_info' from incompatible pointer type > > [enabled by default] > > /usr/include/gtk-2.0/gtk/gtkrecentmanager.h:187:23: note: expected > > 'const gchar **' but argument is of type 'gchar **'
> > Weird, I cannot reproduce this. Does the XS code not look like this for > you? > > void > gtk_recent_info_get_application_info (info, app_name) > GtkRecentInfo *info > const gchar *app_name > PREINIT: > const gchar *app_exec; > guint count; > time_t timestamp; > gboolean res; > PPCODE: > res = gtk_recent_info_get_application_info (info, app_name, > &app_exec, > &count, > &timestamp); > [...] > > In particular, it should have "const gchar *app_exec", matching the > prototype of gtk_recent_info_get_application_info. > > Why is "&app_exec" a "gchar**" in your case? >
Subject: format %Ld expects arguments of 'long long int', argument 2 has type 'long int'
Hi, It looks like the original bug was fixed after version 1.223 However, 1.242 has a new issue: [ CC xs/GtkTreeModel.c ] xs/GtkTreeModel.xs: In function 'XS_Gtk2__TreeModel_rows_reordered': xs/GtkTreeModel.xs:1412:10: warning: format '%Ld' expects argument of type 'long long int', but argument 2 has type 'long int' [-Wformat] [ XS xs/GtkTreeModelSort.xs ] I've attached build logs for both - I am one of the people responsible for building Gtk2 into a Debian package, libgtk2-perl. The build logs contain a fair amount of Debian-specific stuff, but if you go to about halfway down these files, you'll see where the standard Perl toolchain (ExtUtils::MakeMaker, Module::Build, etc.) takes over to compile and build everything. I hope this helps! Please let me know if I can be of any further assistance in debugging this issue. The specific versions of the other dependencies we've used (gtk2, etc.) are shown in the build logs
Subject: libgtk2-perl_1.223-2-i386-20110731-1335
Download libgtk2-perl_1.223-2-i386-20110731-1335
application/octet-stream 221.3k

Message body not shown because it is not plain text.

Subject: libgtk2-perl_1.242-1-i386-20120211-1211
Download libgtk2-perl_1.242-1-i386-20120211-1211
application/octet-stream 232.6k

Message body not shown because it is not plain text.

On Sat Feb 11 12:57:12 2012, JAWNSY wrote: Show quoted text
> [ CC xs/GtkTreeModel.c ] > xs/GtkTreeModel.xs: In function 'XS_Gtk2__TreeModel_rows_reordered': > xs/GtkTreeModel.xs:1412:10: warning: format '%Ld' expects argument of > type 'long long int', but argument 2 has type 'long int' [-Wformat]
Should now be fixed in git master. Thanks for the report.