"/lib/cpp" fails sanity check
i just recently upgraded to the 2.6.18 kernel from the stock one in slackware 10.2. the whole reason for the upgrade was because i want to install NetworkManager but it requires HAL and HAL requires 26 kernel. i still dont have hal installed but i ran the configure script for network manager again just to see what would happen, under 24 kernel with would stop with an error for hal, now under the 26 kernel the scripts gets this error when ran:
Code:
C++ preprocessor "/lib/cpp" fails sanity check also i have that same error when trying to install pango. that was a few weeks ago and i was doing that under the 24 kernel. hmm.. |
I'm getting the same error trying to recompile XSupplicant under 2.4.33.3 after upgrading to 11.0. I normally have to recompile the app after kernel upgrades, but I can't get past the above error.
Kernel source, headers and make tools are all installed. |
You are missing the C++ compiler from the gcc. /lib/cpp is created while compiling gcc on the second pass.
Reinstall the gcc packages and try to run the script again. |
upgradepkg --reinstall slackware/d/gcc*.tgz
Same problem. |
There's usually a log file created after the error, read carefully and see if you can locate it. It's usually more specific about the problem, there are a lot of things that makes the sanity check fail.
|
Thanks for trying to help with this. I can't compile anything right now, including XFCE4 panel plugins.
Snipped from config.log: Code:
configure:2973: checking dependency style of gcc Code:
grep cpp config.log Code:
ls -al /lib/cpp Code:
~/xfce4-xmms-plugin-0.3.1$ ./configure |
here the the bottom end of a couple of config.log files:
Code:
## ----------- ## Code:
## ----------- ## Code:
## ----------- ## i got "gcc-4.1.1.tar.bz2" from ftp://mirrors.laffeycomputer.com/pub...ses/gcc-4.1.1/. not sure what the other filee are for in that directory? |
To 2Gnu,
Code:
/usr/include/bits/local_lim.h:36:26: /usr/local/include/linux/limits.h: Permission denied limits.h is from the glibc headers. It should be under /usr/include/linux . Try to reinstall glibc. |
To 311Sam,
Try posting the full config.log. |
Quote:
There are only a few dirs related to i2c. There are headers are in /usr/include/linux, but nothing in /usr/local/include. I made a filthy hack: moved the stuff in /usr/local/include/linux and made a symlink to /usr/include/linux and some things are compiling (except for XSupplicant). |
2Gnu, what kernel-headers package are you using? Remember you should use 2.4 kernel-headers package on Slackware (at least by default..) because glibc was compiled against it.
|
/d/kernel-headers-2.4.33.3-i386-1.tgz
Thanks. |
Quote:
|
Quote:
Thanks for helping:) |
From the log:
Quote:
Quote:
|
All times are GMT -5. The time now is 04:14 AM. |