Hi, Erez!

On Tue, Apr 17, 2001 at 02:36:59PM +0200, you wrote the following:

> The problem with some (beta) versions of redhat is that they have
> the /usr/include/linux and /usr/include/asm as directories instead of
> symbolic links.

They shouldn't be symbolic links -- they should contain the kernel
headers of the version against which glibc itself was compiled.
Otherwise, if some structs in the kernel headers have changed, an
application will use the new ones, and the libc will use the old ones,
which can lead to segfaults and general malfunction.

So if it's a user application, it should be compiled with the same
headers as the libc (in other words use the headers that the libc
comes with). If it's a kernel module, it needs the headers of the
correct kernel version, in which case you put -I/usr/src/linux/include
on your gcc command line.

I don't know which libc version started first including include/ and
asm/ as directories with all the files instead of symlinks, but as far
as I remember it's been that way for a while, at least on Debian.

For a reference see:
http://lists.samba.org/pipermail/netfilter/2001-April/009951.html


-- 
Alex Shnitman <[EMAIL PROTECTED]>
http://alexsh.hectic.net/   UIN 188956
PGP 0xEC5D619D / E1 F2 7B 6C A0 31 80 28  63 B8 02 BA 65 C7 8B BA

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to