SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
i dont get why a kernel update would effect that? is there any way around that other then recompiling gcc from source??
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.
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
configure:3063: result: gcc3
configure:3086: checking how to run the C preprocessor
configure:3121: gcc -E conftest.c
In file included from /usr/include/bits/posix1_lim.h:153,
from /usr/include/limits.h:144,
from /usr/lib/gcc/i486-slackware-linux/3.4.6/include/limits.h:122,
from /usr/lib/gcc/i486-slackware-linux/3.4.6/include/syslimits.h:7,
from /usr/lib/gcc/i486-slackware-linux/3.4.6/include/limits.h:11,
from conftest.c:12:
/usr/include/bits/local_lim.h:36:26: /usr/local/include/linux/limits.h: Permission denied
configure:3127: $? = 1
configure: failed program was:
| /* confdefs.h. */
___________________________________
configure:3121: gcc -E -traditional-cpp conftest.c
In file included from /usr/include/features.h:308,
from /usr/include/assert.h:36,
from conftest.c:14:
/usr/include/sys/cdefs.h:31: #error "You need a ISO C conforming compiler to use the glibc headers"
configure:3127: $? = 1
configure: failed program was:
| /* confdefs.h. */
There's nothing significant (i2c) in /usr/local/include/linux
ls -al /lib/cpp
lrwxrwxrwx 1 root root 12 Oct 3 20:45 /lib/cpp -> /usr/bin/cpp
Code:
~/xfce4-xmms-plugin-0.3.1$ ./configure
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
i can reinstall gcc from source if needed. i would have already done it but it seems there are a ton of install options for it. would just doing a standard ./configure, make &make install work or would it just totally screw everything up?
Does /usr/local/include/linux/limits.h exist?
limits.h is from the glibc headers. It should be under /usr/include/linux .
Try to reinstall glibc.
I reinstalled glibc (along with everything that sounded like or contained glibc)
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.
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.
The Glibc package in Slackware 11 was built against both the 2.4.x and the 2.6.x kernels.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.