Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot compile glibc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
EnsignRicki
n00b
n00b


Joined: 16 Jan 2003
Posts: 49

PostPosted: Mon Jul 12, 2004 7:09 pm    Post subject: Cannot compile glibc Reply with quote

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
View user's profile Send private message
spb
Retired Dev
Retired Dev


Joined: 02 Jan 2004
Posts: 2135
Location: Cambridge, UK

PostPosted: Mon Jul 12, 2004 8:29 pm    Post subject: Reply with quote

2.6.7 kernel headers are somewhat problematic. Try switching to 2.6.6, and see whether it compiles then.
Back to top
View user's profile Send private message
EnsignRicki
n00b
n00b


Joined: 16 Jan 2003
Posts: 49

PostPosted: Mon Jul 12, 2004 9:32 pm    Post subject: Reply with quote

Thanks it seems to be compiling now.
Back to top
View user's profile Send private message
EnsignRicki
n00b
n00b


Joined: 16 Jan 2003
Posts: 49

PostPosted: Mon Jul 12, 2004 11:38 pm    Post subject: Reply with quote

So after installing the 2.6.6 headers I did an
Code:
emerge -p depclean

and it shows the 2.6.6 headers as the only package to remove. Why is that?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum