*BSD News Article 59399


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!paladin.american.edu!zombie.ncsc.mil!news.mathworks.com!newsfeed.internetmci.com!howland.reston.ans.net!Germany.EU.net!Hanover.Germany.EU.net!Hamburg.Germany.EU.net!nuki.NetUSE.de!tpki.toppoint.de!mistral!not-for-mail
From: kai@mistral.toppoint.de (Kai Voigt)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Compiling RADIUS under FreeBSD
Date: 10 Jan 1996 11:35:36 +0100
Organization: Gottes eigenes Newssystem: INN
Lines: 27
Message-ID: <4d04po$31d@mistral.toppoint.de>
References: <4coau1$rhu@gol2.gol.com> <4coc3n$6e@gol2.gol.com>
NNTP-Posting-Host: mistral.toppoint.de
X-Newsreader: NN version 6.5.0 #5 (NOV)

Doug Lerner <doug@gol.com> writes:

>I modified line 1429 of radiusd.c to change the "x" to an "*", simply 
>because the /etc/passwd file has asterisks in place of passwords. But I 
>really don't know what I am doing.

>Anyway, the source all compiles and objects are made, but there is an 
>error at link time:

>undefined symbol _crypt referenced from text segment

>so I was unable to make an executable file.

>Does anybody know how to solve this problem?

From the man page of crypt(3):

    Use of crypt() requires linking with the libcrypt library.

So you have to add "-lcrypt" to the final linking step.

Kai
-- 
Kai Voigt, Werftstraße 2, 24148 Kiel, Germany, +49 431 7209309
``This means that $foo and @foo are two different variables.   It also
means that $foo[1] is a part of @foo, not a part of $foo.  This may seem
a bit weird, but that's okay, because it is weird.'' -- man 1 perldata