Re: crypt()-function in kernel 2.2.1

Matthew Kirkwood (weejock@ferret.lmh.ox.ac.uk)
Wed, 3 Feb 1999 17:56:34 +0000 (GMT)


On Wed, 3 Feb 1999, Matthias Rosenkranz (RSG) wrote:

> I'm trying to compile a project using the crypt()-function under the
> 2.2.1 kernel. This program was developed on a 2.0.35 kernel and worked
> well so far. But under the new kernel I get the gcc-message '/tmp/123.o
> undefined reference to crypt' (something like that) and gcc won't link
> it. I've also read something about the crypt() function not being
> embedded in the official kernel. Could anybody be more specific on that,
> please.

Not kernel related. Try adding "-lcrypt" on the link command line.

glibc has (for legal reasons or something) its crypt function in a
separate library.

Matthew.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/