./configure sanity check
Hmm, i just noticed today that i can't compile anything anymore.. All i get is a c++ sanity check when trying to ./configure.
The last update i did was updating to slackware current (the updates that came out this week) Now, whenever i try to compile anything, i get this error in ./configure. For my example, i will show you amarok's compilation... But it's happening everywhere, Code:
# ./configure --prefix=`kde-config --prefix` --enable-mysql http://xushi.co.uk/xushi/sv/config.log |
---------
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory --------- do you have a file " /usr/include/limits.h " ? ( it's there on my sys. ) egag |
this is strange...
-------- /usr/include/sys/cdefs.h:31: #error "You need a ISO C conforming compiler to use the glibc headers" -------- and from " /usr/include/sys/cdefs.h " : -------- /* The GNU libc does not support any K&R compilers or the traditional mode of ISO C compilers anymore. Check for some of the combinations not anymore supported. */ #if defined __GNUC__ && !defined __STDC__ # error "You need a ISO C conforming compiler to use the glibc headers" #endif --------- what things did you install/upgrade before this started ? egag |
Quote:
Code:
# ls -l /usr/include/limits.h Quote:
Also, i upgraded to 2.6.11.12 if that helps... |
/usr/include/limits.h is not linux/limits.h
linux/limits.h is found on kernel sources and kernel-headers package. I think you're looking for the latest. |
Quote:
|
Nope, do you have the kernel-headers package installed? If not, install it.
PS: This is a not a general rule, but often C/C++ programs has a default include directory, on most programs it's /usr/include. When a program includes "limits.h" it will look at /usr/include and the full file name will be /usr/include/limits.h, if it includes "linux/limits.h" it will look at /usr/include so it will become /usr/include/linux/limits.h. I hope you get the point. |
Quote:
But anyway, i thought of recompiling the kernel again, and its hapenning there too.. heh Code:
root@xushitop:/usr/src/linux# make Quote:
|
Hmm, installing
kernel-headers-2.4.31-i386-1.tgz Seems to have solved the problems. But i'm still confused.. Why do i need the 2.4 headers? i've been 2.4 free and on 2.6 since 2.6.9 |
You can use kernel-headers 2.6 package from testing. However, read the warning on testing about using those.
|
All times are GMT -5. The time now is 09:59 PM. |