LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-23-2011, 04:40 PM   #1
pdags
LQ Newbie
 
Registered: Mar 2011
Posts: 6

Rep: Reputation: 0
Can't install Tk (Tk-804.029.tar.gz) from CPAN in slackware-current x86_64


I'm trying to install Tk from CPAN in slackware-current x86_64 for perl v5.12.3 and get the following error message
Code:
In file included from Xlib_f.c:8:0:
Xlib.h:22:15: error: conflicting types for 'XKeycodeToKeysym'
/usr/include/X11/Xlib.h:1694:15: note: previous declaration of 'XKeycodeToKeysym' was here
make[1]: *** [Xlib_f.o] Error 1
make[1]: Leaving directory `/home/me/.cpan/build/Tk-804.029-L6rjQp/pTk'
make: *** [pTk/libpTk.a] Error 2
  SREZIC/Tk-804.029.tar.gz
  /usr/bin/make -- NOT OK
Running make test
  Can't test without successful make
Running make install
  Make had returned bad status, install seems impossible
Failed during this command:
 SREZIC/Tk-804.029.tar.gz                     : make NO
I tried falling back to the perl package from 13.1, but got the same error.
Looking around, it seems like this is a conflict with X. http://bugs.gentoo.org/show_bug.cgi?id=345987

Anyone have any idea how I can resolve this?

BTW, this is my first post here. Every other time I've visited someone has already solved my problem for me . Thanks!
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 03-23-2011, 08:22 PM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
There is a patch.

804.029-X11_XLIB_H.patch
Code:
https://bugs.gentoo.org/show_bug.cgi?id=345987
--- Tk-804.029/pTk/Xlib.h
+++ Tk-804.029/pTk/Xlib.h
@@ -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 */
 
2 members found this post helpful.
Old 03-24-2011, 09:13 AM   #3
pdags
LQ Newbie
 
Registered: Mar 2011
Posts: 6

Original Poster
Rep: Reputation: 0
That got it. Thanks! Just for my own edification, where did you find that patch? I looked for it in the bug report, but didn't see it.
 
Old 03-24-2011, 10:33 AM   #4
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
Quote:
Originally Posted by pdags View Post
That got it. Thanks! Just for my own edification, where did you find that patch? I looked for it in the bug report, but didn't see it.
I just got it out of my gentoo partition, but you can get it from this page:

http://ftp.twaren.net/Linux/Gentoo/g...perl-tk/files/

or

http://www2.nl.freebsd.org/vol1/linu...perl-tk/files/
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fonts for Gnome apps in std Slackware install ( X86_64 -current ) rpedrica Slackware 2 01-05-2011 01:10 AM
[SOLVED] libpng clash in kopete and kmess - slackware current x86_64 trumpet_tom Slackware 7 03-28-2010 02:59 PM
Slackware x86_64 '-current' FireFox & Thunderbird issues with linking onebuck Slackware 6 01-22-2010 02:38 PM
Have you been running slackware-current for the first time for x86_64? If so . . . foodown Slackware 19 08-20-2009 12:06 AM
Slackware-current (x86_64) Xorg crash chaosorama Slackware 3 08-01-2009 02:09 AM


All times are GMT -5. The time now is 10:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration