[Apologies to everyone for the broken previous posting. I was bitten by a junk 
web-mail interface...
Please presume angle-brackets where necessary]

Dear afriendinit,
you posted the following details:

> gcc -I"/home/shashi/workspace/Sample" -I/usr/local/ssl/include/ 
> -I/usr/local/ssl/lib -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP 
> -MF"common.d" -MT"common.d" -o"common.o" "../common.c"
> In file included from 
> /usr/lib/gcc/i386-redhat-linux/4.3.0/include/limits.h:122,
> from /usr/lib/gcc/i386-redhat-linux/4.3.0/include/syslimits.h:7,
> from /usr/lib/gcc/i386-redhat-linux/4.3.0/include/limits.h:11,
> from /usr/include/bits/socket.h:32,
> from /usr/include/sys/socket.h:36,
> from ../common.h:8,
> from ../common.c:1:
> /usr/include/limits.h:122:61: error: no include path in which to search for 
> limits.h
> make: *** [common.o] Error 1

The reference to /usr/include/limits.h looks a bit strange.
It seems that somehow the gcc private header limits.h has been copied
or symlinked into /usr/include/limits.h.

GCC, asked to find limits.h, hunts for and finds its own private limits.h,
using its own built-in compiler magic. From line 122 it tries to include
the global system limits.h , probably trying for the one installed by
glibc, in the *rest* of the search path - which is what #include_next
does. When it finds /usr/include/limits.h, it's just another copy of (or
a symlink to) the GCC private header, which *should not happen*.
It works through it, reaches line 122 again, and this time when it
tries to find limits.h in the *rest* of the search path there isn't one.
Hence the rather odd error.

The question is, how did /usr/include/limits.h come to be what it is?
I'd be intrigued to know what you can tell me about it (whether it's
an ordinary file or a symlink, what its time-stamps are, what the
corresponding time-stamps are for the gcc private copy, that sort
of thing). However, what you really need is a repair.
I think you should delete the existing thing (just to be careful),
and force a fresh installation of glibc. You should then have the
Right Thing in /usr/include/limits.h .

I hope this helps.

Bernard Leak
--
Before they made me, they broke the mould.

_________________________________________________________________
Amazing prizes every hour with Live Search Big Snap
http://www.bigsnapsearch.com______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to