./configure failing on limits.h SOLVED
Michael Hipp
Michael
Wed Jan 12 21:26:37 PST 2005
Michael Hipp wrote:
> Net Llama! wrote:
>
>> On Wed, 12 Jan 2005, Michael Hipp wrote:
>>
>>> I'm trying to compile a package from source on a FC3 machine. I'm stuck
>>> at the ./configure step where it says:
>>>
>>> configure:5525: error: C preprocessor "/lib/cpp" fails sanity check
>>> See `config.log' for more details.
>>>
>>> In config.log I find this that seems to be the problem:
>>>
>>> | Syntax error
>>> configure:5450: /lib/cpp conftest.c
>>> In file included from
>>> /usr/lib/gcc/i386-redhat-linux/3.4.2/include/syslimits.h:7,
>>> from
>>> /usr/lib/gcc/i386-redhat-linux/3.4.2/include/limits.h:11,
>>> from conftest.c:15:
>>> /usr/lib/gcc/i386-redhat-linux/3.4.2/include/limits.h:122:61: limits.h:
>>> No such file or directory
>>>
>>> But the limits.h file is there and with normal perms. Any thoughts on
>>> what could be causing this?
>>
>>
>>
>> What is it that you're trying to build?
>
>
> http://freshmeat.net/projects/datreader/
>
> It reads and dumps old DOS Clarion database files. I'm hoping to mod
> this package and use it to read them in real time. But the author
> offered no installation instructions so I'm flying by instruments.
>
>> After a bit of googling, this sounds like it might be relevant:
>> http://groups-beta.google.com/group/alt.os.linux.slackware/browse_thread/thread/4d5a7235623cb275/1bac48361bf93b7f?q=limits.h+%22C+preprocessor+%22%2Flib%2Fcpp%22+fails+sanity+check%22&_done=%2Fgroups%3Fas_q%3Dlimits.h%26as_epq%3DC+preprocessor+%22%2Flib%2Fcpp%22+fails+sanity+check%26safe%3Doff%26lr%3D%26num%3D50%26hl%3Den%26&_doneTitle=Back+to+Search&&d#1bac48361bf93b7f
>>
>
>
> Yes. That looks like the answer. Looks like I'm missing a -devel package
> in either the kernel or libc. I'll look around.
Ended up doing
yum install glibc-headers.i386 glibc-kernheaders.i386
to solve it. I would have thought these came along with the "Development
Tools" group. But I've got this box so borked anything is possible.
Michael
More information about the Linux-users
mailing list