View previous topic :: View next topic |
Author |
Message |
EnsignRicki n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 16 Jan 2003 Posts: 49
|
Posted: Mon Jul 12, 2004 7:09 pm Post subject: Cannot compile glibc |
|
|
I just switched from kernel 2.4.26 to kernel 2.6.7. It seems to be working ok. I then removed the 2.4 26 linux headers and installed the the 2.6.7 headers. I read that once you change the headers you should reinstall glibc. However when I attempt to do so I receive the following error.
Code: | * Checking kernel headers for broken sysctl.h ... yes
* Your version of:
* //usr/include/linux/sysctl.h
* is broken (from a user space perspective). Please apply
* the following patch:
* *******************************************************
--- linux.orig/include/linux/sysctl.h.orig 2003-05-18 22:12:39.000000000 +0200
+++ linux.fixed/include/linux/sysctl.h 2003-05-18 22:13:58.000000000 +0200
@@ -35,6 +35,10 @@
the largest acceptable value for the nlen
member of a struct __sysctl_args to have? */
+#ifndef __user
+#define __user
+#endif
+
struct __sysctl_args {
int __user *name;
int nlen;
* *******************************************************
!!! ERROR: sys-libs/glibc-2.3.3.20040420 failed.
!!! Function pkg_setup, Line 239, Exitcode 0
!!! Broken linux/sysctl.h header included in kernel sources!
|
I'm not sure how to proceed. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
spb Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/20036972384156d941bd94f.jpg)
Joined: 02 Jan 2004 Posts: 2135 Location: Cambridge, UK
|
Posted: Mon Jul 12, 2004 8:29 pm Post subject: |
|
|
2.6.7 kernel headers are somewhat problematic. Try switching to 2.6.6, and see whether it compiles then. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
EnsignRicki n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 16 Jan 2003 Posts: 49
|
Posted: Mon Jul 12, 2004 9:32 pm Post subject: |
|
|
Thanks it seems to be compiling now. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
EnsignRicki n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 16 Jan 2003 Posts: 49
|
Posted: Mon Jul 12, 2004 11:38 pm Post subject: |
|
|
So after installing the 2.6.6 headers I did an
and it shows the 2.6.6 headers as the only package to remove. Why is that? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|