[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: crypt system call
- Subject: Re: crypt system call
- From: Vivek Sharma <viveksh@xxxxxxxxxx>
- Date: Wed, 09 Jun 1999 09:24:59 +0000
- --------------A85AC2C6A2B0F9AA828F7DE4
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi,
Try compiling using the lcrypt library using the following command line
option
cc cryptest.c -lcrypt
bye
vivek sharma
Kousik Bera wrote:
> Hi All,
> I am porting some c++ program from Solaris to Linux. One module uses the
> system call 'crypt'.
> When I try to compile the source, the linker(ld) is unable to link the
> 'crypt' code from the
> system library/libc(I am not sure). I checked the man pages for crypt.
> It's there. So I guess my system(RH 5.2, Kernel 2.0.36) supports 'crypt'
> call. There is no /etc/shadow file. /etc/passwd file is there, and all
> users and their encrypted passwords are listed there.
> So I guess Shadow-Password suite is not installed on my system.
> I am attaching a simple C test code and the linker output. Why 'crypt'
> call is giving this problem? If crypt call can't be used, are there any
> alternative method for password authentication programatically?
> BTW if I want to know, what is the source code name for say "cp", are
> there any way to find this info?
> TIA,
> Kousik
>
> ------------------------------------------------------------------------
> [Image]
>
> ------------------------------------------------------------------------
> cryptest.c: In function `main':
> cryptest.c:18: warning: assignment makes pointer from integer without a cast
> /tmp/cca005701.o: In function `main':
> /tmp/cca005701.o(.text+0x65): undefined reference to `crypt'
- --
______________________________________________________________________________
| Vivek Sharma viveksh@xxxxxxxxxx
| Engineer-RnD (COMM labs) viveksh@xxxxxxxxx
| C M C Centre, 91 040 3000 401 x2262
/^\-=-/^\ Gachibowli,
/ /\|o o|/\ \ Hyderabad- 500 019.
/ / -M- \ \ INDIA
< >
\ /
|-------------*-----Discover me at http://members.tripod.com/vivsh ----------
- --------------A85AC2C6A2B0F9AA828F7DE4
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hi,
<br> Try compiling using the lcrypt library using the
following command line option
<p>cc cryptest.c -lcrypt
<p>bye
<br>vivek sharma
<br>
<p>Kousik Bera wrote:
<blockquote TYPE=CITE>Hi All,
<br>I am porting some c++ program from Solaris to Linux. One module uses
the
<br>system call 'crypt'.
<br>When I try to compile the source, the linker(ld) is unable to link
the
<br>'crypt' code from the
<br>system library/libc(I am not sure). I checked the man pages for crypt.
<br>It's there. So I guess my system(RH 5.2, Kernel 2.0.36) supports 'crypt'
<br>call. There is no /etc/shadow file. /etc/passwd file is there, and
all
<br>users and their encrypted passwords are listed there.
<br>So I guess Shadow-Password suite is not installed on my system.
<br>I am attaching a simple C test code and the linker output. Why 'crypt'
<br>call is giving this problem? If crypt call can't be used, are there
any
<br>alternative method for password authentication programatically?
<br>BTW if I want to know, what is the source code name for say "cp", are
<br>there any way to find this info?
<br>TIA,
<br>Kousik
<p> ------------------------------------------------------------------------
<br> [Image]
<p> ------------------------------------------------------------------------
<br>cryptest.c: In function `main':
<br>cryptest.c:18: warning: assignment makes pointer from integer without
a cast
<br>/tmp/cca005701.o: In function `main':
<br>/tmp/cca005701.o(.text+0x65): undefined reference to `crypt'</blockquote>
<pre>--
______________________________________________________________________________
| Vivek Sharma viveksh@xxxxxxxxxx
| Engineer-RnD (COMM labs) viveksh@xxxxxxxxx
| C M C Centre, 91 040 3000 401 x2262
/^\-=-/^\ Gachibowli,
/ /\|o o|/\ \ Hyderabad- 500 019.
/ / -M- \ \ INDIA
< >
\ /
|-------------*-----Discover me at <A HREF="http://members.tripod.com/vivsh">http://members.tripod.com/vivsh</A> ----------</pre>
</html>
- --------------A85AC2C6A2B0F9AA828F7DE4--
- --------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/
Linux India is NOT a forum for Microsoft/India/Pakistan/US/UK bashing.
Flame baits will not be tolerated. If you can appreciate satire read
http://www.templetons.com/brad/emily.html
------------------------------
End of Linux India Digest V1 #35
********************************
--------------------------------------------------------------------
To unsubscribe send an email to majordomo@xxxxxxxxx with the word
'unsubscribe linux-india-digest' (without the quotes) in the body
of the email.