[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: 6.2 ate my headers, part II



I had a similar problem.

I fixed it by reinstalling the kernel headers, source, and ibcs.

You'll need to add --force otherwise rpm won't reinstall since it detects the headers are already there.

i.e. rpm -Uvh --force kernel-headers-2.2.16-3.i386.rpm kernel-source-2.2.16-3.i386.rpm kernel-IBCS-2.2.16-3.i386.rpm


Here's a better description of the problem.

After I upgraded to RH 6.2, cpp stopped working properly. It's not searching the egcs-2.91.66/include directory for header files.

cpp is at /usr/lib/gcc-lib/i386-redhat-linux/2.95.1/cpp ,BTW.

I read the cpp man page, and I know that I need to use the -i flag, but I don't know how to do that when cpp is called automatically from gcc.

So the questions are:

1. How do I add /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include to cpp's search path so gcc will work?

2. I what did I do wrong when I upgraded to cause this mess?



[richpav linux include]$ echo 'main(){printf("hello world\n");}' | gcc -E -v -
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
cpp -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=91 -D__ELF__ -Dunix -Di386
-D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__i386__ -D__linux__ -D__un
ix -D__i386 -D__linux -Asystem(posix) -Asystem(unix) -Acpu(i386) -Amachine(i386)
-Di386 -D__i386 -D__i386__ -D__tune_i386__ -
Using builtin specs.
gcc version 2.95.1 19990816/Linux (release)
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/cpp -lang-c -v -Asystem(posix) -Asyst
em(unix) -Acpu(i386) -Amachine(i386) -Acpu(i386) -Amachine(i386) -Di386 -D__i386
-D__i386__ -D__GNUC__=2 -D__GNUC_MINOR__=91 -D__ELF__ -Dunix -Di386 -D__i386__
-Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__i386__ -D__linux__ -D__unix -D__i386
-D__linux -Di386 -D__i386 -D__i386__ -D__tune_i386__ -
GNU CPP version 2.95.1 19990816/Linux (release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include


/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/../../../../i386-redhat-linux/inc lude
/usr/include
End of search list.
The following default directories have been omitted from the search path:
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/../../../../include/g++-3
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/include
End of omitted list.
# 1 ""
main(){printf("hello world\n");}
cpp: -lang-c: linker input file unused since linking not done



Thanks,


Rich
------------------------------------------------------------------
Richard M. Pavonarius, Global Commons, Inc., Tokyo


-- To unsubscribe: mail redhat-install-list-request redhat com with "unsubscribe" as the Subject.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]