https://bugzilla.redhat.com/show_bug.cgi?id=1499505
Bug ID: 1499505
Summary: perl XS files including /usr/include/gtk-2.0/gtk/gtk.h
fail with ATK_MINOR_VERSION redefined
Product: Fedora
Version: 26
Component: perl-Gtk2
Severity: medium
Assignee: tcallawa(a)redhat.com
Reporter: trevor(a)tecnopolis.ca
QA Contact: extras-qa(a)fedoraproject.org
CC: perl-devel(a)lists.fedoraproject.org,
tcallawa(a)redhat.com
Description of problem:
I have a perl script that has an XS component and it calls:
#include <gtk/gtk.h>
and that fails on cpan make with a version mismatch (see error at bottom).
So it looks like Fedora has moved to version 22 but the perl cpan module
included with Fedora is stuck at the old version. I checked and it seems
upstream is still the old version too. Should I take this upstream with the
cpan author? I'm not sure why the module is even defining this constant at
all, but it worked fine in older Fedoras.
Version-Release number of selected component (if applicable):
atk-devel-2.24.0-1.fc26.x86_64
perl-Gtk2-1.2499-2.fc26.x86_64
How reproducible:
always
Steps to Reproduce:
1. Have a perl XS file that has the line:
#include <gtk/gtk.h>
2. have that script run
3. (I use Gtk2::CV to reproduce this bug if you use cpan to install/build that
you'll see the problem)
Actual results:
In file included from
/usr/lib64/perl5/vendor_perl/Gtk2/Install/gtk2perl.h:31:0,
from CV.xs:17:
/usr/lib64/perl5/vendor_perl/Gtk2/Install/gtk2perl-versions.h:2:0: warning:
"ATK_MINOR_VERSION" redefined
#define ATK_MINOR_VERSION (22)
In file included from /usr/include/atk-1.0/atk/atkobject.h:29:0,
from /usr/include/atk-1.0/atk/atk.h:25,
from /usr/include/gtk-2.0/gtk/gtkwidget.h:40,
from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35,
from /usr/include/gtk-2.0/gtk/gtkbin.h:35,
from /usr/include/gtk-2.0/gtk/gtkwindow.h:36,
from /usr/include/gtk-2.0/gtk/gtkdialog.h:35,
from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32,
from /usr/include/gtk-2.0/gtk/gtk.h:33,
from CV.xs:13:
/usr/include/atk-1.0/atk/atkversion.h:53:0: note: this is the location of the
previous definition
#define ATK_MINOR_VERSION (24)
Expected results:
no error, file compiles in cpan
Additional info:
Worked fine in Fedora 24
--
You are receiving this mail because:
You are on the CC list for the bug.