Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 05-24-2013, 10:09 AM   #1
LQ Newbie
Registered: May 2013
Posts: 12

Rep: Reputation: Disabled
Error compiling Term:ReadKey

I am getting the following error while trying to compile/install the perl module Term:ReadKey, which is required by git-svn.

/usr/bin/perl5.16.3 /usr/share/perl5/ExtUtils/xsubpp -noprototypes -typemap /usr/share/perl5/ExtUtils/typemap ReadKey.xs > ReadKey.xsc && mv ReadKey.xsc ReadKey.c
Warning: Found a 'CODE' section which seems to be using 'RETVAL' but no 'OUTPUT' section. in ReadKey.xs, line 1805
cc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -fPIC -DVERSION=\"2.30\" -DXS_VERSION=\"2.30\" -fPIC "-I/usr/lib64/perl5/CORE" ReadKey.c
In file included from /usr/include/bits/posix1_lim.h:157:0,
from /usr/include/limits.h:145,
from /usr/lib64/gcc/x86_64-slackware-linux/4.7.1/include-fixed/limits.h:169,
from /usr/lib64/gcc/x86_64-slackware-linux/4.7.1/include-fixed/syslimits.h:7,
from /usr/lib64/gcc/x86_64-slackware-linux/4.7.1/include-fixed/limits.h:34,
from /usr/include/sys/param.h:27,
from /usr/lib64/perl5/CORE/perl.h:676,
from ReadKey.xs:4:
/usr/include/bits/local_lim.h:39:26: fatal error: linux/limits.h: No such file or directory
compilation terminated.

Notice that the error occurs both with the SlackBuild (from and also when using cpan (install Term:ReadKey). To try with cpan

install Term:ReadKey

I *think* it is an error within the module and not in slackware64, but some confirmation would be good so I can file a bug report or attempt to solve it. Thanks!
Old 05-24-2013, 10:17 AM   #2
Senior Member
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 3,646

Rep: Reputation: 958Reputation: 958Reputation: 958Reputation: 958Reputation: 958Reputation: 958Reputation: 958Reputation: 958
there are some packages that contains limits.h

willysr@desktop:~$ slackpkg file-search limits.h

Looking for limits.h in package list. Please wait... DONE

The list below shows the packages that contains "limits\.h" file.

[ installed ] - dev86-0.16.17-i486-1
[ installed ] - gcc-4.8.0-i486-3
[ installed ] - gcc-g++-4.8.0-i486-3
[ installed ] - kernel-headers-3.8.13_smp-x86-1
[ installed ] - llvm-3.2-i486-4
[uninstalled] - kernel-source-3.8.13_smp-noarch-1
[ installed ] - glibc-2.17-i486-3
[ installed ] - tetex-3.0-i486-8
Old 05-24-2013, 10:31 AM   #3
LQ Newbie
Registered: May 2013
Posts: 12

Original Poster
Rep: Reputation: Disabled
Thanks for your file-search tip. I ran it and got:

The list below shows the packages that contains "limits\.h" file.

[uninstalled] - kernel-headers-3.2.45-x86-2
[ upgrade ] - kernel-source-3.2.29-noarch-1 --> kernel-source-3.2.45-noarch-2
[ installed ] - dev86-0.16.17-x86_64-2
[ installed ] - gcc-4.7.1-x86_64-1
[ installed ] - gcc-g++-4.7.1-x86_64-1
[ installed ] - llvm-3.0-x86_64-2
[ installed ] - glibc-2.15-x86_64-7
[ installed ] - tetex-3.0-x86_64-8

So what happened is that I had to manually remove the kerne* packages, and reinstalled from the DVD, as my machine was hit by the i915 driver issue. I forgot to reinstall the kernel-headers after downgrading the kernel Now I got them from the installation DVD and the compilation proceeds fine. Solved!


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
i get an error ./term.c :95 error conflicting types of tpam when compiling bitchx eveningblush Programming 0 03-30-2006 06:46 AM
mrtg ERROR: Bailout after SIG TERM stomach Linux - Software 0 02-13-2006 11:06 AM
scp error, TERM env. variable not set? jimbo Linux - Networking 2 11-26-2005 01:31 AM
Installing XMLTV; error shubb Linux - Software 2 09-12-2005 03:13 PM
shell for READKEY Rex_chaos Linux - General 1 06-28-2002 05:34 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:30 PM.

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