* Re: CRYPT(3) in RH 5.0
[not found] <199801262049.PAA12180@wilde.oit.umass.edu>
@ 1998-01-26 21:04 ` Aleksandr Pilosov
1998-01-26 21:08 ` Steve Linn
1998-01-26 21:10 ` Brian Lund
2 siblings, 0 replies; 4+ messages in thread
From: Aleksandr Pilosov @ 1998-01-26 21:04 UTC (permalink / raw)
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 <unistd.h>. 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'
Try 'gcc -lcrypt test.c'
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: CRYPT(3) in RH 5.0
[not found] <199801262049.PAA12180@wilde.oit.umass.edu>
1998-01-26 21:04 ` CRYPT(3) in RH 5.0 Aleksandr Pilosov
@ 1998-01-26 21:08 ` Steve Linn
1998-01-26 21:10 ` Brian Lund
2 siblings, 0 replies; 4+ messages in thread
From: Steve Linn @ 1998-01-26 21:08 UTC (permalink / raw)
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 <unistd.h>. 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 <stdio.h>
> #include <unistd.h>
>
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: CRYPT(3) in RH 5.0
[not found] <199801262049.PAA12180@wilde.oit.umass.edu>
1998-01-26 21:04 ` CRYPT(3) in RH 5.0 Aleksandr Pilosov
1998-01-26 21:08 ` Steve Linn
@ 1998-01-26 21:10 ` Brian Lund
2 siblings, 0 replies; 4+ messages in thread
From: Brian Lund @ 1998-01-26 21:10 UTC (permalink / raw)
On Mon, 26 Jan 1998, Integration wrote:
> Hello all,
>
>
> %gcc test.c
> /tmp/cca068241.o: In function `main':
> /tmp/cca068241.o(.text+0x11): undefined reference to `crypt'
> %
>
use -lcrypt
-Brian Lund
blinx@zone.dk
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* CRYPT(3) in RH 5.0
@ 1998-01-26 20:49 Integration
0 siblings, 0 replies; 4+ messages in thread
From: Integration @ 1998-01-26 20:49 UTC (permalink / raw)
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 <unistd.h>. 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 <stdio.h>
#include <unistd.h>
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1998-01-26 21:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <199801262049.PAA12180@wilde.oit.umass.edu>
1998-01-26 21:04 ` CRYPT(3) in RH 5.0 Aleksandr Pilosov
1998-01-26 21:08 ` Steve Linn
1998-01-26 21:10 ` Brian Lund
1998-01-26 20:49 Integration
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox