Re: Recent changes to sysctl.h breaks glibc

Valdis.Kletnieks@vt.edu
Mon, 19 May 2003 21:11:19 -0400


--==_Exmh_-1177108798P
Content-Type: text/plain; charset=us-ascii

On Mon, 19 May 2003 18:40:18 MDT, Eric W. Biederman said:

> Or the build against a library that does that. There are not that
> many libraries.

So I get around the lack of foo-gram support in glibc by
writing/compiling/installing a -lfoo-gram, which of course gets its
header definitions from the same header file that kernheaders isn't
supplying, or by dragging around the same local foo-gram.h that I'd
otherwise be dragging around with my app.

Somehow, this doesn't seem like progress to me. And of course, it just
sets me up for *odd* debugging problems when my foo-gram.h is at version
0.17 and the kernel and glibc are up to 0.25, and features mysteriously
misbehave depending on the exact -I include order on the system I'm
doing the build on, and whether the particular version of gcc has the
automagic auto-ambush handling of /usr/local/include, and the phase of
the moon...

Yes, I know I can build against a library. Point is that saying I can
do it doesn't change the fact it's a hack and an ongoing maintenance problem.

> For a lot of system calls it is actively dangerous to assume dev_t ==
> __kernel_dev_t. As glibc does some cute things in there.

I thought that sort of fun and games was *WHY* userspace can't use the
kernel headers in the first place?

--==_Exmh_-1177108798P
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Exmh version 2.5 07/13/2001

iD8DBQE+yYC2cC3lWbTT17ARApMiAKD8DJ3R4DzFj8HydKjBGRSywh0g9ACfZAvr
JbwciMFvlUAYjkyoPlllbZk=
=dF0P
-----END PGP SIGNATURE-----

--==_Exmh_-1177108798P--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/