* 2.6.0-t1-ac2: unable to compile glibc 2.3.2
@ 2003-07-17 9:45 Martin Zwickel
2003-07-17 10:15 ` Arjan van de Ven
2003-07-17 12:12 ` Martin Schlemmer
0 siblings, 2 replies; 4+ messages in thread
From: Martin Zwickel @ 2003-07-17 9:45 UTC (permalink / raw)
To: LKML
[-- Attachment #1: Type: text/plain, Size: 434 bytes --]
Hi there!
I just tried to update my glibc to 2.3.2 and saw that glibc can't compile
because of linux/sysctl.h.
I added the line "#include <linux/compiler.h>" to sysctl.h.
(since sysctl needs the __user)
So someone forgot the line, or did I miss something?
Regards,
Martin
--
MyExcuse:
boss forgot system password
Martin Zwickel <martin.zwickel@technotrend.de>
Research & Development
TechnoTrend AG <http://www.technotrend.de>
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: 2.6.0-t1-ac2: unable to compile glibc 2.3.2
2003-07-17 9:45 2.6.0-t1-ac2: unable to compile glibc 2.3.2 Martin Zwickel
@ 2003-07-17 10:15 ` Arjan van de Ven
2003-07-17 17:34 ` Chris Meadors
2003-07-17 12:12 ` Martin Schlemmer
1 sibling, 1 reply; 4+ messages in thread
From: Arjan van de Ven @ 2003-07-17 10:15 UTC (permalink / raw)
To: Martin Zwickel; +Cc: LKML
[-- Attachment #1: Type: text/plain, Size: 530 bytes --]
On Thu, 2003-07-17 at 11:45, Martin Zwickel wrote:
> Hi there!
>
> I just tried to update my glibc to 2.3.2 and saw that glibc can't compile
> because of linux/sysctl.h.
>
> I added the line "#include <linux/compiler.h>" to sysctl.h.
> (since sysctl needs the __user)
>
> So someone forgot the line, or did I miss something?
you're probably better off using not-the-kernel headers for building
glibc. eg on a RHL distro it's glibc-kernheaders package, other distros
have different package names for these files.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: 2.6.0-t1-ac2: unable to compile glibc 2.3.2
2003-07-17 9:45 2.6.0-t1-ac2: unable to compile glibc 2.3.2 Martin Zwickel
2003-07-17 10:15 ` Arjan van de Ven
@ 2003-07-17 12:12 ` Martin Schlemmer
1 sibling, 0 replies; 4+ messages in thread
From: Martin Schlemmer @ 2003-07-17 12:12 UTC (permalink / raw)
To: Martin Zwickel; +Cc: LKML
On Thu, 2003-07-17 at 11:45, Martin Zwickel wrote:
> Hi there!
>
> I just tried to update my glibc to 2.3.2 and saw that glibc can't compile
> because of linux/sysctl.h.
>
> I added the line "#include <linux/compiler.h>" to sysctl.h.
> (since sysctl needs the __user)
>
> So someone forgot the line, or did I miss something?
>
No, you should not use the kernel headers directly - use a sanitized
version (can get one from redhat's kernel-headers package). Else
just add a '#define __user' before that struct.
Regards,
--
Martin Schlemmer
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: 2.6.0-t1-ac2: unable to compile glibc 2.3.2
2003-07-17 10:15 ` Arjan van de Ven
@ 2003-07-17 17:34 ` Chris Meadors
0 siblings, 0 replies; 4+ messages in thread
From: Chris Meadors @ 2003-07-17 17:34 UTC (permalink / raw)
To: linux-kernel
On Thu, 2003-07-17 at 06:15, Arjan van de Ven wrote:
> you're probably better off using not-the-kernel headers for building
> glibc. eg on a RHL distro it's glibc-kernheaders package, other distros
> have different package names for these files.
In the past I would grab the headers of the kernel of which I compiled
glibc against. glibc has #ifdefs in it to turn on/off some features
based on the kernel version.
Are there plans get a sane set of kernel headers together that can be
used by userspace (at least glibc) that properly describe the features
of the current kernel, so the C library may take advantage of them?
--
Chris
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-07-17 17:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-17 9:45 2.6.0-t1-ac2: unable to compile glibc 2.3.2 Martin Zwickel
2003-07-17 10:15 ` Arjan van de Ven
2003-07-17 17:34 ` Chris Meadors
2003-07-17 12:12 ` Martin Schlemmer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).