From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <1ffc0a24f6b44e6bd91a24a28205a5ff.axp-list@archive.invalid> X-Archive-Original-Message-ID: <199801262152.QAA01924@harrison.blueskyprod.com> Date: Mon, 26 Jan 1998 13:08:35 -0800 (PST) From: Steve Linn Subject: Re: CRYPT(3) in RH 5.0 In-Reply-To: <199801262049.PAA12180@wilde.oit.umass.edu> Eddie, Try "gcc test.c -lcrypt". Steve Linn Systems Blue Sky| VIFX On Mon, 26 Jan 1998, Integration wrote: > Hello all, > > I have a strange question. I'm not a terribly novice programmer. I have > a little bit of an idea of what I'm doing. I've been using the crypt() > function on RH4.2 for a long time in my programs. The crypt(3) manpage > says that I need . So I include it. > > I recently upgraded a 4.2 box to 5.0. On that box, crypt() seems totally > broken. I get the following error: > > %gcc test.c > /tmp/cca068241.o: In function `main': > /tmp/cca068241.o(.text+0x11): undefined reference to `crypt' > % > > from the following little test proggie: > %cat test.c > > #define _XOPEN_SOURCE 1 > #include > #include > > int main(int argc, char **argv) > { > int cgicount, numRecords, i, map, len, numModules, cookiecount; > char *cryptedPass; > cryptedPass = crypt("pass", "f9"); > printf("hi %s\n",cryptedPass); > } > > ######################################### > HELP! > > Eddie > abrams@philos.umass.edu > > -- > To unsubscribe: send e-mail to axp-list-request@redhat.com with > 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com > > -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com