Re: freebsd: -lcipher

2001-11-27 Thread Chris Parker

At 03:57 PM 11/27/2001 +0200, Victor Ivanov wrote:
Hi all!

I recently updated using cvs and recompiled radiusd 0.4 on my freebsd 4.4
(a recent stable). When running radiusd, libc complained about the lack
of the FreeSec functions (setkey(3), des_cipher(3), etc).

I have added this check in configure.in, and it works for me:

dnl Check for libcipher (extends LCRYPT)
AC_CHECK_LIB(cipher, setkey,
   CRYPTLIB=${CRYPTLIB} -lcipher
)

Please send this as a 'diff'.  See the 'doc/DIFFS', or more simply:

$ cvs diff -p configure.in

And post it here.  We'll review it and commit it if it works.

Thanks!
-Chris
--
\\\|||///  \  Chris Parker-Manager, Development Engineering
\ ~   ~ /   \   WX *is* Wireless!\   [EMAIL PROTECTED]
| @   @ |\   http://www.starnetwx.net \  (847) 963-0116
oOo---(_)---oOo--\--
   \ Without C we would have 'obol', 'basi', and 'pasal'


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



Re: freebsd: -lcipher

2001-11-27 Thread Victor Ivanov

On Tue, Nov 27, 2001 at 08:49:36AM -0600, Chris Parker wrote:
 Please send this as a 'diff'.  See the 'doc/DIFFS', or more simply:
 
 $ cvs diff -p configure.in

I knew I should provide a patch..

Index: configure.in
===
RCS file: /source/radiusd/configure.in,v
retrieving revision 1.131
diff -p -r1.131 configure.in
*** configure.in2001/10/25 21:46:17 1.131
--- configure.in2001/11/27 15:47:44
*** else
*** 609,614 
--- 609,619 
AC_CHECK_FUNC(crypt, AC_DEFINE(HAVE_CRYPT))
  fi

+ dnl Check for libcipher
+ AC_CHECK_LIB(cipher, setkey,
+   CRYPTLIB=${CRYPTLIB} -lcipher
+ )
+
  if test x$WITH_SNMP = xyes; then
SNMP_CHECKS
  fi

I know there will be a problem if crypt is in libc and cipher is not.
Maybe I should add LCIPHER, HAVE_CIPHER and etc, and modify Make.inc.in
also?

-- 
Players win and winners play
Have a lucky day

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html