Skip Menu |

This queue is for tickets about the Tk CPAN distribution.

Report information
The Basics
Id: 65852
Status: resolved
Priority: 0/
Queue: Tk

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

Bug Information
Severity: Important
Broken in: 804.029
Fixed in: (no value)



Subject: Build failure with recent xorg libs
As reported at <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=613188> and <http://bugs.gentoo.org/show_bug.cgi?id=345987> the following build failure arises with recent version of xorg's libraries: cc -c -I.. -I/usr/include/freetype2 -I. -Ibitmaps -I/usr/include/freetype2 -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"804.029\" -DXS_VERSION=\"804.029\" -fPIC "-I/usr/lib/perl/5.10/CORE" -Wall -Wno-implicit-int -Wno-comment -Wno-unused -D__USE_FIXED_PROTOTYPES__ Xlib_f.c In file included from Xlib_f.c:8: Xlib.h:22: error: conflicting types for 'XKeycodeToKeysym' /usr/include/X11/Xlib.h:1694: note: previous declaration of 'XKeycodeToKeysym' was here make[2]: *** [Xlib_f.o] Error 1 This incompatibility appears to have been introduce with libx11 1.4.x. There is a suggestion of a fix on the gentoo bug, but I have not confirmed that this is correct.
Subject: Here's a patch
This is now fixed in Debian. See http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=33;filename=fix-ftbs.dpatch;att=1;bug=613188 for the patch (dpatch format). Note that this patch does not remove the old "#ifndef _XLIB_H_" so perl-tk will still compile with older Xorg versions. Here the relevant part of the patch: --- perl-tk-804.029~/pTk/Xlib.h 2007-02-10 09:55:23.000000000 +0100 +++ perl-tk-804.029/pTk/Xlib.h 2011-04-20 17:37:27.000000000 +0200 @@ -1,6 +1,7 @@ #ifndef _XLIB #define _XLIB #ifndef _XLIB_H_ +#ifndef _X11_XLIB_H_ extern XFontStruct *XLoadQueryFont _ANSI_ARGS_((Display *, const char *)); extern XModifierKeymap *XGetModifierMapping _ANSI_ARGS_((Display *)); extern XImage *XCreateImage _ANSI_ARGS_((Display *, Visual *, unsigned int, int, int, char *, unsigned int, unsigned int, int, int)); @@ -143,6 +144,7 @@ extern Window XGetSelectionOwner _ANSI_ARGS_((Display *, Atom)); extern int XRectInRegion _ANSI_ARGS_((Region,int,int,unsigned,unsigned)); extern int XSubtractRegion _ANSI_ARGS_((Region, Region, Region)); +#endif /* _X11_XLIB_H_ */ #endif /* _XLIB_H_ */ extern int _XInitImageFuncPtrs _ANSI_ARGS_((XImage *image)); #endif /* _XLIB */ All the best
On 2011-02-17 15:52:39, DOM wrote: Show quoted text
> As reported at > > <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=613188> > and > <http://bugs.gentoo.org/show_bug.cgi?id=345987> > > the following build failure arises with recent version of xorg's
libraries: Show quoted text
> > cc -c -I.. -I/usr/include/freetype2 -I. -Ibitmaps > -I/usr/include/freetype2 -D_REENTRANT -D_GNU_SOURCE -DDEBIAN > -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g > -DVERSION=\"804.029\" -DXS_VERSION=\"804.029\" -fPIC > "-I/usr/lib/perl/5.10/CORE" -Wall -Wno-implicit-int -Wno-comment > -Wno-unused -D__USE_FIXED_PROTOTYPES__ Xlib_f.c > In file included from Xlib_f.c:8: > Xlib.h:22: error: conflicting types for 'XKeycodeToKeysym' > /usr/include/X11/Xlib.h:1694: note: previous declaration of > 'XKeycodeToKeysym' was here > make[2]: *** [Xlib_f.o] Error 1 > > This incompatibility appears to have been introduce with libx11 1.4.x. > There is a suggestion of a fix on the gentoo bug, but I have not > confirmed that this is correct.
Thanks, fixed in 804.029_500. Regards, Slaven