Subject: | Can't compile Tk |
From: | SHCOREY [...] cpan.org |
$ perlbrew list
* perl-5.14.1
/usr/bin/perl (5.10.1)
$ cpanm Tk
--> Working on Tk
Fetching http://search.cpan.org/CPAN/authors/id/S/SR/SREZIC/Tk-804.029.tar.gz ... OK
Configuring Tk-804.029 ... OK
Building and testing Tk-804.029 ... FAIL
! Installing Tk failed. See /home/shawn/.cpanm/build.log for details.
$ tail -20 /home/shawn/.cpanm/build.log
cp tclIntPlatDecls.h ../blib/arch/Tk/pTk/tclIntPlatDecls.h
cp tkPlatDecls_f.h ../blib/arch/Tk/pTk/tkPlatDecls_f.h
cp default.h ../blib/arch/Tk/pTk/default.h
cp tkImgPhoto.m ../blib/arch/Tk/pTk/tkImgPhoto.m
cp tixForm.h ../blib/arch/Tk/pTk/tixForm.h
cp tkIntXlibDecls.h ../blib/arch/Tk/pTk/tkIntXlibDecls.h
cp tkDecls.t ../blib/arch/Tk/pTk/tkDecls.t
cp tkColor.h ../blib/arch/Tk/pTk/tkColor.h
cp Xlib.t ../blib/arch/Tk/pTk/Xlib.t
cp tkIntPlatDecls.t ../blib/arch/Tk/pTk/tkIntPlatDecls.t
cc -c -I.. -I. -Ibitmaps -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"804.029\" -DXS_VERSION=\"804.029\" -fPIC "-I/home/shawn/perl5/perlbrew/perls/perl-5.14.1/lib/5.14.1/x86_64-linux/CORE" -Wall -Wno-implicit-int -Wno-comment -Wno-unused -D__USE_FIXED_PROTOTYPES__ ClientWin.c
cc -c -I.. -I. -Ibitmaps -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"804.029\" -DXS_VERSION=\"804.029\" -fPIC "-I/home/shawn/perl5/perlbrew/perls/perl-5.14.1/lib/5.14.1/x86_64-linux/CORE" -Wall -Wno-implicit-int -Wno-comment -Wno-unused -D__USE_FIXED_PROTOTYPES__ Lang_f.c
cc -c -I.. -I. -Ibitmaps -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"804.029\" -DXS_VERSION=\"804.029\" -fPIC "-I/home/shawn/perl5/perlbrew/perls/perl-5.14.1/lib/5.14.1/x86_64-linux/CORE" -Wall -Wno-implicit-int -Wno-comment -Wno-unused -D__USE_FIXED_PROTOTYPES__ Xlib_f.c
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/shawn/.cpanm/work/1313243077.14170/Tk-804.029/pTk'
make: *** [pTk/libpTk.a] Error 2
-> FAIL Installing Tk failed. See /home/shawn/.cpanm/build.log for details.
$