*BSD News Article 81954


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.netspace.net.au!news.mel.connect.com.au!munnari.OZ.AU!spool.mu.edu!newspump.sol.net!howland.erols.net!vixen.cso.uiuc.edu!saluki-news.wham.siu.edu!usenet
From: jimd@dutton2.it.siu.edu (Jim Dutton)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Undefined call to _crypt
Date: 30 Oct 1996 22:40:16 GMT
Organization: Southern Illinois University - Carbondale
Lines: 29
Message-ID: <558lgg$1hs2@saluki-news.wham.siu.edu>
References: <32749B2E.7713@digicity.net> <553ent$1do@uriah.heep.sax.de>
NNTP-Posting-Host: dutton2.it.siu.edu
X-Newsreader: knews 0.9.5

In article <553ent$1do@uriah.heep.sax.de>,
	j@uriah.heep.sax.de (J Wunsch) writes:
>Damien Thorn <damien@digicity.net> wrote:
>
>> Compiling as-is gives an error similar to the one in my
>> subject line.  When I add -lcrypt when compiling, the resulting
>> code works, but not properly.
>> 

>
>Seems like you're suffering from some confusion between libscrypt and
>libdescrypt.  (libcrypt are simply symlinks to one of the above.)


I get a similar error when compiling INN1-5b1 under FreeBSD 2.05 and
Perl5.003, with PERL support in INN turned off.

In nnrpd.c:352: if (!EQ(pwd->pw_passwd, crypt(pass, pwd->pw_passwd)))

This results in,

  gcc -I../include -g -c loadave.c
  gcc -o nnrpd article.o group.o commands.o misc.o newnews.o nnrpd.o
  	perl.o post.o loadave.o ../libinn.a
  	
  nnrpd.c:352: Undefined symbol `_crypt' referenced from text segment
  
Perhaps it is a missing include file ??