Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

"'LONG_MIN' undeclared" error while building gcc 3.3.2

683 views
Skip to first unread message

Rajesh Jayaprakash

unread,
Nov 10, 2003, 10:13:17 PM11/10/03
to
Hi everybody,

When I build gcc 3.3.2 I get this error. Configure was successful,
though.

The error occurs when compiling a file called fibheap.c

One of the messages during configure was 'checking for limits.h...
no', but this file is available in /usr/include. Not sure whether this
is the problem.

I am using Debian Woody 3.0 r1.

Any help would be greatly appreciated.

Thanks and regards,

Rajesh Jayaprakash

Guy Harrison

unread,
Nov 11, 2003, 9:34:28 AM11/11/03
to
Rajesh Jayaprakash wrote:

> Hi everybody,
>
> When I build gcc 3.3.2 I get this error. Configure was successful,
> though.
>
> The error occurs when compiling a file called fibheap.c
>
> One of the messages during configure was 'checking for limits.h...
> no', but this file is available in /usr/include. Not sure whether this
> is the problem.

It could be.



> I am using Debian Woody 3.0 r1.

You may be best checking your 'configure' settings there.



> Any help would be greatly appreciated.

There's the capability for gcc to provide its own limits.h should the system
one doesn't exist. I don't know the circumstances/details because it has
never bitten me. fibheap.c is part of libiberty so look at that config.h
and see if HAVE_LIMITS_H is defined or not. It's possible that fibheap.c
has a bug in that it can't cope with non-system limits.h, or equally likely
the bug might be that it arrived there when it shouldn't. However, I
suspect both these possible problems will vanish once you cause 'configure'
to see limits.h, which is why you're probably best asking in a woody forum.


--
Guy Harrison

Rajesh Jayaprakash

unread,
Nov 12, 2003, 2:42:39 PM11/12/03
to
Guy,

Thanks for your reply.

I fixed the problem by installing the kernel-headers package and
creating symbolic links to the 'linux' and 'asm' kernel include
directories in /usr/include.

Regards,

Rajesh

0 new messages